0% found this document useful (0 votes)
651 views

Rman Script

The document outlines the steps to configure RMAN backup and recovery management on a database. It connects RMAN to the target database and recovery catalog, registers the database, and performs full database backups, individual datafile, tablespace, and control file backups by allocating channels, specifying tags and formats.

Uploaded by

api-3699150
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
651 views

Rman Script

The document outlines the steps to configure RMAN backup and recovery management on a database. It connects RMAN to the target database and recovery catalog, registers the database, and performs full database backups, individual datafile, tablespace, and control file backups by allocating channels, specifying tags and formats.

Uploaded by

api-3699150
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

c:\>rman catalog rman/rman@localtest step 1

recovery manager: release 8.1.7.0.0 - production

rman-06008: connected to recovery catalog database


rman-06428: recovery catalog is not installed

rman> create catalog tablespace tools; step 2

rman-06431: recovery catalog created

rman> exit step 3

recovery manager complete.

c:\>rman target internal/misbktest@misbktest rcvcat rman/rman@localtest


step 4

recovery manager: release 8.1.7.0.0 - production

rman-06005: connected to target database: mistest (dbid=1407525070)


rman-06008: connected to recovery catalog database

rman> register database; step 5

rman-03022: compiling command: register


rman-03023: executing command: register
rman-08006: database registered in recovery catalog
rman-03023: executing command: full resync
rman-08002: starting full resync of recovery catalog
rman-08004: full resync complete

full database backup:


=====================

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> }

individual datafile backup:


===========================

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> }

individual control backup:


==========================

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> }

You might also like