How to get the IP address of database server in 12c.
Hi all,
I have the client application and configured tnsname.ora with lot of service names
<PDB>_01=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.x)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=Db_name_01)))
<PDB>_02=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=y.y.y.y)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=Db_name_02)))
........
From this client, I can connect to remote databases successfully by sqlplus user1/abc123@<tns_service_name>.
I want to get the IP address of database server from this tns_service_name by SQL or PL/SQL after connection successfully. Are there methods to get IP address of database server from client machine like this situation?