Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Server > Re: DBPITR and ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 14 of 14 Topic 16497 of 17270
Post > Topic >>

Re: DBPITR and ORA-16005 Error: database requires recovery.

by "gbahut@[EMAIL PROTECTED] " <gbahut@[EMAIL PROTECTED] > May 6, 2008 at 05:07 AM

This time I got it.

I will write down how I did:

1) Backup the database including the control file.
2) Get the CURRENT_SCN from V$Database; [scn1]
3) Drop table T1 and added some rows to table T2.
4) Perform DBPITR up to SCN1:
>RMAN / target
RMAN> shutdown immediate;
RMAN> startup nomount;
RMAN> SET DBID [My database Identifier];
RMAN> RESTORE CONTROLFILE FROM AUTOBACKUP;
RMAN> ALTER DATABASE MOUNT;
RMAN> RUN {
 SET UNTIL SCN [scn1];
 RESTORE DATABASE;
 RECOVER DATABASE;
 }
RMAN> SQL 'ALTER DATABASE OPEN READ ONLY';

The database successfully opens in read only mode and I verify that
the operations after SCN1 are reversed, these are, T1 dropped table
and the inserts on T2.

I can copy T1 to another DB using a DB link and perform complete
recovery of the database:

RMAN> SHUTDOWN IMMEDIATE;
RMAN> STARTUP MOUNT;
RMAN> RECOVER DATABASE;
RMAN> SQL 'ALTER DATABASE OPEN RESETLOGS';

With the database open I can copy T1 backup back to my target database
not losing the INSERTS I made on T2.

So, It looks like the control file must be restored in the first
place, as many of you suggested, so that RMAN can perform a consistent
incomplete recovery and let the DB be opened in READ ONLY mode.

Thanks again for your comments.

Gonzalo.
 




 14 Posts in Topic:
DBPITR and ORA-16005 Error: database requires recovery.
"gbahut@[EMAIL PROTE  2008-05-02 10:04:37 
Re: DBPITR and ORA-16005 Error: database requires recovery.
"fitzjarrell@[EMAIL   2008-05-02 10:26:27 
Re: DBPITR and ORA-16005 Error: database requires recovery.
"gbahut@[EMAIL PROTE  2008-05-02 12:53:43 
Re: DBPITR and ORA-16005 Error: database requires recovery.
"fitzjarrell@[EMAIL   2008-05-02 13:57:38 
Re: DBPITR and ORA-16005 Error: database requires recovery.
vitalisman@[EMAIL PROTECT  2008-05-05 00:52:25 
Re: DBPITR and ORA-16005 Error: database requires recovery.
"gbahut@[EMAIL PROTE  2008-05-05 01:00:48 
Re: DBPITR and ORA-16005 Error: database requires recovery.
vitalisman@[EMAIL PROTECT  2008-05-05 01:29:38 
Re: DBPITR and ORA-16005 Error: database requires recovery.
tim2boles@[EMAIL PROTECTE  2008-05-05 07:25:03 
Re: DBPITR and ORA-16005 Error: database requires recovery.
joel garry <joel-garry  2008-05-05 10:05:17 
Re: DBPITR and ORA-16005 Error: database requires recovery.
tim2boles@[EMAIL PROTECTE  2008-05-05 13:05:11 
Re: DBPITR and ORA-16005 Error: database requires recovery.
joel garry <joel-garry  2008-05-05 14:49:46 
Re: DBPITR and ORA-16005 Error: database requires recovery.
"gbahut@[EMAIL PROTE  2008-05-06 01:43:16 
Re: DBPITR and ORA-16005 Error: database requires recovery.
vitalisman@[EMAIL PROTECT  2008-05-06 02:14:36 
Re: DBPITR and ORA-16005 Error: database requires recovery.
"gbahut@[EMAIL PROTE  2008-05-06 05:07:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 17:51:50 CDT 2008.