[oracle@DB ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.4.0 Production on Sun Oct 30 17:59:02 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Automatic Storage Management, Oracle Label Security, OLAP,
Data Mining, Oracle Database Vault and Real Application Testing options
SQL> SELECT GROUP#,TYPE, MEMBER FROM GV$LOGFILE;
GROUP# TYPE
---------- -------
MEMBER
--------------------------------------------------------------------------------
3 ONLINE
+DG_REDO/ERPDB/ONLINELOG/group_3.263.911340093
2 ONLINE
+DG_REDO/ERPDB/ONLINELOG/group_2.262.911340093
1 ONLINE
+DG_REDO/ERPDB/ONLINELOG/group_1.261.911340093
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,BYTES/1024/1024 SIZE_IN_MB,ARCHIVED,STATUS FROM GV$LOG;
GROUP# THREAD# SEQUENCE# SIZE_IN_MB ARC STATUS
---------- ---------- ---------- ---------- --- ----------------
1 1 39979 100 NO ACTIVE
2 1 39980 100 NO ACTIVE
3 1 39981 100 NO CURRENT
SQL> ALTER DATABASE ADD LOGFILE THREAD 1
GROUP 5 ('+DG_DATA/ERPDB/ONLINELOG/redo-05-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-05-02.log') SIZE 1G,
GROUP 6 ('+DG_DATA/ERPDB/ONLINELOG/redo-06-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-06-02.log') SIZE 1G;
2 3
Database altered.
SQL> SQL>
SQL>
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,BYTES/1024/1024 SIZE_IN_MB,ARCHIVED,STATUS FROM GV$LOG;
GROUP# THREAD# SEQUENCE# SIZE_IN_MB ARC STATUS
---------- ---------- ---------- ---------- --- ----------------
1 1 39979 100 NO ACTIVE
2 1 39980 100 NO ACTIVE
3 1 39981 100 NO CURRENT
5 1 0 1024 YES UNUSED
6 1 0 1024 YES UNUSED
SQL> ALTER SYSTEM CHECKPOINT GLOBAL;
System altered.
SQL> ALTER SYSTEM SWITCH LOGFILE ;
System altered.
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,BYTES/1024/1024 SIZE_IN_MB,ARCHIVED,STATUS FROM GV$LOG;
GROUP# THREAD# SEQUENCE# SIZE_IN_MB ARC STATUS
---------- ---------- ---------- ---------- --- ----------------
1 1 39979 100 NO INACTIVE
2 1 39980 100 NO INACTIVE
3 1 39981 100 NO INACTIVE
5 1 39982 1024 NO ACTIVE
6 1 39983 1024 NO CURRENT
SQL> ALTER DATABASE DROP LOGFILE GROUP 1;
Database altered.
SQL> ALTER DATABASE DROP LOGFILE GROUP 2;
Database altered.
SQL> ALTER DATABASE DROP LOGFILE GROUP 3;
Database altered.
SQL> ALTER DATABASE ADD LOGFILE THREAD 1
GROUP 1 ('+DG_DATA/ERPDB/ONLINELOG/redo-01-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-01-02.log') SIZE 1G,
GROUP 2 ('+DG_DATA/ERPDB/ONLINELOG/redo-02-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-02-02.log') SIZE 1G;
2 3
Database altered.
SQL> SQL>
SQL> ALTER DATABASE ADD LOGFILE THREAD 1
GROUP 3 ('+DG_DATA/ERPDB/ONLINELOG/redo-03-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-03-02.log') SIZE 1G,
GROUP 4 ('+DG_DATA/ERPDB/ONLINELOG/redo-04-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-04-02.log') SIZE 1G; 2 3
Database altered.
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,BYTES/1024/1024 SIZE_IN_MB,ARCHIVED,STATUS FROM GV$LOG;
GROUP# THREAD# SEQUENCE# SIZE_IN_MB ARC STATUS
---------- ---------- ---------- ---------- --- ----------------
1 1 0 1024 YES UNUSED
2 1 0 1024 YES UNUSED
3 1 0 1024 YES UNUSED
4 1 0 1024 YES UNUSED
5 1 39982 1024 NO ACTIVE
6 1 39983 1024 NO CURRENT
6 rows selected.
SQL>
SQL*Plus: Release 11.2.0.4.0 Production on Sun Oct 30 17:59:02 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Automatic Storage Management, Oracle Label Security, OLAP,
Data Mining, Oracle Database Vault and Real Application Testing options
SQL> SELECT GROUP#,TYPE, MEMBER FROM GV$LOGFILE;
GROUP# TYPE
---------- -------
MEMBER
--------------------------------------------------------------------------------
3 ONLINE
+DG_REDO/ERPDB/ONLINELOG/group_3.263.911340093
2 ONLINE
+DG_REDO/ERPDB/ONLINELOG/group_2.262.911340093
1 ONLINE
+DG_REDO/ERPDB/ONLINELOG/group_1.261.911340093
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,BYTES/1024/1024 SIZE_IN_MB,ARCHIVED,STATUS FROM GV$LOG;
GROUP# THREAD# SEQUENCE# SIZE_IN_MB ARC STATUS
---------- ---------- ---------- ---------- --- ----------------
1 1 39979 100 NO ACTIVE
2 1 39980 100 NO ACTIVE
3 1 39981 100 NO CURRENT
SQL> ALTER DATABASE ADD LOGFILE THREAD 1
GROUP 5 ('+DG_DATA/ERPDB/ONLINELOG/redo-05-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-05-02.log') SIZE 1G,
GROUP 6 ('+DG_DATA/ERPDB/ONLINELOG/redo-06-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-06-02.log') SIZE 1G;
2 3
Database altered.
SQL> SQL>
SQL>
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,BYTES/1024/1024 SIZE_IN_MB,ARCHIVED,STATUS FROM GV$LOG;
GROUP# THREAD# SEQUENCE# SIZE_IN_MB ARC STATUS
---------- ---------- ---------- ---------- --- ----------------
1 1 39979 100 NO ACTIVE
2 1 39980 100 NO ACTIVE
3 1 39981 100 NO CURRENT
5 1 0 1024 YES UNUSED
6 1 0 1024 YES UNUSED
SQL> ALTER SYSTEM CHECKPOINT GLOBAL;
System altered.
SQL> ALTER SYSTEM SWITCH LOGFILE ;
System altered.
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,BYTES/1024/1024 SIZE_IN_MB,ARCHIVED,STATUS FROM GV$LOG;
GROUP# THREAD# SEQUENCE# SIZE_IN_MB ARC STATUS
---------- ---------- ---------- ---------- --- ----------------
1 1 39979 100 NO INACTIVE
2 1 39980 100 NO INACTIVE
3 1 39981 100 NO INACTIVE
5 1 39982 1024 NO ACTIVE
6 1 39983 1024 NO CURRENT
SQL> ALTER DATABASE DROP LOGFILE GROUP 1;
Database altered.
SQL> ALTER DATABASE DROP LOGFILE GROUP 2;
Database altered.
SQL> ALTER DATABASE DROP LOGFILE GROUP 3;
Database altered.
SQL> ALTER DATABASE ADD LOGFILE THREAD 1
GROUP 1 ('+DG_DATA/ERPDB/ONLINELOG/redo-01-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-01-02.log') SIZE 1G,
GROUP 2 ('+DG_DATA/ERPDB/ONLINELOG/redo-02-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-02-02.log') SIZE 1G;
2 3
Database altered.
SQL> SQL>
SQL> ALTER DATABASE ADD LOGFILE THREAD 1
GROUP 3 ('+DG_DATA/ERPDB/ONLINELOG/redo-03-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-03-02.log') SIZE 1G,
GROUP 4 ('+DG_DATA/ERPDB/ONLINELOG/redo-04-01.log','+DG_REDO/ERPDB/ONLINELOG/redo-04-02.log') SIZE 1G; 2 3
Database altered.
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,BYTES/1024/1024 SIZE_IN_MB,ARCHIVED,STATUS FROM GV$LOG;
GROUP# THREAD# SEQUENCE# SIZE_IN_MB ARC STATUS
---------- ---------- ---------- ---------- --- ----------------
1 1 0 1024 YES UNUSED
2 1 0 1024 YES UNUSED
3 1 0 1024 YES UNUSED
4 1 0 1024 YES UNUSED
5 1 39982 1024 NO ACTIVE
6 1 39983 1024 NO CURRENT
6 rows selected.
SQL>