SPID

SELECT   /*+ ORDERED */
         sql_text
    FROM v$sqltext a
   WHERE (a.hash_value, a.address) IN (
            SELECT DECODE (sql_hash_value,
                           0, prev_hash_value,
                           sql_hash_value
                          ),
                   DECODE (sql_hash_value, 0, prev_sql_addr, sql_address)
              FROM v$session b
             WHERE b.paddr = (SELECT addr
                                FROM v$process c
                               WHERE c.spid ='6462'))  --修改这个SPID
ORDER BY piece ASC; 来源:运维家园 http://www.f5ha.com 转载请注明出处!本文欢迎转载,转载请注明:转载自运维家园[url]http://www.f5ha.com[/url]

你可能感兴趣的:(pid)