-
-
Save ohforest/4b56dbbe90288fb2aa860e1e77095687 to your computer and use it in GitHub Desktop.
Oracle - Select Sql Text from System Process ID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select s.sql_text,s.sql_fulltext from v$sql s | |
where sql_id in (SELECT A.SQL_ID FROM V$SESSION A,V$PROCESS B | |
WHERE A.PADDR=B.ADDR AND B.SPID='6495') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment