码迷,mamicode.com
首页 > 数据库 > 详细

PlSql链接Oracle数据库对tnsnames.ora文件的配置

时间:2016-04-06 18:15:50      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:

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)
)
)

PlSql链接Oracle数据库对tnsnames.ora文件的配置

标签:

原文地址:http://www.cnblogs.com/RocketMan/p/5360202.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!