这里记录的是安装了oracle数据库的连接方式
修改tnsnames.ora配置文件
tnsnames.ora
配置文件路径:
..app用户product11.2.0dbhome_1NETWORKADMIN nsnames.ora
- 添加连接配置如下:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxx)(PORT = 1521))
(CONNECT_DATA =
(SERVER = xxxxxx)
(SERVICE_NAME = xxxxxx)
)
)
ORCL
是自取的名称,HOST
是IP地址,PORT
是端口号,SERVICE_NAME
要对应上