oracle归档日志关闭和打开

时间:2021-11-27 08:45:58

查询Oracle归档日志状态

方法一

SQL> archive log list;

方法二

SQL> select name,log_mode from V$database;

打开Oracle归档日志

oracle$ sqlplus / as sysdba
SQL> shutdown immediate;
SQL> startup mount;  
SQL> alter database archivelog;  
SQL> alter database open;    
SQL> exit 

关闭Oracle归档日志

oracle$ sqlplus / as sysdba
SQL> shutdown immediate;
SQL> startup mount;  
SQL> alter database noarchivelog;  
SQL> alter database open;    
SQL> exit