Enable Archive Log Mode In Oracle 19c RAC
1. stop the database service.
srvctl stop database -d TANSID
2. start the database in mount state.
srvctl start database -d TANSID -o mount
3. enable archive log mode.
SQL> alter database archivelog; Database altered.
4. Restart the database service
srvctl stop database -d TANSID srvctl start database -d TANSID
5. Set the archive log destination to ASM DISK
SQL> alter system set log_archive_dest_1='LOCATION=+ARCH/' scope=both sid='*'; System altered. SQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination +ARCH Oldest online log sequence 1 Next log sequence to archive 1 Current log sequence 2 SQL> alter system switch logfile; System altered.
Checked the space of ARCH asm diskgroup before setting it for the archive destination.
SQL> select NAME,TOTAL_MB/1024 from v$asm_diskgroup;
NAME TOTAL_MB/1024
------------------------------ -------------
ARCH 33.7773438
CRS 7.24609375
FRA 34.9960938
REDO 12.3085938
TNBSID_DATA1 190.433594
Comments
Post a Comment