码迷,mamicode.com
首页 > 其他好文 > 详细

ODAC的tnsnames.ora文件

时间:2016-06-18 14:16:16      阅读:617      评论:0      收藏:0      [点我收藏+]

标签:

WIN7安装完ODAC之后,会在目录“C:\app\client\xushunyi\product\12.1.0\client_1\Network\Admin”下生成一个tnsnames.ora文件,里面用于配置Oracle数据库实例信息,一般可以参照Sample目录下的tnsname.ora文件对其进行配置。实例内容如下:

  

# Every line that begins with # is a comment line
#
# Create Oracle net service names, or aliases, for each database server
# you need to connect to.
#
# TNSNames.ora sample entry
#
# alias =
# (DESCRIPTION =
# (ADDRESS = (PROTOCOL = TCP)(HOST = myserver.mycompany.com)(PORT = 1521))
# (CONNECT_DATA =
# (SERVER = DEDICATED)
# (SERVICE_NAME = orcl)
# )
# )
#
# You can modify the entry below for your own database.
# <data source alias> = Name to use in the connection string Data Source
# <hostname or IP> = name or IP of the database server machine
# <port> = database server machine port to use
# <database service name> = name of the database service on the server

<data source alias> =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <hostname or IP>)(PORT = <port>))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = <database service name>)
)
)

ODAC的tnsnames.ora文件

标签:

原文地址:http://www.cnblogs.com/Lightmen/p/5596078.html

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