Help on SQL  Loader

What is sql loader ?
please explain through example or post the link.
Thanks in advance
Pankaj

HI,
SQL*Loader is a bulk loader utility used for moving data from external files into the Oracle database.
This link
http://www.oracle.com/technology/products/database/utilities/htdocs/sql_loader_overview.html
thanks

Similar Messages

  • Can u give an detail examples or help on SQL- loader

    Can u give an detail examples or help on SQL- loader
    I need full details on this how to run and what are the pre requirements for this and what
    Can u give an example with unix+sql loader

    The Oracle Utilities manual has a chapter on SQL*Loader Case Studies
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch10.htm#1656
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Help in sql loader loading a large datafile.

    Hi All
    Could some one help me in loading the xls file which is about 250MB AND got about 2981807 rows into a database table
    i try to open the XLS file it just opened with 65000 records only but i have lot more records in it.
    thanks in advance

    hi i user the sql loader but the file is too big to handel like the file is not opened in notepad or xls sheet...
    is there any other way to split the large file

  • Help with SQL LOADER

    I have a data file that looks like:
    REC001;TO_NAME;TO_ADDR;TO_PHONE
    REC002;ITEM_ID1;DATE_DELIVERED1
    REC002;ITEM_ID2;DATE_DELIVERED2
    REC002;ITEM_ID3;DATE_DELIVERED3
    REC002;ITEM_ID4;DATE_DELIVERED4
    i want to load this in the Database using SQL LOADER in this format:
    NAME | ADDR | PHONE | ITEM | DATE DELIVERED
    TO_NAME TO_ADDR TO_PHONE ITEM_ID1 DATE_DELIVERED1
    TO_NAME TO_ADDR TO_PHONE ITEM_ID2 DATE_DELIVERED2
    TO_NAME TO_ADDR TO_PHONE ITEM_ID3 DATE_DELIVERED3
    TO_NAME TO_ADDR TO_PHONE ITEM_ID4 DATE_DELIVERED4
    Basically i want the name, addr, phone from REC001 to be repeated every time i load REC002.
    Any help on how to do this.

    The subject of this forum is AQ.
    AQ <> SQL*Loader
    Please delete this post and post in Database - General
    When you do include full version information and format your post using PRE tags (explained in the FAQ).

  • Help with sql loader charsets

    I was wondering if anyone could assist me with a sql loader question. I am trying to use it to load some hungarian data. It always turns the Ő character into an upside down question mark. I understand that it is because the database doesn't understand what that character is. Can someone help me find out how to resolve that? The database is UTF-8. If I paste the character in to the application, it takes it. I have tried all kinds of values for the CHARSET parameter in the .ctl file, but nothing seems to work....

    I believe we are using iso 8859-1.
    I am having a difficult time thinking that it could be we don't have the appropriate installations - because if we paste it in via the oracle application we can see it in a form. If we sql load that same character and look at it in an oracle form, we see the question marks.
    i've looked at many of the documents on tahiti already, and found some helpful stuff, but no explanation for the problem i am having so far :)

  • Need help with SQL*Loader not working

    Hi all,
    I am trying to run SQL*Loader on Oracle 10g UNIX platform (Red Hat Linux) with below command:
    sqlldr userid='ldm/password' control=issue.ctl bad=issue.bad discard=issue.txt direct=true log=issue.log
    And get below errors:
    SQL*Loader-128: unable to begin a session
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Can anyone help me out with this problem that I am having with SQL*Loader? Thanks!
    Ben Prusinski

    Hi Frank,
    More progress, I exported the ORACLE_SID and tried again but now have new errors! We are trying to load an Excel CSV file into a new table on our Oracle 10g database. I created the new table in Oracle and loaded with SQL*Loader with below problems.
    $ export ORACLE_SID=PROD
    $ sqlldr 'ldm/password@PROD' control=prod.ctl log=issue.log bad=bad.log discard=discard.log
    SQL*Loader: Release 10.2.0.1.0 - Production on Tue May 23 11:04:28 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL*Loader: Release 10.2.0.1.0 - Production on Tue May 23 11:04:28 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Control File: prod.ctl
    Data File: prod.csv
    Bad File: bad.log
    Discard File: discard.log
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table TESTLD, loaded from every logical record.
    Insert option in effect for this table: REPLACE
    Column Name Position Len Term Encl Datatype
    ISSUE_KEY FIRST * , CHARACTER
    TIME_DIM_KEY NEXT * , CHARACTER
    PRODUCT_CATEGORY_KEY NEXT * , CHARACTER
    PRODUCT_KEY NEXT * , CHARACTER
    SALES_CHANNEL_DIM_KEY NEXT * , CHARACTER
    TIME_OF_DAY_DIM_KEY NEXT * , CHARACTER
    ACCOUNT_DIM_KEY NEXT * , CHARACTER
    ESN_KEY NEXT * , CHARACTER
    DISCOUNT_DIM_KEY NEXT * , CHARACTER
    INVOICE_NUMBER NEXT * , CHARACTER
    ISSUE_QTY NEXT * , CHARACTER
    GROSS_PRICE NEXT * , CHARACTER
    DISCOUNT_AMT NEXT * , CHARACTER
    NET_PRICE NEXT * , CHARACTER
    COST NEXT * , CHARACTER
    SALES_GEOGRAPHY_DIM_KEY NEXT * , CHARACTER
    value used for ROWS parameter changed from 64 to 62
    Record 1: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 2: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 3: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 4: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 5: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 6: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 7: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 8: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 9: Rejected - Error on table ISSUE_FACT_TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 10: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 11: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 12: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 13: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 14: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 15: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 16: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 17: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 18: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 19: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 20: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 21: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 22: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 23: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 24: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 39: Rejected - Error on table TESTLD, column DISCOUNT_AMT.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
    Table TESTLD:
    0 Rows successfully loaded.
    51 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 255936 bytes(62 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 51
    Total logical records rejected: 51
    Total logical records discarded: 0
    Run began on Tue May 23 11:04:28 2006
    Run ended on Tue May 23 11:04:28 2006
    Elapsed time was: 00:00:00.14
    CPU time was: 00:00:00.01
    [oracle@casanbdb11 sql_loader]$
    Here is the control file:
    LOAD DATA
    INFILE issue_fact.csv
    REPLACE
    INTO TABLE TESTLD
    FIELDS TERMINATED BY ','
    ISSUE_KEY,
    TIME_DIM_KEY,
    PRODUCT_CATEGORY_KEY,
    PRODUCT_KEY,
    SALES_CHANNEL_DIM_KEY,
    TIME_OF_DAY_DIM_KEY,
    ACCOUNT_DIM_KEY,
    ESN_KEY,
    DISCOUNT_DIM_KEY,
    INVOICE_NUMBER,
    ISSUE_QTY,
    GROSS_PRICE,
    DISCOUNT_AMT,
    NET_PRICE,
    COST,
    SALES_GEOGRAPHY_DIM_KEY
    )

  • Need help on sql loader error

    A similar issue is posted on http://www.dbforums.com/database-concepts-design/927987-using-sql-loader-load-data-multiple-files.html, but not a solution yet there, any help on this issue is highly appreciated.
    an alternative solution is also appreciated?
    Thanks!
    Hi All,
    I have a peculiar error while I try to load 2 tables(table name: enroll_emp_back & enroll_dep_back) using SQLLDR, the source file is a .csv file.
    CTL FILE CONTENT:
    LOAD DATA
    TRUNCATE
    INTO TABLE enroll_emp_back
    WHEN (1:8) = 'EMPLOYEE'
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (type NULLIF type= BLANKS,
    enrollstmt_ctl_cust_seqnum NULLIF enrollstmt_ctl_cust_seqnum= BLANKS,
    pctl_employee_seqnum NULLIF pctl_employee_seqnum= BLANKS,
    pctl_lot NULLIF pctl_lot= BLANKS,
    pctl_counter NULLIF pctl_counter= BLANKS,
    first_name NULLIF first_name= BLANKS,
    last_name NULLIF last_name= BLANKS,
    mi NULLIF mi= BLANKS,
    ssn NULLIF ssn= BLANKS,
    cssn NULLIF cssn= BLANKS,
    emp_id NULLIF emp_id= BLANKS,
    pin NULLIF pin= BLANKS,
    addr1 NULLIF addr1= BLANKS,
    addr2 NULLIF addr2= BLANKS,
    addr3 NULLIF addr3= BLANKS,
    city NULLIF city= BLANKS,
    state_cd NULLIF state_cd= BLANKS,
    zip NULLIF zip= BLANKS,
    country NULLIF country= BLANKS,
    birth_date NULLIF birth_date= BLANKS,
    hire_date NULLIF hire_date= BLANKS,
    adj_service_date NULLIF adj_service_date= BLANKS,
    elig_date NULLIF elig_date= BLANKS,
    smoker_ind NULLIF smoker_ind= BLANKS,
    spouse_smoker_ind NULLIF spouse_smoker_ind= BLANKS,
    partic_grp_id NULLIF partic_grp_id= BLANKS,
    enroll_window_start NULLIF enroll_window_start= BLANKS,
    enroll_window_end NULLIF enroll_window_end= BLANKS,
    total_ee_cost NULLIF total_ee_cost= BLANKS,
    total_er_cost NULLIF total_er_cost= BLANKS,
    emp_custom1 NULLIF emp_custom1= BLANKS,
    emp_custom2 NULLIF emp_custom2= BLANKS,
    emp_custom3 NULLIF emp_custom3= BLANKS,
    emp_custom4 NULLIF emp_custom4= BLANKS,
    emp_custom5 NULLIF emp_custom5= BLANKS,
    custom1 NULLIF custom1= BLANKS,
    ctl_ins_dttm NULLIF ctl_ins_dttm= BLANKS,
    ctl_upd_dttm NULLIF ctl_upd_dttm= BLANKS,
    ctl_trans_seqnum NULLIF ctl_trans_seqnum= BLANKS,
    ctl_upd_seq NULLIF ctl_upd_seq= BLANKS,
    ctl_deleted_ind NULLIF ctl_deleted_ind= BLANKS,
    ben_year NULLIF ben_year = BLANKS,
    activity_id NULLIF activity_id= BLANKS,
    client_name NULLIF client_name= BLANKS,
    doc_type NULLIF doc_type= BLANKS,
    environment_type NULLIF environment_type= BLANKS
    INTO TABLE enroll_dep_back
    WHEN (1:9) = 'DEPENDENT'
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (type NULLIF type= BLANKS,
    enrollstmt_ctl_cust_seqnum NULLIF enrollstmt_ctl_cust_seqnum= BLANKS,
    pctl_employee_seqnum NULLIF pctl_employee_seqnum= BLANKS,
    pctl_enroll_dep_num NULLIF pctl_enroll_dep_num= BLANKS,
    pctl_dep_num NULLIF pctl_dep_num= BLANKS,
    first_name NULLIF first_name= BLANKS,
    last_name NULLIF last_name= BLANKS,
    ssn NULLIF ssn= BLANKS,
    birth_date NULLIF birth_date= BLANKS,
    relation NULLIF relation= BLANKS,
    sex NULLIF sex= BLANKS,
    student_ind NULLIF student_ind= BLANKS,
    disabled_ind NULLIF disabled_ind= BLANKS,
    ctl_ins_dttm NULLIF ctl_ins_dttm= BLANKS,
    ctl_upd_dttm NULLIF ctl_upd_dttm= BLANKS,
    ctl_trans_seqnum NULLIF ctl_trans_seqnum= BLANKS,
    ctl_upd_seq NULLIF ctl_upd_seq= BLANKS,
    ctl_deleted_ind NULLIF ctl_deleted_ind= BLANKS,
    den_covered NULLIF den_covered= BLANKS,
    deplife_covered NULLIF deplife_covered= BLANKS,
    empadd_covered NULLIF empadd_covered= BLANKS,
    med_covered NULLIF med_covered= BLANKS,
    supadd_covered NULLIF supadd_covered= BLANKS,
    suplife_covered NULLIF suplife_covered= BLANKS,
    vis_covered NULLIF vis_covered= BLANKS
    Error I get:
    Table ENROLL_DEP_BACK:
    0 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    1 Row not loaded because all WHEN clauses were failed.
    1 Row not loaded because all fields were null.
    I dont know why the 'ENROLL_DEP_BACK' table is not getting loaded. If i change the above ctl file in such a way that it first loads ENROLL_DEP_BACK table, then the 'enroll_emp_back' table is not getting loaded.
    Please help me on this?
    Source File:
    EMPLOYEE,2322,181340,1,1,Gervaise,Babic,,704345064,704-34-5064,10223914,12345,123 Felton Street,Building 1,Suite 1,Marlborough,WI,53121,USA,11-May-60,9-Mar-09,7-Jan-04,1-Jan-07,N,N,FTNES,15-Apr-09,22-Apr-09,$0.00 ,$96.78 ,9-Apr-09,,,,,,15-Apr-09,15-Apr-09,1103597,4,N,2009,OE,NESTLE,ENROLL,D
    DEPENDENT,2322,181340,1,1,Antony,Broking,765304168,4/26/1962,SP,M,N,N,15-Apr-09,15-Apr-09,1103597,1,N,N,N,N,N,,,N
    SQL command used: SQLLDR wedb/wedbo@nestle_10_sd1 CONTROL=AENUSA2.ctl data=ENROLL.csv LOG=AENUSA.log DIRECT=y
    Thank You
    Edited by: HarinathArasu on Oct 7, 2009 6:26 AM
    Edited by: HarinathArasu on Oct 7, 2009 7:17 AM
    Edited by: HarinathArasu on Oct 7, 2009 8:24 AM
    Edited by: HarinathArasu on Oct 7, 2009 8:24 AM

    When this error occurs it usually means there's some underlying schema changes taking place when you're trying to add a new article
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Seeking help on SQL loader

    I am trying to load the flat-file to the oracle database by using SQL LOADER utility but i am getting the error.
    i am putting the .ctl file and the error message along with.
    kindly help me at earliest as I am stuck with that.
    Thank you.
    ------------ctl file----------------------
    LOAD DATA
    INFILE *
    INTO TABLE dept
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    (deptno, dname, loc)
    BEGINDATA
    12,RESEARCH,"SARATOGA"
    10,"ACCOUNTING",CLEVELAND
    11,"ART",SALEM
    13,FINANCE,"BOSTON"
    21,"SALES",PHILA.
    22,"SALES",ROCHESTER
    42,"INT'L","SAN FRAN"
    ----------------error message--------------
    SQL*Loader: Release 8.1.6.0.0 - Production on Thu Feb 8 15:40:48 2001
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Control File: dept.ctl
    Data File: dept.ctl
    Bad File: dept.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 65536 bytes
    Continuation: none specified
    Path used: Conventional
    Table DEPT, loaded from every logical record.
    Insert option in effect for this table: INSERT
    Column Name Position Len Term Encl Datatype
    DEPTNO FIRST * , O(") CHARACTER
    DNAME NEXT * , O(") CHARACTER
    LOC NEXT * , O(") CHARACTER
    SQL*Loader-601: For INSERT option, table must be empty. Error on table DEPT
    null

    Try using following script : -
    LOAD DATA
    INFILE *
    APPEND
    INTO TABLE dept
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    (deptno, dname, loc)
    BEGINDATA
    12,RESEARCH,"SARATOGA"
    10,"ACCOUNTING",CLEVELAND
    11,"ART",SALEM
    13,FINANCE,"BOSTON"
    21,"SALES",PHILA.
    22,"SALES",ROCHESTER
    42,"INT'L","SAN FRAN"
    null

  • Hi i need a help on sql loader

    Hi all
    How can i check weather the SQL Loader is installed in my system or not .
    Thanks and regards
    goutham

    Hi
    it is located in D:\oracle\product\10.2.0\client_1\BIN. how should i acees this with command prompt .
    i am totaly new to it and need to know it if any document is avialable on sql loader can any body pls send it me r say me where can i found it on net
    thanks in advance
    goutham

  • Help on SQL Loader When Clause

    I have 2 Oracle tables of exact same structure.
    ENO NUMBER
    PARENT NUMBER
    CHILD NUMBER
    ENAME VARCHAR2 (50 Byte)
    ADDRESS VARCHAR2 (50 Byte)
    CITY VARCHAR2 (50 Byte)
    SRCFILENAME VARCHAR2 (50 Byte)
    SDATE VARCHAR2 (400 Byte)
    Current_Load VARCHAR2 (1 Byte)
    Have a data file and a loader control file which loads data in these 2 tables.
    I need to do a conditional load using a when clause.
    Condition : when PARENT=CHILD, load in table 2 else load in table 1
    My control file looks like this .
    LOAD DATA
    INFILE 'TEST_20120815.txt'
    APPEND INTO TABLE test1
    fields terminated by "|"
    trailing nullcols
    eno,
    parent,
    child,
    ename,
    address,
    city ,
    sdate "to_date(:sdate,'DD/MM/YYYY')",
    SrcFileName,
    col7 filler,
    "Current_Load" constant 'Y'
    INTO TABLE test2 when (parent=child)
    fields terminated by "|"
    trailing nullcols
    eno position(1),
    parent,
    child,
    ename,
    address,
    city ,
    sdate "to_date(:sdate,'DD/MM/YYYY')",
    SrcFileName,
    col7 filler,
    "Current_Load" constant 'Y'
    ) But this doesn't work. It works fine if I give direct value like PARENT='P'.
    Any idea as how to compare the 2 fields while doing conditional load?

    You cannot compare 2 fields with the WHEN clause in an SQL*Loader control file.
    only literal values as defined by the syntax:
    http://docs.oracle.com/cd/B19306_01/server.102/b14215/ldr_control_file.htm#i1005657
    As already suggested, you would be better to load your data using an external table where you can apply any conditions you want during your SQL query that is fetching the data.

  • Help on SQL Loader Sequence

    Hi all,
    I am kind of wondering whether we can give same sequence number to the whole data file.
    Explanation:
    I need to load a data file into the table, i know how to use the sequence in Sql loader control file. But the problem is i need the same sequence number for every record that is inserted into the table from the Datafile,
    Say the datafile has 500 record
    and i need all the 500 records to have the same sequence number.
    when i load another datafile i need to have a different sequence number for all the records that are inserted into the table.
    Thanks in advance.
    Edited by: 943254 on Mar 11, 2013 11:08 AM

    Then you will have to look for a solution elsewhere - either the file will need to come preseeded with the value, or you will need to perform post-processing on the loaded data to add the constant value, or something else.
    HTH
    Srini

  • Need help regarding sql loader

    Hi ,
    I am executing following command
    sqlldr admin_user@ces CONTROL=D:\sample_control.ctl log=D:\sample_log.log bad=D:\Sample_bad.bad
    In case of valid data it is inserting the data properly into the table. While invalid records added into the bad file.
    Now I want rollback valid data whenever count of bad file greater than equal to 10.
    In short whenever file has more than 10 invalid records , I don't want to insert any record from that file.
    Please provide me the solution.Thanks in advance.

    SQL*Loader Command-Line Reference
    DISCARDMAX(integer)
    Regards
    Etbin

  • Pls Help for Sql Loader utility

    Dear friends,
    I want to execute Sql Loader utility by procedure.
    Can anyone give me any idea about it.
    Thanks in adavance.

    Why?
    Why build a kludgy and unscalable application?
    Sybrand Bakker
    Senior Oracle DBA

  • Help in sql loader

    Hi Gurus
    i am trying to insert the data into table hr_detail and the data file (sqldata.xlsx) having the first column with NULL and other having data but some with NULL
    here i am getting this error and the data is getting load in single Column of the Table hr_detail
    Create Table hr_detail
    (NAME  Varchar2(1000),
    ID           Number(20),
    SOURCE Varchar2(1000),
    PERS_ID Number(20),
    FLAG   Varchar2(1000),
    KEY    Varchar2(1000)
    LOAD DATA
    INFILE 'C:\sqll\work\sqldata.xlsx'
    BADFILE 'C:\sqll\work\bad_data.txt'
    DISCARDFILE 'C:\sqll\work\discard_data.txt'
    INTO TABLE hr_detail
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (NAME "TRIM(:NAME)",
    ID "TRIM(:ID)",
    SOURCE "TRIM(:SOURCE)",
    PERS_ID "TRIM(:PERS_ID)",
    FLAG "TRIM(:FLAG)",
    KEY "TRIM(:KEY)"
    sqlldr scott/pass control='C:\sqll\work\sqldataloader.ctl' log='C:\sqll\work\log_data.log'
    NAME       ID     SOURCE     PERS_ID  FLAG     KEY
         101     CORET     901          YJYYY
         102     CORET     902          
         103     CORET               AHERT
         104     CORET     904          QERET
    {code}
    {code}
    Record 1: Rejected - Error on table HR_DETAIL, column NAME.
    Field in data file exceeds maximum length
    Record 2: Rejected - Error on table HR_DETAIL, column PERS_ID.
    Field in data file exceeds maximum length
    Record 3: Rejected - Error on table HR_DETAIL, column NAME.
    Field in data file exceeds maximum length
    Record 4: Rejected - Error on table HR_DETAIL, column NAME.
    Field in data file exceeds maximum length
    Record 7: Rejected - Error on table HR_DETAIL, column SOURCE.
    Field in data file exceeds maximum length
    Record 12: Rejected - Error on table HR_DETAIL, column ID.
    Record 14: Rejected - Error on table HR_DETAIL, column ID.
    ORA-01722: invalid number
    Record 15: Rejected - Error on table HR_DETAIL, column ID.
    ORA-01722: invalid number
    {code}
    any help in this .. Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    fine ....The issue has been resolved

  • Need help in Sql Loader

    Hi sir, i have one file
    cointer header,batch and transactions
    for example,
    0PUAP03 071001721110000012000000037558 (header)
    1200707103137000000010104 (batch)
    2200707103137000000002845014D218499280101 10771450000 (transaction)
    2200707103137000000007259014D506656680103 10770610000 (transaction)
    1200707103108000000027454 (batch)
    2200707103108000000005386014A100048730103 10084780000 (transaction)
    2200707103108000000000856014D206225790303 10085530000 (transaction)
    2200707103108000000002730014D206332650110 10084110000 (transaction)
    2200707103108000000008783014D206805730207 10084730000 (transaction)
    2200707103108000000003687014D207862300207 10084540000 (transaction)
    2200707103108000000003282014D924725690206 10083910000 (transaction)
    2200707103108000000002730014H912454050201 10084220000 (transaction)
    Batch and transactions will be repeated
    I want to use sqlloader to load into 3 tables,header,batch and transaction in one shot,
    for header first characther is 0, for batch first characther is 1 and for transactions is 2
    i need to use running number
    for example
    i have
    header(header_id,date,...)
    batch(header_id,batch_id,..)
    transaction(header_id,batch_id,transaction_id..)
    if i use this
    when (1:1) = 0 {
    header_id hdr_run.nextval
    when (1:1) = 1 {
    header_id hdr_run.currval
    batch_id batch_run.nextval
    when (1:1) = 2 {
    header_id hdr_run.currval
    batch_id batch_run.currval
    transaction_id trans_run.nextval
    if i do like above and if i do each one line is commit then its works but i dunt want it commit in each line,if we not commit in each line then different transactions goes under different batch,so any other idea ,please
    i need it
    thanks in advance

    maybe this example might be of some help.
      Load
      Infile datafile.txt
      Append
      Into table dept
        when deptno !=''
        (deptno position(1:2) char,
         dname position(4:6) char,
         loc position(8:10) char)
      Into table emp
        when empno !=''
        (empno position(12:13) char,
         ename position(15:19) char)

Maybe you are looking for

  • About License synchronization on 4507R-E

    hello ,everyone. i got a mission that i need to sychronous a  license from an old SUP7-E to a new one, the license level is ipbase ,and it has been installed on the chassis 4507-E,then i looked up the documents from cisco.com  and find a way to make

  • Contact names not displaying during calls, but only in logs

    Many names in the address book not showing up Hence, when i get a call or make one, the name doesnt come up with the number after the call, the number with the name is visible in call log as outgoing or incoming or missed in the database details it s

  • How to embed  a advance table region in a seeded page

    Dear Friends I need to add a custom region in a seeded page { (po requisition page in worklist)--   /oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG  } I want to create a advance table region as custom region. CAN IT BE DONE THROUGH PERSONALIZATION?

  • CE Trial Version Available SAP Shop

    Hi guys, I just download the CE 7.3 trial version from SAP shop, it runs on SUSE VM, the thing is that the link to download SLES_11_SP1_SAP_Testdrive-1.0.13.tar.bz2 file " Downloads - SUSE Linux Enterprise Server 11 SP1 SAP Testdrive eSoftware Media

  • Hi , How to display multiple images

    hi, please help me out! I need to display multiple images on the jframe or on a jpanel . From the database where the path of the images are stored how to do it any one please give the code