Skip to Main Content

Breadcrumb

Question and Answer

Chris Saxon

Thanks for the question, Sandeep.

Asked: January 30, 2018 - 4:07 pm UTC

Last updated: January 30, 2018 - 4:32 pm UTC

Version: 12c

Viewed 1000+ times

You Asked

What is a command to change DB open mode from read write to read only without restarting the instance

and Chris said...

There isn't one:

select status from v$instance;

STATUS   
OPEN 

alter database open read only;

ORA-01531: a database already open by the instance


As it says in the docs:

You cannot open a database in READ ONLY mode if it is currently opened in READ WRITE mode by another instance.

https://docs.oracle.com/en/database/oracle/oracle-database/12.2/sqlrf/ALTER-DATABASE.html#GUID-8069872F-E680-4511-ADD8-A4E30AF67986



Is this answer out of date? If it is, please let us know via a Comment

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database