Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Insert performance problem

Insert performance problem

From: Harvinder Singh <Harvinder.Singh_at_MetraTech.com>
Date: Thu, 17 Jun 2004 15:23:09 -0400
Message-ID: <D6424CD4C8A3C044BBC49877ED51C5187D9205@ex2003.metratech.com>


Hi,  

We are testing a application prototype and inserting 1000 rows from 1 table and populating into 2nd table in a loop and inserting 1M rows. 2nd table have primary key on 2 column, 1 column unique key and 1 non-unique index on 6 columns
We are seeing tps of only about 5000 whereas if I run same test on sql server tps is between 15000 to 20000  

Following are the stats on the machine:
Oracle 10g on win2k
Writing to hard disk having all the datafiles(raid 5) :Avg disk bytes/write 9000 and 13000

Writing to hard disk having log files                 :Avg disk
bytes/write 48000 and 70000  
Total SGA                                 1024 MB
Database buffers                        950MB
Total Physical memory               2048MB
Database : non-archive mode  

SQL> select * from v$waitstat;  

CLASS                   COUNT       TIME

------------------ ---------- ----------
data block 165643 16218 sort block 0 0 save undo block 0 0 segment header 15 0 save undo header 0 0 free list 0 0 extent map 0 0 1st level bmb 2997 40 2nd level bmb 2 0 3rd level bmb 0 0 bitmap block 0 0 CLASS COUNT TIME
------------------ ---------- ----------
bitmap index block 0 0 file header block 0 0 unused 0 0 system undo header 0 0 system undo block 0 0 undo header 685 69 undo block 6 0

Why is oracle writing in small size to data files and such large sizes to log files?
How can I improve the performance of inserts? Why can I see so high waits for data block?  

Thanks
--Harvinder
 



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Thu Jun 17 2004 - 14:29:42 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US