10g資料庫例項使用11g asm錯誤問題處理

n-lauren發表於2016-11-17
在Oracle11.2 RAC 的ASM 例項上建立10g 資料庫時,報錯說:不能連線到Cluster Manager ,不能定位到ASM 例項。具體錯誤資訊如下:
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Manager


我的目標是將10g 資料庫遷移升級到11.2RAC 的環境中。首先是在11.2RAC 上恢復好10g 的資料庫,再到11g 的RDBMS 環境中去升級。
在恢復控制檔案時,就報錯。顯示不能連線到Cluster Manager 。
/u02/rman_211@serv2=>servdb2$rman target /

Recovery Manager: Release 10.2.0.4.0 - Production on Fri May 4 10:52:22 2012

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: servdb (not mounted)

RMAN> restore controlfile from '/u02/rman_211/ctl_1un9u0a4_1_1.20120501';

Starting restore at 04-MAY-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=320 devtype=DISK

channel ORA_DISK_1: restoring control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/04/2012 10:52:49
ORA-19870: error reading backup piece /u02/rman_211/ctl_1un9u0a4_1_1.20120501
ORA-19504: failed to create file "+WEBDG/servdb/control01.ctl"
ORA-17502: ksfdcre:3 Failed to create file +WEBDG/servdb/control01.ctl
ORA-15001: diskgroup "WEBDG" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Manager

Oracle 官方文件對此錯誤的解釋時11gR2 不相容老版本的資料庫。11gR2 的叢集配置是動態的,而老版本的庫如10.2版本的庫要求叢集配置是固定的。
Oracle 官方文件同時也給出瞭解決方法,即是將css 資源pin 住。
使用root 使用者登入作業系統,執行下列命令。
[root@serv2 bin]# ./crsctl pin css -n serv1 serv2
CRS-4664: Node serv1 successfully pinned.
CRS-4664: Node serv2 successfully pinned.
[root@serv2 bin]#
[root@serv2 bin]# ./olsnodes -t
serv1   Pinned
serv2   Pinned

再回到RMAN 介面去恢復控制檔案,正常了。
RMAN> restore controlfile from '/u02/rman_211/ctl_1un9u0a4_1_1.20120501';

Starting restore at 04-MAY-12
using channel ORA_DISK_1

channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
output filename=+WEBDG/servdb/control01.ctl
output filename=+WEBDG/servdb/control02.ctl
Finished restore at 04-MAY-12

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22990797/viewspace-2128610/,如需轉載,請註明出處,否則將追究法律責任。

相關文章