Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
rman-comm

rman-comm

Ratings: (0)|Views: 1|Likes:
Published by martin_sea
Rman command
Rman command

More info:

Categories:Types, School Work
Published by: martin_sea on Apr 25, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/02/2015

pdf

text

original

 
RMAN> LIST BACKUP;RMAN> LIST BACKUP OF DATABASE;RMAN> LIST BACKUP SUMMARY;RMAN> LIST INCARNATION;RMAN> LIST BACKUP BY FILE;RMAN> LIST COPY OF DATABASE ARCHIVELOG ALL;RMAN> LIST COPY OF DATAFILE 1, 2, 3;RMAN> LIST BACKUP OF DATAFILE 11 SUMMARY;RMAN> LIST BACKUP OF ARCHIVELOG FROM SEQUENCE 1437;RMAN> LIST CONTROLFILECOPY "/tmp/cntrlfile.copy";RMAN> LIST BACKUPSET OF DATAFILE 1;
RMAN> CROSSCHECK BACKUP;RMAN> CROSSCHECK COPY;RMAN> CROSSCHECK backup of database;RMAN> CROSSCHECK backup of controlfile;RMAN> CROSSCHECK archivelog all;
Restore and recover the whole Database:
RMAN> STARTUP FORCE MOUNT;RMAN> RESTORE DATABASE;RMAN> RECOVER DATABASE;RMAN> ALTER DATABASE OPEN;
Restore and recover a Tablespace:
RMAN> SQL 'ALTER TABLESPACE
users
OFFLINE';RMAN> RESTORE TABLESPACE
users
;RMAN> RECOVER TABLESPACE
users
;RMAN> SQL 'ALTER TABLESPACE
users
ONLINE';
Restore and recover a Datafile:
RMAN> SQL 'ALTER DATABASE DATAFILE 64 OFFLINE';RMAN> RESTORE DATAFILE 64;RMAN> RECOVER DATAFILE 64;RMAN> SQL 'ALTER DATABASE DATAFILE 64 ONLINE';
 
Restore the Control file, (to all locations specified in theparameter file) then restore the database, using that control file:
STARTUP NOMOUNT;RUN{ALLOCATE CHANNEL c1 DEVICE TYPE sbt;RESTORE CONTROLFILE;ALTER DATABASE MOUNT;RESTORE DATABASE;}
Restore Validation confirms that a restore could be run, byconfirming that all database files exist and are free of physicaland logical corruption, this does not generate any output.Example:
RMAN> RESTORE DATABASE VALIDATE;
There are many ways to restore a database using an RMANbackup - this example assumes you are performing a Disaster-Recovery restore of all data and recovering the entire databasewith the same SID and the same disk/tablespace layout.You will need the following information:Database SID: ________ Database SYS password: ________ Disk layout and sizes: ________ Database ID (DBID): ________ There are 5 steps to recover the database:
 
1) Create a new (empty) database instance2) Mount the instance3) Restore the datafiles4) Recover the database5) Reset the logs1) Create a new (empty) database instanceConfigure the new server with same disk layout as the originaldatabase - if neccecary use Symbolic Links (or in Windows usedisk manager to re-assign drive letters.)Ensure you have enough disk space for both the backup filesplus the restored database files.Create a new database with the database configuration assistant(DBCA) and set the SYS password andglobal
database_name
to the same as the original database.If the database to be restored is in archive log mode, setthe
LOG_ARCHIVE_FORMAT
parameter to match the setting inthe original database.The ORAPWD utility can also be used to change the SYSpassword.2) Mount the empty instance
SQL> Shutdown immediate;SQL> Startup mount;
or specifying the pfile explicitly:
SQL> CREATEPFILE='C:\oracle\Database\initLive.ora' FROMSPFILE;SQL> Shutdown immediate;

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->