The fastest way to load data

Option 1:

Insert the statement with:

table view: NOLOGGING

insert mode: APPEND

in ARCHIVELOG mode: noarchive log mode

Option 2:

DEC in NOLOGGING mode

The two options above would generate no redo log. What is the best for performance? I'm loading large or lines (a few million) on a daily basis and it is an intermediate table, so there is no problem when the reprocessing failure.

The answer may depend on the availability of memory and index.

ETG requires you to create indexes subsequently - but each index requires an analysis of the table.

Insert / * + append * / can optimize for indexes by capturing the values of the columns needed as data is loaded, and then creating the index without having to re-read the table.

Concerning

Jonathan Lewis

Tags: Database

Similar Questions

  • the fastest way to load an XML file

    What is the fastest way to generate an xsd-based oracle table and then load data from a file that conforms to the xml document in the xsd.

    I would do something like this:

    SQL > insert into tmp_xml

    2 values)

    3 xmltype (bfilename('TEST_DIR','test.xml'), nls_charset_id ('AL32UTF8'))

    4  );

    1 row inserted

    SQL >

    SQL > select x1.col_a, x1.col_b, x1.col_c, x2.*

    tmp_xml 2 t

    3, xmltable)

    4 "/ parent/Child1.

    5 passage t.object_value

    path of 6 columns col_a varchar2 (10) '@ColumnA '.

    7 road of varchar2 (10) col_b '@ColumnB '.

    8 road of varchar2 (10) col_c '@ColumnC '.

    9, child2 xmltype path "Child2".

    (10) x 1

    11, xmltable)

    12 ' / Child2'

    13 passage x1.child2

    path of 14 columns col_d varchar2 (10) 'ColonneD '.

    15 road of varchar2 (10) col_e "child3/column.

    16, road of varchar2 (10) col_f "child3/ColumnF.

    17 road of varchar2 (10) col_g "child3/column".

    18 road of varchar2 (10) col_h "child3/ColumnH.

    19 road to varchar2 (10) col_i 'ColumnI.

    (20) x 2

    21;

    COL_A, COL_B, COL_C COL_D COL_E COL_F COL_G COL_H COL_I

    ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------

    CAF ClientID ClientName 20130121 D 20752,19 AUD

    FCA ClientID ClientName M 20130121 235.39 bla Blahdeblah AUD

    (you can adjust data types as needed)

  • The fastest way to import data for large tables

    Hi friends,

    I recently joined a billing product put up a team for TELECOM giant. Under the procedure of installation/initial tests, we have huge data (size of almost 1.5 billion records / ~ 200 GB of data) in some tables. Currently I use impdp to import. It takes a long time (almost > 9 hours to load these data).

    I tried the ways below to import the data (all of these tables is partitioned):
    1. normal impdp (single thread that is, parallel = 1): it takes a long time (> 24 hours).
    2. normal impdp but partition-wise. It was completed in relatively less amout of time compared to the 1st method.
    3 fall drop the index, framed adding another scheme in the same forum that includes data, and then recreate the index (whole process takes about 9 hours)

    My questions at all:
    1. is there any other way/trick in the book that I can try to put the data in less time
    2. what I pointed out that even if I give parallel = 8 or more, sometimes parallel workers are laid and sometimes not. Can someone tell me why?
    3. How can I come to know (before running the impdp) that my parallel article will spawn parallel workers or not. As to how I will come to find out, I searched this topic but without success.


    I don't know what strategy to follow, because it is an involved and repetitive task for me. Because of the task above, I am not able to focus on other DBA tasks because of what comes to me.

    See you soon,.
    Malika

    assuming that you have a table with 3 clues, then create a script for each index (reblace index_name_n with your index name) and start them at the same time, after the importation of the table is complete

    DUMPFILE= or NETWORK_LINK=
    DIRECTORY=DATA_PUMP_DIR
    LOGFILE=
    CONTENT=ALL
    PARALLEL=1
    JOB_NAME=IMP_
    INCLUDE=TABLE_EXPORT/TABLE/INDEX:"IN('')"
    TABLES=.

    Change the following settings when importing:
    increase pga_aggregate_target
    increase db_writer_processes
    db_block_checking = false
    db_block_checksum = false

    the value undo and temporary ts autoextend
    Set noarchivelogmode
    create logs of restoration of 4 GB

    HTH

  • The fastest way to load the flex with complex menus of gui application

    Hello

    In my current project, I have a few menus. Each menu includes a tabbar with one to five tabs and gui-stuff more or less complex in the NavigatorContent.

    Most of the menu must be opened by clicking on a button.

    I could implement this by assigning to each menu visible and invisible when someone clicks on a button:

    <menu:MyFirstMenu id="first" visible="false" />

    <menu:MySecondMenu id="second" visible="false" />

    ...

    <s:Button click="first.visible = true;second.visible=false" />

    <s:Button click="first.visible = false;second.visible=true" />

    but I'm afraid that it takes some time, when the application is initialized.

    or I can add menus after the user has clicked on a button

    <s:SkinnableContainer id="menuArea" />

    <s:Button click="menuArea.addElement(new MyFirstMenu())" />

    <s:Button click="menuArea.addElement(new MySecondMenu())" />

    but I'm not so sure, if that's the right way to do it.

    (I know I must also remove the other menu when I click on one of the buttons, but you get the idea)

    So, what is to be implemented, robust way and good if I want to have my app loaded quickly?

    Well Yes, that's what I mean.

  • What is the fastest way bulk load the data from ACE / 400 to Oracle?

    Asked me to move data from the AS / 400 to Oracle11gR2 as fast that ODI may eventually. Quinte just no mapping, no transformation, no membership.

    An ODI11g agent is started on the computer of Oracle target, but being new ODI, I don't know how to use SQL for Oracle LKM loading in a scene and then updated incremental Oracle IKM layout from staging to the target table.

    It took 50 minutes to move recorded about 4 million. I need to get this in about 10 minutes. So guys, if there is a best practice to do this, please let me know, but now I'll try any suggestion you might think.

    Thank you in advance.

    Means the faster is to use a combination of ODI interface and ODI tool named OdiSqlUnload.
    N ° 1). Use the ODI OdiSqlUnload tool to export the data from the AS / 400 files in a flat file of the BONES.
    Step 2.) Use this flat file as source and LKM file for Oracle (SQLLDR) and Oracle IKM incremental update to load Oracle data.

    Your current path is slow because it operates on a row by row basis.

  • The fastest way to transfer data between two Lacie Thunderbolt external HDs

    Hi all. I have a ton of music on a Lacie Rugged 1 TB Thunderbolt/USB 3.0. I use to mix. I have a Macbook Pro 15 "w 2015 / retina with Thunderbolt ports two (2) and I try to use it to transfer all the data from my Lacie Rugged drive to my new Lacie 3 to Desktop HD that was Thunderbolt (2) and USB 3.0 and use also the new Lacie Desktop drive as my primary for backups time machine.

    In order to transfer data from the rugged drive (THE most RAPID WAY POSSIBLE) on my new Lacie desktop drive I should? :

    (A) connect to each port thunderbolt on the laptop itself?

    Or

    (B) connect the Lacie Rugged HD to the new Lacie Desktop HD then the Lacie Desktop HD to the thunderbolt on the laptop (daisy chain) port?

    Thank you!

    MacWorld has done some tests on this and found a slight increase in performance with the devices connected directly to the laptop. So don't try Garland!

  • What is the fastest way to load a video so that I can share it with another user?

    Periodically, I take videos of my sessions clinical (I work as a psychologist) and I need to download them (strongly) to the internet to access to see my supervisor. I used to use the programe of Picture Motion Browser, until my computer crashed - I lost the program, but have since managed to understand that all I have to do is to connect my camcorder to my laptop Sony using the cable supplied with the video camera (not USB, other cable - I forgot what it's called) and I can see the videos with Windows Media Player.

    Also I tried to download videos on Youtube (using their private setting), but as short as 5 minutes video. has taken about an hour to download.

    How can I download the video for my supervisor has access to them? I have a program called Dropbox-it allows the sharing of files - I have not tried this one yet for videos, but wonder if anyone knows if it would be better than Youtube, or if you have any other ideas?

    Thanks in advance!

    Hi Psych13,

    You can try using Windows Live Skydrive and see if you can download the videos.

    SkyDrive is a free hosting service that allows users to upload files to a cloud storage and then access it from a Web browser.

    For more information, you can consult the following articles:

    Windows Live SkyDrive

    SkyDrive: Share photos and videos online

    Hope this information is useful.

  • The fastest way to transfer files between servers...

    I have a question regarding what would be the best option to accelerate the transfer of files between 2 servers to our VMware environment. We plan to spend our GroupWise email from netware to windows and upgrade to Groupwise (v7 to v8) at the same time. We will anticipate moving about ~ 125 gigabytes of data (files ~ 517 000) and expect that it will take several hours. We would like to minimize this time better we can so we wonder what would be the best configuration of things to get there? Two virtual machines on the same host? Two virtual machines on the data store even? On different hosts, or data warehouses? Our configurations are listed below:

    -In the course of running vSphere 4.1 ESXi

    -Data stored on 2 Dell Equalogic 5500 without

    -SAN one in each of the 2 sites, physically about 3 miles away

    -3 guests, 2 to a location and 1 in the other (same places the San)

    -Transfer of data from Netware 6.5 source, destination will be Windows 2008 R2 DataCenter

    -Links gigabit between all the elements of our VMware environment, including the link between the sites (on optical fiber).

    -3 guests are able to run all our virtual machines without overloading, so if we go to the virtual computer to another host, it is not a problem.

    We would like to know what is the best way to put everything in place for the transfer, so that we can prepare before hand. Any suggestions?

    Thanks in advance.

    Well, the fastest way would be to offload the clone/copy to the San operation. If your configuration supports VAAI then the clone would happen completely on the SAN by assuming that the source and destination storage device is the same SAN. Would it be different San then the network factors in anything. For what is running on the same host, which would be beneficial for cloning a virtual machine (mainly memory footprint) should not take place on the network.

    I hope this helps!

  • What is the fastest way to convert navigation app 1-level 2-level once a project has already been established?

    What is the fastest way to convert navigation app 1-level 2-level once a project has already been established?

    You cannot change a project to change this setting. You will need to create a new project.

  • The best way to migrate data... Opinion please...

    Guys,

    I'm working on a solution for a customer who needs to move in a new SAN SAN data.

    Existing SAN is attached to the ESX server farm and is very close to the location of a new SAN. In your opinion, what is the best way to move data without interruption to VM ESX farm?

    I know we can do SAN replication, but right now, I don't know if the SAN is still the same provider.

    I know we can do Storage VMotion. In this case, he should present the new SAN somehow for the existing ESX servers.

    I know that we can probably use the converter to migrate virtual machines. This can take some time because we would go over WAN.

    What are your thoughts?

    Thanks in advance for your comments!

    With 4 TB of data, I wouldn't pass on the replication SAN or WAN solution of optimization of the property, and it can fly quickly with 4 TB of data that you use storage vmotion which basically depends on how your WAN links are, if if its quick to go for it.  There is not another free solution then this but if you can manage somehow to make backup of system state of all virtual machines, and then you can ship these backup data to remote locations and import, save back to clusters.  You have to do the actual calculation how fast you can Transfer data from the siteA-> siteB Mbps?  This will give you a clearer picture of how long it will take and picture plan here.  I could do that during maintenance or weekend windows that are the least impact to users and systems.

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!

    Kind regards

    Stefan Nguyen

    VMware vExpert 2009

    iGeek Systems Inc.

    VMware, Citrix, Microsoft Consultant

  • the fastest way to deploy on iOS / Alternative to drag the app in itunes?

    What is the fastest way to deploy on the iOS device to test?

    I myself remember someone has posted a tip on this subject, but I was more focused on android at the time.

    I use CS5.5 on Windows

    Try here iPhone Configuration utility:

    http://www.Apple.com/support/iPhone/Enterprise/

    That would get the IPA on a device quickly connect via USB. If you want to send it to a lot of beta testers, then watch https://testflightapp.com/.

  • The best way to pass data when browsing

    By taking the case where an action method is called and he chooses navigate to another page.

    What is the best way to pass data from bean of old media to the new (probably in the execution of the action method)? I am currently using beans of spring session scope as the support of beans.

    Take a look at:

    It goes between your commandLink or commandButton control:



  • The fastest way to the files and folder to move

    I'm moving a lot of files to another drive and it takes a long time.   I do travel in the LR library now and an alternative is to move outside of the LR and use the catalog import option to add (don't know if it's a more quickly).

    You can select multiple folders in the LR library to move to the same location or do you need to do one at a time? This would be onen advantage to do outside of LR.

    Any thoughts?

    You cannot move several files in Lightroom.

    The fastest way is to move your "Pictures" folder all OS, then re - link in Lightroom by right-clicking and choosing 'find the missing folder '.

    If you need to move several subfolders selectively, then there is no quick way. You move quickly in the BONES and then go rebinding in Lightroom or move them slowly one by one in Lightroom.

  • Insert the page elements when loading data

    Hi all

    I use APEX 5.0 and using wizard to load data to download the data.

    My table has 7 fields and I need to insert 3 fields in the table while loading data.

    I have created a process after Parse the data downloaded as below.

    The result is that the 5th field will be First Row column as 'Y' and no 6th and 7th column.  There is value of 5th field only.

    When click on next to data validation page, it shows the 5th field with column field and 6th without the name of the column.

    Please help me to the point where I must change my code.

    BEGIN
    APEX_COLLECTION. ADD_MEMBER)
    p_collection_name = > 'PARSE_COL_HEAD ',.
    p_c001 = > 'HUBCODE ',.
    p_c002 = > 'UPLOAD_FILENAME ',.
    p_c003 = > 'UPLOAD_DATE');

    FOR UPLOAD_ROW IN (SELECT SEQ_ID
    OF APEX_COLLECTIONS
    WHERE COLLECTION_NAME = "SPREADSHEET_CONTENT")
    LOOP
    APEX_COLLECTION. () UPDATE_MEMBER_ATTRIBUTE
    p_collection_name = > 'SPREADSHEET_CONTENT ',.
    p_seq = > UPLOAD_ROW. SEQ_ID,
    p_attr_number = > '5',.
    p_attr_value = >: P2_HUB_CODE);

    APEX_COLLECTION. () UPDATE_MEMBER_ATTRIBUTE
    p_collection_name = > 'SPREADSHEET_CONTENT ',.
    p_seq = > UPLOAD_ROW. SEQ_ID,
    p_attr_number = > '6'.
    p_attr_value = >: P2_FILE_NAME);

    APEX_COLLECTION. () UPDATE_MEMBER_ATTRIBUTE
    p_collection_name = > 'SPREADSHEET_CONTENT ',.
    p_seq = > UPLOAD_ROW. SEQ_ID,
    p_attr_number = > '7'.
    p_attr_value = > SYSDATE);

    END LOOP;
    END;

    Want to close this loop and hope that it will be useful for others.

    In the end, I managed download document using the latest plugin for APEX 5.0 excel2collections.

    As MK pointed out, I can control my data using the plugin.

    Another point more directly is users can download xls or xlsx files, do not need to convert them to csv format before downloading.

    I thank all of you for the help.

  • The fastest way to create a KeyboardEvent.ENTER send feature.

    Hello, a submit button is on the stage next to a text entry field. It must be possible to use the mouse and the Enter key to press the button.

    What is the fastest and more easy way to add an eventListener to the ENTER key, the button?

    cast:

    function handler(event:Event){

    if((event is KeyboarEvent && KeyboardEvent(event).charCode == 13) || event.currentTarget == submitBtn)

         {}

    }

  • Maybe you are looking for