争怎路由网:是一个主要分享无线路由器安装设置经验的网站,汇总WiFi常见问题的解决方法。

Oracle数据库在一台机器设置2个listener

时间:2024/5/10作者:未知来源:争怎路由网人气:

数据库,简而言之可视为电子化的文件柜——存储电子文件的处所,用户可以对文件中的数据进行新增、截取、更新、删除等操作。所谓“数据库”是以一定方式储存在一起、能与多个用户共享、具有尽可能小的冗余度、与应用程序彼此独立的数据集合。
问题:一台机器同时装两套数据库时(实例名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)
  )
  )



全新的路由器不仅让你更稳定快速地连接无线网络,更可以让家中的智能设备连接在一起。



关键词:Oracle数据库在一台机器设置2个listener




Copyright © 2012-2018 争怎路由网(http://www.zhengzen.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版