SlideShare a Scribd company logo
REDO LOGFILE ADD ACTIVITY IN RAC 11gR2:
```````````````````````````````````````
first check logfiles:
```````````````````
query:
set echo off
set feedback off
set linesize 120
set pagesize 35
set trim on
set trims on
set lines 120
col group# format 999
col thread# format 999
col member format a70 wrap
col status format a10
col archived format a10
col fsize format 999 heading "Size (MB)"
select l.group#, l.thread#,
f.member,
l.archived,
l.status,
(bytes/1024/1024) fsize
from
v$log l, v$logfile f
where f.group# = l.group#
order by 1,2
/
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
YES INACTIVE 50
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
YES INACTIVE 50
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
NO CURRENT 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
NO CURRENT 50
3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983
YES INACTIVE 50
3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989
YES INACTIVE 50
4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993
NO CURRENT 50
4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997
NO CURRENT 50
We will add new logfiles in thread 1 and 2 of size 100M.
So we can observe here thread 1 having two groups i.e. group 1&2, similarly
thread 2 having two groups i.e. group 3&4 of logfile
size 50M.
Now we'll add two new groups for thread 1 ( group 5&6) & for thread 2 (group
7&8) respectively.
alter database add logfile thread 1 group 5 ('+DATA','+FRA') size 100M;
alter database add logfile thread 1 group 6 ('+DATA','+FRA') size 100M;
alter database add logfile thread 2 group 7 ('+DATA','+FRA') size 100M;
alter database add logfile thread 2 group 8 ('+DATA','+FRA') size 100M;
After that please check logfiles being added or not:
select l.group#, l.thread#,
f.member,
l.archived,
l.status,
(bytes/1024/1024) fsize
from
v$log l, v$logfile f
where f.group# = l.group#
order by 1,2
/
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
YES INACTIVE 50
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
YES INACTIVE 50
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
NO CURRENT 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
NO CURRENT 50
3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983
YES INACTIVE 50
3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989
YES INACTIVE 50
4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993
NO CURRENT 50
4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997
NO CURRENT 50
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
YES UNUSED 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
YES UNUSED 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
YES UNUSED 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
YES UNUSED 100
7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819
YES UNUSED 100
7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867
YES UNUSED 100
8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099
YES UNUSED 100
8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139
YES UNUSED 100
Elapsed: 00:00:09.08
Now we will login both the nodes with different putty session and will run "
alter system swith logfile; "
until thread 1 & 2 groups get switched and the 50M logfile get inactive
respectively.
alter system switch logfile;
select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024)
fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=1 ;
alter system switch logfile;
select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024)
fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=2 ;
Then we can drop inactive groups for thread 1 & 2:
from instance 1:
alter database drop logfile group 1;
alter database drop logfile group 2;
from instance 2:
alter database drop logfile group 3;
alter database drop logfile group 4;
( Note please check properly before dropping logfile i.e. the status must be
"INACTIVE" for both the logfiles in groups )
Here i have dropped instance 2 logfile groups first after that instance 1.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check following activity logs:
login as: root
root@192.168.78.51's password:
Last login: Fri Jun 29 13:10:25 2018 from 192.168.78.1
[root@rac1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_rac1-lv_root
27G 14G 12G 54% /
tmpfs 2.0G 711M 1.4G 35% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
12cR1_softs 430G 330G 101G 77% /media/sf_12cR1_softs
/dev/asm/shared-385 1.0G 144M 881M 14% /SHARED
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# su - oracle
==================================================================
SETTING ENVIRONMENT
1. Grid
2. Database
Enter your choice :
2
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$sqlplus / as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Fri Jun 29 14:28:29 2018
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Advanced Analytics and Real Application Testing options
SQL> set echo off
set feedback off
set linesize 120
set pagesize 35
set trim on
set trims on
set lines 120
col group# format 999
col thread# format 999
col member format a70 wrap
col status format a10
col archived format a10
col fsize format 999 heading "Size (MB)"
select l.group#, l.thread#,
f.member,
l.archived,
l.status,
(bytes/1024/1024) fsize
from
v$log l, v$logfile f
where f.group# = l.group#
order by 1,2
/
SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> 2 3
4 5 6 7 8 9 10
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
YES INACTIVE 50
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
YES INACTIVE 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
NO CURRENT 50
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
NO CURRENT 50
3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983
YES INACTIVE 50
3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989
YES INACTIVE 50
4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993
NO CURRENT 50
4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997
NO CURRENT 50
SQL> SQL>
SQL>
SQL>
SQL>
SQL> alter database add logfile thread 1 group 5 ('+DATA','+FRA') size 100M;
SQL>
SQL>
SQL> alter database add logfile thread 1 group 6 ('+DATA','+FRA') size 100M;
SQL>
SQL> alter database add logfile thread 2 group 7 ('+DATA','+FRA') size 100M;
SQL>
SQL> SQL> set timing on
SQL>
SQL> alter database add logfile thread 2 group 8 ('+DATA','+FRA') size 100M;
Elapsed: 00:01:21.18
SQL>
SQL>
SQL> set echo off
set feedback off
set linesize 120
set pagesize 35
set trim on
set trims on
set lines 120
col group# format 999
col thread# format 999
col member format a70 wrap
col status format a10
col archived format a10
col fsize format 999 heading "Size (MB)"
select l.group#, l.thread#,
f.member,
l.archived,
l.status,
(bytes/1024/1024) fsize
from
v$log l, v$logfile f
where f.group# = l.group#
order by 1,2
/SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> 2 3
4 5 6 7 8 9 10
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
YES INACTIVE 50
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
YES INACTIVE 50
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
NO CURRENT 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
NO CURRENT 50
3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983
YES INACTIVE 50
3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989
YES INACTIVE 50
4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993
NO CURRENT 50
4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997
NO CURRENT 50
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
YES UNUSED 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
YES UNUSED 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
YES UNUSED 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
YES UNUSED 100
7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819
YES UNUSED 100
7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867
YES UNUSED 100
8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099
YES UNUSED 100
8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139
YES UNUSED 100
Elapsed: 00:00:09.08
SQL>
SQL>
SQL>
SQL> alter system switch logfile;
Elapsed: 00:00:14.14
SQL>
SQL>
SQL> select l.group#, l.thread#,
f.member,
l.archived,
l.status,
(bytes/1024/1024) fsize
from
v$log l, v$logfile f
where f.group# = l.group#
order by 1,2
/ 2 3 4 5 6 7 8 9 10
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
YES INACTIVE 50
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
YES INACTIVE 50
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
NO ACTIVE 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
NO ACTIVE 50
3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983
YES INACTIVE 50
3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989
YES INACTIVE 50
4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993
NO CURRENT 50
4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997
NO CURRENT 50
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
NO CURRENT 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
NO CURRENT 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
YES UNUSED 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
YES UNUSED 100
7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819
YES UNUSED 100
7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867
YES UNUSED 100
8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099
YES UNUSED 100
8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139
YES UNUSED 100
Elapsed: 00:00:17.09
SQL>
SQL> select l.group#, l.thread#, f.member, l.archived, l.status,
(bytes/1024/1024) fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=1 ; 2 3
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
YES ACTIVE 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
YES ACTIVE 50
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
YES INACTIVE 50
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
YES INACTIVE 50
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
NO CURRENT 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
NO CURRENT 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
YES UNUSED 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
YES UNUSED 100
Elapsed: 00:00:09.42
SQL> alter system switch logfile;
Elapsed: 00:00:05.75
SQL>
SQL> select l.group#, l.thread#, f.member, l.archived, l.status,
(bytes/1024/1024) fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=1 ; 2 3
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
YES ACTIVE 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
YES ACTIVE 50
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
YES INACTIVE 50
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
YES INACTIVE 50
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
YES ACTIVE 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
YES ACTIVE 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
NO CURRENT 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
NO CURRENT 100
Elapsed: 00:00:13.75
SQL> alter system switch logfile;
Elapsed: 00:00:09.54
SQL>
SQL> select l.group#, l.thread#, f.member, l.archived, l.status,
(bytes/1024/1024) fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=1 ; 2 3
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
YES ACTIVE 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
YES ACTIVE 50
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
NO CURRENT 50
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
NO CURRENT 50
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
YES ACTIVE 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
YES ACTIVE 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
NO ACTIVE 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
NO ACTIVE 100
Elapsed: 00:00:19.82
SQL>
SQL> alter system switch logfile;
Elapsed: 00:00:42.84
SQL> select l.group#, l.thread#, f.member, l.archived, l.status,
(bytes/1024/1024) fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=1 ; 2 3
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
NO CURRENT 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
NO CURRENT 50
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
NO ACTIVE 50
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
NO ACTIVE 50
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
YES ACTIVE 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
YES ACTIVE 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
YES ACTIVE 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
YES ACTIVE 100
Elapsed: 00:00:12.23
SQL>
SQL> alter system switch logfile;
Elapsed: 00:00:15.77
SQL>
SQL> select l.group#, l.thread#, f.member, l.archived, l.status,
(bytes/1024/1024) fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=1 ; 2 3
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
NO ACTIVE 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
NO ACTIVE 50
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
YES ACTIVE 50
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
YES ACTIVE 50
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
NO CURRENT 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
NO CURRENT 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
YES ACTIVE 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
YES ACTIVE 100
Elapsed: 00:00:13.55
SQL>
SQL>
SQL>
SQL>
SQL> alter system switch logfile;
Elapsed: 00:00:00.50
SQL>
SQL> select l.group#, l.thread#, f.member, l.archived, l.status,
(bytes/1024/1024) fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=1 ; 2 3
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091
YES INACTIVE 50
2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095
YES INACTIVE 50
1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081
YES INACTIVE 50
1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087
YES INACTIVE 50
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
YES ACTIVE 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
YES ACTIVE 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
NO CURRENT 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
NO CURRENT 100
Elapsed: 00:00:00.17
SQL>
SQL> alter database drop logfile group 1;
Elapsed: 00:00:01.87
SQL> alter database drop logfile group 2;
Elapsed: 00:00:01.22
SQL>
SQL>
SQL>
SQL> select l.group#, l.thread#, f.member, l.archived, l.status,
(bytes/1024/1024) fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=1 ; 2 3
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
YES ACTIVE 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
YES ACTIVE 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
NO CURRENT 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
NO CURRENT 100
Elapsed: 00:00:00.20
SQL>
SQL>
SQL> select l.group#, l.thread#,
f.member,
l.archived,
l.status,
(bytes/1024/1024) fsize
from
v$log l, v$logfile f
where f.group# = l.group#
order by 1,2
/ 2 3 4 5 6 7 8 9 10
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539
YES ACTIVE 100
5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597
YES ACTIVE 100
6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677
NO CURRENT 100
6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735
NO CURRENT 100
7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819
YES ACTIVE 100
7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867
YES ACTIVE 100
8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099
NO CURRENT 100
8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139
NO CURRENT 100
Elapsed: 00:00:00.19
SQL>
SQL>
SQL>
SQL>
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 -
64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Advanced Analytics and Real Application Testing options
[oracle@rac1 ~]$
````````````````````````````````````
login as: root
root@192.168.78.52's password:
Last login: Fri Jun 29 13:11:41 2018 from 192.168.78.1
[root@rac2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_rac1-lv_root
27G 14G 12G 53% /
tmpfs 2.0G 638M 1.4G 32% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
12cR1_softs 430G 330G 101G 77% /media/sf_12cR1_softs
/dev/asm/shared-385 1.0G 144M 881M 14% /SHARED
[root@rac2 ~]#
[root@rac2 ~]#
[root@rac2 ~]#
[root@rac2 ~]# su - oracle
==================================================================
SETTING ENVIRONMENT
1. Grid
2. Database
Enter your choice :
2
[oracle@rac2 ~]$sqlplus / as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Fri Jun 29 14:44:12 2018
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Advanced Analytics and Real Application Testing options
SQL> set timing on
SQL> set lines 200 pages 200
SQL> SQL> SQL>
SQL>
SQL>
SQL> select l.group#, l.thread#, f.member, l.archived, l.status,
(bytes/1024/1024) fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=2 ;
2 3
GROUP# THREAD#
---------- ----------
MEMBER
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
----------------------------------------
ARC STATUS FSIZE
--- ---------------- ----------
3 2
+DATA/RAC/ONLINELOG/group_3.288.961583983
YES INACTIVE 50
3 2
+FRA/RAC/ONLINELOG/group_3.265.961583989
YES INACTIVE 50
4 2
+DATA/RAC/ONLINELOG/group_4.289.961583993
YES ACTIVE 50
4 2
+FRA/RAC/ONLINELOG/group_4.266.961583997
YES ACTIVE 50
7 2
+DATA/RAC/ONLINELOG/group_7.300.980087819
NO CURRENT 100
7 2
+FRA/RAC/ONLINELOG/group_7.362.980087867
NO CURRENT 100
8 2
+DATA/RAC/ONLINELOG/group_8.301.980088099
YES UNUSED 100
8 2
+FRA/RAC/ONLINELOG/group_8.363.980088139
YES UNUSED 100
8 rows selected.
Elapsed: 00:00:42.39
SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> set echo off
set feedback off
set linesize 120
set pagesize 35
set trim on
set trims on
set lines 120
col group# format 999
col thread# format 999
col member format a70 wrap
col status format a10
col archived format a10
SQL> SQL> col fsize format 999 heading "Size (MB)"SQL> SQL> SQL> SQL> SQL> SQL>
SQL> SQL> SQL> SQL>
SQL> /
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983
YES INACTIVE 50
3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989
YES INACTIVE 50
4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993
YES ACTIVE 50
4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997
YES ACTIVE 50
7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819
NO CURRENT 100
7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867
NO CURRENT 100
8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099
YES UNUSED 100
8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139
YES UNUSED 100
Elapsed: 00:00:08.54
SQL>
SQL> alter system switch logfile;
Elapsed: 00:00:06.88
SQL>
SQL> select l.group#, l.thread#, f.member, l.archived, l.status,
(bytes/1024/1024) fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=2 ; 2 3
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983
YES INACTIVE 50
3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989
YES INACTIVE 50
4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993
YES INACTIVE 50
4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997
YES INACTIVE 50
7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819
YES ACTIVE 100
7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867
YES ACTIVE 100
8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099
NO CURRENT 100
8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139
NO CURRENT 100
Elapsed: 00:00:09.10
SQL>
SQL>
SQL> alter database drop logfile group 3;
Elapsed: 00:00:10.56
SQL>
SQL> alter database drop logfile group 4;
Elapsed: 00:00:03.52
SQL>
SQL> select l.group#, l.thread#, f.member, l.archived, l.status,
(bytes/1024/1024) fsize
from v$log l, v$logfile f where f.group# = l.group#
and l.thread#=2 ; 2 3
GROUP# THREAD# MEMBER
ARCHIVED STATUS Size (MB)
------ -------
----------------------------------------------------------------------
---------- ---------- ---------
7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819
YES ACTIVE 100
7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867
YES ACTIVE 100
8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099
NO CURRENT 100
8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139
NO CURRENT 100
Elapsed: 00:00:00.71
SQL>
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 -
64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Advanced Analytics and Real Application Testing options
[oracle@rac2 ~]$
Ad

More Related Content

What's hot (20)

Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from
Anar Godjaev
 
Latin America Tour 2019 - 10 great sql features
Latin America Tour 2019  - 10 great sql featuresLatin America Tour 2019  - 10 great sql features
Latin America Tour 2019 - 10 great sql features
Connor McDonald
 
How to create a pluggable database by cloning an existing local pdb
How to create a pluggable database by cloning an existing local pdbHow to create a pluggable database by cloning an existing local pdb
How to create a pluggable database by cloning an existing local pdb
Marco Vigelini
 
Backup and restore router configuration
Backup and restore router configurationBackup and restore router configuration
Backup and restore router configuration
Vasilis Nikitaras
 
Pro PostgreSQL
Pro PostgreSQLPro PostgreSQL
Pro PostgreSQL
Robert Treat
 
KScope19 - SQL Features
KScope19 - SQL FeaturesKScope19 - SQL Features
KScope19 - SQL Features
Connor McDonald
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
Biju Thomas
 
PostgreSQL Portland Performance Practice Project - Database Test 2 Howto
PostgreSQL Portland Performance Practice Project - Database Test 2 HowtoPostgreSQL Portland Performance Practice Project - Database Test 2 Howto
PostgreSQL Portland Performance Practice Project - Database Test 2 Howto
Mark Wong
 
Get your moneys worth out of your database
Get your moneys worth out of your databaseGet your moneys worth out of your database
Get your moneys worth out of your database
Patrick Barel
 
Moving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASMMoving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASM
Monowar Mukul
 
Complex stories about Sqooping PostgreSQL data
Complex stories about Sqooping PostgreSQL dataComplex stories about Sqooping PostgreSQL data
Complex stories about Sqooping PostgreSQL data
NTT DATA OSS Professional Services
 
12c for Developers - Feb 2014
12c for Developers - Feb 201412c for Developers - Feb 2014
12c for Developers - Feb 2014
Connor McDonald
 
Install tomcat 5.5 in debian os and deploy war file
Install tomcat 5.5 in debian os and deploy war fileInstall tomcat 5.5 in debian os and deploy war file
Install tomcat 5.5 in debian os and deploy war file
Nguyen Cao Hung
 
SQL techniques for faster applications
SQL techniques for faster applicationsSQL techniques for faster applications
SQL techniques for faster applications
Connor McDonald
 
Les09
Les09Les09
Les09
arnold 7490
 
Oracle12c For Developers
Oracle12c For DevelopersOracle12c For Developers
Oracle12c For Developers
Alex Nuijten
 
Embedded R Execution using SQL
Embedded R Execution using SQLEmbedded R Execution using SQL
Embedded R Execution using SQL
Brendan Tierney
 
DB2 Basic Commands - UDB
DB2 Basic Commands - UDBDB2 Basic Commands - UDB
DB2 Basic Commands - UDB
Srinimf-Slides
 
The overview of raid10
The overview of raid10The overview of raid10
The overview of raid10
gary Jiang
 
Lost without a trace
Lost without a traceLost without a trace
Lost without a trace
Sage Computing Services
 
Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from
Anar Godjaev
 
Latin America Tour 2019 - 10 great sql features
Latin America Tour 2019  - 10 great sql featuresLatin America Tour 2019  - 10 great sql features
Latin America Tour 2019 - 10 great sql features
Connor McDonald
 
How to create a pluggable database by cloning an existing local pdb
How to create a pluggable database by cloning an existing local pdbHow to create a pluggable database by cloning an existing local pdb
How to create a pluggable database by cloning an existing local pdb
Marco Vigelini
 
Backup and restore router configuration
Backup and restore router configurationBackup and restore router configuration
Backup and restore router configuration
Vasilis Nikitaras
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
Biju Thomas
 
PostgreSQL Portland Performance Practice Project - Database Test 2 Howto
PostgreSQL Portland Performance Practice Project - Database Test 2 HowtoPostgreSQL Portland Performance Practice Project - Database Test 2 Howto
PostgreSQL Portland Performance Practice Project - Database Test 2 Howto
Mark Wong
 
Get your moneys worth out of your database
Get your moneys worth out of your databaseGet your moneys worth out of your database
Get your moneys worth out of your database
Patrick Barel
 
Moving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASMMoving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASM
Monowar Mukul
 
12c for Developers - Feb 2014
12c for Developers - Feb 201412c for Developers - Feb 2014
12c for Developers - Feb 2014
Connor McDonald
 
Install tomcat 5.5 in debian os and deploy war file
Install tomcat 5.5 in debian os and deploy war fileInstall tomcat 5.5 in debian os and deploy war file
Install tomcat 5.5 in debian os and deploy war file
Nguyen Cao Hung
 
SQL techniques for faster applications
SQL techniques for faster applicationsSQL techniques for faster applications
SQL techniques for faster applications
Connor McDonald
 
Oracle12c For Developers
Oracle12c For DevelopersOracle12c For Developers
Oracle12c For Developers
Alex Nuijten
 
Embedded R Execution using SQL
Embedded R Execution using SQLEmbedded R Execution using SQL
Embedded R Execution using SQL
Brendan Tierney
 
DB2 Basic Commands - UDB
DB2 Basic Commands - UDBDB2 Basic Commands - UDB
DB2 Basic Commands - UDB
Srinimf-Slides
 
The overview of raid10
The overview of raid10The overview of raid10
The overview of raid10
gary Jiang
 

Similar to Redo logfile addition in oracle rac 12c (20)

Curso de MySQL 5.7
Curso de MySQL 5.7Curso de MySQL 5.7
Curso de MySQL 5.7
Eduardo Legatti
 
OpenWorld 2018 - Common Application Developer Disasters
OpenWorld 2018 - Common Application Developer DisastersOpenWorld 2018 - Common Application Developer Disasters
OpenWorld 2018 - Common Application Developer Disasters
Connor McDonald
 
Oracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 samplingOracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 sampling
Kyle Hailey
 
Operation outbreak
Operation outbreakOperation outbreak
Operation outbreak
Prathan Phongthiproek
 
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
ginniapps
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free Migration
Andrew Hutchings
 
glance replicator
glance replicatorglance replicator
glance replicator
irix_jp
 
les04.pdf
les04.pdfles04.pdf
les04.pdf
VAMSICHOWDARY61
 
Pattern Matching with SQL - APEX World Rotterdam 2019
Pattern Matching with SQL - APEX World Rotterdam 2019Pattern Matching with SQL - APEX World Rotterdam 2019
Pattern Matching with SQL - APEX World Rotterdam 2019
Connor McDonald
 
Basic Knowledge on MySql Replication
Basic Knowledge on MySql ReplicationBasic Knowledge on MySql Replication
Basic Knowledge on MySql Replication
Tasawr Interactive
 
Latin America Tour 2019 - pattern matching
Latin America Tour 2019 - pattern matchingLatin America Tour 2019 - pattern matching
Latin America Tour 2019 - pattern matching
Connor McDonald
 
SecZone 2011: Scrubbing SAP clean with SOAP
SecZone 2011: Scrubbing SAP clean with SOAPSecZone 2011: Scrubbing SAP clean with SOAP
SecZone 2011: Scrubbing SAP clean with SOAP
Chris John Riley
 
16 MySQL Optimization #burningkeyboards
16 MySQL Optimization #burningkeyboards16 MySQL Optimization #burningkeyboards
16 MySQL Optimization #burningkeyboards
Denis Ristic
 
Thomas+Niewel+ +Oracletuning
Thomas+Niewel+ +OracletuningThomas+Niewel+ +Oracletuning
Thomas+Niewel+ +Oracletuning
afa reg
 
MySQL SQL Tutorial
MySQL SQL TutorialMySQL SQL Tutorial
MySQL SQL Tutorial
Chien Chung Shen
 
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0
Santosh Kangane
 
Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle
Kyle Hailey
 
Rmoug ashmaster
Rmoug ashmasterRmoug ashmaster
Rmoug ashmaster
Kyle Hailey
 
SAS ONLINE TRAINING
SAS ONLINE TRAININGSAS ONLINE TRAINING
SAS ONLINE TRAINING
TRAINING ICON
 
Sas online training
Sas online trainingSas online training
Sas online training
TRAINING ICON
 
OpenWorld 2018 - Common Application Developer Disasters
OpenWorld 2018 - Common Application Developer DisastersOpenWorld 2018 - Common Application Developer Disasters
OpenWorld 2018 - Common Application Developer Disasters
Connor McDonald
 
Oracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 samplingOracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 sampling
Kyle Hailey
 
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
ginniapps
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free Migration
Andrew Hutchings
 
glance replicator
glance replicatorglance replicator
glance replicator
irix_jp
 
Pattern Matching with SQL - APEX World Rotterdam 2019
Pattern Matching with SQL - APEX World Rotterdam 2019Pattern Matching with SQL - APEX World Rotterdam 2019
Pattern Matching with SQL - APEX World Rotterdam 2019
Connor McDonald
 
Basic Knowledge on MySql Replication
Basic Knowledge on MySql ReplicationBasic Knowledge on MySql Replication
Basic Knowledge on MySql Replication
Tasawr Interactive
 
Latin America Tour 2019 - pattern matching
Latin America Tour 2019 - pattern matchingLatin America Tour 2019 - pattern matching
Latin America Tour 2019 - pattern matching
Connor McDonald
 
SecZone 2011: Scrubbing SAP clean with SOAP
SecZone 2011: Scrubbing SAP clean with SOAPSecZone 2011: Scrubbing SAP clean with SOAP
SecZone 2011: Scrubbing SAP clean with SOAP
Chris John Riley
 
16 MySQL Optimization #burningkeyboards
16 MySQL Optimization #burningkeyboards16 MySQL Optimization #burningkeyboards
16 MySQL Optimization #burningkeyboards
Denis Ristic
 
Thomas+Niewel+ +Oracletuning
Thomas+Niewel+ +OracletuningThomas+Niewel+ +Oracletuning
Thomas+Niewel+ +Oracletuning
afa reg
 
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0
Santosh Kangane
 
Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle
Kyle Hailey
 
Ad

Recently uploaded (20)

Refactoring meta-rauc-community: Cleaner Code, Better Maintenance, More Machines
Refactoring meta-rauc-community: Cleaner Code, Better Maintenance, More MachinesRefactoring meta-rauc-community: Cleaner Code, Better Maintenance, More Machines
Refactoring meta-rauc-community: Cleaner Code, Better Maintenance, More Machines
Leon Anavi
 
Google DeepMind’s New AI Coding Agent AlphaEvolve.pdf
Google DeepMind’s New AI Coding Agent AlphaEvolve.pdfGoogle DeepMind’s New AI Coding Agent AlphaEvolve.pdf
Google DeepMind’s New AI Coding Agent AlphaEvolve.pdf
derrickjswork
 
AI and Gender: Decoding the Sociological Impact
AI and Gender: Decoding the Sociological ImpactAI and Gender: Decoding the Sociological Impact
AI and Gender: Decoding the Sociological Impact
SaikatBasu37
 
OpenAI Just Announced Codex: A cloud engineering agent that excels in handlin...
OpenAI Just Announced Codex: A cloud engineering agent that excels in handlin...OpenAI Just Announced Codex: A cloud engineering agent that excels in handlin...
OpenAI Just Announced Codex: A cloud engineering agent that excels in handlin...
SOFTTECHHUB
 
Who's choice? Making decisions with and about Artificial Intelligence, Keele ...
Who's choice? Making decisions with and about Artificial Intelligence, Keele ...Who's choice? Making decisions with and about Artificial Intelligence, Keele ...
Who's choice? Making decisions with and about Artificial Intelligence, Keele ...
Alan Dix
 
Top 5 Qualities to Look for in Salesforce Partners in 2025
Top 5 Qualities to Look for in Salesforce Partners in 2025Top 5 Qualities to Look for in Salesforce Partners in 2025
Top 5 Qualities to Look for in Salesforce Partners in 2025
Damco Salesforce Services
 
AI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamsonAI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamson
UXPA Boston
 
Crazy Incentives and How They Kill Security. How Do You Turn the Wheel?
Crazy Incentives and How They Kill Security. How Do You Turn the Wheel?Crazy Incentives and How They Kill Security. How Do You Turn the Wheel?
Crazy Incentives and How They Kill Security. How Do You Turn the Wheel?
Christian Folini
 
Secondary Storage for a microcontroller system
Secondary Storage for a microcontroller systemSecondary Storage for a microcontroller system
Secondary Storage for a microcontroller system
fizarcse
 
Top Hyper-Casual Game Studio Services
Top  Hyper-Casual  Game  Studio ServicesTop  Hyper-Casual  Game  Studio Services
Top Hyper-Casual Game Studio Services
Nova Carter
 
Developing Product-Behavior Fit: UX Research in Product Development by Krysta...
Developing Product-Behavior Fit: UX Research in Product Development by Krysta...Developing Product-Behavior Fit: UX Research in Product Development by Krysta...
Developing Product-Behavior Fit: UX Research in Product Development by Krysta...
UXPA Boston
 
Building Connected Agents: An Overview of Google's ADK and A2A Protocol
Building Connected Agents:  An Overview of Google's ADK and A2A ProtocolBuilding Connected Agents:  An Overview of Google's ADK and A2A Protocol
Building Connected Agents: An Overview of Google's ADK and A2A Protocol
Suresh Peiris
 
Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)
Kaya Weers
 
Cybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and MitigationCybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and Mitigation
VICTOR MAESTRE RAMIREZ
 
Middle East and Africa Cybersecurity Market Trends and Growth Analysis
Middle East and Africa Cybersecurity Market Trends and Growth Analysis Middle East and Africa Cybersecurity Market Trends and Growth Analysis
Middle East and Africa Cybersecurity Market Trends and Growth Analysis
Preeti Jha
 
Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?
Eric Torreborre
 
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Maarten Verwaest
 
Right to liberty and security of a person.pdf
Right to liberty and security of a person.pdfRight to liberty and security of a person.pdf
Right to liberty and security of a person.pdf
danielbraico197
 
Computer Systems Quiz Presentation in Purple Bold Style (4).pdf
Computer Systems Quiz Presentation in Purple Bold Style (4).pdfComputer Systems Quiz Presentation in Purple Bold Style (4).pdf
Computer Systems Quiz Presentation in Purple Bold Style (4).pdf
fizarcse
 
Best 10 Free AI Character Chat Platforms
Best 10 Free AI Character Chat PlatformsBest 10 Free AI Character Chat Platforms
Best 10 Free AI Character Chat Platforms
Soulmaite
 
Refactoring meta-rauc-community: Cleaner Code, Better Maintenance, More Machines
Refactoring meta-rauc-community: Cleaner Code, Better Maintenance, More MachinesRefactoring meta-rauc-community: Cleaner Code, Better Maintenance, More Machines
Refactoring meta-rauc-community: Cleaner Code, Better Maintenance, More Machines
Leon Anavi
 
Google DeepMind’s New AI Coding Agent AlphaEvolve.pdf
Google DeepMind’s New AI Coding Agent AlphaEvolve.pdfGoogle DeepMind’s New AI Coding Agent AlphaEvolve.pdf
Google DeepMind’s New AI Coding Agent AlphaEvolve.pdf
derrickjswork
 
AI and Gender: Decoding the Sociological Impact
AI and Gender: Decoding the Sociological ImpactAI and Gender: Decoding the Sociological Impact
AI and Gender: Decoding the Sociological Impact
SaikatBasu37
 
OpenAI Just Announced Codex: A cloud engineering agent that excels in handlin...
OpenAI Just Announced Codex: A cloud engineering agent that excels in handlin...OpenAI Just Announced Codex: A cloud engineering agent that excels in handlin...
OpenAI Just Announced Codex: A cloud engineering agent that excels in handlin...
SOFTTECHHUB
 
Who's choice? Making decisions with and about Artificial Intelligence, Keele ...
Who's choice? Making decisions with and about Artificial Intelligence, Keele ...Who's choice? Making decisions with and about Artificial Intelligence, Keele ...
Who's choice? Making decisions with and about Artificial Intelligence, Keele ...
Alan Dix
 
Top 5 Qualities to Look for in Salesforce Partners in 2025
Top 5 Qualities to Look for in Salesforce Partners in 2025Top 5 Qualities to Look for in Salesforce Partners in 2025
Top 5 Qualities to Look for in Salesforce Partners in 2025
Damco Salesforce Services
 
AI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamsonAI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamson
UXPA Boston
 
Crazy Incentives and How They Kill Security. How Do You Turn the Wheel?
Crazy Incentives and How They Kill Security. How Do You Turn the Wheel?Crazy Incentives and How They Kill Security. How Do You Turn the Wheel?
Crazy Incentives and How They Kill Security. How Do You Turn the Wheel?
Christian Folini
 
Secondary Storage for a microcontroller system
Secondary Storage for a microcontroller systemSecondary Storage for a microcontroller system
Secondary Storage for a microcontroller system
fizarcse
 
Top Hyper-Casual Game Studio Services
Top  Hyper-Casual  Game  Studio ServicesTop  Hyper-Casual  Game  Studio Services
Top Hyper-Casual Game Studio Services
Nova Carter
 
Developing Product-Behavior Fit: UX Research in Product Development by Krysta...
Developing Product-Behavior Fit: UX Research in Product Development by Krysta...Developing Product-Behavior Fit: UX Research in Product Development by Krysta...
Developing Product-Behavior Fit: UX Research in Product Development by Krysta...
UXPA Boston
 
Building Connected Agents: An Overview of Google's ADK and A2A Protocol
Building Connected Agents:  An Overview of Google's ADK and A2A ProtocolBuilding Connected Agents:  An Overview of Google's ADK and A2A Protocol
Building Connected Agents: An Overview of Google's ADK and A2A Protocol
Suresh Peiris
 
Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)
Kaya Weers
 
Cybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and MitigationCybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and Mitigation
VICTOR MAESTRE RAMIREZ
 
Middle East and Africa Cybersecurity Market Trends and Growth Analysis
Middle East and Africa Cybersecurity Market Trends and Growth Analysis Middle East and Africa Cybersecurity Market Trends and Growth Analysis
Middle East and Africa Cybersecurity Market Trends and Growth Analysis
Preeti Jha
 
Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?
Eric Torreborre
 
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Maarten Verwaest
 
Right to liberty and security of a person.pdf
Right to liberty and security of a person.pdfRight to liberty and security of a person.pdf
Right to liberty and security of a person.pdf
danielbraico197
 
Computer Systems Quiz Presentation in Purple Bold Style (4).pdf
Computer Systems Quiz Presentation in Purple Bold Style (4).pdfComputer Systems Quiz Presentation in Purple Bold Style (4).pdf
Computer Systems Quiz Presentation in Purple Bold Style (4).pdf
fizarcse
 
Best 10 Free AI Character Chat Platforms
Best 10 Free AI Character Chat PlatformsBest 10 Free AI Character Chat Platforms
Best 10 Free AI Character Chat Platforms
Soulmaite
 
Ad

Redo logfile addition in oracle rac 12c

  • 1. REDO LOGFILE ADD ACTIVITY IN RAC 11gR2: ``````````````````````````````````````` first check logfiles: ``````````````````` query: set echo off set feedback off set linesize 120 set pagesize 35 set trim on set trims on set lines 120 col group# format 999 col thread# format 999 col member format a70 wrap col status format a10 col archived format a10 col fsize format 999 heading "Size (MB)" select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# order by 1,2 / GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 YES INACTIVE 50 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 YES INACTIVE 50 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 NO CURRENT 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 NO CURRENT 50 3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983 YES INACTIVE 50 3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989 YES INACTIVE 50 4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993 NO CURRENT 50 4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997 NO CURRENT 50 We will add new logfiles in thread 1 and 2 of size 100M. So we can observe here thread 1 having two groups i.e. group 1&2, similarly thread 2 having two groups i.e. group 3&4 of logfile size 50M. Now we'll add two new groups for thread 1 ( group 5&6) & for thread 2 (group
  • 2. 7&8) respectively. alter database add logfile thread 1 group 5 ('+DATA','+FRA') size 100M; alter database add logfile thread 1 group 6 ('+DATA','+FRA') size 100M; alter database add logfile thread 2 group 7 ('+DATA','+FRA') size 100M; alter database add logfile thread 2 group 8 ('+DATA','+FRA') size 100M; After that please check logfiles being added or not: select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# order by 1,2 / GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 YES INACTIVE 50 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 YES INACTIVE 50 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 NO CURRENT 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 NO CURRENT 50 3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983 YES INACTIVE 50 3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989 YES INACTIVE 50 4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993 NO CURRENT 50 4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997 NO CURRENT 50 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 YES UNUSED 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 YES UNUSED 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 YES UNUSED 100 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 YES UNUSED 100 7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819 YES UNUSED 100 7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867 YES UNUSED 100 8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099 YES UNUSED 100 8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139 YES UNUSED 100 Elapsed: 00:00:09.08 Now we will login both the nodes with different putty session and will run " alter system swith logfile; " until thread 1 & 2 groups get switched and the 50M logfile get inactive
  • 3. respectively. alter system switch logfile; select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=1 ; alter system switch logfile; select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=2 ; Then we can drop inactive groups for thread 1 & 2: from instance 1: alter database drop logfile group 1; alter database drop logfile group 2; from instance 2: alter database drop logfile group 3; alter database drop logfile group 4; ( Note please check properly before dropping logfile i.e. the status must be "INACTIVE" for both the logfiles in groups ) Here i have dropped instance 2 logfile groups first after that instance 1. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ check following activity logs: login as: root root@192.168.78.51's password: Last login: Fri Jun 29 13:10:25 2018 from 192.168.78.1 [root@rac1 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_rac1-lv_root 27G 14G 12G 54% / tmpfs 2.0G 711M 1.4G 35% /dev/shm /dev/sda1 485M 55M 405M 12% /boot 12cR1_softs 430G 330G 101G 77% /media/sf_12cR1_softs /dev/asm/shared-385 1.0G 144M 881M 14% /SHARED [root@rac1 ~]# [root@rac1 ~]# [root@rac1 ~]# [root@rac1 ~]# [root@rac1 ~]# [root@rac1 ~]# [root@rac1 ~]# [root@rac1 ~]# su - oracle ================================================================== SETTING ENVIRONMENT 1. Grid 2. Database Enter your choice : 2 [oracle@rac1 ~]$ [oracle@rac1 ~]$
  • 4. [oracle@rac1 ~]$ [oracle@rac1 ~]$ [oracle@rac1 ~]$sqlplus / as sysdba SQL*Plus: Release 12.1.0.1.0 Production on Fri Jun 29 14:28:29 2018 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Advanced Analytics and Real Application Testing options SQL> set echo off set feedback off set linesize 120 set pagesize 35 set trim on set trims on set lines 120 col group# format 999 col thread# format 999 col member format a70 wrap col status format a10 col archived format a10 col fsize format 999 heading "Size (MB)" select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# order by 1,2 / SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> 2 3 4 5 6 7 8 9 10 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 YES INACTIVE 50 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 YES INACTIVE 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 NO CURRENT 50 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 NO CURRENT 50 3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983 YES INACTIVE 50 3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989 YES INACTIVE 50 4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993 NO CURRENT 50 4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997 NO CURRENT 50 SQL> SQL>
  • 5. SQL> SQL> SQL> SQL> alter database add logfile thread 1 group 5 ('+DATA','+FRA') size 100M; SQL> SQL> SQL> alter database add logfile thread 1 group 6 ('+DATA','+FRA') size 100M; SQL> SQL> alter database add logfile thread 2 group 7 ('+DATA','+FRA') size 100M; SQL> SQL> SQL> set timing on SQL> SQL> alter database add logfile thread 2 group 8 ('+DATA','+FRA') size 100M; Elapsed: 00:01:21.18 SQL> SQL> SQL> set echo off set feedback off set linesize 120 set pagesize 35 set trim on set trims on set lines 120 col group# format 999 col thread# format 999 col member format a70 wrap col status format a10 col archived format a10 col fsize format 999 heading "Size (MB)" select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# order by 1,2 /SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> 2 3 4 5 6 7 8 9 10 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 YES INACTIVE 50 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 YES INACTIVE 50 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 NO CURRENT 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 NO CURRENT 50 3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983 YES INACTIVE 50 3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989 YES INACTIVE 50 4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993 NO CURRENT 50 4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997 NO CURRENT 50
  • 6. 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 YES UNUSED 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 YES UNUSED 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 YES UNUSED 100 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 YES UNUSED 100 7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819 YES UNUSED 100 7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867 YES UNUSED 100 8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099 YES UNUSED 100 8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139 YES UNUSED 100 Elapsed: 00:00:09.08 SQL> SQL> SQL> SQL> alter system switch logfile; Elapsed: 00:00:14.14 SQL> SQL> SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# order by 1,2 / 2 3 4 5 6 7 8 9 10 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 YES INACTIVE 50 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 YES INACTIVE 50 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 NO ACTIVE 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 NO ACTIVE 50 3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983 YES INACTIVE 50 3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989 YES INACTIVE 50 4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993 NO CURRENT 50 4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997 NO CURRENT 50 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 NO CURRENT 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 NO CURRENT 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 YES UNUSED 100 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 YES UNUSED 100
  • 7. 7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819 YES UNUSED 100 7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867 YES UNUSED 100 8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099 YES UNUSED 100 8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139 YES UNUSED 100 Elapsed: 00:00:17.09 SQL> SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=1 ; 2 3 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 YES ACTIVE 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 YES ACTIVE 50 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 YES INACTIVE 50 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 YES INACTIVE 50 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 NO CURRENT 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 NO CURRENT 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 YES UNUSED 100 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 YES UNUSED 100 Elapsed: 00:00:09.42 SQL> alter system switch logfile; Elapsed: 00:00:05.75 SQL> SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=1 ; 2 3 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 YES ACTIVE 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 YES ACTIVE 50 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 YES INACTIVE 50 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 YES INACTIVE 50 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 YES ACTIVE 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 YES ACTIVE 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 NO CURRENT 100
  • 8. 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 NO CURRENT 100 Elapsed: 00:00:13.75 SQL> alter system switch logfile; Elapsed: 00:00:09.54 SQL> SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=1 ; 2 3 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 YES ACTIVE 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 YES ACTIVE 50 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 NO CURRENT 50 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 NO CURRENT 50 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 YES ACTIVE 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 YES ACTIVE 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 NO ACTIVE 100 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 NO ACTIVE 100 Elapsed: 00:00:19.82 SQL> SQL> alter system switch logfile; Elapsed: 00:00:42.84 SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=1 ; 2 3 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 NO CURRENT 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 NO CURRENT 50 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 NO ACTIVE 50 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 NO ACTIVE 50 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 YES ACTIVE 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 YES ACTIVE 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 YES ACTIVE 100 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 YES ACTIVE 100 Elapsed: 00:00:12.23 SQL>
  • 9. SQL> alter system switch logfile; Elapsed: 00:00:15.77 SQL> SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=1 ; 2 3 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 NO ACTIVE 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 NO ACTIVE 50 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 YES ACTIVE 50 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 YES ACTIVE 50 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 NO CURRENT 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 NO CURRENT 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 YES ACTIVE 100 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 YES ACTIVE 100 Elapsed: 00:00:13.55 SQL> SQL> SQL> SQL> SQL> alter system switch logfile; Elapsed: 00:00:00.50 SQL> SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=1 ; 2 3 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 2 1 +DATA/RAC/ONLINELOG/group_2.282.961580091 YES INACTIVE 50 2 1 +FRA/RAC/ONLINELOG/group_2.264.961580095 YES INACTIVE 50 1 1 +DATA/RAC/ONLINELOG/group_1.281.961580081 YES INACTIVE 50 1 1 +FRA/RAC/ONLINELOG/group_1.263.961580087 YES INACTIVE 50 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 YES ACTIVE 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 YES ACTIVE 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 NO CURRENT 100 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 NO CURRENT 100 Elapsed: 00:00:00.17
  • 10. SQL> SQL> alter database drop logfile group 1; Elapsed: 00:00:01.87 SQL> alter database drop logfile group 2; Elapsed: 00:00:01.22 SQL> SQL> SQL> SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=1 ; 2 3 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 YES ACTIVE 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 YES ACTIVE 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 NO CURRENT 100 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 NO CURRENT 100 Elapsed: 00:00:00.20 SQL> SQL> SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# order by 1,2 / 2 3 4 5 6 7 8 9 10 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 5 1 +DATA/RAC/ONLINELOG/group_5.298.980087539 YES ACTIVE 100 5 1 +FRA/RAC/ONLINELOG/group_5.360.980087597 YES ACTIVE 100 6 1 +DATA/RAC/ONLINELOG/group_6.299.980087677 NO CURRENT 100 6 1 +FRA/RAC/ONLINELOG/group_6.361.980087735 NO CURRENT 100 7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819 YES ACTIVE 100 7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867 YES ACTIVE 100 8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099 NO CURRENT 100 8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139 NO CURRENT 100 Elapsed: 00:00:00.19 SQL> SQL>
  • 11. SQL> SQL> SQL> SQL> SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Advanced Analytics and Real Application Testing options [oracle@rac1 ~]$ ```````````````````````````````````` login as: root root@192.168.78.52's password: Last login: Fri Jun 29 13:11:41 2018 from 192.168.78.1 [root@rac2 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_rac1-lv_root 27G 14G 12G 53% / tmpfs 2.0G 638M 1.4G 32% /dev/shm /dev/sda1 485M 55M 405M 12% /boot 12cR1_softs 430G 330G 101G 77% /media/sf_12cR1_softs /dev/asm/shared-385 1.0G 144M 881M 14% /SHARED [root@rac2 ~]# [root@rac2 ~]# [root@rac2 ~]# [root@rac2 ~]# su - oracle ================================================================== SETTING ENVIRONMENT 1. Grid 2. Database Enter your choice : 2 [oracle@rac2 ~]$sqlplus / as sysdba SQL*Plus: Release 12.1.0.1.0 Production on Fri Jun 29 14:44:12 2018 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Advanced Analytics and Real Application Testing options SQL> set timing on SQL> set lines 200 pages 200 SQL> SQL> SQL> SQL> SQL> SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=2 ; 2 3
  • 12. GROUP# THREAD# ---------- ---------- MEMBER -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ---------------------------------------- ARC STATUS FSIZE --- ---------------- ---------- 3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983 YES INACTIVE 50 3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989 YES INACTIVE 50 4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993 YES ACTIVE 50 4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997 YES ACTIVE 50 7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819 NO CURRENT 100 7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867 NO CURRENT 100 8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099 YES UNUSED 100 8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139 YES UNUSED 100 8 rows selected. Elapsed: 00:00:42.39 SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> set echo off set feedback off set linesize 120 set pagesize 35 set trim on set trims on set lines 120 col group# format 999 col thread# format 999 col member format a70 wrap col status format a10 col archived format a10 SQL> SQL> col fsize format 999 heading "Size (MB)"SQL> SQL> SQL> SQL> SQL> SQL>
  • 13. SQL> SQL> SQL> SQL> SQL> / GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983 YES INACTIVE 50 3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989 YES INACTIVE 50 4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993 YES ACTIVE 50 4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997 YES ACTIVE 50 7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819 NO CURRENT 100 7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867 NO CURRENT 100 8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099 YES UNUSED 100 8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139 YES UNUSED 100 Elapsed: 00:00:08.54 SQL> SQL> alter system switch logfile; Elapsed: 00:00:06.88 SQL> SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=2 ; 2 3 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 3 2 +DATA/RAC/ONLINELOG/group_3.288.961583983 YES INACTIVE 50 3 2 +FRA/RAC/ONLINELOG/group_3.265.961583989 YES INACTIVE 50 4 2 +DATA/RAC/ONLINELOG/group_4.289.961583993 YES INACTIVE 50 4 2 +FRA/RAC/ONLINELOG/group_4.266.961583997 YES INACTIVE 50 7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819 YES ACTIVE 100 7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867 YES ACTIVE 100 8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099 NO CURRENT 100 8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139 NO CURRENT 100 Elapsed: 00:00:09.10 SQL> SQL> SQL> alter database drop logfile group 3; Elapsed: 00:00:10.56 SQL> SQL> alter database drop logfile group 4; Elapsed: 00:00:03.52 SQL>
  • 14. SQL> select l.group#, l.thread#, f.member, l.archived, l.status, (bytes/1024/1024) fsize from v$log l, v$logfile f where f.group# = l.group# and l.thread#=2 ; 2 3 GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB) ------ ------- ---------------------------------------------------------------------- ---------- ---------- --------- 7 2 +DATA/RAC/ONLINELOG/group_7.300.980087819 YES ACTIVE 100 7 2 +FRA/RAC/ONLINELOG/group_7.362.980087867 YES ACTIVE 100 8 2 +DATA/RAC/ONLINELOG/group_8.301.980088099 NO CURRENT 100 8 2 +FRA/RAC/ONLINELOG/group_8.363.980088139 NO CURRENT 100 Elapsed: 00:00:00.71 SQL> SQL> SQL> SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Advanced Analytics and Real Application Testing options [oracle@rac2 ~]$
  翻译: