Documente Academic
Documente Profesional
Documente Cultură
1.0 a
2.0 Backup can be taken two ways:
rman uses channel to contact database which in turn create session to copy the target database into
backup which could be disk or tapes.
Directly using backup command and the other is through job command.
Learning: you can take backup through rman on the disk numbers. In this case the disk number 3 is
name=C:\APP\CMS\ORADATA\ORCL\UNDOTBS01.DBF.
Datafile 5 – example01 5 mb
Shutdown immediate
Startup mount
In non archive
rman uses channel to contact database which in turn create session to copy the target database into
backup which could be disk or tapes.
Learning: you can take backup through rman on the disk numbers. In this case the disk number 3 is
name=C:\APP\CMS\ORADATA\ORCL\UNDOTBS01.DBF.
run
Backup datafile 3;
There are two types of scripts: global or local. A local script is associated with target database in which
RMAN is connected when the script is created. A global stored script can be executed against any
database registered in recovery catalogue.
https://blogs.oracle.com/oraclemagazine/scripting-oracle-rman-commands
run
2> {
4> backup
5> incremental level = 0
8> }
Datafile 1 – system01 706568
Datafile 5 – example01 5 mb
Incremental backup 0 takes backup up to the spaces occupied by database which is afull backup of
database.
Incremental back 1 will only take the backup of incremental backup of modified data only.
Backup archivelog all delete all input
Recovery catalog:
In sqlplus enter
sys/rkpaul as sysdba
Create catalog
Register database
Register database;
Rman>Shutdown immediate
Both restore and recovery process. Please note the database rmandatabase.dbf was created in the
previous screen through creation of table space, creating user rkpaul/rkpaul and granting recovery
permission to rkpaul.
Restore database
In the screen below all the files are restored from backup done in rmandatabase.
It is created in separate directory. All the tables spaces have been recovered..
Show all shows the details of all the configurations