当前位置:操作系统 > Unix/Linux >>

如何才能在同一台机器配置两个listener

问题:一台机器同时装两套数据库时(实例名o8161,o8151),无法同时启动两个listener,

  当启动第二个listener时,显示错误。

  $ lsnrctl start

  LSNRCTL for IBM/AIX RISC System/6000: Version 8.1.5.0.0 - Production on 14-SEP-00 09:25:17

  (c) Copyright 1998 Oracle Corporation. All rights reserved.

  TNS-01106: Listener using listener name LISTENER has already been started

  $ oerr tns 1106

  01106, 00000, "Listener using listener name %s has already been started"

  // *Cause: Another listener is already listening on one of the ADDRESSes

  // specified.

  // *Action: Shutdown the previous listener specified by the listener name

  // before starting this one.

  问题产生原因:

  两个实例的LISTENER.ORA中IPC协议的KEY是相同,而一个系统中KEY必须是唯一的.

  解决办法:

  修改key的值即可。修改后的文件信息:

  o8161实例:(没有修改)

  # LISTENER.ORA Configuration File:/oracle/dbs/opstemp/szpcac1/network/admin/listener.ora

  # Generated by Oracle configuration tools.

  LISTENER =

  (DESCRIPTION_LIST =

  (DESCRIPTION =

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))

  )

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = TCP)(HOST = loopback)(PORT = 1521))

  )

  )

  (DESCRIPTION =

  (PROTOCOL_STACK =

  (PRESENTATION = GIOP)

  (SESSION = RAW)

  )

  (ADDRESS = (PROTOCOL = TCP)(HOST = loopback)(PORT = 2481))

  )

  )

  SID_LIST_LISTENER =

  (SID_LIST =

  (SID_DESC =

  (SID_NAME = PLSExtProc)

  (ORACLE_HOME = /oracle)

  (PROGRAM = extproc)

  )

  (SID_DESC =

  (ORACLE_HOME = /oracle)

  (SID_NAME = o8161)

  )

  )

  08151实例:(经过修改)

  # LISTENER.ORA Configuration File:/ora815/network/admin/listener.ora

  # Generated by Oracle Net8 Assistant

  LISTENER =

  (DESCRIPTION_LIST =

  (DESCRIPTION =

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = IPC)(KEY = TESTo815))

  )

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = TCP)(HOST = loopback)(PORT = 1526))

  )

  )

  )

  SID_LIST_LISTENER =

  (SID_LIST =

  (SID_DESC =

  (SID_NAME = ora8151)

  (ORACLE_HOME = /ora815)

  (PROGRAM = extproc)

  )

  )

  

上一个:Linux上实现双向进程间通信管道
下一个:在LINUX环境中制作启动盘详细步骤

更多Unix/Linux疑问解答:
路由原理介绍
子网掩码快速算法
改变网络接口的速度和协商方式的工具miitool和ethtool
Loopback口的作用汇总
OSPF的童话
增强的ACL修改功能
三层交换机和路由器的比较
用三层交换机组建校园网
4到7层交换识别内容
SPARC中如何安装Linux系统(2)
SPARC中如何安装Linux系统(1)
用Swatch做Linux日志分析
实战多种Linux操作系统共存
浅析Linux系统帐户的管理和审计
Linux2.6对新型CPU的支持(2)
电脑通通透
玩转网络
IE/注册表
DOS/Win9x
Windows Xp
Windows 2000
Windows 2003
Windows Vista
Windows 2008
Windows7
Unix/Linux
苹果机Mac OS
windows8
安卓/Android
Windows10
如果你遇到操作系统难题:
访问www.zzzyk.com 试试
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,