Professional Documents
Culture Documents
CREATING LISTENER
Go to netmgr and add a listener
STARTING LISTENER
Start listener using lsnrctl
CREATE LISTENER
o Go to netmgr and add a listener
STARTING LISTENER
o Start listener using lsnrctl
CREATING CATALOG USER
$ RMAN
Full
backup of a data file that includes every allocated block
in the file being backed up
Incremental
level 0 –Backup of every block except blocks
compressed out
Level 1- includes blocks that have been changed since
the parent backup was taken.
Open
A backup of online, read/write datafiles when the
database is open.
Closed
A backup of any part of the target database when it is
mounted but not open. Closed backups can be
consistent or inconsistent.
Consistent
Backup taken when the database is mounted (but not in
open),after proper shutdown.checkpoint SCNs in the
datafile headers match the header information in the
control file.
Inconsistent
A backup of any part of the target database when it is
open or when a crash occurred or SHUTDOWN ABORT
was run prior to mounting.An inconsistent backup
requires recovery to become consistent.
Various backup using RMAN
RMAN>backup database;
( will backup data file , control file)
Backingup tablespace :
RMAN>backup tablespace <tbsname>;
(will backup tablespace DB should be in archivelogmode)
Backing datafile:
Recovery
Restore
RECOVER
If restore completed successfully then following command
can be executed based on the recovery scenario.
Will give details details about the files you need to restore and recover
SCENARIOS
Rman
RMAN > Connect target sys/sys@con_tar
RMAN > connect catalog cat/cat@con_cat
RMAN > startup nomount
RMAN > run
{
restore database;
alter database mount;
recover database;
}
Scenario 2 Recover Lost controlfile
• Target database
Shut abort
Startup nomount
• Connect to rman catalog and target database
RMAN> RUN
{
alter tablespace sysaux offline;
restore datafile
‘/home/oracle10g/data/sysaux1.dbf';
recover datafile
‘/home/oracle10g/data/sysaux1.dbf';
RMAN>run
{
alter tablespace sysaux offline
restore tablespace sysaux
recover tablespace sysaux
alter tablespace sysaux online
}