码迷,mamicode.com
首页 > 数据库 > 详细

查询EBS中LOV的SQL语句

时间:2014-07-11 09:59:01      阅读:334      评论:0      收藏:0      [点我收藏+]

标签:for   io   line   时间   div   sql   

帮助->关于

会话 SID : 507

 

DECLARE
  l_sid NUMBER := :SID;
BEGIN
  FOR cur_sql IN (SELECT sql_text
                    FROM v$sqltext_with_newlines t
                   WHERE t.address IN (SELECT s.prev_sql_addr
                                         FROM v$session s
                                        WHERE s.sid = l_sid
                                       UNION
                                       SELECT s.sql_address --如果查询时间很短,可能存在sql_address中
                                         FROM v$session s
                                        WHERE s.sid = l_sid)
                   ORDER BY t.piece) LOOP
    dbms_output.put_line(cur_sql.sql_text);
  END LOOP;
END;

查询EBS中LOV的SQL语句,布布扣,bubuko.com

查询EBS中LOV的SQL语句

标签:for   io   line   时间   div   sql   

原文地址:http://www.cnblogs.com/chinaxin/p/3834514.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!