Last active
December 20, 2015 11:59
-
-
Save icoxfog417/6127898 to your computer and use it in GitHub Desktop.
Oracle executing SQL
This file contains 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
--SQL | |
select sid,serial#,username,logon_time,q.SQL_ID,q.SQL_TEXT | |
from v$session s,v$sql q | |
where s.SQL_ID=q.SQL_ID | |
--SQL ALL | |
select SQL_TEXT from v$sqltext b WHERE b.SQL_ID = :pId ORDER BY PIECE | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment