Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: RMAN backup and restore Q?
What version of the database are you using? My info here is based on 8.1.7.
I connect to my databases as internal to do the backups. I fire up RMAN with either one of these commands:
rman target / catalog rman/rman_at_test1 (SID must be set correctly) rman target internal/pwd_at_test2 catalog rman/rman_at_test1
I'm not sure why you have an rman user in test2, unless you set up a second catalog so that you can backup your first catalog.
To test your restore, shutdown test2 and delete all the .dbf, .log, .arc, and .ctl files. Then startup nomount the test2 database. Then try this:
rman target internal/pwd_at_test2 catalog rman/rman_at_test
run {
allocate channel ch1 type disk;
restore controlfile;
alter database mount;
restore database;
recover database;
alter database open resetlogs;
}
If you did a hot backup, you may need your archivelog backups. This command backs up the archivelogs:
run
{
allocate channel ch1 type disk format '/bkup1/oracle/%d/arc_s%s_p%p_%t';
set limit channel ch1 kbytes=1000000; # Limit sets to 1 Gb.
backup archivelog until time 'sysdate-1/24' delete input;
backup archivelog from time 'sysdate-1/24';
}
Jay Hostetter
Oracle DBA
D. & E. Communications
Ephrata, PA USA
>>> nlzanen1_at_EY.NL 01/16/02 07:25AM >>>
Hi All,
I'm in the process of figuring out the workings of RMAN and created 2 test
databases.
TEST1 = catalog database
TEST2 = target database
I have created the catalogs and registered the database with the catalog.
I than mad a full backup of the database TEST2 (is in Archivelog mode) with the following syntax
**************************BACKUP****************************************rman <<EOF
which created the database backup OK
When I try the restore however I get ORA 19753 cannot obtain exclusive enqueue for datafile 1.
****************************RESTORE*************************************rman <<EOF
Checking the database TEST2 showed a shared MR lock in the v$lock view on all tablespaces.
What am I doing wrong here?
TIA Jack
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: nlzanen1_at_EY.NL Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jay Hostetter INET: jhostetter_at_decommunications.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Jan 16 2002 - 08:16:28 CST