Enabling Archive Log on Oracle RAC 12C

Below are the steps to enable Archivelog mode on Oracle RAC 12c.

Stop the database as grid (Both instances)

 srvctl stop database -d ORCL  

Start the database in mount mode

 srvctl start database -d ORCL -o mount  

Login to one db instances and enable archive log mode,

 ora12c@racbprdb2:~$ sqlplus sys as sysdba  
 SQL*Plus: Release 12.2.0.1.0 Production on Sun Aug 9 11:25:57 2020  
 Copyright (c) 1982, 2016, Oracle. All rights reserved.  
 Enter password:  
 Connected to:  
 Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production  
 SQL>  
 SQL> select name, open_mode from v$database;  
 NAME   OPEN_MODE  
 --------- --------------------  
 ORCL   MOUNTED  
 SQL> ALTER DATABASE ARCHIVELOG;  
 Database altered.  
 SQL>   

Restart the database,

 grid12c@racbprdb1:~$ srvctl stop database -d ORCL  
 grid12c@racbprdb1:~$  
 grid12c@racbprdb1:~$ srvctl start database -d ORCL  
 grid12c@racbprdb1:~$  

Check the archivelog mode

 SQL> select log_mode from v$database;  
 LOG_MODE  
 ------------  
 ARCHIVELOG  
 SQL>  

Comments

Popular posts from this blog

ORA-16433: The database or pluggable database must be opened in read/write

Oracle Multitenant - Create new service for PDB using DBMS_SERVICE

Wait for unread message on broadcast channel - Blocking Sessions