Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

0

积分

1

好友

6

主题
1#
发表于 2014-3-6 15:20:52 | 查看: 5371| 回复: 5
环境:
OS:rhel 5.8
db: oracle 11.2.0.4 RAC


以前SCAN IP 有3个

scan.oracle.com   ————>  192.168.9.26/27/28

将scan.oracle.com 拆分为:

scan.oracle.com  ---->192.168.9.26/27
dgscan.oracle.com  ----> 192.168.9.28

然后执行:

srvctl stop scan
srvctl stop scan_listener

srvctl remove scan
srvctl remove scan_listener

srvctl add scan -n dgscan.oracle.com
srvctl add scan_listener

使用netca重建(delete , add )监听。

节点1 监听无法启动,节点2 监听正常:
  1. [grid@ora11g1 ~]$ srvctl start listener -n ora11g1
  2. PRCR-1013 : Failed to start resource ora.LISTENER.lsnr
  3. PRCR-1064 : Failed to start resource ora.LISTENER.lsnr on node ora11g1
  4. CRS-5016: Process "/oracle/grid/bin/lsnrctl" spawned by agent "/oracle/grid/bin/oraagent.bin" for action "start" failed: details at "(:CLSN00010:)" in "/oracle/grid/log/ora11g1/agent/crsd/oraagent_grid/oraagent_grid.log"
  5. CRS-2674: Start of 'ora.LISTENER.lsnr' on 'ora11g1' failed
复制代码
log见附件:

目前listener.ora
node 1:
  1. LISTENER1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER1))))          # line added by Agent
  2. # listener.ora.ora11g1 Network Configuration File: /oracle/grid/network/admin/listener.ora.ora11g1
  3. # Generated by Oracle configuration tools.

  4. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1 = ON

  5. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON

  6. LISTENER_SCAN1 =
  7.   (DESCRIPTION =
  8.     (ADDRESS_LIST =
  9.       (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_SCAN1))
  10.     )
  11.   )
复制代码
node 2:
  1. LISTENER1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER1))))          # line added by Agent
  2. # listener.ora.ora11g2 Network Configuration File: /oracle/grid/network/admin/listener.ora.ora11g2
  3. # Generated by Oracle configuration tools.

  4. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1 = ON

  5. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON

  6. LISTENER_SCAN1 =
  7.   (DESCRIPTION =
  8.     (ADDRESS_LIST =
  9.       (ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_SCAN1))
  10.     )
  11.   )

  12. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER1=ON             # line added by Agent
复制代码
求指点,哪里配置出现了问题???? 在更改SCAN IP之前是正常的!

errorlog.txt

16.67 KB, 下载次数: 1148

2#
发表于 2014-3-6 15:35:30
node 1:
  1. [grid@ora11g1 admin]$ cat endpoints_listener.ora
  2. LISTENER1_ORA11G1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ora11g1-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.9.30)(PORT=1521)(IP=FIRST))))          # line added by Agent
  3. LISTENER_ORA11G1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ora11g1-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.9.30)(PORT=1521)(IP=FIRST))))            # line added by Agent
  4. [grid@ora11g1 admin]$
复制代码
node2:
  1. [grid@ora11g2 admin]$ cat endpoints_listener.ora
  2. LISTENER1_ORA11G2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ora11g2-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.9.32)(PORT=1521)(IP=FIRST))))          # line added by Agent
  3. LISTENER_ORA11G2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ora11g2-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.9.32)(PORT=1521)(IP=FIRST))))           # line added by Agent
  4. [grid@ora11g2 admin]$
复制代码

回复 只看该作者 道具 举报

3#
发表于 2014-3-6 16:03:43
node1的listener.ora 和node2的listener.ora 不一样,少一行
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER1=ON             # line added by Agent
你修改后再试试看

回复 只看该作者 道具 举报

4#
发表于 2014-3-6 16:10:17
生生不息 发表于 2014-3-6 16:03
node1的listener.ora 和node2的listener.ora 不一样,少一行
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER1=ON ...

嗯,改过来了,不是这个导致的。
  1. [grid@ora11g1 admin]$ lsnrctl start listener1

  2. LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 06-MAR-2014 16:06:06

  3. Copyright (c) 1991, 2013, Oracle.  All rights reserved.

  4. Starting /oracle/grid/bin/tnslsnr: please wait...

  5. TNSLSNR for Linux: Version 11.2.0.4.0 - Production
  6. System parameter file is /oracle/grid/network/admin/listener.ora
  7. Log messages written to /oracle/orabase/diag/tnslsnr/ora11g1/listener1/alert/log.xml
  8. Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER1)))

  9. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER1)))
  10. TNS-01153: Failed to process string: àÊP
复制代码

回复 只看该作者 道具 举报

5#
发表于 2014-3-7 09:50:30
此贴已有结果!
原因是在修改hosts文件的时候节点1配置重复导致。

回复 只看该作者 道具 举报

6#
发表于 2014-3-7 11:07:35
在listener.ora中 添加 TRACE_LEVEL_LISTENER = SUPPORT, 再次启动 listener,会生成 trace文件, 把 trace文件传上来 看看。

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-21 06:06 , Processed in 0.049561 second(s), 23 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569