LoginSignup
8
10

More than 5 years have passed since last update.

#Oracle アプリが発行したクソ長いSQLを調べるには

Posted at

以下のようなSQLでみつけられる

select t1.last_active_time,
 dbms_lob.getlength(t1.sql_fulltext),
 dbms_lob.substr(t1.sql_fulltext,3000,1),
 dbms_lob.substr(t1.sql_fulltext,3000,3001),
 dbms_lob.substr(t1.sql_fulltext,3000,6001),
 t1.sql_text,t1.sql_fulltext,t1.* 
from
 v$sqlarea t1
where
 t1.parsing_schema_name ='スキーマ名'
  and
 t1.module ='exe名'
order by
 t1.last_active_time desc
8
10
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
10