当前位置:网站首页>Oracle database is set to read-only and read-write

Oracle database is set to read-only and read-write

2022-08-01 23:09:00 yunzhonghefei

Query the current state of the database (assumed to be read-write) and change it to read-only.

sqlplus /nologconnect / as sysdba -- login as DBA --select open_mode from v$database; -- read-only or writable when querying the current state of the database --shutdown immediate --warnning: make sure there is no real process to execute before executing --startup mount --load database--alter database open read only; --change the database to read-only state--


Changes the database from read-only to writable.

sqlplus / as sysdbaselect open_mode from v$database;shutdown immediatestartup open read write;

原网站

版权声明
本文为[yunzhonghefei]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/213/202208012257498290.html