In today’s article, I will share with you the solution to the error I got after restoring the backup database from the RMAN backup.
Error:
ORA-01665: Control File Is Not A Standby Control File
Solution:
First we check the database_role of STANDBY.
1 2 3 4 5 |
sql> SELECT database_role FROM v$database; DATABASE_ROLE —————- PRIMARY |
After, we convert Primary database to Standby database.
1 2 3 4 5 6 7 |
sql> Alter database convert to physical standby; sql> startup mount; sql> SELECT database_role FROM v$database; DATABASE_ROLE ————— PHYSICAL STANDBY |
Finally:
1 |
sql> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE disconnect from session; |