Below is a quick and to the point example of how to quickly change you current logfile sizes.
Log in as sys
Select * from v$log;
- (The Group# field will tell you what you current highest logfile group number being used is).
Select * from v$controlfile_record_section where type ='REDO LOG';
- (Comparing the Records_Used against the Records_Total will tell you how man more groups can be added).
Alter database add logfile group 5 ''+DGRP_RAID5_01_0000' size 1G reuse;
Alter database add logfile group 6 ''+DGRP_RAID5_01_0000' size 1G reuse;
Alter database add logfile group 7 ''+DGRP_RAID5_01_0000' size 1G reuse;
Alter database add logfile group 8 ''+DGRP_RAID5_01_0000' size 1G reuse;
Or
Alter database add logfile group 5 ''+DGRP_RAID5_01_0000' size 1G reuse
,''+DGRP_RAID5_01_0000' size 1G reuse;
Alter database add logfile group 6 ''+DGRP_RAID5_01_0000' size 1G reuse
,''+DGRP_RAID5_01_0000' size 1G reuse;
Alter database add logfile group 7 ''+DGRP_RAID5_01_0000' size 1G reuse
,''+DGRP_RAID5_01_0000' size 1G reuse;
Alter database add logfile group 8 ''+DGRP_RAID5_01_0000' size 1G reuse
, ''+DGRP_RAID5_01_0000' size 1G reuse;
-(Add your new logfile groups).
Select * from v$log;
-(Use the Status filed to ensure that none of you old logfile groups are "CURRENT").
-(If any of them are, then use the following as many times as necessary to move the "CURRENT" to a new log).
Alter system switch logfile;
Alter system checkpoint;
-(This will force a checkpoint and write all the current contents of the logs to the appropriate data file(s)).
Alter database drop logfile group 1;
Alter database drop logfile group 2;
Alter database drop logfile group 3;
Alter database drop logfile group 3;
-(This will drop the old log file groups).
Select * form v$log;
-(To see your handy work).
Some thoughts gleaned from my years of Oracle Database Administration experience (version 5 through 12c). Primarily focused on Unix/Linux OS's, dealing with Very Large Databases (multi-terabyte). Some tables in excess of 700 gigabytes, ASM, RAC, and a lot of other fun things. I might even add some thoughts about third party Campaign Tools, such as Unica which I use to support. Who knows where we might end up.
Showing posts with label oracle redo logs logfile groups resizing increasing. Show all posts
Showing posts with label oracle redo logs logfile groups resizing increasing. Show all posts
Thursday, April 12, 2012
Subscribe to:
Comments (Atom)