INSERT of one record takes 40 seconds; That is much too long;

Oracle 8.1.7
Tablestructure:
10 Fields; 3 numeric; 7 Varchar2(10 Bytes, 30, 5, 230, 4, 7, 15);
The Table contains 3.200.000 records. It was filled with sqlldr. The Fields are mostly filled. The 230-byte field mostly with 40 bytes.
A numeric primary key and a numeric foreign key exist. The foreign key without oracles referential integrity.
The INSERT of one record takes approximately 40 seconds.
Oracle and the database are standard configured.
Computer:
Windows NT 2000
2 INTEL - Processors 500 MHz;
RAM: 500 MB
1 Disk ULTRA ATA/66 data transfer rate: 10 - 20 MB/sec
mean access time 9 ms
Any recommendations to increase the INSERT speed are welcome.

Hi,
The INSERT of one record takes approximately 40
seconds.Yes, it seems slow, but if you have only one disk and only 500 Mb memory, I wonder if this 40s is slow comparing to another operation like "switching logfile", "starting the database", ...
It also depends how many indexes should maintained, if this time is constant, if the tablespace have enough extent, ...
The tuning of a database is always difficult, the most important is to find the biggest bottelneck. Start by reading the tuning guide, get your ratio, analyze your performance, and see what the problem is (IO/memory/swapping/poor sql/...)
With only one disk, it is normal to have contention between the log writter, the database writter, the oracle software, the operating system. So your ratio should be read with care! Do not tune everywhere at the same time ! Research the cause, then react appriopriatly.
Regards
Laurent

Similar Messages

  • I use my Ipad to record clients and I need to send these recordings to my customers. I am having trouble sending them because it always says that they are too long in length. They run any where from 5 minutes to maybe 15. Can I compress these

    I use my Ipad to film my clients and need to send copies to my clients. I am having trouble sending them. When I press share, it only gives me options of sending them as a Message airdrop or Icloud. When I press Icloud nothing happens. The videos are usually 5minutes to maybe 20 minutes. I need to send them insome kind of a compressed manner so it iseasy for my clients to open and watch. Thanks

    Have you thought about uploading them to youtube? You can put things there up to 8 minutes long, and up to 15 if you get verified. You can also have them 'unlisted' which means they're not visible to anyone without the link.
    I think your issue isn't as much that the videos are too long, it's that the file size is too big. I have a 3 minute video that I shot with my iPod that's 300 megs, and most mail programs max out at 25 megs.
    There may also be options with vimeo or other video sharing programs that you can explore.

  • HT4743 How do I get a refund on tv show that is taking TOO LONG TO DOWNLOAD?

    This is very frustrating not to be able to find out how to get a refund...I will not use itunes again to watch tv shows, too long of a download, Amazon zips along fine...

    https://expresslane.apple.com/
    Use that to complain to iTunes Store support.
    Do you know what kind of sustained internet speed you get?
    Apple shows work differently to some streaming services and don't adjust quality for a slower connection, but I appreciate it's frustrating.
    AC

  • IOS 8.0.2 download that is taking too long?

    I have an iPhone 4s and downloaded iOS 8.0.2 onto my iTunes and into my phone within 2 hours. My sister has an iPhone 5 and iOS 8.0.2 has already been downloaded onto her iTunes. The only process left is to have the download completed on her phone, but that is taking much longer than the actual iOS 8 download to iTunes. The download bar on the phone has almost reached the end, but has stuck at the same place for the last hour. (This did not happen with my phone.)
    I have unplugged the phone from the computer, but the download bar is still visible with the same point that has not moved a bit. How can this be fixed? How can I increase the download speed? Or do I have to patiently wait? Please help!

    If you unplugged the phone from the computer, you have already interrupted the download and install process. An update via iTunes is not a Wifi update, so once it's unplugged, it is not going to start up again.
    Reset the device: Hold down the Home and Power buttons at the same time and continue to hold them down until the Apple appears (up to 30 seconds). Once the reset is complete, the "Slide to Unlock" screen will display. Go to Settings>General>About, and see what version number is showing. If it is 8.0.2, then you should be good to go. If it is not, hook the device back up to iTunes and start the update again.
    Cheers,
    GB

  • Generated PDF of Comment Summary has font that's much too large (60 points or so).

    When I create a comment summary for a particular document, the comments appear HUGE on the comment summary page. I am used to this not happening. Version of Acrobat XI for Mac I have been using for awhile, no previous issues in this area. Have seen this issue posted on other support sites, so not just me.
    Issue shown here. Results in comment file going from 6 pages to 60, very unusable. Help greatly appreciated.
    -Dana

    Ok, I traced the problem back to a single image that is 7.7mb (the background aerial photo, which was brought in from Illustrator, and is 2180x2356 pixels. I tried compressing the image in photoshop and re-importing it, but I'm getting an error that states "Unable to import files with content larger than 2048x2048 pixels"  - -  so I was able to export after converting that file to a linked image, although when I opened the html file in firefox, the image was missing (but its in the exported folder).
    thanks

  • TS2776 how do I stop a movie download that is taking too long?

    I purchased a DVD and did the digital download. There are extras on the digital download and they are taking hours to download. How can I stop these downloads?

    Are you getting an error message number with the error? If so, which error message number are you getting?

  • SAP Query - Selection to get only one record by date

    I am writing a query in which the infoset includes dates example would be material, plant, date, price.  For a given material and plant, there will be multiple records in the infoset because the material can have a different price on a different date.
    I want to choose the one record from the infoset that has a date closest to but less than or equal to a user entered date.
    How do I do this.
    Steven Engel

    Not answered, but I no longer need

  • File.exists() takes too long to return.

    Hi.
    I have written a program which checks to see if a particular shared file is present on a number of different computers. The path to the file is the same on all the computers.
    I construct the File with IP + path.
    Then I call file.exists()
    If the remote computer is on and the file is present, then 'true' is returned quite quickly. But if the file is not available then 'false' is returned but only after about 30 seconds. This is too long and I want to set some sort of time out for the method after about 3 seconds. So that if the file is not found before the timeOut time, 'false' will be returned.
    Is there any way I can do this???
    Thanks,
    Jim

    Hi,
    I am already using Threads, here is my code:
    public class FileExistsThread extends Thread {
         private File file;
         private long tryTime;
         private boolean exists;
         private boolean changed;
         public FileExistsThread(File file, long tryTime) {
              this.file = file;
              this.tryTime = tryTime;
         public void run() {
              new Thread() {
                   public void run() {
                        try {
                             Thread.sleep(tryTime);
                        } catch(Exception e) {}
                        exists = false;
                        changed = true;
              }.start();
              exists = file.exists();
              changed = true;
         public boolean fileExists() {
              start();
              while(!changed);
              return exists;
    }The Problem is that I cant close my program while a file.exists() method is still executing no matter what Thread it is in. Say I'm looking for a file which the program will take 30 seconds to establish is not available. Then for that 30 seconds my program will refuse to close. Sometimes it can be much longer than this.
    This is why I still need some sort of timeout mechanism.
    Any Ideas?
    Cheers,
    Jim

  • Takes too long to open up from shut down or hibernate.

    chrome opens immediately and mozilla firefox takes much too long to open,single click or double click.

    Clear Cookies & Cache
    * https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
    Clear the Network Cache
    * https://support.mozilla.com/en-US/kb/How%20to%20clear%20the%20cache#w_clear-the-cache
    Firefox takes a long time to start up
    * https://support.mozilla.com/en-US/kb/firefox-takes-long-time-start-up
    Check and tell if its working.

  • Insert more than one record in a transaction is costly or insert big record

    Hi,
    I am using Oracle 10g on linux 64 bit
    Could anybody tell me that currently my log tables in oracle has 22 columns out of 22, 20 belongs to rate from different lenders like
    uuid,app id,lender1,lender2,lender3 .............,lender20
    1,123,lender1_rate,lender2_rate,lender3_rate..............
    In order to make it more readable and in order to include new lender dynamically we are changing this table to row wise so that we do not need to include new lender column in table
    uuid,app,lender
    1,123,lender1_rate
    1,123,lender2_rate
    1,123,lender3_rate
    1,123,lender20_rate
    but it will create instead of one record, 20 records for each app in a transaction.
    Is it costly for insert. If it is then what should be the way.

    Hi,
    It could be slightly costly to insert.
    But it makes my design more flexible and my queries less costly and flexible.
    I would use something like this as my columns.
    uuid, app, lender_code, lender_rate
    Regards
    Anurag.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • INSERT of two records into different tables (pk value from first to second)

    Hi there!
    Have probably stupid question
    Need to insert one record into table with primary key and then insert into other table record with value of primary key field from first record
    How can I do it?
    Thanks a lot!!!

    You have several possibilities. Most easiest one is listed first :)
    SQL> create table a (a number);
    Table created.
    SQL> alter table a add constraint a_pk primary key (a);
    Table altered.
    SQL> create table b (a number);
    Table created.
    SQL> alter table b add constraint  b_a_fk foreign key (a) references a(a);
    Table altered.
    SQL> insert into a values (0);
    1 row created.
    SQL> insert into b values (0);
    1 row created.Though that may not help always, so the next possibility maybe just using sequence with nextval and currval (currval can be used only in the same session and only after you have issued at least one nextval)
    SQL> create sequence a_seq;
    Sequence created.
    SQL>  insert into a values (a_seq.nextval);
    1 row created.
    SQL> insert into b values (a_seq.currval);
    1 row created.And you can use also famous returning clause. It is a bit easier to show that in the pl/sql block than pure SQL.
    SQL> declare
      2   v number;
      3  begin
      4   insert into a values (a_seq.nextval) returning a into v;
      5   insert into b values (v);
      6  end;
      7  /
    PL/SQL procedure successfully completed.And at last contents of the tables :)
    SQL> select * from b;
             A
             0
             1
             2
    SQL> select * from a;
             A
             0
             1
             2Gints Plivna
    http://www.gplivna.eu

  • I have 2 apple ID's and one I could not access that had $15 and for some reason it made me create a new apple id, I now have $25 on both accounts. how do I take the money and put it on one account?

    I have 2 apple ID's and one I could not access that had $15 and for some reason it made me create a new apple id, I now have $25 on the new account. How do I take the money and put it on one account? 

    You can't merge Apple IDs.  What you could do is set up your phone to use the same iCloud accout you are using on your Mac.  To do this, go to Settings>iCloud and turn all synced data (Contacts, Calendars, etc.) to Off.  When prompted, choose to keep the data on the phone.  When everything is off, scroll to the bottom and tap Delete Account.  Now add the iCloud account you set up on your Mac (with the same Apple ID) and turn syncing back on for Calendars, Contacts, etc.  When prompted, you will probably want to choose merge, to merge the data on your phone with the existing data on this iCloud account.

  • I have different account ID's with my iphone and computer. I would like to standardise both to just the one. One of the ID's doesn't work, when I tried to list the second email with the preferred one a message telling me that this email is already in

    I have different account ID's with my iphone and computer.
    I would like to standardize both to just the one.
    One of the ID's doesn't work, when I tried to list this second email with the preferred one a message telling me that this email is already in use pops up.. yes it is, with me??
    Is there an easy to fix this please, Fabfitz

    If the email address you want to use is being used as the primary email address on a different ID you have to manage that ID and change it to a different primary email address.  This explains how: Change your Apple ID - Apple Support.
    If it is being used as an alternate or rescue address on a different ID, you manage the ID and either remove it or change it to a different email address.  This explains how: Manage your Apple ID primary, rescue, alternate, and notification email addresses - Apple Support.

  • Hi i have  an iphone 4 which is from canada nd i have seen one sim inside it which is a canadian sim ,iam staying in india so can i use that phone in india and please tell me what are the steps ihave to take for using that canadian phone in india

    hi i have  an iphone 4 which is from canada nd i have seen one sim inside it which is a canadian sim ,iam staying in india so can i use that phone in india and please tell me what are the steps ihave to take for using that canadian phone in india

    Only the carrier to whom the device is locked can authorize it's unlocking.  Contact the carrier to see if they offer unlocking and if you qualify.

  • How do I insert/update certain records that I've identified in cursors..?

    Morning gurus..
    As the title asks, I have this script that loads records into a temp table then compares these with whats in the ORACLE table. When each temp table record has been identified as being either needing to be inserted or not, how do I then insert these identified records? As in, how can I do..
    INSERT INTO xxxxxxxxxxx_SUPPLIERS (vendor_id, vendor_name,segment1, end_date_active) VALUES (2, 'SUPPLIER NAME 2', 100002, sysdate); ..but I'll need to put in some variable names where the values have been written in above - is this allowed..?
    thanks,
    E

    hi,
    here is a small sample for your query.... given Procedure InsertExcep is reading data from table code_master and inserting all fetched records into another table test_code_master..... before insert you can do any comparison within loop..... or even can give any Update statement....
    CREATE TABLE code_master
    CODE VARCHAR2(10),
    CODE_DESC VARCHAR2(70)
    INSERT INTO CODE_MASTER ( CODE, CODE_DESC ) VALUES (
    'ORG0007', 'PARTNERSHIP FIRM');
    INSERT INTO CODE_MASTER ( CODE, CODE_DESC ) VALUES (
    'ORG0008', 'CONSULTANCY FIRM OR PROFESSIONAL BODY');
    INSERT INTO CODE_MASTER ( CODE, CODE_DESC ) VALUES (
    'ORG0009', 'SOCIAL ORGANIZATION');
    INSERT INTO CODE_MASTER ( CODE, CODE_DESC ) VALUES (
    'ORG0010', 'EMBASSY');
    CREATE TABLE test_code_master
    CODE VARCHAR2(10),
    CODE_DESC VARCHAR2(70)
    CREATE OR REPLACE PROCEDURE InsertExcep
    AS
    CURSOR insertdata
    IS
    SELECT code,code_desc
    FROM code_master ;
    BEGIN
         FOR i IN insertdata
         LOOP
                   BEGIN
                   INSERT INTO test_code_master (code,code_desc)
                   VALUES(i.code,i.code_desc);
                   EXCEPTION WHEN OTHERS THEN
                   DBMS_OUTPUT.PUT_LINE ( 'Error during Insert code - '||i.code );
                   END;
         END LOOP;
    EXCEPTION WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE ( 'Error in InsertExcep' );
    END;
    hope this will work...
    Thanx
    MB

Maybe you are looking for

  • My iPod touch won't be recognized by my macbook.

    I plugged in my iPod touch to my macbook this morning and it doesn't even charge. To make sure it wasn't the cable or the USB port, I plugged another USB and it was working fine. It won't appear on either iTunes or Finder. I found a solution that was

  • How to identify a rehire candidate?

    Hi, Please let us know if you have worked on the following: 1) How can we identify in e-recruiting that an external candidate was a previous employee of the company at some point in time? OR how to identify that the candidate had a record in SAP PA i

  • Outlines around flash objects

    When I roll my mouse over the flash obejects on my page an outline of the object appears. When I click on the objects the outline goes away. Is there a simple way to get rid of these outlines that appear?

  • Preview as default

    I have recently downloaded Adope Reader and it has taken over as default from Preview. how do i reset preview as default reader?

  • I write in Arial - It arrives as Times New Roman

    Hi, I have a problem with iMail. In my settings I have set arial as the standard font and all messages im my inbound and outbound box also appear as arial to me. Recipients of my messages though receive them in times new roman and in a different font