Created
April 24, 2012 13:18
-
-
Save sytkov/2479613 to your computer and use it in GitHub Desktop.
Get current user / schema name ( for session )
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
select Schemaname into v_ObjectType | |
from v$session | |
where audsid = TO_NUMBER( sys_context('userenv','sessionid') ) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment