RMAN Basic Steps
-
Upload
madhusudaniyaar -
Category
Documents
-
view
213 -
download
0
Transcript of RMAN Basic Steps
-
7/23/2019 RMAN Basic Steps
1/2
RMAN Basics:
Step 1: Create a user to store the RECOVERY CATALOGAlso create a seperate tablespace for the user (Though it is not
necessary)
create tablespace madhu_rman datafile 'H:\app\Administrator\orad
ata\orcl\m_rman01.dbf' size 100M reuse autoextend on next 64k maxsize 3G;
create user rman identified by posidex default tablespace madhu_rman temporary tablespace temp quota unlimited on madhu_rman;
grant connect,resource,recovery_catalog_owner to rman;
Step 2: Create the RECOVERY CATALOG
From command prompt
C:>rman catalog=rman/posidex@orcl
rman>create catalog tablespace "MADHU_RMAN";CAUTION NOTE: the tablespace specified is case sensitive. ie., As the created tablespace name is stored in upper case in oracle, it should be given in upper only in the above command or else it throws the following error.
-----------------------error creating db
ORACLE error from recovery catalog database: ORA-00959: tablespace 'madhu_rman'does not exist
ORACLE error from recovery catalog database: ORA-00942: table or view does not exist
RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-06433: error installing recovery catalog-----------------------
rman>exit
Step 3: Each database to be backup up by RMAN should be registered:
From command prompt
C:>rman catalog=rman/posidex@orcl target=sys/madhu@orclrman> register database;It gives the following messages
database registered in recovery catalogstarting full resync of recovery catalogfull resync complete
Step 4: Backup the database
RUN{
ALLOCATE CHANNEL d1 DEVICE TYPE disk
FORMAT = 'G:\orcl_db.bak';BACKUP DATABASE PLUS ARCHIVELOG;
}
-
7/23/2019 RMAN Basic Steps
2/2
To backup a datafile
RUN{
ALLOCATE CHANNEL d1 DEVICE TYPE diskFORMAT = 'G:\orcl_db_df.bak';
BACKUP DATAFILE 'H:\app\Administrator\oradata\orcl\SYSTEM01.DBF';
}