oracle网络配置(listener.ora⼀sqlnet.ora⼀tnsnames.ora)

2024-11-26 19:51:14
推荐回答(3个)
回答1:

你就照着上面那个实例再写一个就可以了啊
XJPDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = xjpdb)
)
)
TESTWULIU =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.24)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle)
)
)

回答2:

你可以写成两个.
分别用不同的实例名

另外你这种写法,如果真的去连接,连接到那个地址好呢.

回答3:

不同德IP地址需要配置不同的监听地址 ,监听来自不同实例的请求