ORA-600 错误解决实例(三)

2014-11-24 17:54:53 · 作者: · 浏览: 2
space temp add tempfile


SQL> alter tablespace temp add tempfile;


Tablespace altered.



7:观察physical database,发现出现如下问题


[root@db2 ~]# su - oracle


[oracle@db2 ~]$ sqlplus /nolog


SQL*Plus: Release 11.2.0.1.0 Production on Mon Jun 17 17:18:50 2013


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


SQL> conn /as sysdba


Connected to an idle instance.


SQL> startup


ORACLE instance started.


Total System Global Area 1.3362E+10 bytes


Fixed Size 2217952 bytes


Variable Size 6777997344 bytes


Database Buffers 6576668672 bytes


Redo Buffers 4960256 bytes


Database mounted.


ORA-10458: standby database requires recovery


ORA-01196: file 1 is inconsistent due to a failed media recovery session


ORA-01110: data file 1:


'/u01/app/oracle/oradata/DB2/datafile/o1_mf_system_08oc7c38_.dbf'


SQL> alter database open read only;


alter database open read only


*


ERROR at line 1:


ORA-10458: standby database requires recovery


ORA-01196: file 1 is inconsistent due to a failed media recovery session


ORA-01110: data file 1:


'/u01/app/oracle/oradata/DB2/datafile/o1_mf_system_08oc7c38_.dbf'



8:于是关闭physical standby,在主库上启动system表空间的热备份,拷贝相应的文件至从库指定位置,重新同步正常


SQL> shutdown immediate


ORA-01109: database not open


Database dismounted.


ORACLE instance shut down.


SQL> alter tablespace system begin backup;


Tablespace altered.


[oracle@db1 datafile]$ pwd


/u01/app/oracle/oradata/DB/datafile


[oracle@db1 datafile]$ scp o1_mf_system_8vpm8hf3_.dbf root@db2:/tmp


SQL> alter tablespace system end backup;


Tablespace altered.