Rman Script
Rman Script
rman> run {
2> allocate channel ch1 type disk;
3> backup
4> full
5> tag full_backup
6> format 'c:\full_backup.bkf'
7> (database);
8> release channel ch1;
9> }
rman> run{
2> allocate channel ch1 type disk;
3> backup
4> tag datafile_backup
5> format 'c:\tools_backup.bkf'
6> (datafile 'c:\misbktest\tools.dbf');
7> release channel ch1;
8> }
individual tablespace backup:
=============================
rman> run {
2> allocate channel ch1 type disk;
3> backup
4> tag 'tablespace_backup'
5> format 'c:\ts_backup.bkf'
6> (tablespace tools);
7> release channel ch1;
8> }
rman> run {
2> allocate channel ch1 type disk;
3> backup
4> tag 'control_backup'
5> format 'c:\ctrl_backup.bkf'
6> (current controlfile);
7> release channel ch1;
8> }