Professional Documents
Culture Documents
run {
allocate channel t1 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=amrgros035.pfizer.com)�;
restore database preview;
release channel t1;}
run {
set until time "to_date('2011 Jun 19 09:00','yyyy mon dd hh24:mi')";
allocate channel t1 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=amrndhs256.pfizer.com)�;
restore database preview;
release channel t1;
}
The output from the above commands is pretty verbose. Best to pipe it to a log file
and grep out �Media� to get the tapes you want.
run
{
set until time "to_date('05-JUN-2011 23:59:59','DD-MON-YYYY HH24:MI:SS')";
allocate channel t1 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=amrndhs256.pfizer.com)';
restore datafile 1 preview;
release channel t1;
}
run {
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=amrndhs009.pfizer.com)';
restore datafile 51;
recover datafile 51;
sql " alter database datafile 51 online";
}
@@@@@@@@@@@@@@@@@@@@@@@@@@@
backup :
=======
rman> run {
2> allocate channel c1 type disk;
3> backup
4> format '<>'
5> (archivelog all delete input);
6> release channel c1;
7> }
list :
======
restore:
=======
rman> run {
2> allocate channel c1 type disk;
3> restore (archivelog low logseq <> high logseq <> thread 1 all);
4> release channel c1;
5> }