如何配制listener.ora
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
listener.ora 是oracle服务器端的网络配置文件,oracle 根据它来配置监听服务。listener.ora可配置多个监听器,每个监听器的文件组成是:
SID_LIST_ORCLLISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = d:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = testDB)
(ORACLE_HOME = d:\oracle\product\10.2.0\db_1)
(SID_NAME = testDB)
)
)
ORCLLISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 20100908-2130)(PORT = 1521)) )
即由2部分组成:
XXXLiSTENER=(DESCRIPTION=xxx):指定一个监听器所对应的服务器地址和端口号
SID_LIST_XXXLISTENER=((SID_LIST =xxx):指定XXXLISTENER所服务的数据库。即XXXLISTENER 将对请求这些数据库(SID)的连接提供监听接待服务。
listener.ora可配置多个监听和多个监听对应数据库(SID).
ORCLLISTENER所监听的数据库列表
SID_LIST_ORCLLISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = d:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = testDB)
(ORACLE_HOME = d:\oracle\product\10.2.0\db_1)
(SID_NAME = testDB)
)
)
LISTENER所监听的数据库
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = Oracle8)
(ORACLE_HOME = d:\oracle\product\10.2.0\db_1)
(SID_NAME = ORCLw)
)
)
ORCLLISTENER所对应的服务器
ORCLLISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 20100908-2130)(PORT = 1521)) )
LISTENER所对应的服务器
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 20100908-21301)(PORT = 1521)) )