1. 程式人生 > >11.0.3.0 RAC 建立dg備庫控制檔案報RMAN-03002: RMAN-10038錯。

11.0.3.0 RAC 建立dg備庫控制檔案報RMAN-03002: RMAN-10038錯。

Oracle RAC主庫做了全備,還原控制檔案:
channel d2: restoring datafile 00178 to /share/mydb/datafile/xxt108.dbf

channel d2: restoring datafile 00260 to /share/mydb/datafile/xxtidx70.dbf
channel d2: restoring datafile 00343 to /share/mydb/datafile/xxtidx83.dbf
channel d2: restoring datafile 00408 to /share/mydb/datafile/xxtidx103.dbf
channel d2: reading from backup piece bk_10932_1_910658292


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/06/2016 02:11:16
RMAN-10038: database session for channel d2 terminated unexpectedly

 

檢視/u01/app/oracle/diag/rdbms/phydb/phydb/trace/alertSID.log發現如下告警,感覺ASM磁碟無法正常讀寫。

Errors in file /u01/app/oracle/diag/rdbms/phydb/phydb/trace/phydb_rbal_6693.trc:
ORA-15183: ASMLIB initialization error [driver/agent not installed]
WARNING: FAILED to load library: /opt/oracle/extapi/64/asm/orcl/1/libasm.so
Errors in file /u01/app/oracle/diag/rdbms/phydb/phydb/trace/phydb_rbal_6693.trc:
ORA-15183: ASMLIB initialization error [driver/agent not installed]
Wed Nov 14 18:24:14 2018
SUCCESS: diskgroup FLASH was mounted
Errors in file /u01/app/oracle/diag/rdbms/phydb/phydb/trace/phydb_ora_6743.trc  (incident=12219):
ORA-00600: internal error code, arguments: [kfioTranslateIO03], [], [], [], [], [], [], [], [], [], [], []
Incident details in: /u01/app/oracle/diag/rdbms/phydb/phydb/incident/incdir_12219/phydb_ora_6743_i12219.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Wed Nov 14 18:24:16 2018
Dumping diagnostic data in directory=[cdmp_20181114182416], requested by (instance=1, osid=6743), summary=[incident=12219].
Errors in file /u01/app/oracle/diag/rdbms/phydb/phydb/trace/phydb_ora_6743.trc  (incident=12220):
ORA-00600: internal error code, arguments: [17090], [], [], [], [], [], [], [], [], [], [], []
Incident details in: /u01/app/oracle/diag/rdbms/phydb/phydb/incident/incdir_12220/phydb_ora_6743_i12220.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Dumping diagnostic data in directory=[cdmp_20181114182417], requested by (instance=1, osid=6743), summary=[incident=12220].
ERROR: unrecoverable error ORA-600 raised in ASM I/O path; terminating process 6743

 

 

檢查第一個告警檔案/u01/app/oracle/diag/rdbms/phydb/phydb/trace/phydb_rbal_6693.trc

 

Trace file /u01/app/oracle/diag/rdbms/phydb/phydb/trace/phydb_rbal_6693.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1
System name: Linux
Node name: dg.localdomain
Release: 2.6.18-194.el5
Version: #1 SMP Mon Mar 29 22:10:29 EDT 2010
Machine: x86_64
VM name: VMWare Version: 6
Instance name: phydb
Redo thread mounted by this instance: 0 <none>
Oracle process number: 15
Unix process pid: 6693, image: [email protected] (RBAL)

 


*** 2018-11-14 18:24:14.953
*** SESSION ID:(190.1) 2018-11-14 18:24:14.953
*** CLIENT ID:() 2018-11-14 18:24:14.953
*** SERVICE NAME:() 2018-11-14 18:24:14.953
*** MODULE NAME:() 2018-11-14 18:24:14.953
*** ACTION NAME:() 2018-11-14 18:24:14.953
 
ERROR: asm_version error. err: driver/agent not installed rc:2
ORA-15183: ASMLIB initialization error [driver/agent not installed]
ORA-15183: ASMLIB initialization error [driver/agent not installed]
kgxgnxgd: error: status 16   確定ASM磁碟無法讀寫。   但是/usr/sbin/oracleasm checkdisks 與asmcmd/asmca檢查磁碟掛載正常。   百度發現文章 https://blog.csdn.net/lqx0405/article/details/44777125:   檢視Oracle 可執行檔案: [[email protected] asm]# ls -l /u01/app/oracle/product/11.2.0/db_1/bin/oracle -r-sr-s--x 1 oracle oinstall 173515905 Apr 17 15:07  /u01/app/oracle/product/11.2.0/db_1/bin/oracle     發現檔案的所屬的group錯誤,Oracle 後臺程序啟動時會執行此檔案,而如果屬於oinstall組,則無權訪問ASM磁碟驅動,從而無法訪問ASM disk。 正常屬性應該是: [[email protected] ~]$ ls -l /u01/app/oracle/product/11.2.0/db_1/bin/oracle -r-sr-s--x 1 oracle asmadmin 173515905 Dec 28 18:17 /u01/app/oracle/product/11.2.0/db_1/bin/oracle 修改屬性: [[email protected] ~]# chown oracle:asmadmin /u01/app/oracle/product/11.2.0/db_1/bin/oracle [[email protected] asm]# ls -l /u01/app/oracle/product/11.2.0/db_1/bin/oracle -r-xr-x--x 1 oracle asmadmin 173515905 Apr 17 15:07 /u01/app/oracle/product/11.2.0/db_1/bin/oracle [[email protected] asm]# chmod 6551  /u01/app/oracle/product/11.2.0/db_1/bin/oracle [[email protected] asm]# ls -l /u01/app/oracle/product/11.2.0/db_1/bin/oracle -r-sr-s--x 1 oracle asmadmin 173515905 Apr 17 15:07 /u01/app/oracle/product/11.2.0/db_1/bin/oracle
---------------------
作者:客居天涯
來源:CSDN
原文:https://blog.csdn.net/lqx0405/article/details/44777125
版權宣告:本文為博主原創文章,轉載請附上博文連結!

 

備份原有oracle檔案後 修改

 繼續還原

 

 

RMAN>  restore standby controlfile from '/rman_backup/standby_1lti7cn9_1_1.ctl';

 

Starting restore at 2018/11/14 21:02:26
using channel ORA_DISK_1

 

channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:07
output file name=+FLASH/cont.ctl
Finished restore at 2018/11/14 21:02:33 還原成功