はじめまして。
Windows2000 SP2 で、Oracle8.1.7を使用しています。
で、質問なのです。
みなさんは、Oracleの監視って、どのようにされていますか。
例えば、プロセス、リスナー、カーソルの状態など、
現在、Oracleがどのような状態なのか、知りたいのです。
さらさらっと、検索してみると、高価なツールはたくさんありますね。
できれば、わざわざ、そういうものを購入しないで、出来たらいいな、と。
フリーなソフト、または、こういう監視ができるコマンドでも結構です。
あまり、お金をかけずに、監視が出来る方法を教えてください。
よろしくお願いします。
No.1ベストアンサー
- 回答日時:
管理の助けになるPL/SQLスクリプト集のような本はいろいろとあると思います。
参考までにURLを紹介します。
参考URL:http://www.shoeisha.com/book/Detail.asp?bid=3
No.2
- 回答日時:
こんにちわ。
私は以前、以下のようなスクリプトをcron から起動して
領域/性能情報の監視をしていました。
参考にしてみて下さい。
col tbs format a15
col file_name format a50
col owner format a10
col tname format a32
col iname format a32
col tablespace_name format a20
set pages 9999
set line 110
Select to_char(sysdate, 'YYYY/MM/DD HH24:MI:SS') StartDate from dual;
Select 'Tablespace Information' Title from dual;
Select tablespace_name tbs, file_name, trunc(bytes/(1024*1024)) Mbyte,
trunc(maxbytes/(1024*1024)) MaxMbyte
from dba_data_files
order by 1,2;
Select 'Free space Information' Title from dual;
select tablespace_name, bytes, bytes/(1024*1024) Mbyte from dba_free_space order by 1,2;
Select 'Table extent Information' Title from dual;
Select t.owner, t.table_name tname, s.extents extnum,
t.initial_extent init, t.next_extent nxt, t.pct_increase pct
from dba_tables t, dba_segments s
where t.table_name = s.segment_name
order by 1;
Select 'Index extent Information' Title from dual;
Select i.owner, i.index_name iname, s.extents extnum,
i.initial_extent init, i.next_extent nxt, i.pct_increase pct
from dba_indexes i, dba_segments s
where i.index_name = s.segment_name
order by 1;
Select 'extents > 5' Title from dual;
select owner, segment_name, partition_name, segment_type,
tablespace_name, bytes, extents, initial_extent,
next_extent, pct_increase
from dba_segments
where extents > 5
order by 1,7 desc, 4,2,3;
Select 'Performance Information' Title from dual;
select name, value from v$sysstat
where name in ('db block gets', 'consistent gets',
'physical reads');
select sum(reloads)*100 / sum(pins) from v$librarycache;
select sum(getmisses)*100 / sum(gets) from v$rowcache;
select ln.name, gets, misses, immediate_gets, immediate_misses
from v$latch l, v$latchname ln
where ln.name in ('redo allocation', 'redo copy') and
ln.latch# = l.latch#;
select name, value from v$sysstat
where name in ('sorts (memory)', 'sorts (disk)');
select class, count from v$waitstat
where class in ('system undo header', 'system undo block',
'undo header', 'undo block');
select sum(value) from v$sysstat
where name in ('db block gets', 'consistent gets');
Select to_char(sysdate, 'YYYY/MM/DD HH24:MI:SS') EndDate from dual;
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
関連するカテゴリからQ&Aを探す
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・人生のプチ美学を教えてください!!
- ・10秒目をつむったら…
- ・あなたの習慣について教えてください!!
- ・牛、豚、鶏、どれか一つ食べられなくなるとしたら?
- ・【大喜利】【投稿~9/18】 おとぎ話『桃太郎』の知られざるエピソード
- ・街中で見かけて「グッときた人」の思い出
- ・「一気に最後まで読んだ」本、教えて下さい!
- ・幼稚園時代「何組」でしたか?
- ・激凹みから立ち直る方法
- ・1つだけ過去を変えられるとしたら?
- ・【あるあるbot連動企画】あるあるbotに投稿したけど採用されなかったあるある募集
- ・【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?
- ・映画のエンドロール観る派?観ない派?
- ・海外旅行から帰ってきたら、まず何を食べる?
- ・誕生日にもらった意外なもの
- ・天使と悪魔選手権
- ・ちょっと先の未来クイズ第2問
- ・【大喜利】【投稿~9/7】 ロボットの住む世界で流行ってる罰ゲームとは?
- ・推しミネラルウォーターはありますか?
- ・都道府県穴埋めゲーム
- ・この人頭いいなと思ったエピソード
- ・準・究極の選択
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
SQL文で右から1文字だけ削除す...
-
割合(パーセント)を求めるに...
-
使うべきでない文字。
-
DATE型にNULLをセットするには?
-
[VBA] ADOの Clone と AddNew
-
【SQL】existsでの商演算
-
カレントレコードが無い事を判...
-
Access でレコードセレクタが押...
-
Line Inputで文字化け(助けて...
-
sqlplusの処理が途中でとまる
-
SELECTの結果で同一行を複数回...
-
SELECT文で重複せずに取得する...
-
差し込み印刷のレコード数について
-
GROUP BYを行った後に結合した...
-
レコードセット(ADO.Recordset)...
-
レコードが存在しなかった場合
-
MERGE文を単体テーブルに対して...
-
サブレンジ分割されたNDB(富士...
-
固有レコード識別子の選択とは
-
【至急】Accessでの大量データ...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
SQL文で右から1文字だけ削除す...
-
【MYSQL】asでリネームしてwher...
-
使うべきでない文字。
-
sum()の出力結果順に並び替えを...
-
MySQLで MAX()とGROUP BYを使う...
-
【初歩】ラジオボタンをつかっ...
-
MySQL のデータからドロップダ...
-
チェックボックスの項目をDBにi...
-
月別、販売員別の集計がわかり...
-
カウント結果を1レコードの中...
-
何にかが違うから エラーなんで...
-
SQLの集計で「全て」の合計も表...
-
割合(パーセント)を求めるに...
-
MySQL 副問い合わせ(IN)での...
-
LIKE述語/SQLとPHPを使った検...
-
MySQLにて特定レコードのみを抽...
-
MySQLで2つのテーブルのデータ...
-
初心者Mysqlの関数のsubstring...
-
サブクエリ内で INNER JOIN は
-
条件検索の方法について
おすすめ情報