1:D:/oracle/product/10.2.0/db_1/network/ADMIN/tnsnames.ora
tnsnames.ora的内容如下:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PC509.cattsoft.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
2:tnsnames.ora的内容也可以直接在Net Manger -->本地-->服务命名 上直接配置.