How to change redo logfile size
THREAD# GROUP# BYTES/1024/1024 STATUS
———- ———- ————— —————-
1 2 50 INACTIVE
1 3 50 CURRENT
Database altered.
SQL> alter database add logfile THREAD 1 group 11 size 100M;
Database altered.
THREAD# GROUP# BYTES/1024/1024 STATUS
———- ———- ————— —————-
1 2 50 INACTIVE
1 3 50 CURRENT
1 10 100 UNUSED
1 11 100 UNUSED
The two new redo log files are added to database. Now we need to remove the old redo log files once they come to “INACTIVE” state.
Database altered.
I removed the redo log file group 2 as it is in INACTIVE state. We can not drop the redo logfile group 3 as it is in CURRENT state.
alter database drop logfile group 3
*
ERROR at line 1:
ORA-01623: log 3 is current log for instance MYDB (thread 1) – cannot drop
ORA-00312: online log 3 thread 1: ‘+REDO/mydb/onlinelog/group_3.259.881765243’
System altered.
THREAD# GROUP# BYTES/1024/1024 STATUS
———- ———- ————— —————-
1 3 50 INACTIVE
1 10 100 CURRENT
1 11 100 INACTIVE
Database altered.
SQL> select THREAD#,GROUP#,BYTES/1024/1024,status from v$log;
THREAD# GROUP# BYTES/1024/1024 STATUS
———- ———- ————— —————-
1 10 100 CURRENT
1 11 100 INACTIVE