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?
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 ********************************************************************************
<font size="2"> </font> <div>Hello,</div> <div> </div> <div>I have a general issue with loading data into a Oracle <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://9.2.0.4/" target="_blank">9 .2.0.4</a> database on solaris 8. I reduced it down to a simple statement which takes 1 second on my PC (oracle <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://9.2.0.6/ " target="_blank">9.2.0.6</a>) but takes 20 seconds on the <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://9.2.0.4/" target="_blank"> 9.2.0.4</a> database on solaris.</div> <div>I traced it and the trace showed a 19 second wait on log buffer space. (see trace output)</div> <div>I increased the value of log_buffer and set disk_async_io=FALSE (increasing the db_writers) but this didn't make a difference</div> <div>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)</div> <div>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? </div> <div> </div> <div>Hope someone can help me with this... Jaco Polet</div> <div> </div> <div>The formatted trace:</div> <div> </div> <div>insert into t_jpo select * from test_tabel</div> <p>call count cpu elapsed disk query current rows<br>-- ---- -- --- -- ----- -- ---- -- -- ---- -- -- ---- --- -- ---- -- -- ---- --<br>Parse 1 0.01 0.00 0 0 0 0 <br>Execute 1 0.90 20.08 0 2920 7664 32114<br>Fetch 0 0.00 0.00 0 0 0 0<br>-- ---- -- --- -- ----- -- ---- -- -- ------ - -- ---- -- -- ---- -- -- ---- -- <span></span> <br>total 2 0.91 20.09 0 2920 7664 32114</p> <p>Misses in library cache during parse: 1<br>Optimizer goal: CHOOSE<br>Parsing user id: 1340 (PERF)</p> <p>Rows Row Source Operation<br>-- ---- -- ------ -- ---- ---- ---- ---- ---- ---- ---- ----<br> 32114 TABLE ACCESS FULL TEST_TABEL (cr=1182 r=0 w=0 time=96619 us)</p> <p>error during execute of EXPLAIN PLAN statement<br>ORA-00942 (See ORA-00942.ora-code.com): table or view does not exist</p> <p>parse error offset: 109</p> <p>Elapsed times include waiting on following events:<br> Event waited on Times Max. Wait Total Waited<br> -- ---- -- -- ---- ---- ---- ---- ---- -- Waited -- ---- -- -- ---- -- --<br> log buffer space 43   ; 1.00 19.18<br> SQL*Net message to client 1 0.00 0.00<br> SQL*Net message from client 1 2.49 2.49<br>*********************** ********************************************************* <br></p>