0
1

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

現状の状態でstatspackを取得する

execute statspack.snap();

セッション数を確認

アクティブになっているセッションに注目する

長期間アクティブになっているセッションを確認する

長期間アクティブになっているSQLを確認する

select s.username,s.sid,s.serial#,q.sql_id,s.status, q.sql_text from V$session s join v$sql q on s.sql_id=q.sql_id where s.username 'user' and s.last_call_et > 5 and s.status='ACTIVE';

セッション強制終了
alter system kill session '<sid>, <serial#>';

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?