8
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

oracle パフォーマンス確認で使ったコマンド

Posted at

oracle のパフォーマンス確認で使ったコマンド類をまとめた。

oracle パラメータ情報取得

SQL> show parameter memory
SQL> show parameter sga
SQL> show parameter pga
SQL> show parameter log
SQL> show parameter cache
SQL> show parameter paralell

SGA 情報の確認

SQL> select * from v$sga;
SQL> select * from v$sgainfo;

REDO 書き込み wait の確認

SQL> SELECT
        NAME, VALUE
    FROM
        V$SYSSTAT
    WHERE
        NAME IN ('redo buffer allocation retries', 'redo entries')
    ;

チェックポイントの確認

SQL> SELECT
        NAME, VALUE
    FROM
        V$SYSSTAT
    WHERE
        NAME = 'DBWR checkpoints'
    ;

wait イベントを wait 時間でソート

SQL> SELECT
        EVENT, TOTAL_WAITS, TIME_WAITED, AVERAGE_WAIT
    FROM
        V$SYSTEM_EVENT e, V$EVENT_NAME n
    WHERE
        e.EVENT = n.NAME
    ORDER BY
        TIME_WAITED DESC
    ;

ファイル情報取得

SQL> select * from v$datafile;
SQL> select * from v$tempfile;
8
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?