sys_context « SQL Plus « Oracle PL / SQL






1.sys_context(''userenv'',''sessionid'')
2.Get current program with sys_context('userenv','sessionid') and v$session
3.Use SYS_CONTEXT to retrieve the database name