Created
July 6, 2018 06:42
-
-
Save oehrlis/6a697fbe1eed17b47adcdec7ef073b2e to your computer and use it in GitHub Desktop.
Network information of current session
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
------------------------------------------------------------------------ | |
- Trivadis AG, Business Development & Support (BDS) | |
- Saegereistrasse 29, 8152 Glattbrugg, Switzerland | |
------------------------------------------------------------------------ | |
- Name.......: net.sql | |
- Author.....: Stefan Oehrli (oes) [email protected] | |
- Usage......: net.sql | |
- Purpose....: List current session connection information | |
- Notes......: -- | |
- Reference..: -- | |
- License....: GPL-3.0+ | |
------------------------------------------------------------------------ | |
col net_sid head SID for 99999 | |
col net_osuser head OS_USER for a10 | |
col net_authentication_type head AUTH_TYPE for a10 | |
col net_network_service_banner head NET_BANNER for a100 | |
select | |
sid net_sid, | |
osuser net_osuser, | |
authentication_type net_authentication_type, | |
network_service_banner net_network_service_banner | |
from v$session_connect_info | |
where sid=(select sid from v$mystat where rownum = 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment