tianshiguodong 发表于 2014-8-19 17:37:48

10g RAC中listener.log和listener_hostname.log区别

本帖最后由 tianshiguodong 于 2014-8-20 09:46 编辑

如题,在10g RAC中存在2个监听日志,这2个有什么区别?分别在什么情况下会使用到?

例如:我的环境10.2.0.5
存在listener.log(这个是常用实时的日志,listener status查看监听日志对应的是这个),另外在相同目录下还存在listener_imccrac1.log(这个文件的日期是几天前的)
LISTENER_IMCCRAC1 =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = imccrac1-vip)(PORT = 1521)(IP = FIRST))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)(IP = FIRST))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )
    )
  )

另外一个库10.2.0.4数据库使用listener_hostname.log,listener.ora文件内容:
LISTENER_JY_DB1 =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = jy_db1-vip)(PORT = 1521)(IP = FIRST))
      (ADDRESS = (PROTOCOL = TCP)(HOST = *.*.*.*)(PORT = 1521)(IP = FIRST))
    )
  )

SID_LIST_LISTENER_JY_DB1 =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /oracle/product/10.2.0/db_1)
      (PROGRAM = extproc)
    )
  )
页: [1]
查看完整版本: 10g RAC中listener.log和listener_hostname.log区别