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

配置oracle监听文件

时间:2019-10-16 20:04:41      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:glob   oracle   信息   work   gen   protocol   server   add   esc   

配置oracle监听文件
如果自己配置的监听文件总是出错,可以复制线面的信息进到自己配置文件中更改主机信息即可

[oracle@master admin]$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /oracle/oracle/11g/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.10)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
[oracle@master admin]$ cat listener.ora
# listener.ora Network Configuration File: /oracle/oracle/11g/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = master.example.com)(PORT = 1521))
)
)

ADR_BASE_LISTENER = /oracle/oracle

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /oracle/oracle/11g)
(SID_NAME = orcl)
)
)
[oracle@master admin]$

配置oracle监听文件

标签:glob   oracle   信息   work   gen   protocol   server   add   esc   

原文地址:https://blog.51cto.com/7794482/2443029

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