ORA-01665: control file is not a standby control file
So, the quick solution for ORA-01665 will be:
ALTER DATABASE CONVERT TO PHYSICAL STANDBY;
SQL> STARTUP MOUNT
ORACLE instance started.
…
Database mounted.
Database mounted.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
ERROR at line 1:
ORA-01665: control file is not a standby control file
ORA-01665: control file is not a standby control file
SQL> SELECT database_role FROM v$database;
DATABASE_ROLE
—————-
PRIMARY
—————-
PRIMARY
SQL> ALTER DATABASE CONVERT TO PHYSICAL STANDBY;
Database altered.
SQL> STARTUP MOUNT
ORACLE instance started.
…
Database mounted.
Database mounted.
SQL> SELECT database_role FROM v$database;
DATABASE_ROLE
—————-
PHYSICAL STANDBY
—————-
PHYSICAL STANDBY
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
Database altered.
This comment has been removed by the author.
ReplyDeleteSo you have first stop recovery process and then convert primary to standby for this issue.
Delete