Redo Logs

Redo Logs

Post by Vinay Josh » Sat, 10 Jan 1998 04:00:00



I have an oracle db which has 3 redo logs 10MB each. Upon investigation,
the redo logs are very big in size. Hardly 5% of the redo log size is
being used. This causes severe problems when automatic archiving is on.
Every time a log switch occurs, the system hiccups (because it is trying
to archive the redo log file). Is there a way of decreasing the size of
the redo logs. (Perhaps  by creating new ones with a smaller size and
deleting the old ones).

Any help appreciated....

 
 
 

Redo Logs

Post by Cheng-Jih Ch » Sat, 10 Jan 1998 04:00:00




Quote:>I have an oracle db which has 3 redo logs 10MB each. Upon investigation,
>the redo logs are very big in size. Hardly 5% of the redo log size is
>being used. This causes severe problems when automatic archiving is on.
>Every time a log switch occurs, the system hiccups (because it is trying
>to archive the redo log file). Is there a way of decreasing the size of
>the redo logs. (Perhaps  by creating new ones with a smaller size and
>deleting the old ones).

You can do this as you suggested: create new groups and drop the old
ones.  Remember, the system needs at least two redo log groups to run.

Alternatively, you may try turning on the ARCH process.  If LGWR is
archiving the redo logs, the engine will pause as the archived log is
written to disk.  To turn on ARCH, in the init.ora file set the
following:

  log_archive_start                          =TRUE

And bounce the engine.  You'll see another ora_ process called
ora_arch_<SID>.

--

The Internet: an empirical test of the idea that a million monkeys banging
on a million keyboards can produce Shakespeare.

 
 
 

Redo Logs

Post by Land » Sat, 10 Jan 1998 04:00:00


10mb is not very big. But, if you want to reduce the size of
of redo log files you will basically have to drop/create new ones
with a smaller size. Remember, two groups of redo logfiles must
be online at all times. So basically the steps would be:

1) drop group 3
2) create a new group 3
3) drop group 2
4) create new group 2
5) drop group 1
6) create new group 1

You will also have to force log switches as you go through this process
since you can not drop a log file that is currently being used. The
command
for this is:  alter system switch logfile;  To see which logfile is
currently active
select * from v$log; When you create your new redo log groups it
would be a good idea to also create a member for that group(on a
different
drive).

One thing I would try before resizing your redo files (v.7x)  is to set
initSID.ora
parm checkpoint_process=true and see if you get better performance
during
a checkpoint (which occurs at a log file switch).

M.Landa


> I have an oracle db which has 3 redo logs 10MB each. Upon
> investigation,
> the redo logs are very big in size. Hardly 5% of the redo log size is
> being used. This causes severe problems when automatic archiving is
> on.
> Every time a log switch occurs, the system hiccups (because it is
> trying
> to archive the redo log file). Is there a way of decreasing the size
> of
> the redo logs. (Perhaps  by creating new ones with a smaller size and
> deleting the old ones).

> Any help appreciated....

 
 
 

Redo Logs

Post by Thomas Ky » Sat, 10 Jan 1998 04:00:00



>I have an oracle db which has 3 redo logs 10MB each. Upon investigation,
>the redo logs are very big in size. Hardly 5% of the redo log size is
>being used. This causes severe problems when automatic archiving is on.
>Every time a log switch occurs, the system hiccups (because it is trying
>to archive the redo log file). Is there a way of decreasing the size of
>the redo logs. (Perhaps  by creating new ones with a smaller size and
>deleting the old ones).

>Any help appreciated....

Why do you feel only 5% of the logfile is being used?  Arch only copies the
relevant portion of the logfile (so if only 5% is used, thats what gets moved).
If I issue:

SQL> alter system switch logfile;

Arch only picks up and moves the portion of the logfile that was used.

3x10meg is actually pretty 'small' in size.  size is relative however, it
depends on the system, I would say though in general, 3x10meg is small.  Can you
provide more information on why you think the logs are switching before they are
used and why you think ARCH is coping 95% empty space?

Thomas Kyte

Oracle Government
Bethesda MD

http://govt.us.oracle.com/    -- downloadable utilities

----------------------------------------------------------------------------
Opinions are mine and do not necessarily reflect those of Oracle Corporation

Anti-Anti Spam Msg: if you want an answer emailed to you,
you have to make it easy to get email to you.  Any bounced
email will be treated the same way i treat SPAM-- I delete it.

 
 
 

Redo Logs

Post by Karl E. J?rgense » Sun, 11 Jan 1998 04:00:00


It's rather simple really:

1)    Figure out what size you want your redo log files (3 Mb ?)
2)    Add three (or more, but at least two) new redo log files with your
wanted size
3)    Force some log switches
4)    drop the old logs (if they're still in use, you'll have to force some
more log switches)

If you're taking cold backups from time to time, you should remember to
modify your scripts accordingly.

If you're using hot backups, you should backup you control file to trace
(just to be on the safe side)

Hope this helps
--
Karl
Oracle Certified DBA


Quote:>I have an oracle db which has 3 redo logs 10MB each. Upon investigation,
>the redo logs are very big in size. Hardly 5% of the redo log size is
>being used. This causes severe problems when automatic archiving is on.
>Every time a log switch occurs, the system hiccups (because it is trying
>to archive the redo log file). Is there a way of decreasing the size of
>the redo logs. (Perhaps  by creating new ones with a smaller size and
>deleting the old ones).

>Any help appreciated....

begin 666 Karl E. J?rgensen.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DKX<F=E;G-E;CM+87)L.T4N



`
end
end
 
 
 

Redo Logs

Post by Sheilah Scheuric » Wed, 14 Jan 1998 04:00:00


Are your log files located on the same disk as something else?  If so, you
may want to consider moving them. This may be what is causing your hiccup.
Look at your alert.log file.  If you have the error "checkpoint not
complete", then it means that your log files are spinning and need to be
increased - not decreased in size. Also, look at the parameter "redo log
space wait time" in your v$sysstat table.  If this is a non-zero value you
either need to increase the size of your log files - this can be validated
in the alert.log (see above), or by increasing the value of your log_buffers
- just be sure that this number is divisable by your block size.

Sheilah Scheurich
DBA
My email is wrong - to send me anything you have to remove "want no spam at
all" from my email address.


> I have an oracle db which has 3 redo logs 10MB each. Upon investigation,
> the redo logs are very big in size. Hardly 5% of the redo log size is
> being used. This causes severe problems when automatic archiving is on.
> Every time a log switch occurs, the system hiccups (because it is trying
> to archive the redo log file). Is there a way of decreasing the size of
> the redo logs. (Perhaps  by creating new ones with a smaller size and
> deleting the old ones).

> Any help appreciated....

 
 
 

1. log buffer space vs. redo log space requests

I am a little confused as to the values I am getting from these two
statistics.

log buffer space in V$SYSTEM_EVENT shows a value for waits which leads me to
believe that the log buffer is not large enough however the redo log space
requests from V$SYSSTAT shows a value of zero.

Therefore one stat tells me there is not enough space while the other tells
me everything is ok.  I think I am misinterpreting these statistics.  Can
someone set me straight.

Oracle 8.1.6 running on solaris.

thanks,
Scott.

2. using SQL Server Temporary tables with ODBC

3. How to check the corruption in online redo logs and archived logs

4. Looking for Btrieve 5 win settings

5. Redo Logs : "cannot allocate new log"

6. Will SQL Server work on NT Workstation?

7. Redo logs and archive logs

8. pgsql/src/backend/utils/mb (Makefile)

9. redo log

10. Archiving of Redo Logs Growing Tremendously

11. Error ocurred during Oracle redo log archival

12. NT Directory Replication for Archive Redo logs???