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.
ORA-30926 while using impdp over a database link
ORA-30926 while using impdp over a database link
Feb 3, 2017 12:00:00 AM
3
min read
Oracle E-Business Suite Database Upgrade to 19c
Oracle E-Business Suite Database Upgrade to 19c
Nov 23, 2020 12:00:00 AM
3
min read
Oracle 18c Non-CDB databases in the Oracle Database Cloud Service (ODBCS)
Oracle 18c Non-CDB databases in the Oracle Database Cloud Service (ODBCS)
Apr 6, 2018 12:00:00 AM
7
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.