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
issue with wait on log buffer space. Oracle recommends enable write cache??

issue with wait on log buffer space. Oracle recommends enable write cache??

2006-02-01       - By Jaco Polet

Reply:     1     2     3     4     5     6     7     8     9  

Christo,

The basic problem was the async_io. By using the problem with waiting for
log buffer space was solved.

Everybody thanks for yout input

Jaco



2006/1/31, Christo Kutrovsky <kutrovsky.oracle@(protected)>:
>
> Are you using dedicated redo disk drive?
> How much redo are you generating for this 1 statement ?
>
> 2mb is still pretty small. I usually set it quite large to handle
> spikes. I usually target 1-2 seconds of the disk speed where my redo
> is sitting.
>
> Remeber that redo buffer is "zoned" based on the number of CPUs. You
> want each zone to be at least 500 kb to allow some nice big write
> requests.
>
> For reference, a modern single disk drive is capable at doing 50
> Mb/sec sequencially.
>
> The specific machine I have in mind has 8gb RAM, 2 15k rpm disk drives
> in mirror, and produces 58 Mb/sec. my log_buffer is 45mb and I have 8
> cpus (4 with ht). Usually my write request is in the 1 mb range when
> doing data loads (when not CPU limited).
>
> --
> Christo Kutrovsky
> Senior Database/System Administrator
> The Pythian Group
>
> On 1/31/06, Jaco Polet <jaco.polet@(protected)> wrote:
> >
> > Hello,
> >
> > I have a general issue with loading data into a Oracle 9.2.0.4 database
> on
> > solaris 8. I reduced it down to a simple statement which takes 1 second
> on
> > my PC (oracle 9.2.0.6) but takes 20 seconds on the 9.2.0.4 database on
> > solaris.
> > I traced it and the trace showed a 19 second wait on log buffer space.
> (see
> > trace output)
> > I increased the value of log_buffer and set disk_async_io=FALSE
> (increasing
> > the db_writers) but this didn't make a difference
> > On metalink I found note 263652.1 saying that this was a general issue
> on
> > all platforms which could be fixed by switching on write cache. (It
> doesn't
> > state that is is fixed in a next version)
> > It sounds strange to me that Oracle recommends to write the redo log to
> > cache. Is this correct and if so how do I switch this on  (the redologs
> are
> > on local disks) ? I am also surprised that when searching the internet I
> > don't get any hits on this although it looks like a general issue. What
> am I
> > missing?
> >
> > Hope someone can help me with this... Jaco Polet
> >
> > The formatted trace:
> >
> > insert into t_jpo select * from test_tabel
> >
> > call     count       cpu    elapsed       disk      query    current
> > rows
> > -- ---- -- ---  -- ----- -- ---- -- -- ---- -- -- ---- -- -- ---- --
> > -- ---- --
> > Parse        1      0.01       0.00          0          0          0
> >   0
> > Execute      1      0.90      20.08          0       2920       7664
> > 32114
> > Fetch        0      0.00       0.00          0          0          0
> >   0
> > -- ---- -- ---  -- ----- -- ---- -- -- ---- -- -- ---- -- -- ---- --
> > -- ---- --
> > total        2      0.91      20.09          0       2920       7664
> > 32114
> >
> > Misses in library cache during parse: 1
> > Optimizer goal: CHOOSE
> > Parsing user id: 1340  (PERF)
> >
> > Rows     Row Source Operation
> > -- ----
> > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
> >   32114  TABLE ACCESS FULL TEST_TABEL (cr=1182 r=0 w=0 time=96619 us)
> >
> > error during execute of EXPLAIN PLAN statement
> > ORA-00942 (See ORA-00942.ora-code.com): table or view does not exist
> >
> > parse error offset: 109
> >
> > Elapsed times include waiting on following events:
> >   Event waited on                             Times   Max. Wait  Total
> > Waited
> >   -- ---- ---- ---- ---- ---- ---- ---- --   Waited
> > -- ---- --  -- ---- ----
> >   log buffer space                               43
> > 1.00         19.18
> >   SQL*Net message to client                       1        0.00
> > 0.00
> >   SQL*Net message from client                     1        2.49
> > 2.49
> >
> *****************************************************************************
***
> >
>
>
> --
> Christo Kutrovsky
> Senior Database/System Administrator
> The Pythian Group
>

<div>Christo,</div>
<div>&nbsp;</div>
<div>The basic problem was the async_io. By using the problem with waiting for
log buffer space was solved.</div>
<div>&nbsp;</div>
<div>Everybody thanks for yout input</div>
<div>&nbsp;</div>
<div>Jaco</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">2006/1/31, Christo Kutrovsky &lt;<a href="mailto
:kutrovsky.oracle@(protected)">kutrovsky.oracle@(protected)</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">Are you using dedicated redo disk drive?<br
>How much redo are you generating for this 1 statement ?<br><br>
2mb is still pretty small. I usually set it quite large to handle<br>spikes. I
usually target 1-2 seconds of the disk speed where my redo<br>is sitting.<br>
<br>Remeber that redo buffer is &quot;zoned&quot; based on the number of CPUs.
You
<br>want each zone to be at least 500 kb to allow some nice big write<br
>requests.<br><br>For reference, a modern single disk drive is capable at doing
50<br>Mb/sec sequencially.<br><br>The specific machine I have in mind has 8gb
RAM, 2 15k rpm disk drives
<br>in mirror, and produces 58 Mb/sec. my log_buffer is 45mb and I have 8<br
>cpus (4 with ht). Usually my write request is in the 1 mb range when<br>doing
data loads (when not CPU limited).<br><br>--<br>Christo Kutrovsky<br>
Senior Database/System Administrator<br>The Pythian Group<br><br>On 1/31/06,
Jaco Polet &lt;<a href="mailto:jaco.polet@(protected)">jaco.polet@(protected)</a>
&gt; wrote:<br>&gt;<br>&gt; Hello,<br>&gt;<br>&gt; I have a general issue with
loading data into a Oracle
<a href="http://9.2.0.4">9.2.0.4</a> database on<br>&gt; solaris 8. I reduced
it down to a simple statement which takes 1 second on<br>&gt; my PC (oracle <a
href="http://9.2.0.6">9.2.0.6</a>) but takes 20 seconds on the <a href="http:/
/9.2.0.4">
9.2.0.4</a> database on<br>&gt; solaris.<br>&gt; I traced it and the trace
showed a 19 second wait on log buffer space. (see<br>&gt; trace output)<br>&gt;
I increased the value of log_buffer and set disk_async_io=FALSE (increasing
<br>&gt; the db_writers) but this didn't make a difference<br>&gt; On metalink
I found note 263652.1 saying that this was a general issue on<br>&gt; all
platforms which could be fixed by switching on write cache. (It doesn't
<br>&gt; state that is is fixed in a next version)<br>&gt; It sounds strange to
me that Oracle recommends to write the redo log to<br>&gt; cache. Is this
correct and if so how do I switch this on&nbsp;&nbsp;(the redologs are<br>&gt;
on local disks) ? I am also surprised that when searching the internet I
<br>&gt; don't get any hits on this although it looks like a general issue.
What am I<br>&gt; missing?<br>&gt;<br>&gt; Hope someone can help me with this..
. Jaco Polet<br>&gt;<br>&gt; The formatted trace:<br>&gt;<br>&gt; insert into t
_jpo select * from test_tabel
<br>&gt;<br>&gt; call&nbsp;&nbsp;&nbsp;&nbsp; count&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; cpu&nbsp;&nbsp;&nbsp;&nbsp;elapsed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; disk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query&nbsp;&nbsp;&nbsp;&nbsp
;current<br>&gt; rows<br>&gt; -- ---- -- ---&nbsp;&nbsp;-- ----- -- ---- -- ----
-- --- -- ---- -- -- ---- --<br>&gt; -- ---- --<br>&gt; Parse&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0.01&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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;&nbsp;&nbsp;&nbsp;20.09&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2920&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; 7664<br>&gt; 32114<br>&gt;<br>&gt; Misses in library cache
during parse: 1
<br>&gt; Optimizer goal: CHOOSE<br>&gt; Parsing user id: 1340&nbsp;&nbsp;(PERF)
<br>&gt;<br>&gt; Rows&nbsp;&nbsp;&nbsp;&nbsp; Row Source Operation<br>&gt; -- --
--<br>&gt; -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---<br>&gt;&nbsp;
&nbsp; 32114&nbsp;&nbsp;TABLE ACCESS FULL TEST_TABEL (cr=1182 r=0 w=0 time=96619
us)
<br>&gt;<br>&gt; error during execute of EXPLAIN PLAN statement<br>&gt; ORA
-00942: table or view does not exist<br>&gt;<br>&gt; parse error offset: 109<br>
&gt;<br>&gt; Elapsed times include waiting on following events:<br>
&gt;&nbsp;&nbsp; Event waited on&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Times&nbsp;&nbsp; Max. Wait&nbsp;
&nbsp;Total<br>&gt; Waited<br>&gt;&nbsp;&nbsp; -- ---- ---- ---- ---- ---- -----
-- ----&nbsp;&nbsp; Waited<br>&gt; -- ---- --&nbsp;&nbsp;-- ---- ----<br>&gt;
&nbsp;&nbsp; log buffer space&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 43
<br>&gt; 1.00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 19.18<br>&gt;
&nbsp;&nbsp; SQL*Net message to client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.00<br>&gt; 0.00
<br>&gt;&nbsp;&nbsp; SQL*Net message from client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.49<br>&gt; 2.49
<br>&gt; ***********************************************************************
*********
<br>&gt;<br><br><br>--<br>Christo Kutrovsky<br>Senior Database/System
Administrator<br>The Pythian Group<br></blockquote></div><br>