不完全恢復,操作過程,我的備份資料庫出現此類問題。
不完全恢復,操作過程,我的備份資料庫出現此類問題。
SQL>host oerr ora 314
00314, 00000, "log %s of thread %s, expected sequence# %s doesn't match %s"
// *Cause: The online log is corrupted or is an old version.
// *Action: Find and install correct version of log or reset logs.
SQL> startup
instance started.
Total System Global Area 167772160 bytes
Fixed Size 1266392 bytes
Variable Size 138415400 bytes
Database Buffers 25165824 bytes
Redo Buffers 2924544 bytes
Database mounted.
ORA-00314: log 2 of thread 1, expected sequence# 53 doesn't match 2
ORA-00312: online log 2 thread 1: '/opt/oracle/oradata/xxxdb/redo02.log'
select open_mode from v$database;
SQL> select open_mode from v$database;
OPEN_MODE
----------
MOUNTED
select group#,sequence#,archived,status from v$log;
SQL> host oerr ora 314
00314, 00000, "log %s of thread %s, expected sequence# %s doesn't match %s"
// *Cause: The online log is corrupted or is an old version.
// *Action: Find and install correct version of log or reset logs.
>alter database clear unarchived logfile group 1
ORA-01624: log 1 needed for crash recovery of thread 1
ORA-00312: online log 1 thread 1: '/dbase/oracle7/dbs/log1orac.dbf'
alter database clear unarchived logfile group 1
SQL> select group#,sequence#,archived,status from v$log;
GROUP# SEQUENCE# ARC STATUS
---------- ---------- --- ----------------
1 52 YES INACTIVE
3 51 YES INACTIVE
2 53 NO CURRENT
alter database clear unarchived logfile group 2
SQL> alter database clear unarchived logfile group 2
2 ;
alter database clear unarchived logfile group 2
*
ERROR at line 1:
ORA-01624: log 2 needed for crash recovery of instance xxxdb (thread 1)
ORA-00312: online log 2 thread 1: '/opt/oracle/oradata/xxxdb/redo02.log'
ORA-00314:
log string of thread string, expected sequence# string doesn't match string
Cause: The online log is corrupted or is an old version.
Action: Find and install correct version of log or reset logs.
SQL> alter system switch logfile;
alter system switch logfile
*
ERROR at line 1:
ORA-01109: database not open
SQL> select group#,sequence#,archived,status from v$log;
GROUP# SEQUENCE# ARC STATUS
---------- ---------- --- ----------------
1 52 YES INACTIVE
3 51 YES INACTIVE
2 53 NO CURRENT
SQL>recover database until cancel
ORA-00279: change 1692814 generated at 07/18/2010 21:10:36 needed for thread 1
ORA-00289: suggestion : /opt/oracle/oradata/archive/1_53_724438720.dbf
ORA-00280: change 1692814 for thread 1 is in sequence #53
Specify log: {
auto
ORA-00308: cannot open archived log
'/opt/oracle/oradata/archive/1_53_724438720.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-00308: cannot open archived log
'/opt/oracle/oradata/archive/1_53_724438720.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: file 1: '/opt/oracle/oradata/xxxdb/system01.dbf'
SQL>alter database open resetlogs
2 ;
Sun Jul 18 23:55:36 2010
SMON: enabling cache recovery
Sun Jul 18 23:55:37 2010
Errors in file /opt/oracle/admin/xxxdb/udump/xxxdb_ora_4682.trc:
ORA-00600: internal error code, arguments: [2662], [0], [1692821], [0], [1693668], [8388617], [], []
Sun Jul 18 23:55:41 2010
Errors in file /opt/oracle/admin/xxxdb/udump/xxxdb_ora_4682.trc:
ORA-00600: internal error code, arguments: [2662], [0], [1692821], [0], [1693668], [8388617], [], []
Sun Jul 18 23:55:41 2010
Error 600 happened during db open, shutting down database
USER: terminating instance due to error 600
Instance terminated by USER, pid = 4682
ORA-1092 signalled during: alter database open resetlogs
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1266392 bytes
Variable Size 138415400 bytes
Database Buffers 25165824 bytes
Redo Buffers 2924544 bytes
Database mounted.
SQL> show parameter undo
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS2
alter system set undo_tablespace='UNDOTBS1' scope=spfile;
show parameter undo
shutdown immediate
startup mount
show parameter undo
alter database open;
SQL> alter system set undo_tablespace='UNDOTBS1' scope=spfile;
show parameter undo
System altered.
SQL> shutdown immediate
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS2
SQL> startup mount
show parameter undo
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1266392 bytes
Variable Size 138415400 bytes
Database Buffers 25165824 bytes
Redo Buffers 2924544 bytes
Database mounted.
SQL>
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS1
SQL> alter database open;
Database altered.
參看:
4、複製有效的的全,並不完全恢復資料庫
可以採用獲取最近的SCN的辦法用until scn恢復或用until cnacel恢復
recover database until cancel
先選擇auto,儘量恢復可以利用的歸檔日誌,然後重新
recover database until cancel
這次輸入cancel,完成不完全恢復,也就是說恢復兩次。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9606200/viewspace-745630/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 只存在RMAN備份片的資料庫恢復過程資料庫
- 【備份恢復】從備份恢復資料庫資料庫
- 直接透過備份恢復資料庫資料庫
- 備份與恢復:polardb資料庫備份與恢復資料庫
- 資料庫的備份與恢復資料庫
- 第5章:從開啟的資料庫備份與恢復之從開啟的資料庫備份中進行不完全恢復資料庫
- 【備份恢復】在 ARCHIVELOG 模式下執行資料庫還原和恢復操作(源庫備份源庫恢復)Hive模式資料庫
- 資料庫恢復過程資料庫
- 資料庫資料的恢復和備份資料庫
- 【資料庫資料恢復】透過恢復NDF檔案修復資料庫的資料恢復過程資料庫資料恢復
- 【備份恢復】noarchive模式下使用增量備份恢復資料庫Hive模式資料庫
- c# 實現資料庫的備份和恢復C#資料庫
- PostgreSql資料庫的備份和恢復SQL資料庫
- mysql的資料庫備份與恢復MySql資料庫
- oracle資料庫的備份與恢復Oracle資料庫
- 【備份與恢復】控制檔案的恢復(不完全恢復)
- SqlServer資料庫恢復備份資料的方法SQLServer資料庫
- DUL恢復資料庫過程資料庫
- 達夢資料庫備份恢復資料庫
- postgresql備份與恢復資料庫SQL資料庫
- mongo資料庫備份與恢復Go資料庫
- Informix資料庫備份與恢復ORM資料庫
- 備份和恢復postgreSQL資料庫SQL資料庫
- Mysql資料庫備份及恢復MySql資料庫
- 資料庫不完全恢復。資料庫
- 資料庫不完全恢復資料庫
- 【資料庫資料恢復】透過資料頁恢復Sql Server資料庫資料的過程資料庫資料恢復SQLServer
- Oracle冷備份級冷備份的不完全恢復Oracle
- ORACLE中採用rman備份異機恢復資料庫詳細過程Oracle資料庫
- 【備份與恢復】使用Flashback Database(不完全恢復)Database
- 生產庫的恢復目錄被RMAN恢復出來的資料庫庫使用後出現的問題資料庫
- 關閉資料庫的備份與恢復資料庫
- Oracle資料庫的備份與恢復(轉)Oracle資料庫
- Oracle 資料庫的備份與恢復(轉)Oracle資料庫
- rman資料庫全庫備份與恢復資料庫
- Xtrabackup實現資料庫備份和災難恢復資料庫
- RMAN備份恢復——RAC環境資料庫的備份(zt)資料庫
- RMAN備份恢復--RAC環境資料庫的備份(十)資料庫