Professional Documents
Culture Documents
DB_UNIQUE_NAME DATABASE_ROLE
------------------------------ ----------------
ETISTBY PHYSICAL STANDBY
SQL>
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
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
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>
SQL>
PRIMARY:-
~~~~~~~~
SQL> select current_scn from v$database;
CURRENT_SCN
-----------
7397302142