1. get ip address from database User basis
SELECT sid, machine,utl_inaddr.get_host_address(SUBSTR(machine,INSTR(machine,'\')+)) ip
FROM gv$session
WHERE type = 'USER'
AND username IS NOT NULL;
2. give Host name, get IP address
=================================
SELECT utl_inaddr.get_host_address('ADMINISTRATOR')
FROM dual;
3. give ip, get host_name address
=================================
SELECT utl_inaddr.get_host_name('10.11.1.105')
Halim is a Sr. Database Engineer/Data Architect (in Atlanta, USA) who is an Oracle certified (OCP) DBA, (OCP) Developer, Certified Cloud Architect Professional as well as OCI Autonomous DB specialist with extensive expertise in Database design, configuration, tuning, capacity planning, RAC, DG, Scripting, Python, PL/SQL etc. He achieved 16th position in worldwide first-ever PL/SQL Challenge cup playoff- http://plsql-challenge.blogspot.com/2010/07/winners-of-first-plsql-challenge.html
Subscribe to:
Post Comments (Atom)
My Blog List
-
-
Index Usage – 21 week ago
-
-
-
-
-
-
-
-
Oracle Cloud & Third party tools3 years ago
-
-
-
Moving Sideways7 years ago
-
Upcoming Events...10 years ago
-
No comments:
Post a Comment