(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
C:\OracleScripts\RMAN>rman target system/dave catalog rman/rman@class <br>RMAN> startup nomount <br>RMAN> restore controlfile; <br>RMAN> mount database; <br>RMAN> recover database; <br>RMAN> alter database open resetlogs;<br>“FROM AUTOBACKUP” option can also be used in this case<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
C:\OracleScripts\RMAN>rman target system/dave <br> <br>RMAN> set dbid = 549349079; <br> <br>executing command: SET DBID <br> <br>RMAN> startup nomount; <br> <br>RMAN> restore controlfile from autobackup; <br> <br>RMAN> mount database; <br> <br>database mounted <br> <br>RMAN> recover database; <br> <br>RMAN> alter database open resetlogs; <br> <br>database opened<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
SQL> drop tablespace tools; <br> <br>Tablespace dropped.<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> startup nomount <br>RMAN> run { <br>2> set until time 'sysdate-1/24' ; <br>3> allocate channel d1 type disk; <br>4> restore controlfile;} <br> <br>RMAN> alter database mount; <br>RMAN> run {set until time 'sysdate-1/24' ; <br>2> allocate channel d1 device type disk; <br>3> restore force database; <br>4> recover database; } <br> <br>RMAN> alter database open resetlogs;<br>Take full backup after RESETLOGS<br>Do not use FROM AUTOBACKUP<br>
(If applicable)
“Specify RESETLOGS to reset the current log sequence number to 1 and discard any redo information that was not applied during recovery, ensuring that it will never be applied. This effectively discards all changes that are in the redo log, but not in the database.”
“You must specify RESETLOGS to open the database after performing media recovery with an incomplete recovery using the RECOVER clause or with a backup control file. After opening the database with this clause, you should perform a complete database backup.”
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
alter system set backup_tape_io_slaves = true scope = spfile; <br>startup force <br>#show parameter backup_tape <br>#show parameter large_pool <br> <br>sql 'begin runstats_pkg.rs_start; end;'; <br> <br>run { <br>allocate channel t1 type sbt MAXOPENFILES 8 parms='ENV=(NSR_COMPRESSION=TRUE)'; <br>allocate channel t2 type sbt MAXOPENFILES 8 parms='ENV=(NSR_COMPRESSION=TRUE)'; <br>allocate channel t3 type sbt MAXOPENFILES 8 parms='ENV=(NSR_COMPRESSION=TRUE)'; <br>allocate channel t4 type sbt MAXOPENFILES 8 parms='ENV=(NSR_COMPRESSION=TRUE)'; <br> <br>set command id to 'dave test'; <br>backup full force tag='tapetest' database; } <br> <br>sql "begin runstats_pkg.rs_stop(P_OP_NAME=>''tapetest''); end;"; <br>sql 'commit';<br>