配置DATAGUARD时报ORA-12528

简介: 说明:在dataguard的搭建中,运行rman恢复的时候报错ORA-12528的错误; 脚本如下:RMAN>  connect auxiliary sys/oracle@SCMPRD02     解决...

说明:在dataguard的搭建中,运行rman恢复的时候报错ORA-12528的错误;

脚本如下:RMAN>  connect auxiliary sys/oracle@SCMPRD02

 

 

解决步骤:

1、检查监听是否启动,脚本:tnsping SCMPRD02

 方法一:配置数据库的监听为静态参数步骤:在ORACLE_HOME/network/admin 下面检查是否有listener.ora参数文件,如果没有的话运行netca创建数据库的监听,配置完成的监听文件如下:

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

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

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

    )

  )

   

ADR_BASE_LISTENER = /u01/app/oracle

方法二:修改tnsnames.ora文件

SCMPRD02 = 
   (DESCRIPTION =
    (ADDRESS =
       (PROTOCOL = TCP)(HOST = WELL)(PORT = 1521))   
         (CONNECT_DATA =     
         (SERVER = DEDICATED)      (
          SERVICE_NAME = SCMPRD02)     
           (UR = A)  //增加该备注//
  
              ) 
                 )

 

总结:ORA-12528: TNS:listener: all appropriate instances are blocking new connections

Cause:All instances supporting the service requested by the client reported that they were blocking the new connections. This condition may be temporary, such as at instance startup.Action:Attempt the connection again. If error persists, then contact the administrator to check the status of the instances.

因为我们复制数据库只是在nomount下打开,而数据库并没有mount,在11g下所有的监听都是动态监听,而只有在数据库mount以后,PMON进程起来以后,才能动态注册。所以对辅助数据库没有办法注册,只能被锁住。

所以修改数据库的监听为静态监听,或者增加(UR=A)即可解决问题;

 

*********************************************************************************************************************
本文作者:JOHN QQ:1916066696 (请备注数据库)

ORACLE技术博客:ORACLE 猎人笔记 http://blog.itpub.net/12679300/

请扫描加微信号!


 

******************************************************************************************

相关文章
|
6月前
|
容器
dataguard offline
dataguard offline
43 2
|
SQL Oracle 关系型数据库
dataguard ORA-01033错误
dataguard ORA-01033错误
273 0
|
SQL
DATAGUARD(11.2.0.4) ORA-04021
DATAGUARD(11.2.0.4) ORA-04021
252 0
|
SQL Oracle 关系型数据库
|
SQL Oracle 关系型数据库