How to Get Oracle Database IP? -
how can ip address of oracle database. i'm not administrator , it's not hacking purpose.
i'm using oracle application has access database. how can ip address of database ?
from within sql*plus (requires specific access rights network related functions, might or might not available non-administrator):
sql> connect / sysdba; connected. sql> select utl_inaddr.get_host_address dual; get_host_address -------------------------------------------------------------------------------- 192.168.1.42
from shell (if using tnsnames resolving database names):
$ tnsping instanceid attempting contact (description= (address=(protocol=tcp)(host=host.dbserver.com)(port=1521)) (connect_data= (sid=orcl))) ^^^^^^^^^^^^^^^^^
note host
output - host name of database server.
if application using jdbc
access database, host name part of jdbc connection string:
jdbc:oracle:thin:@host.dbserver.com:1521:orcl ^^^^^^^^^^^^^^^^^
in either case, can use ping
ip address:
$ ping host.dbserver.com ping host.dbserver.com (192.168.1.42) 56(84) bytes of data. ^^^^^^^^^^^^
Comments
Post a Comment