oracle 数据库中是否有任何功能可以提供数据库正在运行的当前连接的服务器名称(或 ip)?
其他方式的问题,在 oracle tnsnames.ora 文件中我有以下内容
ORA9 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.14.208)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.14.209)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
如何知道我的应用程序中连接的服务器ip是192.168.14.208还是192.168.14.209?