Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 142721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:58:54+00:00 2026-05-11T07:58:54+00:00

(Database: Oracle 10G R2) It takes 1 minute to insert 100,000 records into a

  • 0

(Database: Oracle 10G R2)

It takes 1 minute to insert 100,000 records into a table. But if the table already contains some records (400K), then it takes 4 minutes and 12 seconds; also CPU-wait jumps up and “Free Buffer Waits” become really high (from dbconsole).

Do you know what’s happing here? Is this because of frequent table extents? The extent size for these tables is 1,048,576 bytes. I have a feeling DB is trying to extend the table storage.

I am really confused about this. So any help would be great!


This is the insert statement:

 begin   for i in 1 .. 100000 loop     insert into customer                 (id, business_name, address1,                  address2, city,                  zip, state, country, fax,                  phone, email                 )          values (customer_seq.nextval, dbms_random.string ('A', 20), dbms_random.string ('A', 20),                  dbms_random.string ('A', 20), dbms_random.string ('A', 20),                  trunc (dbms_random.value (10000, 99999)), 'CA', 'US', '798-779-7987',                  '798-779-7987', 'asdfasf@asfasf.com'                 );   end loop; end; 

Here dstat output (CPU, IO, MEMORY, NET) for :

  1. Empty Table inserts: http://pastebin.com/f40f50dbb
  2. Table with 400K records: http://pastebin.com/f48d8ebc7

Output from v$buffer_pool_statistics

  ID:                       3 NAME:                     DEFAULT BLOCK_SIZE:               8192 SET_MSIZE:                4446 CNUM_REPL:                4446 CNUM_WRITE:               0 CNUM_SET:                 4446 BUF_GOT:                  1407656 SUM_WRITE:                1244533 SUM_SCAN:                 0 FREE_BUFFER_WAIT:         93314 WRITE_COMPLETE_WAIT:      832 BUFFER_BUSY_WAIT:         788 FREE_BUFFER_INSPECTED:    2141883 DIRTY_BUFFERS_INSPECTED:  1030570 DB_BLOCK_CHANGE:          44445969 DB_BLOCK_GETS:            44866836 CONSISTENT_GETS:          8195371 PHYSICAL_READS:           930646 PHYSICAL_WRITES:          1244533  

UPDATE

I dropped indexes off this table and performance improved drastically even when inserting 100K into 600K records table (which took 47 seconds with no CPU wait – see dstat output http://pastebin.com/fbaccb10 ) .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T07:58:54+00:00Added an answer on May 11, 2026 at 7:58 am

    Not sure if this is the same in Oracle, but in SQL Server the first thing I’d check is how many indexes you have on the table. If it’s a lot the DB has to do a lot of work reindexing the table as records are inserted. It’s more difficult to reindex 500k rows than 100k.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to insert 315K Gif files into an Oracle 10g database. Everytime I get
I'm using an Oracle database(10g) which contains a stored procedure called Foo. Foo takes
I have the following translation table in an oracle 10g database: ID VARCHAR2(100 BYTE)
I am trying to insert values into Oracle 10g database using the code below
I have created a table on an Oracle 10g database with this structure :
I've got an Oracle 10g database with a table with a structure and content
I am using Oracle 10g Enterprise edition. A table in our Oracle database stores
I am writing following statement to create a table in oracle database but failed
I have Oracle 10g xe installed but i also need to install Oracle Database
Situation: Oracle 10g database migrated to 11g - users migrated Migrated users who call

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.