SQL loader error

Hi all

I wrote a check as file

load data

INFILE 'D:/ReddSX/SHIP/destroyed_books.csv '.

in the t82dstry_new table

fields completed by «,»

(ID, DEALER, BEGINING_AGREEMENT, ENDING_AGREEMENT, COMMENTS, DATE

)

He saw 1231 documents but when execute sqlldr show

C:\ > sqlldr dlradt/Budget12@cdrtst control=D:\ReddSX\t82dstry_new.ctl

SQL * Loader: release 11.2.0.1.0 - Production on Wednesday, may 28 03:07:22 2014

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Commit the point reached - the number of logical records 52

and he does not also 52 records in the table,

What is the problem someone help me?

Thank you

David

The control file you posted does not produce this error, since I use as DATE column name without enclosing in double quotes would not work.  You must post your real control file, a few examples of data, the structure of your table, your log file and some records of your incorrect file sample.  If you get a partial cargo, then your log file and the wrong file will most help you determine why.  If you do not have to specfy INSERT or another option, then by default to INSERT in all cases, but this requires that the table is empty.  You can use APPEND if the table is not empty.

Tags: Database

Similar Questions

  • SQL Loader error - reduced to bare bones

    I get the same error repeatedly when you try to use Sql Loader. So I reduced my load to a single record of test with 2 columns of text.



    The data file is "C:\data_dir\opps_test.csv" and simply looks like this:
    t | t



    Here is the control file:

    load data
    INFILE 'C:\data_dir\opps_test.csv '.
    in the opps_test table
    fields ended by ' |'
    (OPP_ID, CAMP_CODE)



    And here is a desc on the target table opps_test:

    OPP_ID VARCHAR2 (255)
    CAMP_CODE VARCHAR2 (255)



    When I run sql loader I get the following error on the screen and in my journal and I wonder if anyone has any idea what it really means. The data consists of just me typing t | t and save the csv file


    SQL * Loader: release 10.2.0.3.0 - Production Saturday, May 9, 22:12:19 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    SQL * Loader-350: at line 1 syntax error.
    Illegal combination of nonalphanumeric characters
    {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset
    ^


    Thank you

    Published by: John W on May 9, 2009 22:31

    Your control file works for me just as you posted.

    Just a hunch...

    SQL*Loader-350: Syntax error at line 1.
    Illegal combination of non-alphanumeric characters
    {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset
    

    You save your control file or the data file with Microsoft Word or something other than a text editor?

  • SQL Loader error for DATE columns

    Oracle version: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0

    My control file:
    LOAD DATA 
    INFILE 'D:\Info\new_emp.dat'
    BADFILE 'D:\Info\new_emp.bad'
    DISCARDFILE 'D:\Info\new_emp.dsc'
    
    INTO TABLE "NEW_EMP"
    
    FIELDS TERMINATED BY ','
    
      (EMPLOYEE_ID
    , 
       EMPLOYEE_FIRSTNAME
    , 
       EMPLOYEE_LASTNAME
    , 
       EMPLOYEE_ADDRESS
    , 
       EMPLOYEE_CITY
    , 
       EMPLOYEE_STATE
    , 
       EMPLOYEE_ZIP_CODE
    , 
       EMPLOYEE_COUNTRY
    , 
       EMPLOYEE_PHONE_NMBR
    , 
       EMPLOYEE_FAX_NMBR
    , 
       EMPLOYEE_EMAIL
    , 
       EMPLOYEE_GENDER
    , 
       EMPLOYEE_AGE
    , 
       NATIVE_LANG_DESC
    , 
       SEC_LANG_DESC
    , 
       TER_LANG_DESC
    , 
       POSITION_TYPE
    , 
       REGIONAL_MANAGER
    , 
       DEALERSHIP_ID
    , 
       DEALERSHIP_MANAGER_FIRSTNAME
    , 
       DEALERSHIP_MANAGER_LASTNAME
    , 
       HIRE_DATE
    )
    The table I want to insert is called NEW_EMP. His last HIRE_DATE column is the DATE data type.

    Here are my dat file:
    1201,Andrew,Arthurs,200 Monroe street,Naperville,IL,,,1111111111,,,M,34,,,,Manager,,11,Harold,King,11/29/2003 13:40:00
    From the command prompt, I get:
    sqlldr username/password@db control=control.ctl
    The error generated in the log file is:
    Record 1: Rejected - Error on table "NEW_EMP", column HIRE_DATE.
    ORA-01843: not a valid month
    What can I change here in order to insert correctly the dates?

    Try this

    LOAD DATA
    INFILE 'D:\Info\new_emp.dat'
    BADFILE 'D:\Info\new_emp.bad'
    DISCARDFILE 'D:\Info\new_emp.dsc'
    
    INTO TABLE "NEW_EMP"
    
    FIELDS TERMINATED BY ','
    
      (EMPLOYEE_ID
    ,
       EMPLOYEE_FIRSTNAME
    ,
       EMPLOYEE_LASTNAME
    ,
       EMPLOYEE_ADDRESS
    ,
       EMPLOYEE_CITY
    ,
       EMPLOYEE_STATE
    ,
       EMPLOYEE_ZIP_CODE
    ,
       EMPLOYEE_COUNTRY
    ,
       EMPLOYEE_PHONE_NMBR
    ,
       EMPLOYEE_FAX_NMBR
    ,
       EMPLOYEE_EMAIL
    ,
       EMPLOYEE_GENDER
    ,
       EMPLOYEE_AGE
    ,
       NATIVE_LANG_DESC
    ,
       SEC_LANG_DESC
    ,
       TER_LANG_DESC
    ,
       POSITION_TYPE
    ,
       REGIONAL_MANAGER
    ,
       DEALERSHIP_ID
    ,
       DEALERSHIP_MANAGER_FIRSTNAME
    ,
       DEALERSHIP_MANAGER_LASTNAME
    ,
       HIRE_DATE Date "mm/dd/yyyy hh24:mi:ss"
    )
    

    p.s: not tested

    Concerning

    REDA

  • SQL Loader in error after the modified table

    Hello

    "I had a column in the table that was initially defined as VARCHAR2 (250), I changed the table and made 1000, when the data is over 250 characters sql loader is in error"

    Field in the data file exceeds the maximum length. The table shows the field in VARCHAR2 (1000). Help, please.

    Thank you

    Gwenaël

    I changed the table again to make VARCHAR2 (4000) and still have the error. My data are about 350 characters. Help, please

    Change to the column sqlldr control file and explicitly set tank (4000).  The default data in sqlldr type is char (255).

  • Error loading data using SQL loader

    I get an error message like "SQL * Loader - 350 combination illegal syntax of non-alphanumeriques characters error during loading of a file using SQL loader in RHEL." The command used to run SQL * Loader is:

    Sqlldr userid = < user name > / < password > control = data.ctl

    The control file is data.ctl:

    DOWNLOAD the data

    INFILE ' / home/oraprod/data.txt'

    Add in the table test

    {

    EmpID completed by «,»,

    fname completed by «,»,

    lname completed by «,»,

    treatment is completed with a white space

    }

    The data.txt file is:

    1, Kaushal, Hamad, 5000

    2, Chetan, Hamad, 1000

    Hopefully, my question is clear.

    Please get back with the answer to my query.

    Concerning

    Replace "{" by "("dans votre fichier de contrôle) "

    DOWNLOAD the data

    INFILE 'c:\data.txt.

    Add the emp_t table

    (

    EmpID completed by «,»,

    fname completed by «,»,

    lname completed by «,»,

    treatment is completed with a white space

    )

    C:\>sqlldr user/pwd@database control = c.ctl

    SQL * Loader: release 10.2.0.3.0 - Production on Wed Nov 13 10:10:24 2013

    Copyright (c) 1982, 2005, Oracle.  All rights reserved.

    Commit the point reached - the number of logical records 1

    Commit the point reached - the number of logical records 2

    SQL > select * from emp_t;

    EMPID, FNAME LNAME SALARY

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

    1 kone hamadi 5000

    2 Chetan Hamad 1000

    Best regards

    Mohamed Houri

  • Error loading XML file in the column of XMLTYPE through SQL loader

    Hi gurus,

    I am trying to load the XML file into the column of XMLTYPE through SQL Loader but the errors themselves. Here are the details

    Databases
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jul 24 17:17:55 2012
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    The table structure
    CREATE TABLE TH_XML
    (
      COL_ID_1   VARCHAR2(100 BYTE),
      IN_FILE_1  XMLTYPE
    )
    XMLTYPE IN_FILE_1 STORE AS CLOB (TABLESPACE SMDAT)
    XML (simple.xml) file
    <?xml version="1.0"?>
     <catalog> 
     <book id="bk101"> 
               <author>Some Author1</author> 
               <title>Some Title1</title> 
               <genre>Computer</genre> 
               <price>44.95</price> 
               <publish_date>2000-10-01</publish_date> 
               <description>creating applications</description> 
       </book> 
       <book id="bk112"> 
               <author>Some Author2</author> 
               <title>Some Title2</title> 
               <genre>Computer</genre> 
               <price>49.95</price> 
               <publish_date>2001-04-16</publish_date> 
               <description>Microsoft Visual Studio 7 is explored in depth</description> 
    </book> 
    </catalog>
    Control file
    LOAD DATA
    INFILE 'c:\simple.xml'
    APPEND
    INTO TABLE TH_XML 
    XMLTYPE(in_file_1)
    (
    col_id_1 filler  CHAR (100),
    in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF
    )
    LOG file
    SQL*Loader: Release 10.2.0.3.0 - Production on Tue Jul 24 16:42:25 2012
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Control File:   c:\my_file.ctl
    Data File:      c:\simple.xml
      Bad File:     c:\simple.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 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    
    Table TH_XML, loaded from every logical record.
    Insert option in effect for this table: APPEND
    
       Column Name                  Position   Len  Term Encl Datatype
    ------------------------------ ---------- ----- ---- ---- ---------------------
    COL_ID_1                            FIRST   100           CHARACTER            
      (FILLER FIELD)
    IN_FILE_1                         DERIVED     *  EOF      CHARACTER            
        Static LOBFILE.  Filename is c:\simple.xml
    
    Record 1: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 2: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 3: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 4: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 5: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 6: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 7: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 8: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 9: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 10: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 11: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 12: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 13: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 14: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 15: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 16: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 17: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 18: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 19: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 20: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 21: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 22: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 23: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    
    Table TH_XML:
      0 Rows successfully loaded.
      23 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:                    256 bytes(64 rows)
    Read   buffer bytes: 1048576
    
    Total logical records skipped:          0
    Total logical records read:            23
    Total logical records rejected:        23
    Total logical records discarded:        0
    
    Run began on Tue Jul 24 16:42:25 2012
    Run ended on Tue Jul 24 16:42:26 2012
    
    Elapsed time was:     00:00:00.23
    CPU time was:         00:00:00.05
    I get error ORA-00904: "SYS_NC_ROWINFO$": invalid identifier in the logfile (mentioned above). Could someone help me know where I am doing wrong?

    Thanks in advance.

    Published by: 876991 on 24 July 2012 14:18

    Hello

    This remove the control file:

    XMLTYPE(in_file_1)
    

    It is used only if the target table is an array of XMLType object.

    For an XMLType column LOBFILE is sufficient, for example:

    LOAD DATA
    INFILE *
    APPEND INTO TABLE TH_XML
    (
     col_id_1  CHAR (100),
     in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF
    )
    begindata
    MYID1
    

    It tells SQL * Loader data consisting of one record with COL_ID_1 = "MYID1" and content = "c:\simple.xml" IN_FILE_1

    SQL> CREATE TABLE TH_XML
      2  (
      3    COL_ID_1   VARCHAR2(100 BYTE),
      4    IN_FILE_1  XMLTYPE
      5  );
    
    Table created.
    
    SQL> host sqlldr control=test.ctl
    Username:dev
    Password:
    
    SQL*Loader: Release 11.2.0.2.0 - Production on Mer. Juil. 25 01:30:46 2012
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 1
    
    SQL> set long 5000
    SQL> column col_id_1 format a15
    SQL> select * from th_xml;
    
    COL_ID_1        IN_FILE_1
    --------------- --------------------------------------------------------------------------------
    MYID1           
                     
                     
                               Some Author1
                               Some Title1
                               Computer
                               44.95
                               2000-10-01
                               creating applications
                       
                       
                               Some Author2
                               Some Title2
                               Computer
                               49.95
                               2001-04-16
                               Microsoft Visual Studio 7 is explored in depth
                    
     
    
  • SQL * Loader - rejected records - error on table ORA-01722: invalid number

    Get the following errors:

    Please tell me where I'm wrong?
    The log file and extracts the data file with the control file is attached.
    Also guide me please how I can download 4900 files at once?

    -------------------------------------
    SQL * Loader: release 11.1.0.7.0 - Production on Fri 14 Oct 03:06:06 2011

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Control file: sample.ctl
    Data file: Cities.csv
    Bad leadership: Cities.bad
    Discard File: none is specified

    (Allow all releases)

    Number of loading: ALL
    Number of jump: 0
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table CITY, loaded from every logical record.
    Insert the option in effect for this table: INSERT

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    FIRST ID *, CHARACTER
    35. ACCORDING TO NAME, ' CHARACTER
    COUNTRYCODE 3, ' CHARACTER
    THE NEXT POPULATION * CHARACTER WHT

    Sheet 1: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 2: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 3: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Folder 4: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 5: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 6: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 7: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 8: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 9: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Case 10: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Factsheet 11: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 12: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 13: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 14: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 15: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 16: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 17: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 18: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 19: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 20: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 21: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Account 22: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 23: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record number of 24: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 25: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 26: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 27: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 28: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 29: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 30: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record of 31: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    • Statement 32: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 33: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Page 34: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 35: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 36: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 37: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 38: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 39: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 40: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 41: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Page 42: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 43: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 44: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 45: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    • Statement 46: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 47: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 48: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 49: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Page 50: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 51: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number


    NUMBER of MAXIMUM ERRORS EXCEEDED - above the statistics reflect partial performance.

    CITY table:
    0 rows successfully loaded.
    51 lines not filled due to data errors.
    0 rows not loading because all WHEN clauses were failed.
    0 rows not populated because all fields are null.


    The space allocated to bind table: 35840 bytes (64 lines)
    Bytes of read buffer: 1048576

    Total logical records ignored: 0
    Total logical records read: 64
    Total rejected logical records: 51
    Total logical records ignored: 0

    Run started on Fri 14 Oct 03:06:06 2011
    Run finished Fri Oct 14 03:06:12 2011

    Time was: 00:00:06.18
    Time processor was: 00:00:00.03



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

    my control file (sample.ctl):

    Load data infile 'Cities.csv '.
    in the town of table
    fields completed by «,»
    (external id integer,
    char (35) name box by ' ', '
    CountryCode tank (3) box by ' ', '
    external population integer terminated by '\n '.
    )

    my data (Cities.csv) file (it contains 4900 documents, but I show here just 4 records for ease)

    3830, "Virginia Beach", "USA", 425257
    3831, 'Atlanta', 'USA', 416474
    3832, "Sacramento", "USA", 407018
    3833, 'Oakland', 'USA', 399484


    Thanks in advance!

    Watch when I have a little change your database as follows

    1,'Kabul','AFG',1780000
    2,'Qandahar','AFG','237500'
    3,'Herat','AFG','186800'  
    

    I got the same error (last 2 rows rejected for the same number invalid error)

    mhouri > select * from cities;
    
            ID NAME                                COU POPULATION
    ---------- ----------------------------------- --- ----------
             1 Kabul                               AFG    1780000
    
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Oct 14 10:38:06 2011
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Control File:   cities.ctl
    Data File:      cities.dat
      Bad File:     cities.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 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    
    Table CITIES, loaded from every logical record.
    Insert option in effect for this table: INSERT
    
       Column Name                  Position   Len  Term Encl Datatype
    ------------------------------ ---------- ----- ---- ---- ---------------------
    ID                                  FIRST     *   ,       CHARACTER
    NAME                                 NEXT    35   ,    '  CHARACTER
    COUNTRYCODE                          NEXT     3   ,    '  CHARACTER
    POPULATION                           NEXT     *  WHT      CHARACTER            
    
    Record 4: Rejected - Error on table CITIES, column ID.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 2: Rejected - Error on table CITIES, column POPULATION.
    ORA-01722: invalid number
    
    Record 3: Rejected - Error on table CITIES, column POPULATION.
    ORA-01722: invalid number
    
    Table CITIES:
      1 Row successfully loaded.
      3 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:                  35840 bytes(64 rows)
    Read   buffer bytes: 1048576
    
    Total logical records skipped:          0
    Total logical records read:             4
    Total logical records rejected:         3
    Total logical records discarded:        0
    
    Run began on Fri Oct 14 10:38:06 2011
    Run ended on Fri Oct 14 10:38:06 2011
    
    Elapsed time was:     00:00:00.23
    CPU time was:         00:00:00.09
    

    Value of the population within the data file must be a number

    Best regards

    Mohamed Houri

  • SQL * Loader invalid number error

    I'm trying to load a .csv using SQL * Loader and all ranks is rejected with an error invalid number.

    Here is the control file:

    OPTIONS (SKIP = 1)
    DOWNLOAD THE DATA
    INFILE 'shi_claims.csv '.
    REPLACE IN THE TABLE SHI_CLAIMS
    FIELDS ENDED BY ',' POSSIBLY FRAMED BY "" "
    TRAILING NULLCOLS
    (
    ID TANK
    DECIMAL EXTERNAL AMT
    )

    Here are the first lines of data in the .csv (note I am ignoring the first line):

    EmployeeID, PaidAmnt
    100550393,0
    100709611,120.04
    100795648,90
    100795648,5.24

    Here is the structure of the table, I'm trying to load:

    CREATE THE TABLE UST_GLOBAL. SHI_CLAIMS
    (
    ID VARCHAR2 (9 CHAR),
    AMT NUMBER (8.2)
    )

    Here's the .log file that results. All ranks lands in the .bad file.

    SQL * Loader: Release 10.2.0.4.0 - Production on Mon Mar 7 16:34:09 2011

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Control file: /u02/sct/ust/shi_claims.ctl
    Data file:././data.7609732
    Bad leadership: 7609732.bad
    Delete the file: discard.7609732
    (Allow all releases)

    Number of loading: ALL
    Number of jump: 1
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table SHI_CLAIMS, loaded from every logical record.
    Insert the option in effect for this table: REPLACE TRAILING NULLCOLS option in effect

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    FIRST ID *, O ("") CHARACTER
    AMT NEXT *, O ("") CHARACTER

    Sheet 1: Rejected - error on the SHI_CLAIMS, AMT column table.
    ORA-01722: invalid number

    Sheet 2: Rejected - error on the SHI_CLAIMS, AMT column table.
    ORA-01722: invalid number

    (.. .and so forth for all ranks).

    I note that in the copy of the control file that is displayed in the .log file, the column AMT appears as a CHARACTER, while my control file means DECIMAL EXTERNAL. Could why, and this be part of the problem?

    Thanks for any help...

    Published by: wrfoster on March 8, 2011 09:40

    wrfoster wrote:
    Ideas on how to get rid of them?

    Well, ideally, if you can get rid of them when creating csv... If not do the AMT DUMP as I suggested previously to get the exact or the end characters ascii codes. Assuming that it is the new line of Chr (10) put the following text in the loader control file:

    AMT "RTRIM (:AMT,CHR(10)).

    SY.

  • Error SQL Loader loading a field date

    Hello

    I get the error while I'm trying to load a table with a field of date using SQL Loader below

    Sheet 1: Rejected - error on the table RPT_HOST_USAGE, column USAGE_TIMESTAMP.
    ORA-01861: literal does not match the format string


    My input file is as below
    < code >
    Host_Usage_ID, Host_ID, Technology_ID, Environment_ID, Usage_Timestamp, Avg_CPU_Pct, Avg_Memory_MB, CPU_Spike
    1,12,1,8,'2009-08-01 00:00:00 ', 0.000000000, 23875.000000000, 0.000000000
    < code >

    My Loader.ctl is
    < code >
    OPTIONS (SKIP = 1)
    load data
    INFILE 'C:\rpt_Host_Usage.txt '.
    in the RPT_HOST_USAGE table
    fields completed by «,»
    (
    HOST_USAGE_ID,
    HOST_ID,
    TECHNOLOGY_ID,
    ENVIRONMENT_ID,
    USAGE_TIMESTAMP,
    AVG_CPU_PCT,
    AVG_MEMORY_MB,
    CPU_SPIKE
    )
    < code >

    I tried options like USAGE_TIMESTAMP TO_DATE(USAGE_TIMESTAMP,'YYYY-MM-DD HH24:MI:SS') but did not...
    Can you please tell me how to fix this?

    Pointers on it will be useful

    Thank you

    Mahesh

    I went back and looked at some of my old files of *.ctl and I did something simlilar to what you mentioned and it worked for me, but I was surrounded by the quotes option and included a colon in front of the element. Example:

    ...
    TECHNOLOGY_ID,
    ENVIRONMENT_ID,
    USAGE_TIMESTAMP ' to_date (: USAGE_TIMESTAMP, "YYYY-MM-DD HH24:MI:SS)."
    AVG_CPU_PCT,
    AVG_MEMORY_MB,
    ....

  • SQL Loader Missing expression error.

    Hi guru

    I'm updating data from csv to database table. Here I am attaching my control file and log file... you can help resolve the following error message.

    Control file:
    LOAD DATA 
    INFILE 'C:\Users\bura.sami\Documents\MSBLive Oracle Objects.csv' 
    BADFILE 'C:\Users\bura.sami\Documents\MSBLive Oracle Objects.bad'
    DISCARDFILE 'C:\Users\bura.sami\Documents\MSBLive Oracle Objects.dsc'
    
    INTO TABLE MSBLIVE_OBJECTS
    INSERT
    FIELDS TERMINATED BY ","
    optionally enclosed by '"'
    trailing nullcols
      (
      INDEX_NAME CHAR "trim(Index)",
      TABLE_NAME CHAR "trim(Table)",
      VIEW_NAME  CHAR "trim(View)",
      TRIGGER_NAME  CHAR "trim(Trigger)",
      SEQUENCE_NAME  CHAR "trim(Sequence)",
      PROCEDURE_NAME  CHAR "trim(Procedure)",
    PACKAGE_NAME  CHAR "trim(Package)",
    PACKAGE_OBJECT  CHAR "trim(Package Body)", 
       FUNCTION_NAME  CHAR "trim(Function)"
    )
    
    {code}
    
    *Error log:*
    
    {code}
    
    SQL*Loader: Release 10.2.0.1.0 - Production on Wed Nov 24 14:31:05 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Control File:   simple_load.ctl
    Data File:      C:\Users\bura.sami\Documents\MSBLive Oracle Objects.csv
      Bad File:     C:\Users\bura.sami\Documents\MSBLive Oracle Objects.bad
      Discard File: C:\Users\bura.sami\Documents\MSBLive Oracle Objects.dsc 
     (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 MSBLIVE_OBJECTS, loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effect
    
       Column Name                  Position   Len  Term Encl Datatype
    ------------------------------ ---------- ----- ---- ---- ---------------------
    INDEX_NAME                          FIRST     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Index)"
    TABLE_NAME                           NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Table)"
    VIEW_NAME                            NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(View)"
    TRIGGER_NAME                         NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Trigger)"
    SEQUENCE_NAME                        NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Sequence)"
    PROCEDURE_NAME                       NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Procedure)"
    PACKAGE_NAME                         NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Package)"
    PACKAGE_OBJECT                       NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Package Body)"
    FUNCTION_NAME                        NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Function)"
    
    Record 1: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 2: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 3: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 4: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 5: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 6: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 7: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 8: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 9: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 10: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 11: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 12: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 13: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 14: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 15: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 16: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 17: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 18: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 19: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 20: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 21: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 22: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 23: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 24: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 25: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 26: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 27: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 28: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 29: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 30: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 31: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 32: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 33: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 34: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 35: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 36: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 37: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 38: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 39: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 40: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 41: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 42: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 43: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 44: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 45: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 46: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 47: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 48: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 49: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 50: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 51: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    
    MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
    
    Table MSBLIVE_OBJECTS:
      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:                 148608 bytes(64 rows)
    Read   buffer bytes: 1048576
    
    Total logical records skipped:          0
    Total logical records read:            64
    Total logical records rejected:        51
    Total logical records discarded:        0
    
    Run began on Wed Nov 24 14:31:05 2010
    Run ended on Wed Nov 24 14:31:34 2010
    
    Elapsed time was:     00:00:29.71
    CPU time was:         00:00:00.03
    Thanks and greetings
    Saami

    Hello

    You can set your syntax for all areas (example here for only one field):

    INDEX_NAME CHAR "trim(:INDEX_NAME)",
    

    You can only refer to the names used as domain names.

    Herald tiomela
    http://htendam.WordPress.com

  • What is the cause of the error SQL * Loader-925: the ulprep error: extraction?

    Hello

    I use SQL Loader to load a file into a partitioned table. However, the performance charger throws the following error message:

    SQL * Loader-925: the ulprep error: extraction
    ORA-01031: insufficient privileges

    Please can someone explain what the possible cause of this error?

    Thanks in advance
    Annie

    try to view the logfile too. the log file can be useful.

    ORA-01031: insufficient privileges-> indicates the user account does not have access to the table.

  • SQL * Loader-704: internal error

    Hi all
    I have run this command in windows
    sqlplus a/b@c
    It is connected, I can run sql and the results returned.

    However, I have run this command from sql loader
    sqlldr control = test.ctl a/b@c data = test.txt

    but the error is returned

    SQL * Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12154: TNS: could not resolve the connect identifier specified


    What are the reasons and why?
    Thank you very much!

    Hello Forreging.
    Srini said you that you must consider. SQL * Plus allows for a few characters that SQL * Loader. You should be able to use both $ (dollar sign) and _ (underscores stroke). Beyond these two special characters, my memory is incomplete. Your operating system might limit you also.

    Hope this helps,
    Luke

    Please check the answer as helpful or response, if it is so. If this is not the case, further clarification.
    Try to always provide create table and table insert to help members of the forum to help you.

  • SQL * Loader Control File - Error 510

    Hello!

    I am trying to load a file TXT using SQL * Loader, my control file is a little too big I guess: 83KO.

    The problem is the message I get:

    SQL * Loader: release 10.2.0.3.0 - Production on Qua game 16 11:18:58 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    SQL * Loader-510: O registro fisico dados (C:\Teste\Exe548teste_zanthus.old.ctl) e but full o' maximo land (2147473647).

    The language is Brazilian Portuguese.

    But the size of the file is only 83 KB, not the maximum size. I'm confused.

    The data is a TXT file with more than 1000 characters per line.
    The problem is that the generated control file is 'bigger' than the maximum. The error is not from the data file (error in the control file, not the data file). If you want I can put the file here and a sample of the data file too.

    I guess that is not find expressions of the folklore of the control file, but there a tank < ENTER > at the EOF (CR + LF (I think).

    I really want to split the data file or in multiple files control file and then control the import with the software, which would be boring...

    I don't know if this information helps but my control file using multiple INTO TABLE...

    Thank you!

    I still feel that the problem is the end character.

    André Luis wrote:

    The comparison is ok since I have already tested with a small control file.

    The problem is not the size of the file, the problem is the size of the line, with a small control file sql loader to read the file only online, and in this case it works because it is under the limit for the size of the line. (The smal file perhaps has the same problems with the characters of late, but due to its size it recount not error.)

    I hope that I missed something in the creation of the control file, I think he tries to read data from it, despite the fact that I have to tell him otherwise, because I saw something to tell the size limit for a control file with data inside...

    The control file syntax is OK, I don't think that he search data in the control file.

    I insist on the fact that you are creating the control file with another editor, otherwise...

  • Error loading throug sql loader

    Hi all

    Try using sql loader to data to CSV laod. However, during a load, I met with errors.
    Please find below my newspaper, the control and the data file.
    ------------Ctl File----------------

    load data
    discardfile 'c:\dis.log'
    infile      'c:\csv\personal1.csv'
    into table personal_expenses
    fields terminated by "," 
    trailing nullcols
    (PURCHASE_DATE date 'mm/dd/yy',PAYEE,RUPEE_SPENT,CATEGORY,SUB_CATEGORY,DESCRIPTION)

    ------------- Log FIle---------------------------

    SQL*Loader: Release 10.1.0.2.0 - Production on Tue Aug 11 12:29:07 2009

    Copyright (c) 1982, 2004, Oracle.  All rights reserved.

    Control File:   C:\control01.ctl.txt

    There are 2 data files:
    Data File:      control01.ctl
      Bad File:     C:\control01.bad
      Discard File: c:\dis.log
    (Allow all discards)
    Data File:      c:\csv\personal.csv
      Bad File:     C:\personal.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 256000 bytes
    Continuation:    none specified
    Path used:      Conventional

    Table PERSONAL_EXPENSES, loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effect

       Column Name                  Position   Len  Term Encl Datatype
    ------------------------------ ---------- ----- ---- ---- ---------------------
    PURCHASE_DATE                       FIRST     *   ,       DATE mm/dd/yyyy     
    PAYEE                                NEXT     *   ,       CHARACTER           
    RUPEE_SPENT                          NEXT     *   ,       CHARACTER           
    CATEGORY                             NEXT     *   ,       CHARACTER           
    SUB_CATEGORY                         NEXT     *   ,       CHARACTER           
    DESCRIPTION                          NEXT     *   ,       CHARACTER           


    Data File control01.ctl -

    Record 1: Discarded - all columns null.
    Record 3: Discarded - all columns null.
    Record 5: Discarded - all columns null.
    Record 2: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected

    Record 4: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected

    Record 6: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected

    Record 7: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected

    Record 8: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected

    Record 9: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected


    Data File c:\csv\personal.csv -

    Record 10: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 11: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 12: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 13: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 14: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 15: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 16: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 17: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 18: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 19: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 20: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 21: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 22: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 23: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 24: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 25: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 26: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 27: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 28: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 29: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 30: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 31: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 32: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 33: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 34: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 35: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 36: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 37: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 38: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 39: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 40: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 41: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 42: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 43: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 44: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 45: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 46: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 47: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 48: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 49: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 50: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 51: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 52: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 53: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number

    Record 54: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
    ORA-01722: invalid number


    MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.

    Table PERSONAL_EXPENSES:
      0 Rows successfully loaded.
      51 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      3 Rows not loaded because all fields were null.


    Space allocated for bind array:                  99072 bytes(64 rows)
    Read   buffer bytes: 1048576

    Total logical records skipped:          0
    Total logical records read:            73
    Total logical records rejected:        51
    Total logical records discarded:        3

    Run began on Tue Aug 11 12:29:07 2009
    Run ended on Tue Aug 11 12:29:08 2009

    Elapsed time was:     00:00:00.55
    CPU time was:         00:00:00.06

    ------------------------- Sample Data-----------------

    04/05/09,Groceries,Withdrawal,83,Food,Groceries
    05/05/09,Other,Withdrawal,50,Homeneeds,Other,,given to lali,
    02/05/09,Groceries,Withdrawal,60,Food,Groceries,,Ice cream for all ,
    05/05/09,Physcian,Withdrawal,400,Healthcare,Physician,,Consult to DR.ABBAS,
    05/08/09,Dining Out,Withdrawal,35,Food,Dining out,,Juices,Ice cream,
    05/07/09,Health,Withdrawal,120,Healthcare,Health,,Vasline Lotion,Cap Bcomplex,
    05/10/09,clothing,Withdrawal,150,Homeneeds,Clothing,,Baby suit bought for Rupesh kid,
    05/11/09,Physcian,Withdrawal,1500,Healthcare,Physician,,Ayurvedic Medicine from ABBASUsha,Me and Sonu,
    05/11/09,Groceries,Withdrawal,55,Food,Groceries,,milk 1|2 kg, curd 1|2kg, sweet ,
    05/17/09,Dining Out,Withdrawal,200,Food,Dining out,,me, sonu had dining out in bite-inkulfi,maze, special thali,

    cold
    05/17/09,Petorl,Withdrawal,300,Petrol,,,Petrol for CAR,
    05/18/09,Health,Withdrawal,1500,Healthcare,Health,,Test : Ultrasound, Blood,
    05/18/09,Physcian,Withdrawal,200,Healthcare,Physician,,ENT visit : Me,Poonam,
    05/18/09,Health,Withdrawal,350,Healthcare,Health,,Medicine :-,
    05/18/09,Dining Out,Withdrawal,165,Food,Dining out,,Dosa, lassi ,cold drinl ,shikanji , kulfi,
    05/18/09,clothing,Withdrawal,730,Homeneeds,Clothing,,2 t shirt, 1lower , Braw , 1 purse
    bindi , cluture , rubber bandlower Alok
    05/21/09,Health,Withdrawal,325,Healthcare,Health,,Medicine bought for poona75+50.
    Medicine start date is 21-may-09 for truboclosis,
    05/21/09,Other,Withdrawal,100,Homeneeds,Other,,Rikshaw rent,
    05/26/09,Internet,Withdrawal,550,Bills,Internet,,Gave sonu - 26-May-09,
    05/30/09,Physcian,Withdrawal,200,Healthcare,Physician,,Dr. Sulabh Gupta consultation,
    05/30/09,Groceries,Withdrawal,90,Food,Groceries,,Sweet ,
    05/30/09,Party,Withdrawal,165,Leisure,Party,,Mc puff, Burger , Coke ,
    05/30/09,Office food,Withdrawal,55,Food,Office food,,Lunch , Tea , Milk Bottel,
    06/01/09,Medicine Alopathic,Withdrawal,538,Healthcare,Medicine Alopathic,,Poonam medicine + dendruf shampoo,
    06/01/09,Fruits,Withdrawal,55,Food,Fruits,,Fruit juices + wayer bottel,
    06/01/09,Gifts,Withdrawal,80,Gifts,,,sharpner, eraser,
    06/01/09,Fruits,Withdrawal,55,Food,Fruits,,For poonam' home,
    06/01/09,Dining Out,Withdrawal,50,Food,Dining out,,coke , curd , lays chipps,
    06/04/09,Maintainance,Withdrawal,800,Maintainance,,,Bike Maintanence,
    06/10/09,Medicine Alopathic,Withdrawal,250,Healthcare,Medicine Alopathic,,Medicine Sonu -- Dr Yogmaya.
    06/10/09,Medicine Alopathic,Withdrawal,300,Healthcare,Medicine Alopathic,,Sonu medicine - Dr Salabh Gupta,
    06/15/09,Medicine Alopathic,Withdrawal,570,Healthcare,Medicine Alopathic,,Medicine Poonam ,
    06/22/09,Medicine Ayurvedic,Withdrawal,400,Healthcare,Medicine Ayurvedic,,Dr. Abbas,
    06/22/09,Movies,Withdrawal,160,Leisure,Movies,,Movie -paying guest,
    06/25/09,Dining Out,Withdrawal,150,Food,Dining out,,Chinees Combo+1 colddrink,
    06/25/09,Internet,Withdrawal,550,Bills,Internet,,Internet payment,
    06/29/09,Medical Test,Withdrawal,320,Healthcare,Medical Tests,,Blood Test :- Sonu - RA FACTOR,
    06/29/09,Dining Out,Withdrawal,200,Food,Dining out,,Rasoi:- Special thali , cold drinks,
    07/02/09,B'day,Withdrawal,1000,Leisure,B'day,,Mom's B'day,
    07/01/09,Medicine Ayurvedic,Withdrawal,590,Healthcare,Medicine Ayurvedic,,Mine: Abbas,
    07/02/09,B'day,Withdrawal,300,Leisure,B'day,,Afzal,
    07/05/09,B'day,Withdrawal,1000,Leisure,B'day,,Amit B'day,
    07/08/09,Travel,Withdrawal,2000,Vacation,Travel,,Trian tickets:-,
    07/08/09,Dining Out,Withdrawal,1000,Food,Dining out,,During travelling to Gwalior,
    07/16/09,Medicine Ayurvedic,Withdrawal,1000,Healthcare,Medicine Ayurvedic,,Dr. Abbas : Medicine Ayurvedic,
    07/16/09,Petorl,Withdrawal,100,Petrol,,,For Bike,
    07/17/09,Party,Withdrawal,290,Leisure,Party,,Office party : Dad earned golf medal.,
    07/19/09,Other,Withdrawal,64,Homeneeds,Other,,Mother's in law--
    07/20/09,Movies,Withdrawal,200,Leisure,Movies,,200 :- New York,
    07/21/09,Dining Out,Withdrawal,200,Food,Dining out,,For movie,
    07/21/09,clothing,Withdrawal,1700,Homeneeds,Clothing,,Sonu: 3 kurtas , one shirt usha,
    07/23/09,Medicine Alopathic,Withdrawal,290,Healthcare,Medicine Alopathic,,Sonu's Medicine 10 days,
    08/01/09,clothing,Withdrawal,200,Homeneeds,Clothing,,sonu leg-inns,
    08/01/09,Give & take,Withdrawal,200,Bills,Give & Take,,sheetal for dress,
    08/01/09,Give & take,Withdrawal,100,Bills,Give & Take,,given meenu,
    08/02/09,Medicine Ayurvedic,Withdrawal,1400,Healthcare,Medicine Ayurvedic,,My Medicine from Dr Abbas,
    08/03/09,Medicine Alopathic,Withdrawal,300,Healthcare,Medicine Alopathic,,Sonu's Medicine,
    08/03/09,clothing,Withdrawal,100,Homeneeds,Clothing,,Stiching,
    08/03/09,Cosmetics,Withdrawal,480,Homeneeds,Cosmetics,,Dio, Lipistick  Nail color tec,
    08/03/09,Outdoor foods,Withdrawal,100,Food,Outdoor foods,,lassi ras mala golgappe shikangi,
    08/03/09,clothing,Withdrawal,60,Homeneeds,Clothing,,Peticote,
    08/03/09,Give & take,Withdrawal,200,Bills,Give & Take,,given sheetal,
    08/03/09,clothing,Withdrawal,150,Homeneeds,Clothing,,leg-inns for sonu,
    08/06/09,Festivals,Withdrawal,1500,Leisure,Festivals,,1500 Rakshabandhan,
    08/10/09,Dining Out,Withdrawal,150,Food,Dining out,,Bikaner-chineese plater-cold drink,
    08/10/09,Medicine Ayurvedic,Withdrawal,150,Healthcare,Medicine Ayurvedic,,Sonu's Archiritis Medicine,
    08/10/09,Give & take,Withdrawal,1000,Bills,Give & Take,,Komal's commettie,
    08/19/09,clothing,Withdrawal,350,Homeneeds,Clothing,,Sonu's kurta,
    08/20/09,Medicine Alopathic,Withdrawal,360,Healthcare,Medicine Alopathic,,Sonu's Medicine prscbd dr Alok,
    08/20/09,Physcian,Withdrawal,200,Healthcare,Physician,,Ortopedic fee,
    08/20/09,Dining Out,Withdrawal,75,Food,Dining out,,Burger carried from office,
    08/20/09,other expences,Withdrawal,300,Vacation,other expences,,Return file fee,
    08/20/09,Office food,Withdrawal,55,Food,Office food,,contrey rs 20 food rs 35,
    Hare krishna

    RUPEE_SPENT seems to be the fourth column in your sample data.

    However, your control file indicates that it is in the third column?

    Toon

  • SQL loader when error clause

    Hello

    I have this CTL file as below:

    DOWNLOAD THE DATA
    INFILE 'PRODUCT_*.csv '.
    ADD
    IN THE PRODUCT_CONFIG TABLE
    "WHEN <>(1:3) and (1:3) <>' 99" and <>' 00, «,» (1:4),
    FIELDS ENDED BY ',' POSSIBLY FRAMED BY "" "
    TRAILING NULLCOLS
    (
    PARTNUMBER NULLIF PARTNUMBER = BLANKS,
    NULLIF LABEL = BLANKS,
    NULLIF SEQUENCE SEQUENCE = BLANKS,
    NULLIF DISPLAY_FLAG DISPLAY_FLAG = BLANKS,
    BILL_PERIOD NULLIF BILL_PERIOD = BLANKS)

    However, I got this error when I run my file:

    SQL * Loader-350: error of syntax in line 6.
    Expecting "(", found "99".
    "WHEN <>(1:3) and (1:3) <>' 99" and <>' 00, «,» (1:4),


    How can I change my code to solve this error?

    Hello

    After your data, I created a test table and load the data successfully. See if this example helps you

    CREATE TABLE test (
       col1 VARCHAR2 (20),
       col2 VARCHAR2 (30),
       col3 NUMBER,
       col4 NUMBER
    );
    
    load data
    truncate into table test
    when ( col1 !='00') and (col1 !='99')
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (col1 char(20),
    col2 char(30),
    col3 integer external,
    col4 integer external
    );
    
    {code}
    
    Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    

Maybe you are looking for

  • Program named "default".

    In Add / Remove Programs, there is a program named "Default".  There is no file size associated with registration.  Anyone have any idea what this could be and, if so, it is safe to delete?

  • HP pavilion dv6-3299 GRAPHIC DRIVER PROBLEM HD 6550 M

    Hello I have problems with the graphics driver on my hp pavilion dv6-3299. I installed windows 8, and it seems that windows will not recognize correctly. Graphics card is Ati mobility radeon 6650M. Sorry for the bad English. TNX swear

  • How can I add an HTML link in this forum

    Guess I resolved myself, it appears as a link after posting the condition I have highlighted the text of the link and right click and select the option "make link". I tried to delete my question, but was unable to do so.

  • Printer all-in-one HP C3140 (envelopes)

    Can someone give me please the easy steps to be able to print business envelopes of 4 1/8 "x 9 1/2"? I just need our return address on it.  Nothing else. I'm tired of searching!  Thank you very much!

  • Why can't my Canon Pro - 100 Lightroom/Photoshop plug-in?

    When I try to install my Canon Pixma Pro - 100 plug-ins in Lightroom and Photoshop (via my creative photography subscription Cloud), the plugin install said software that these versions of Lightroom and Photoshop do not load the plug-in.This is not s