Friday, October 9, 2026
  • About Us
  • Contact
DBAInsight
  • Guides
    • 23ai
    • RMAN
    • 26ai
    • Patch Update
    • RMAN
    • MySQL
    • Oracle GoldenGate
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification
NEWSLETTER
No Result
View All Result
DBAInsight
Home Guides

ORA-01665: Control File Is Not a Standby Control File

September 26, 2025
in Guides
0
0
SHARES
186
VIEWS

When working with Oracle Data Guard, one of the common errors you might face while setting up a standby database manually is:

ALTER DATABASE CREATE STANDBY CONTROLFILE AS '<path>';

ORA-01665: control file is not a standby control file

This error usually pops up when you try to start managed recovery on the standby database but mistakenly use a primary control file instead of a standby control file.


Table of Contents

Toggle
  • Why Does This Error Happen?
    • Related posts
    • How to Transition from IT Support to Oracle Database Administration
    • Oracle 19c Time Zone Upgrade: DSTv32 to DSTv44
  • The Quick Solution
  • Step-by-Step Example
  • Final Thoughts

Why Does This Error Happen?

The control file you restored belongs to the primary database, not the standby. As a result, Oracle still treats your database as a PRIMARY rather than a PHYSICAL STANDBY, preventing recovery from starting.

The traditional solution is to:

1.Generate a new standby control file on the primary database using:

ALTER DATABASE CREATE STANDBY CONTROLFILE AS ‘<path>’;

2.Copy this control file to the standby server.

Related posts

How to Transition from IT Support to Oracle Database Administration

How to Transition from IT Support to Oracle Database Administration

October 5, 2026
timezone

Oracle 19c Time Zone Upgrade: DSTv32 to DSTv44

October 1, 2026

3.Restore it and update file locations (redo logs, datafiles, etc.) if needed.

While this works, it can be a bit time-consuming.


The Quick Solution

If you want a faster workaround, Oracle provides a handy command:

ALTER DATABASE CONVERT TO PHYSICAL STANDBY;

This converts your primary control file into a standby control file directly, saving you the trouble of generating and copying files from the primary.


Step-by-Step Example

Here’s a simple walkthrough:

Start the instance and mount the database:

STARTUP MOUNT;

Attempt recovery:

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;

You’ll see the error:

ORA-01665: control file is not a standby control file

Check the current role:

SELECT database_role FROM v$database;

Output:

PRIMARY

Convert to standby:

ALTER DATABASE CONVERT TO PHYSICAL STANDBY;

Output:

Database altered.

Restart and mount again:

STARTUP MOUNT;

Check the new role:

SELECT database_role FROM v$database;

Output:

PHYSICAL STANDBY

Start managed recovery:

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;

Final Thoughts

Using ALTER DATABASE CONVERT TO PHYSICAL STANDBY is a neat shortcut that saves you from regenerating and copying standby control files every time you run into ORA-01665.

However, keep in mind:

  • This method is great for quick setups and lab environments.
  • For production systems, it’s still best practice to generate and maintain proper standby control files from the primary for consistency and disaster recovery readiness.

By understanding both approaches, you can choose the right method depending on your environment’s needs.

Tags: ORA-01665: Control File Is Not a Standby Control File
Previous Post

Oracle 19c OCA Certification: The Honest 2026 Guide

Next Post

How to Perform a Transportable Tablespace in Oracle Database

Next Post
How to Perform a Transportable Tablespace in Oracle Database

How to Perform a Transportable Tablespace in Oracle Database

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

  • Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    0 shares
    Share 0 Tweet 0
  • How To Download And Install The Latest OPatch

    0 shares
    Share 0 Tweet 0
  • Oracle Database 19.32 Release Update (RU) Patching Guide – Patch 39472050

    0 shares
    Share 0 Tweet 0
  • How to Install Oracle 19c Database on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • Installing Oracle Database 26AI on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • About Us
  • Contact

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

No Result
View All Result
  • Home
  • Cloud & Modern DBs
  • Guides
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

Add as a preferred source on Google
Add as preferred source on Google