1、打开tnsnames.ora文件的位置
D:\ora_product\11.2.0\dbhome_1\NETWORK\ADMIN
2、文件中写入
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
108_XRORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.108)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XRORCL)
)
)
时间: 2024-10-10 09:18:41