NNLO TLNO

a _^ = éë= ê î É=çêl ê É qá ^ ÅÜá Ñ = ~Åä

Oracle OCA Courses
Find Top Oracle Institutes in India Get info on Courses,Admissions,Fees Shiksha.com/Oracle-OCA-Course

DBA Tips Archive for Oracle

Resizing / Recreating Online Redo Log Files
by Jeff Hunter, Sr. Database Administrator

One of the best ways I have found to resize or recreate online redo log files and keep the current sequence is to perform it online. In this example, we will resize all online redo logs from 100MB to 250MB while the database is running and use SQL*Plus to drop/recreate them in stages. Before looking at the tasks involved to perform the resize, let's look at the current online redo log groups and their sizes:

SL SLC agop,amme,bbts Q> EET .ru# .ebr .ye 2 FO vlgiea vlgbWEEagop =bgop; RM $ofl , $o HR .ru# .ru# GOP MME RU# EBR BTS YE ----- -------------------- ---------- -------------------- -----1/0/p/rdt/R90rd_0alg u3apoaaaOA2/eog1.o 148760 0,5,0 1/0/p/rdt/R90rd_0blg u4apoaaaOA2/eog1.o 148760 0,5,0 1/0/p/rdt/R90rd_0clg u5apoaaaOA2/eog1.o 148760 0,5,0 2/0/p/rdt/R90rd_0alg u3apoaaaOA2/eog2.o 148760 0,5,0 2/0/p/rdt/R90rd_0blg u4apoaaaOA2/eog2.o 148760 0,5,0 2/0/p/rdt/R90rd_0clg u5apoaaaOA2/eog2.o 148760 0,5,0 3/0/p/rdt/R90rd_0alg u3apoaaaOA2/eog3.o 148760 0,5,0 3/0/p/rdt/R90rd_0blg u4apoaaaOA2/eog3.o 148760 0,5,0 3/0/p/rdt/R90rd_0clg u5apoaaaOA2/eog3.o 148760 0,5,0 9rw slce. os eetd Now let's take a look at the steps involved to resize / recreate all online redo log groups: 1. Make the last redo log CURRENT Force a log switch until the last redo log is marked "CURRENT" by issuing the following command:

SL slc gop,sau fo vlg Q> eet ru# tts rm $o; GOP SAU RU# TTS ----- ------------ -------1CRET URN 2IATV NCIE 3IATV NCIE SL atrsse sic lgie Q> le ytm wth ofl; SL atrsse sic lgie Q> le ytm wth ofl; SL slc gop,sau fo vlg Q> eet ru# tts rm $o;

ï ï ï K Éä ÉåíK çLÇ~í~Ll ê ÉLa _^ | íá á ÇÉî çéã á åÑ ~Åä éëLa ~í~Ä~ëÉ| ^ Çã á ëíê çåLa _^ | PQ ëÜíã ä åá ~íá K

NLQ

3 'u4apoaaaOA2/eog1. Drop first redo log After making the last online redo log file the CURRENT one.-------1UUE NSD 2IATV NCIE 3CRET URN ï ï ï K Éä ÉåíK çLÇ~í~Ll ê ÉLa _^ | íá á ÇÉî çéã á åÑ ~Åä éëLa ~í~Ä~ëÉ| ^ Çã á ëíê çåLa _^ | PQ ëÜíã ä åá ~íá K O LQ . Simply perform a checkpoint on the database: SL ATRSSE CEKON GOA.o' /0/p/rdt/R90rd_0blg.-----------. you should already be aware that if you are going to drop a logfile group. SL ATRDTBS DO LGIEGOP1 Q> LE AAAE RP OFL RU . As a DBA. Force another log switch After re-creating the online redo log group. 4. drop the first online redo log: SL atrdtbs do lgiegop1 Q> le aaae rp ofl ru . Dtbs atrd aaae lee. however. 4 'u5apoaaaOA2/eog1. force a log switch. it cannot be the current logfile group. 3. GOP SAU RU# TTS ----. Dtbs atrd aaae lee. The online redo log group just created should become the "CURRENT" one: SL slc gop.NNLO TLNO a _^ = éë= ê î É=çêl ê É qá ^ ÅÜá Ñ = ~Åä GOP SAU RU# TTS ----. Re-create dropped online redo log group Re-create the dropped redo log group with different size (if desired): SL atrdtbs adlgiegop1( Q> le aaae d ofl ru 2 'u3apoaaaOA2/eog1. Q> LE YTM HCPIT LBL Sse atrd ytm lee. ATRDTBS DO LGIEGOP1 LE AAAE RP OFL RU * ERRa ln 1 RO t ie : OA064 lg1nee frcahrcvr o isac OA2 (hed1 R-12: o edd o rs eoey f ntne R90 tra ) OA032 oln lg1tra 1 'fl_ae' R-01: nie o hed : <ienm> Easy problem to resolve.-----------.sau fo vlg Q> eet ru# tts rm $o.o' sz 20 rue /0/p/rdt/R90rd_0clg) ie 5m es.-------1IATV NCIE 2IATV NCIE 3CRET URN 2.o' /0/p/rdt/R90rd_0alg. where attempting to drop the logfile group resulted in the following error as a result of the logfile group having an active status: SL ATRDTBS DO LGIEGOP1 Q> LE AAAE RP OFL RU . Dtbs atrd aaae lee. I have run into instances.

This document may not be hosted on any other site w ithout my express. RM $ofl . LDAP.o 221400 6. and an Oracle ACE.o 221400 6.o 221400 6.-------1CRET URN 2IATV NCIE 3ATV CIE 5.4.4. writing web-based database administration tools. Author.ye 2 FO vlgiea vlgbWEEagop =bgop. Jeff graduated from Stanislaus State University in Turlock. I w ill in no case be liable for any monetary damages arising from such loss.4. here is a snapshot of all physical files: SL SLC agop. He has been a Sr. All rights reserved.ru# GOP MME RU# EBR BTS YE ----.-------------------. Jeff's other interests include mathematical encryption theory.4. but I disclaim any and all responsibility for any loss. SL slc gop.-----------. damage or destruction of data or any other property w hich may arise from relying on it.iDevelopment.idevelopment. Pennsylvania.0 3/0/p/rdt/R90rd_0blg u4apoaaaOA2/eog3. Java and PL/SQL programming.o 221400 6. os eetd About the Author Jeffrey Hunter is an Oracle Certified Professional.o 221400 6.---------.amme. Database Administrator and Software Engineer for over 18 years and maintains his own website site at: http://www. All articles.o 221400 6.-----1/0/p/rdt/R90rd_0alg u3apoaaaOA2/eog1.0 3/0/p/rdt/R90rd_0clg u5apoaaaOA2/eog3. continue to re-create (or resize) all online redo log groups until all of them are rebuilt. After rebuilding (resizing) all online redo log groups.ru# . and of course Linux. I have made every effort and taken great care in making sure that the material included on my w eb site is technically accurate.0 9rw slce. Java Development Certified Professional.0 1/0/p/rdt/R90rd_0blg u4apoaaaOA2/eog1.o 221400 6. 28-Dec-2011 13:57:14 EST PLQ . Inc.0 3/0/p/rdt/R90rd_0alg u3apoaaaOA2/eog3.4.info.0 2/0/p/rdt/R90rd_0alg u3apoaaaOA2/eog2. Loop back to Step 2 until all logs are rebuilt After re-creating an online redo log group.0 2/0/p/rdt/R90rd_0clg u5apoaaaOA2/eog2. Hunter. Last modified on ï ï ï K Éä ÉåíK çLÇ~í~Ll ê ÉLa _^ | íá á ÇÉî çéã á åÑ ~Åä éëLa ~í~Ä~ëÉ| ^ Çã á ëíê çåLa _^ | PQ ëÜíã ä åá ~íá K Wednesday. programming language processors (compilers and interpreters) in Java and C.-------------------.sau fo vlg Q> eet ru# tts rm $o.info is the copyright of Jeffrey M.4. w ritten permission. capacity planning.4. Linux. located in Pittsburgh.o 221400 6. Application to host any of the material elsew here can be made by contacting me at jhunter@idevelopment.0 2/0/p/rdt/R90rd_0blg u4apoaaaOA2/eog2. $o HR .NNLO TLNO a _^ = éë= ê î É=çêl ê É qá ^ ÅÜá Ñ = ~Åä SL atrsse sic lgie Q> le ytm wth ofl. scripts and material located at the Internet address of http://w w w .4. and physical / logical database design in a UNIX.ebr . California. GOP SAU RU# TTS ----. and Windows server environment. developing high availability solutions. His work includes advanced performance tuning. Hunter and is protected under copyright law s of the United States.4. Copyright (c) 1998-2012 Jeffrey M.ru# .bbts Q> EET .o 221400 6. damage or destruction. prior. Jeff currently works as a Senior Database Administrator for The DBA Zone. with a Bachelor's degree in Computer Science.info.0 1/0/p/rdt/R90rd_0clg u5apoaaaOA2/eog1. database security.

NNLO TLNO a _^ = éë= ê î É=çêl ê É qá ^ ÅÜá Ñ = ~Åä Wednesday. 28-Dec-2011 13:57:14 EST Page Count: 119175 ï ï ï K Éä ÉåíK çLÇ~í~Ll ê ÉLa _^ | íá á ÇÉî çéã á åÑ ~Åä éëLa ~í~Ä~ëÉ| ^ Çã á ëíê çåLa _^ | PQ ëÜíã ä åá ~íá K Q LQ .

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.