Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Q: Filesystem choice for log_archive_dest

Q: Filesystem choice for log_archive_dest

2005-06-24       - By Carel-Jan Engel

Reply:     <<     11     12     13     14     15     16     17  

Dimitri,

Writing 'a' spoolfile/report from SQL*Plus to the buffers of a
filesystem is completely different from writing huge amounts of archived
redo log files by the ARCH process to disk (or OS cache, or whatever).

The report is small enough to be kept in the buffers. A continous stream
of archived redo log files is not, they will fill up the buffer. From
that point onwards the OS then needs to write a block to disk at the one
end of the buffer before it can receive a new block from the ARCH
process. So, after the buffers have been filled, but the disk-writes
keep coming, the only difference between buffered and direct I/O is the
extra step for buffer-handling. At that moment the buffered I/O starts
being slower, consuming more resources than direct I/O. Apart from that,
as stated in this thread before, buffering archived log files doesn't
help. It is not likely that you will be reading them soon, so occupying
cache space with these files doesn't help anywhere.

A similar explanation is valid for the fact that having 16 online redo
log files made the problem 'disappear'. That is only true, because the
application obviously doesn't create a continous amount of redo for the
database. During the interval that less redo gets generated, the ARCH
process is able to catch up. When the load increases (because the
business gets more succesful), or just goes flat at a higher level, the
problem might pop up again in the future. You should monitor the amount
of unarchived online redo logs carefully. When that gets close to 16 at
peak levels, it's time to raise the amount of online redo log groups
again, or tune the destination of your archives in a better way.

Best regards, Carel-Jan


On Thu, 2005-06-23 at 21:45, Radoulov, Dimitre wrote:

> Agreed,
> but may be I'm missing something here: if the "writing" from sqlplus to the
> spool file is so much slower, why the would the writing from online redo to
> filesystem archive be faster? What's  the difference between the two
> writings?
>
>
> Thanks,
> Dimitre
>
>
> -- -- Original Message -- --
> From: "Kevin Closson" <kevinc@(protected)>
> To: <oracle-l@(protected)>
> Sent: Thursday, June 23, 2005 9:29 PM
> Subject: RE: Q: Filesystem choice for log_archive_dest
>
>
> > >phone company with all those SMS services). So now I'm trying
> >>to find the technical explanation of why one could need a
> >>direct IO filesystem for the archived log files.
> >
> > life is an unending series of choices. If you want to
> > preserve your memory, you don't want to spool through the
> > buffered path. If you cannot configure enough logs and
> > fast enough disk to meet the requirement in the direct path,
> > you have to go buffered. No cut and dried answer, but those
> > are the ingredients to consider.
> >
> >>So, we ran another test today with another query, the results:
> >>spooling on the direct IO filesystem: 30min, on the local
> >>filesystem: 49s.
> >
> > there should be no mystery that writing to memory is
> > orders of magnitude faster than disk.
> >
> >
> >
> >>
> >>
> >>
> >>Thanks
> >>Dimitre
> >>
> >>
> >>-- -- Original Message -- --
> >>From: "Kevin Closson" <kevinc@(protected)>
> >>To: <oracle-l@(protected)>
> >>Sent: Thursday, June 23, 2005 6:21 PM
> >>Subject: RE: Q: Filesystem choice for log_archive_dest
> >>
> >>
> >>>
> >>> >So I was wondering, could the direct IO be beneficial for the
> >>> log_archive_dest filesystem in some cases?
> >>>
> >>> yep...see my last post. This just needs tuning. how many
> >>> online logs do you have and what size are they?
> >>>
> >>> --
> >>> http://www.freelists.org/webpage/oracle-l
> >>
> >>
> > --
> > http://www.freelists.org/webpage/oracle-l
>
> --
> http://www.freelists.org/webpage/oracle-l

===
If you think education is expensive, try ignorance. (Derek Bok)
===

DBA!ert, Independent Oracle consultancy
Kastanjelaan 61C
2743 BX  Waddinxveen
The Netherlands
tel. +31 (0) 182 64 04 28
fax +31 (0) 182 64 04 29
e-mail info.dbalert@(protected)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
 <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.10">
</HEAD>
<BODY>
Dimitri,<BR>
<BR>
Writing 'a' spoolfile/report from SQL*Plus to the buffers of a filesystem is
completely different from writing huge amounts of archived redo log files by
the ARCH process to disk (or OS cache, or whatever).<BR>
<BR>
The report is small enough to be kept in the buffers. A continous stream of
archived redo log files is not, they will fill up the buffer. From that point
onwards the OS then needs to write a block to disk at the one end of the buffer
before it can receive a new block from the ARCH process. So, after the buffers
have been filled, but the disk-writes keep coming, the only difference between
buffered and direct I/O is the extra step for buffer-handling. At that moment
the buffered I/O starts being slower, consuming more resources than direct I/O.
Apart from that, as stated in this thread before, buffering archived log files
doesn't help. It is not likely that you will be reading them soon, so occupying
cache space with these files doesn't help anywhere. <BR>
<BR>
A similar explanation is valid for the fact that having 16 online redo log
files made the problem 'disappear'. That is only true, because the application
obviously doesn't create a continous amount of redo for the database. During
the interval that less redo gets generated, the ARCH process is able to catch
up. When the load increases (because the business gets more succesful), or just
goes flat at a higher level, the problem might pop up again in the future. You
should monitor the amount of unarchived online redo logs carefully. When that
gets close to 16 at peak levels, it's time to raise the amount of online redo
log groups again, or tune the destination of your archives in a better way.<BR>
<BR>
Best regards, Carel-Jan <BR>
<BR>
<BR>
On Thu, 2005-06-23 at 21:45, Radoulov, Dimitre wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Agreed,
but may be I'm missing something here: if the &quot;writing&quot; from sqlplus
to the
spool file is so much slower, why the would the writing from online redo to
filesystem archive be faster? What's  the difference between the two
writings?


Thanks,
Dimitre


-- -- Original Message -- --
From: &quot;Kevin Closson&quot; &lt;kevinc@(protected)&gt;
To: &lt;oracle-l@(protected)&gt;
Sent: Thursday, June 23, 2005 9:29 PM
Subject: RE: Q: Filesystem choice for log_archive_dest


&gt; &gt;phone company with all those SMS services). So now I'm trying
&gt;&gt;to find the technical explanation of why one could need a
&gt;&gt;direct IO filesystem for the archived log files.
&gt;
&gt; life is an unending series of choices. If you want to
&gt; preserve your memory, you don't want to spool through the
&gt; buffered path. If you cannot configure enough logs and
&gt; fast enough disk to meet the requirement in the direct path,
&gt; you have to go buffered. No cut and dried answer, but those
&gt; are the ingredients to consider.
&gt;
&gt;&gt;So, we ran another test today with another query, the results:
&gt;&gt;spooling on the direct IO filesystem: 30min, on the local
&gt;&gt;filesystem: 49s.
&gt;
&gt; there should be no mystery that writing to memory is
&gt; orders of magnitude faster than disk.
&gt;
&gt;
&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;Thanks
&gt;&gt;Dimitre
&gt;&gt;
&gt;&gt;
&gt;&gt;-- -- Original Message -- --
&gt;&gt;From: &quot;Kevin Closson&quot; &lt;kevinc@(protected)&gt;
&gt;&gt;To: &lt;oracle-l@(protected)&gt;
&gt;&gt;Sent: Thursday, June 23, 2005 6:21 PM
&gt;&gt;Subject: RE: Q: Filesystem choice for log_archive_dest
&gt;&gt;
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; &gt;So I was wondering, could the direct IO be beneficial for the
&gt;&gt;&gt; log_archive_dest filesystem in some cases?
&gt;&gt;&gt;
&gt;&gt;&gt; yep...see my last post. This just needs tuning. how many
&gt;&gt;&gt; online logs do you have and what size are they?
&gt;&gt;&gt;
&gt;&gt;&gt; --
&gt;&gt;&gt; </FONT><A HREF="http://www.freelists.org/webpage/oracle-l"><U>http
://www.freelists.org/webpage/oracle-l</U></A>
<FONT COLOR="#737373">&gt;&gt;
&gt;&gt;
&gt; --
&gt; </FONT><A HREF="http://www.freelists.org/webpage/oracle-l"><U>http://www
.freelists.org/webpage/oracle-l</U></A>
<FONT COLOR="#737373">
--</FONT>
<A HREF="http://www.freelists.org/webpage/oracle-l"><U>http://www.freelists.org
/webpage/oracle-l</U></I></A></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
===<BR>
If you think education is expensive, try ignorance. (Derek Bok)<BR>
===<BR>
<BR>
<FONT COLOR="#ff0000" SIZE="2">DBA</FONT><FONT SIZE="2">!ert, Independent
Oracle consultancy <BR>
Kastanjelaan 61C<BR>
2743 BX&nbsp; Waddinxveen<BR>
The Netherlands<BR>
tel. +31 (0) 182 64 04 28<BR>
fax +31 (0) 182 64 04 29<BR>
e-mail info.dbalert@(protected)</FONT>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>