recovery

July 11, 2017 | Author: Gouse Basha | Category: Oracle Database, Backup, Databases, Computer File, Computer Architecture
Share Embed Donate


Short Description

Download recovery...

Description

SQL> select db_unique_name,database_role from v$database; DB_UNIQUE_NAME DATABASE_ROLE ------------------------------ ---------------ETISTBY PHYSICAL STANDBY SQL> SQL> alter database recover managed standby database cancel; Database altered. SQL> select current_scn from v$database; CURRENT_SCN ----------7387713184 SQL> run { ALLOCATE CHANNEL ch1 TYPE DISK FORMAT 'H:\ORA_DATA\Inc_scn\Backup%d_DB_%u_%s_%p '; BACKUP INCREMENTAL FROM SCN 7387713184 DATABASE; }

run { CATALOG START WITH 'F:\stby_inc'; recover database noredo; } RMAN> RMAN> run 2> { 3> CATALOG START WITH 'F:\stby_inc'; 4> recover database noredo; 5> } using target database control file instead of recovery catalog searching for all files that match the pattern F:\stby_inc List of Files Unknown to the Database ===================================== File Name: F:\STBY_INC\BACKUPETISYS_DB_ATM317NO_14685_1 Do you really want to catalog the above files (enter YES or NO)? YES cataloging files... cataloging done List of Cataloged Files ======================= File Name: F:\STBY_INC\BACKUPETISYS_DB_ATM317NO_14685_1

Starting recover at 25-JAN-11 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=116 devtype=DISK channel ORA_DISK_1: starting incremental datafile backupset restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set destination for restore of datafile 00001: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ETIS YS\SYSTEM01.DBF destination for restore of datafile 00002: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ETIS YS\UNDOTBS01.DBF destination for restore of datafile 00003: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ETIS YS\SYSAUX01.DBF destination for restore of datafile 00004: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ETIS YS\USERS01.DBF destination for restore of datafile 00005: F:\ORA_DATA\TATS1.DATA destination for restore of datafile 00006: F:\ORA_DATA\TATS2.DATA destination for restore of datafile 00007: F:\ORA_DATA\TATS3.DATA destination for restore of datafile 00008: G:\ORA_DATA\TATSIDX1.DATA destination for restore of datafile 00009: G:\ORA_DATA\TATSIDX2.DATA destination for restore of datafile 00010: G:\ORA_DATA\TATSIDX3.DATA destination for restore of datafile 00011: F:\ORA_DATA\BRIO.DATA destination for restore of datafile 00012: F:\ORA_DATA\WORK1.DATA destination for restore of datafile 00013: F:\ORA_DATA\WORK2.DATA destination for restore of datafile 00014: F:\ORA_DATA\RMAN1.DBF channel ORA_DISK_1: reading from backup piece F:\STBY_INC\BACKUPETISYS_DB_ATM317 NO_14685_1 channel ORA_DISK_1: restored backup piece 1 piece handle=F:\STBY_INC\BACKUPETISYS_DB_ATM317NO_14685_1 tag=TAG20110125T195848 channel ORA_DISK_1: restore complete, elapsed time: 00:01:26 Finished recover at 25-JAN-11 RMAN> exit Recovery Manager complete. C:\Documents and Settings\etiadalby>sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 25 22:29:52 2011 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production With the Partitioning, OLAP and Data Mining options SQL> select current_scn from v$database; CURRENT_SCN ----------7387713184 SQL> select max(sequence#) from v$archived_log where applied='YES'; MAX(SEQUENCE#) -------------84625 SQL> alter database recover managed standby database disconnect from session;

Database altered. SQL> select max(sequence#) from v$archived_log where applied='YES'; MAX(SEQUENCE#) -------------84625

SQL> recover standby database until cancel; ORA-00279: change 7387713185 generated at 01/19/2011 22:02:04 needed for thread 1 ORA-00289: suggestion : D:\ORA_DATA\STBY\ARC84626_0602861957.001 ORA-00280: change 7387713185 for thread 1 is in sequence #84626 Specify log: {=suggested | filename | AUTO | CANCEL} D:\ORA_DATA\STBY\ARC84626_0602861957.001 ORA-16145: archival for thread# 1 sequence# 84626 in progress ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below ORA-01152: file 1 was not restored from a sufficiently old backup ORA-01110: data file 1: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ETISYS\SYSTEM01.DBF' SQL> HERE ONE MORE POINT ON ARCHIVE LOGS:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I have talked with you on archvie log format but SQL> select name from v$archived_log where sequence#=84625; NAME -------------------------------------------------------------------------------D:\ORA_DATA\STBY\ARC84625_0602861957.001 SQL> select name from v$archived_log where sequence#=84626; NAME -------------------------------------------------------------------------------D:\ORA_DATA\STBY\ETISYS1T1S84626R602861957.ARC SQL> RMAN> catalog archivelog 'D:\ORA_DATA\STBY\ARC84626_0602861957.001'; using target database control file instead of recovery catalog RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of catalog command on default channel at 01/25/2011 23:13:17 ORA-19563: archived log header validation failed for file D:\ORA_DATA\STBY\ARC84 626_0602861957.001

RMAN>

SQL> alter system set log_file_name_convert='E:\ORACLE\PRODUCT\10.2.0\ORADATA\ET ISYS','E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ETISTBY\ONLINELOG' ,'F:\ORA_DATA','E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ETISTBY\ONLINELOG'; alter system set log_file_name_convert='E:\ORACLE\PRODUCT\10.2.0\ORADATA\ETISYS' ,'E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ETISTBY\ONLINELOG','F:\ ORA_DATA','E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ETISTBY\ONLINELOG' * ERROR at line 1: ORA-02095: specified initialization parameter cannot be modified SQL> Corrupt block seq: 0 blocknum=1. Bad header found during inspecting archived log Data in bad block - seq:0. bno:0. time:0 beg:0 cks:0 calculated check value: 0 Reread of seq=0, blocknum=1, file=D:\ORA_DATA\STBY\ARC84626_0602861957.001, d same corrupt data Reread of seq=0, blocknum=1, file=D:\ORA_DATA\STBY\ARC84626_0602861957.001, d same corrupt data Reread of seq=0, blocknum=1, file=D:\ORA_DATA\STBY\ARC84626_0602861957.001, d same corrupt data Reread of seq=0, blocknum=1, file=D:\ORA_DATA\STBY\ARC84626_0602861957.001, d same corrupt data Reread of seq=0, blocknum=1, file=D:\ORA_DATA\STBY\ARC84626_0602861957.001, d same corrupt data PRIMARY:~~~~~~~~ SQL> select current_scn from v$database; CURRENT_SCN ----------7397302142

foun foun foun foun foun

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF