Improve SqlLdr performance for 120 Million records Upload from Csv

Viewed 14

It is taking almost 10hrs to finish loading into tables. Here is my ctl file.

    OPTIONS (
     skip =1,
     ERRORS=4000000,
     READSIZE=5000000,
     BINDSIZE=8000000,
     direct=true
    unrecoverable
     )
    load data
            INFILE 'weeklydata1108.csv'
            INSERT INTO TABLE t_location_data
            FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
            (f_start_ip,  
        f_end_ip,   
        f_country, 
        f_count_code ,
        f_reg,
        f_stat,
        f_city,
        f_p_code ,
        f_area,
        f_lat,
        f_long,
        f_anon_stat ,
        f_pro_detect date "YYYY-MM-DD",
        f_date "SYSDATE")

And sqlldr command for running it is

sqlldr username@\"\(DESCRIPTION=\(ADDRESS=\(HOST=**mydbip***\)\(PROTOCOL=TCP\)\(PORT=1521\)\)\(CONNECT_DATA=\(SID=Real\)\)\)\"/geolocation control='myload.ctl' log='insert.log' bad='insert.bad'

0 Answers
Related