ORA-01206: File is not part of this database - wrong database id
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below ORA-01122: database file 9 failed verification check ORA-01110: data file 9: 'H:\xxx\xxx\xxx.dbf' ORA-01206: file is not part of this database - wrong database idDatafile 9 was a read-only tablespace, and the source database was actually created with
RMAN DUPLICATE. Datafile 9 was read-only during that duplicate operation, and the status hadn't changed since then. As you can imagine, the read-only datafiles were not changed and their headers still contained the
DBID of the database that was the source of the
RMAN DUPLICATE. A similar situation could probably happen if tablespaces were imported using transportable tablespaces feature, and left read only. The fix in this case is to make tablespaces read-write for a moment, and then change back to read-only. The read-write operation will write new datafile headers and, consequently, put there the "right"
DBID.
IMPORTANT -- this has to be done before backup and not after a disaster strikes. This case just emphasizes again the most important rule of any backup/recovery strategy is to do regular test-restores. If it's too late and something hit the fan -- well, you probably have a chance to offline drop those tablespaces and, hopefully, be able to import them back, if those are transportable tablespaces, and the metadata dump file is still available. Another idea would be to offline datafiles and then online them after
OPEN RESETLOGS. Should someone try that -- let us know if it works.
On this page
Share this
Share this
More resources
Learn more about Pythian by reading the following blogs and articles.
Opening the Door Without the Keys
Opening the Door Without the Keys
Apr 24, 2013 12:00:00 AM
3
min read
Data Guard Broker—ORA-16714: The Value of Property LogFileNameConvert Is Inconsistent with the Database Setting
Data Guard Broker—ORA-16714: The Value of Property LogFileNameConvert Is Inconsistent with the Database Setting
Apr 29, 2021 12:00:00 AM
3
min read
Oracle Database 12c: Network Recovery in RMAN
Oracle Database 12c: Network Recovery in RMAN
Aug 14, 2013 12:00:00 AM
12
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.