Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RMAN Restore of Hot Backup

Status
Not open for further replies.

rcurva

Programmer
Jul 17, 2001
548
AU
Hi Guys,

I am a bit new to RMAN but I need to restore a database on a new server with the current rman hot backup like below;

run {
ALLOCATE CHANNEL c1 TYPE DISK;

BACKUP DATABASE
TAG = 'DATABASE_DAILY'
SETSIZE = 2097152
FORMAT '/u06/LNFTKPRD_RMAN_DISK_BACKUP/LNFTKPRD_database_%u_%s_%p.bkp';

sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';

BACKUP ARCHIVELOG ALL
SETSIZE = 2097152
FORMAT '/u08/LNFTKPRD_RMAN_DISK_BACKUP/LNFTKPRD_archivelog_%u_%s_%p.bkp'
DELETE INPUT;

BACKUP CURRENT CONTROLFILE
TAG = 'LNFTKPRD_CONTROL_FILE'
FORMAT '/u08/LNFTKPRD_RMAN_DISK_BACKUP/LNFTKPRD_controlfile_%u_%s_%p.bkp';
}

The database is in archivelog mode. Can I just copy the init.ora and control file then do a restore database without copying the datafiles? What is the rman command to restore this database?

Thanks for any help.


Robbie

"The rule is, not to besiege walled cities if it can possibly be avoided&quot" -- Art of War
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top