Error with When Clause SQL Loader

I´'m trying to use WHEN clause in a control file, I'm following the documentation but it doesn't work still.
This is my control file:
LOAD DATA
CHARACTERSET UTF8
INTO TABLE DM08_CONDICIONADA
WHEN (STATUS_DESC='A')
APPEND
REENABLE DISABLED_CONSTRAINTS
FIELDS
TERMINATED BY '|'
"ID_COND" POSITION (1) INTEGER EXTERNAL ,
"DESC_COND" CHAR,
"STATUS_DESC" CHAR
I have the follow error:
SQL*Loader-350: Syntax error at line 26.
Expecting "(", found keyword append.
APPEND
^
I have tried with
WHEN STATUS_DESC='A'
but the error is the same. Do you have any ideas why is that?? I'm working with oracle 9i.
Greetings
Oscar

with:
LOAD DATA
CHARACTERSET UTF8
INTO TABLE DM08_CONDICIONADA
APPEND
WHEN STATUS_DESC='A' --->with (STATUS_DESC='A') neither
REENABLE DISABLED_CONSTRAINTS
FIELDSTERMINATED BY '|'
I have:
SQL*Loader-350: Syntax error at line 27.
Expecting "(", found keyword reenable.
REENABLE DISABLED_CONSTRAINTS
With:
LOAD DATA
CHARACTERSET UTF8
INTO TABLE DM08_CONDICIONADA
APPEND
REENABLE DISABLED_CONSTRAINTS
WHEN (STATUS_DESC ='A')
i have:
SQL*Loader-403: Referenced column STATUS_DESC not present in table DM08_CONDICIONADA.
I´m using the documentation...
-->full_fieldname or pos_spec-->operator--> char_string or Blanks --->
but it doesn't tell me where the when clause goes... i'm probing too with the forum information but i don't know what happens.
Thanks Jens

Similar Messages

  • TS3694 Error 3014 when trying to load ios6. I have cleared 2.5GB on the phone as it seems you need that ridiculous amount of space. Every time it just gives me 3014 error code within a minute of trying to download? Any help?

    Error 3014 when trying to load ios6. I have cleared 2.5GB on the phone (4s) as it seems you need that ridiculous amount of space. Every time it just gives me 3014 error code within a minute of trying to download? Any help?

    All,
    I thought it may be related to spaces in the path in which the script was called from. I tried having the ODBC command script in another directory but the same thing happens. It will give me the "CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259". As soon as the script is done running I can manually double click the script and it adds the DSN fine.
    Thanks,
    Clif Bridegum

  • Sql@loader-704  and ORA-12154: error messages when trying to load data with SQL Loader

    I have a data base with two tables that is used by Apex 4.2. One table has 800,000 records . The other has 7 million records
    The client recently upgraded from Apex 3.2 to Apex 4.2 . We exported/imported the data to the new location with no problems
    The source of the data is an old mainframe system; I needed to make changes to the source data and then load the tables.
    The first time I loaded the data i did it from a command line with SQL loader
    Now when I try to load the data I get this message:
    sql@loader-704 Internal error: ulconnect OCISERVERATTACH
    ORA-12154: tns:could not resolve the connect identifier specified
    I've searched for postings on these error message and they all seem to say that SQL Ldr can't find my TNSNAMES file.
    I am able to  connect and load data with SQL Developer; so SQL developer is able to find the TNSNAMES file
    However SQL Developer will not let me load a file this big
    I have also tried to load the file within Apex  (SQL Workshop/ Utilities) but again, the file is too big.
    So it seems like SQL Loader is the only option
    I did find one post online that said to set an environment variable with the path to the TNSNAMES file, but that didn't work..
    Not sure what else to try or where to look
    thanks

    Hi,
    You must have more than one tnsnames file or multiple installations of oracle. What i suggest you do (as I'm sure will be mentioned in ed's link that you were already pointed at) is the following (* i assume you are on windows?)
    open a command prompt
    set TNS_ADMIN=PATH_TO_DIRECTOT_THAT_CONTAINS_CORRECT_TNSNAMES_FILE (i.e. something like set TNS_ADMIN=c:\oracle\network\admin)
    This will tell oracle use the config files you find here and no others
    then try sqlldr user/pass@db (in the same dos window)
    see if that connects and let us know.
    Cheers,
    Harry
    http://dbaharrison.blogspot.com

  • Errors when using sql loader direct path with a nvl functin on a date field

    I thought I read in 10g that all sql functions now work in direct path mode.
    the following function works without direct path mode. When we turn direct path mode on the load fails. When we take the function out in direct path mode it works.
    mydate DATE "YYYY-MM-DD" "nvl(:mydatedate,to_date('9999-01-01','YYYY-MM-DD'))"
    with direct path mode I get:
    EVERY record gets rejected with this error.
    Record 10: Rejected - Error on table MYTABLE
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01861: literal does not match format string
    again works fine without direct=true, works fine with direct=true if i get rid of the function.
    any ideas?
    Message was edited by:
    Guess2
    Message was edited by:
    Guess2

    like usual your posts are completely useless daniel.
    I could have swarn that oracle advertised that you can use functions with 9i or 10g release in the new features guys or the first releases.

  • "ORA-00054 Resource Busy Error"  when running SQL*Loader in Parallel

    Hi all,
    Please help me on an issue. We are using Datastage which uses sql*loader to load data into an Oracle Table. SQL*Loader invokes 8 parallel sessions for insert on the table. When doing so, we are facing the following error intermittently:
    SQL*Loader-951: Error calling once/load initialization
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00054: resource busy and acquire with NOWAIT specifiedSince the control file is generated automatically by datastage, we cannot modify/change the options and test. Control File for the same is:
    OPTIONS(DIRECT=TRUE, PARALLEL=TRUE, SKIP_INDEX_MAINTENANCE=YES)
    LOAD DATA INFILE 'ora.2958.371909.fifo.1' "FIX 1358"
    APPEND INTO TABLE X
    x1 POSITION(1:8) DECIMAL(15,0)  NULLIF  (1:8)  = X'0000000000000000',
    x2 POSITION(9:16) DECIMAL(15,0)  NULLIF  (9:16)  = X'0000000000000000',
    x3 POSITION(17:20) INTEGER  NULLIF  (17:20)  = X'80000000',
    IDNTFR  POSITION(21:40)   NULLIF  (21:40)  = BLANKS,
    IDNTFR_DTLS  POSITION(41:240)   NULLIF  (41:240)  = BLANKS,
    FROM_DATE  POSITION(241:259) DATE "YYYY-MM-DD HH24:MI:SS"  NULLIF  (241:259)  = BLANKS,
    TO_DATE  POSITION(260:278) DATE "YYYY-MM-DD HH24:MI:SS"  NULLIF  (260:278)  = BLANKS,
    DATA_SOURCE_LKPCD  POSITION(279:283)   NULLIF  (279:283)  = BLANKS,
    EFFECTIVE_DATE  POSITION(284:302) DATE "YYYY-MM-DD HH24:MI:SS"  NULLIF  (284:302)  = BLANKS,
    REMARK  POSITION(303:1302)   NULLIF  (303:1302)  = BLANKS,
    OPRTNL_FLAG  POSITION(1303:1303)   NULLIF  (1303:1303)  = BLANKS,
    CREATED_BY  POSITION(1304:1311) DECIMAL(15,0)  NULLIF  (1304:1311)  = X'0000000000000000',
    CREATED_DATE  POSITION(1312:1330) DATE "YYYY-MM-DD HH24:MI:SS"  NULLIF  (1312:1330)  = BLANKS,
    MODIFIED_BY  POSITION(1331:1338) DECIMAL(15,0)  NULLIF  (1331:1338)  = X'0000000000000000',
    MODIFIED_DATE  POSITION(1339:1357) DATE "YYYY-MM-DD HH24:MI:SS"  NULLIF  (1339:1357)  = BLANKS
    )- it occurs intermittently. When this job runs, no one will be accessing the database or the tables.
    - When we do not run in parallel, then we are not facing the error but it is very slow (obviously).

    Just in case, I am also attaching the Datastage Logs:
       Item #: 466
       Event ID: 1467
       Timestamp: 2009-06-02 23:03:19
       Type: Info
       User Name: dsadm
       Message: main_program: APT configuration file: /clu01/datastage/Ascential/DataStage/Configurations/default.apt
         node "node1"
              fastname "machine_name"
              pools ""
              resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
              resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
         node "node2"
              fastname "machine_name"
              pools ""
              resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
              resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
         node "node3"
              fastname "machine_name"
              pools ""
              resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
              resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
         node "node4"
              fastname "machine_name"
              pools ""
              resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
              resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
          node "node5"
              fastname "machine_name"
              pools ""
              resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
              resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
         node "node6"
              fastname "machine_name"
              pools ""
              resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
              resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
        node "node7"
              fastname "machine_name"
              pools ""
              resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
              resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
       node "node8"
              fastname "machine_name"
              pools ""
              resource disk "/clu01/datastage/Ascential/DataStage/Datasets" {pools ""}
              resource scratchdisk "/clu01/datastage/Ascential/DataStage/Scratch" {pools ""}
       Item #: 467
       Event ID: 1468
       Timestamp: 2009-06-02 23:03:20
       Type: Warning
       User Name: dsadm
       Message: main_program: Warning: the value of the PWD environment variable (/clu01/datastage/Ascential/DataStage/DSEngine) does not appear to be a synonym for the current working directory (/clu01/datastage/Ascential/DataStage/Projects/Production).  The current working directory will be used, but if your ORCHESTRATE job does not start up correctly, you should set your PWD environment variable to a value that will work on all nodes of your system.
       Item #: 468
       Event ID: 1469
       Timestamp: 2009-06-02 23:03:32
       Type: Warning
       User Name: dsadm
       Message: Lkp_1: Input dataset 1 has a partitioning method other than entire specified; disabling memory sharing.
       Item #: 469
       Event ID: 1470
       Timestamp: 2009-06-02 23:04:22
       Type: Warning
       User Name: dsadm
       Message: Lkp_2: Input dataset 1 has a partitioning method other than entire specified; disabling memory sharing.
       Item #: 470
       Event ID: 1471
       Timestamp: 2009-06-02 23:04:30
       Type: Warning
       User Name: dsadm
       Message: Xfmer1: Input dataset 0 has a partitioning method other than entire specified; disabling memory sharing.
       Item #: 471
       Event ID: 1472
       Timestamp: 2009-06-02 23:04:30
       Type: Warning
       User Name: dsadm
       Message: Lkp_2: When checking operator: Operator of type "APT_LUTProcessOp": will partition despite the
    preserve-partitioning flag on the data set on input port 0.
       Item #: 472
       Event ID: 1473
       Timestamp: 2009-06-02 23:04:30
       Type: Warning
       User Name: dsadm
       Message: SKey_1: When checking operator: A sequential operator cannot preserve the partitioning
    of the parallel data set on input port 0.
       Item #: 473
       Event ID: 1474
       Timestamp: 2009-06-02 23:04:30
       Type: Warning
       User Name: dsadm
       Message: SKey_2: When checking operator: Operator of type "APT_GeneratorOperator": will partition despite the
    preserve-partitioning flag on the data set on input port 0.
       Item #: 474
       Event ID: 1475
       Timestamp: 2009-06-02 23:04:30
       Type: Warning
       User Name: dsadm
       Message: buffer(1): When checking operator: Operator of type "APT_BufferOperator": will partition despite the
    preserve-partitioning flag on the data set on input port 0.
       Item #: 475
       Event ID: 1476
       Timestamp: 2009-06-02 23:04:30
       Type: Info
       User Name: dsadm
       Message: Tgt_member: When checking operator: The -index rebuild option has been included; in order for this option to be
    applicable and to work properly, the environment variable APT_ORACLE_LOAD_OPTIONS should contain the options
    DIRECT and PARALLEL set to TRUE, and the option SKIP_INDEX_MAINTENANCE set to YES;
    this variable has been set by the user to `OPTIONS(DIRECT=TRUE, PARALLEL=TRUE, SKIP_INDEX_MAINTENANCE=YES)'.
       Item #: 476
       Event ID: 1477
       Timestamp: 2009-06-02 23:04:35
       Type: Info
       User Name: dsadm
       Message: Tgt_member_idtfr: When checking operator: The -index rebuild option has been included; in order for this option to be
    applicable and to work properly, the environment variable APT_ORACLE_LOAD_OPTIONS should contain the options
    DIRECT and PARALLEL set to TRUE, and the option SKIP_INDEX_MAINTENANCE set to YES;
    this variable has been set by the user to `OPTIONS(DIRECT=TRUE, PARALLEL=TRUE, SKIP_INDEX_MAINTENANCE=YES)'.
       Item #: 477
       Event ID: 1478
       Timestamp: 2009-06-02 23:04:41
       Type: Warning
       User Name: dsadm
       Message: Lkp_2,6: Ignoring duplicate entry at table record 1; no further warnings will be issued for this table
       Item #: 478
       Event ID: 1479
       Timestamp: 2009-06-02 23:04:41
       Type: Warning
       User Name: dsadm
       Message: Tgt_member_idtfr,0: SQL*Loader-951: Error calling once/load initialization
       Item #: 479
       Event ID: 1480
       Timestamp: 2009-06-02 23:04:41
       Type: Warning
       User Name: dsadm
       Message: Tgt_member_idtfr,0: ORA-00604: error occurred at recursive SQL level 1
       Item #: 480
       Event ID: 1481
       Timestamp: 2009-06-02 23:04:41
       Type: Warning
       User Name: dsadm
       Message: Tgt_member_idtfr,0: ORA-00054: resource busy and acquire with NOWAIT specified
       Item #: 481
       Event ID: 1482
       Timestamp: 2009-06-02 23:04:41
       Type: Warning
       User Name: dsadm
       Message: Tgt_member_idtfr,6: SQL*Loader-951: Error calling once/load initialization
       Item #: 482
       Event ID: 1483
       Timestamp: 2009-06-02 23:04:41
       Type: Warning
       User Name: dsadm
       Message: Tgt_member_idtfr,6: ORA-00604: error occurred at recursive SQL level 1
       Item #: 483
       Event ID: 1484
       Timestamp: 2009-06-02 23:04:41
       Type: Warning
       User Name: dsadm
       Message: Tgt_member_idtfr,6: ORA-00054: resource busy and acquire with NOWAIT specified
       Item #: 484
       Event ID: 1485
       Timestamp: 2009-06-02 23:04:41
       Type: Fatal
       User Name: dsadm
       Message: Tgt_member_idtfr,6: The call to sqlldr failed; the return code = 256;
    please see the loader logfile: /clu01/datastage/Ascential/DataStage/Scratch/ora.23335.478434.6.log for details.
       Item #: 485
       Event ID: 1486
       Timestamp: 2009-06-02 23:04:41
       Type: Fatal
       User Name: dsadm
       Message: Tgt_member_idtfr,0: The call to sqlldr failed; the return code = 256;
    please see the loader logfile: /clu01/datastage/Ascential/DataStage/Scratch/ora.23335.478434.0.log for details.

  • Error while using expressions with direct path sql loader

    We are using an expression (substr) in the control file while loading the data into a table T using sql loader using a user U.
    The user U does not have permissions to the table T directly but through a role R.
    While running the sql loader using direct=true option (because the data load is very huge), an error 'table or view does not exist' is thrown.
    This error does not occur when conventional path is used; or when the user is given permissions on the table directly. We dont want to use both these options. Is there any other solution to this problem?
    Thanks!

    We are using an expression (substr) in the control file while loading the data into a table T using sql loader using a user U.
    The user U does not have permissions to the table T directly but through a role R.
    While running the sql loader using direct=true option (because the data load is very huge), an error 'table or view does not exist' is thrown.
    This error does not occur when conventional path is used; or when the user is given permissions on the table directly. We dont want to use both these options. Is there any other solution to this problem?
    Thanks!

  • Use of WHEN in SQL Loader Control File

    Does anyone know of a way, using the CTL file below, to NOT LOAD (i.e. discard) any record where field G is null -OR- substr(G,1,3)='CON'+ (the first 3 characters of field G are "CON")?
    The WHEN clause seems very limited in what it can test and all my attempts to use a compound condition, much less the SUBSTR function, have failed. The documentation indicates that only very simple conditions can be specified.
    (Oracle 10g, Unix)
    Thanks
    LOAD DATA
    TRUNCATE
    INTO TABLE TEST_TABLE
    WHEN (G <> '')
    FIELDS TERMINATED BY "^"
    TRAILING NULLCOLS
    A ,
    B FILLER,
    C FILLER,
    D FILLER,
    E FILLER,
    F FILLER,
    G "LTRIM(:G,'0')",
    H FILLER,
    I FILLER,
    J FILLER,
    K SYSDATE,
    L CONSTANT "SQLLDR"
    )

    Hello MTM.
    The WHEN clause in SQL*Loader, despite what you might read, doesn't seem to evaluate the value of the column you specify after SQL clauses are processed. Therefore, the only way you can guarantee to NOT LOAD a record is by using a function to raise an application error when the column data meets your criteria. You'll need to do some basic comparisons between bad data and discarded data in the bad data file to isolate these.
    You can still discard the null data using (replace ne with greater and less than)WHEN (g ne '')Hope this helps,
    Luke
    Please mark the answer as helpful or answered if it is so. If not, provide additional details.
    Always try to provide create table and insert table statements to help the forum members help you better.

  • Multibyte character error... (SQL*Loader)

    Hi,
    I am getting error while loading data via SQL*Loader:
    "Multibyte character error." while loading data from flat files comgin from mailframe into oracle 10g Rel2 with character set AL32UTF8
    here is my .ctl loader file
    OPTIONS (ERRORS=9999, ROWS=500, BINDSIZE=65536, SILENT=(FEEDBACK) )
    LOAD DATA
    APPEND
    INTO TABLE GLSTB270
          GLS27001_CONUMBER   POSITION(0001:0011)
        , GLS27002_STORE      POSITION(0012:0012)
        , GLS27003_STATUS     POSITION(0013:0013)
        , GLS27004_CUST_TYPE  POSITION(0014:0014)
        , GLS27005_EXTERN     POSITION(0015:0025)
        , GLS27006_ADD_DATE   POSITION(0026:0039) DATE "yyyymmddhh24miss"
        , GLS27007_EXTCUST    POSITION(0040:0071)
        , GLS27008_LPICKCHRO  POSITION(0072:0073)
        , GLS27009_LAST_ITEM  POSITION(0074:0075)
        , GLS27010_DLVADD1    POSITION(0076:0107)
        , GLS27011_DLVADD2    POSITION(0108:0139)
        , GLS27012_DLVADD3    POSITION(0140:0171)
        , GLS27013_DLVPOSTAL  POSITION(0172:0181)
        , GLS27014_DLVCOUNTY  POSITION(0182:0213)
        , GLS27015_DLVCNTRY   POSITION(0214:0215)
        , GLS27016_SPECADD    POSITION(0216:0216)
        , GLS27017_GROUPING   POSITION(0217:0217)
        , GLS27018_CO_TYPE    POSITION(0218:0218)
        , GLS27019_QUOTATION  POSITION(0219:0226) DATE "yyyymmdd"
             NULLIF (GLS27019_QUOTATION   = "00000000")
        , GLS27020_USHIP      POSITION(0227:0227)
        , GLS27021_CONFIRM    POSITION(0228:0228)
        , GLS27022_UNUDEMAND  POSITION(0229:0229)
        , GLS27023_FREECHARG  POSITION(0230:0230)
        , GLS27024_CONF_DATE  POSITION(0231:0238) DATE "yyyymmdd"
             NULLIF (GLS27024_CONF_DATE   = "00000000")
        , GLS27025_CONTACT    POSITION(0239:0270)
        , GLS27026_LICENCE    POSITION(0271:0290)
        , GLS27027_WARRANT    POSITION(0291:0291)
        , GLS27028_WARR_AUTH  POSITION(0292:0301)
        , GLS27029_CURRENCY   POSITION(0302:0304)
        , GLS27030_FSE        POSITION(0305:0310)
        , GLS27031_CARRIER    POSITION(0311:0320)
        , GLS27032_MANPRICIN  POSITION(0321:0321)
        , GLS27033_ADD_USER   POSITION(0322:0329)
        , GLS27034_AUTO_INV   POSITION(0330:0330)
        , GLS27035_PRIFACT    POSITION(0331:0338)
        , GLS27036_CRELETTER  POSITION(0339:0353)
       , GLS27025_CONTACT    POSITION(0239:0270)
        , GLS27026_LICENCE    POSITION(0271:0290)
        , GLS27027_WARRANT    POSITION(0291:0291)
        , GLS27028_WARR_AUTH  POSITION(0292:0301)
        , GLS27029_CURRENCY   POSITION(0302:0304)
        , GLS27030_FSE        POSITION(0305:0310)
        , GLS27031_CARRIER    POSITION(0311:0320)
        , GLS27032_MANPRICIN  POSITION(0321:0321)
        , GLS27033_ADD_USER   POSITION(0322:0329)
        , GLS27034_AUTO_INV   POSITION(0330:0330)
        , GLS27035_PRIFACT    POSITION(0331:0338)
        , GLS27036_CRELETTER  POSITION(0339:0353)
        , GLS27037_SHIPMENT   POSITION(0354:0354)
        , GLS27038_DIVISION   POSITION(0355:0356)
        , GLS27039_ACCREF     POSITION(0357:0365)
        , GLS27040_EXPENSE    POSITION(0366:0366)
        , GLS27041_ALREADY    POSITION(0367:0367)
        , GLS27042_SITE       POSITION(0368:0375)
        , GLS27043_SITE_DES   POSITION(0376:0395)
        , GLS27044_ADDTYPE    POSITION(0396:0396)
        , GLS27045_PROJECT    POSITION(0397:0406)
        , GLS27046_SITE_DOWN  POSITION(0407:0407)
        , GLS27047_QUOTATION  POSITION(0408:0408)
        , GLS27048_DELIVERY   POSITION(0409:0428)
        , GLS27049_CONSPERM   POSITION(0429:0429)
        , GLS27050_CHARACT    POSITION(0430:0432)
        , GLS27051_CONTRACT   POSITION(0433:0434)
        , GLS27052_FSE        POSITION(0435:0435)
        , GLS27053_SYSTEM     POSITION(0436:0445)
        , GLS27054_SYSTEM_D   POSITION(0446:0465)
        , GLS27055_JOBSTATUS  POSITION(0466:0468)
        , GLS27056_BO_L_CHRO  POSITION(0469:0470)
        , GLS27057_BUYER      POSITION(0471:0480)
        , GLS27058_SCREASON   POSITION(0481:0481)
        , GLS27059_L_M_DATE   POSITION(0482:0495) DATE "yyyymmddhh24miss"
        , GLS27061_L_M_USER   POSITION(0496:0503)
        , GLS27062_SCREEN     POSITION(0504:0507)
        , GLS27063_CUST_EXP   POSITION(0508:0508)
        , GLS270F1_GLS08001   POSITION(0509:0509)
        , GLS270F2_GLS08002   POSITION(0510:0511)
        , GLS270F3_GLS25001   POSITION(0512:0512)
        , GLS270F4_GLS25002   POSITION(0513:0522)
    )and here is the .log file containing error msg for sql*loader:
    SQL*Loader: Release 9.2.0.8.0 - Production on Thu Apr 5 15:35:21 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Control File:   /opt/oracle/test/admin/glsdbt01/load/glstb270.ctl
    Data File:      /opt/oracle/test/admin/glsdbt01/download2/GLSTB270.ZZ.CRE
      Bad File:     /dblog02/glsdbt01/load/results/glsltb270zz.bad
      Discard File: /dblog02/glsdbt01/load/results/glsltb270zz.dis
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 9999
    Continuation:    none specified
    Path used:      Direct
    Silent options: FEEDBACK
    Table GLSTB270, loaded from every logical record.
    Insert option in effect for this table: APPEND
       Column Name                  Position   Len  Term Encl Datatype
    GLS27001_CONUMBER                    1:11    11           CHARACTER
    GLS27002_STORE                      12:12     1           CHARACTER
    GLS27003_STATUS                     13:13     1           CHARACTER
    GLS27004_CUST_TYPE                  14:14     1           CHARACTER
    GLS27005_EXTERN                     15:25    11           CHARACTER
    GLS27006_ADD_DATE                   26:39    14           DATE yyyymmddhh24miss
    GLS27007_EXTCUST                    40:71    32           CHARACTER
    GLS27008_LPICKCHRO                  72:73     2           CHARACTER
    GLS27009_LAST_ITEM                  74:75     2           CHARACTER
    GLS27010_DLVADD1                   76:107    32           CHARACTER
    GLS27011_DLVADD2                  108:139    32           CHARACTER
    GLS27012_DLVADD3                  140:171    32           CHARACTER
    GLS27013_DLVPOSTAL                172:181    10           CHARACTER
    GLS27014_DLVCOUNTY                182:213    32           CHARACTER
    GLS27015_DLVCNTRY                 214:215     2           CHARACTER
    GLS27016_SPECADD                  216:216     1           CHARACTER
    GLS27017_GROUPING                 217:217     1           CHARACTER
    GLS27018_CO_TYPE                  218:218     1           CHARACTER
    GLS27019_QUOTATION                219:226     8           DATE yyyymmdd
        NULL if GLS27019_QUOTATION = 0X3030303030303030(character '00000000')
    GLS27020_USHIP                    227:227     1           CHARACTER
    GLS27020_USHIP                    227:227     1           CHARACTER
    GLS27021_CONFIRM                  228:228     1           CHARACTER
    GLS27022_UNUDEMAND                229:229     1           CHARACTER
    GLS27023_FREECHARG                230:230     1           CHARACTER
    GLS27024_CONF_DATE                231:238     8           DATE yyyymmdd
        NULL if GLS27024_CONF_DATE = 0X3030303030303030(character '00000000')
    GLS27025_CONTACT                  239:270    32           CHARACTER
    GLS27026_LICENCE                  271:290    20           CHARACTER
    GLS27027_WARRANT                  291:291     1           CHARACTER
    GLS27028_WARR_AUTH                292:301    10           CHARACTER
    GLS27029_CURRENCY                 302:304     3           CHARACTER
    GLS27030_FSE                      305:310     6           CHARACTER
    GLS27031_CARRIER                  311:320    10           CHARACTER
    GLS27032_MANPRICIN                321:321     1           CHARACTER
    GLS27033_ADD_USER                 322:329     8           CHARACTER
    GLS27034_AUTO_INV                 330:330     1           CHARACTER
    GLS27035_PRIFACT                  331:338     8           CHARACTER
    GLS27036_CRELETTER                339:353    15           CHARACTER
    GLS27037_SHIPMENT                 354:354     1           CHARACTER
    GLS27038_DIVISION                 355:356     2           CHARACTER
    GLS27039_ACCREF                   357:365     9           CHARACTER
    GLS27040_EXPENSE                  366:366     1           CHARACTER
    GLS27041_ALREADY                  367:367     1           CHARACTER
    GLS27042_SITE                     368:375     8           CHARACTER
    GLS27043_SITE_DES                 376:395    20           CHARACTER
    GLS27044_ADDTYPE                  396:396     1           CHARACTER
    GLS27045_PROJECT                  397:406    10           CHARACTER
    GLS27046_SITE_DOWN                407:407     1           CHARACTER
    GLS27047_QUOTATION                408:408     1           CHARACTER
    GLS27048_DELIVERY                 409:428    20           CHARACTER
    GLS27049_CONSPERM                 429:429     1           CHARACTER
    GLS27050_CHARACT                  430:432     3           CHARACTER
    GLS27051_CONTRACT                 433:434     2           CHARACTER
    GLS27052_FSE                      435:435     1           CHARACTER
    GLS27053_SYSTEM                   436:445    10           CHARACTER
    GLS27054_SYSTEM_D                 446:465    20           CHARACTER
    GLS27055_JOBSTATUS                466:468     3           CHARACTER
    GLS27056_BO_L_CHRO                469:470     2           CHARACTER
    GLS27057_BUYER                    471:480    10           CHARACTER
    GLS27058_SCREASON                 481:481     1           CHARACTER
    GLS27059_L_M_DATE                 482:495    14           DATE yyyymmddhh24miss
    GLS27061_L_M_USER                 496:503     8           CHARACTER
    GLS27062_SCREEN                   504:507     4           CHARACTER
    GLS27063_CUST_EXP                 508:508     1           CHARACTER
    GLS27063_CUST_EXP                 508:508     1           CHARACTER
    GLS270F1_GLS08001                 509:509     1           CHARACTER
    GLS270F2_GLS08002                 510:511     2           CHARACTER
    GLS270F3_GLS25001                 512:512     1           CHARACTER
    GLS270F4_GLS25002                 513:522    10           CHARACTER
    Record 20405: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20418: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20419: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20420: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20425: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20426: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20436: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20452: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20481: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20482: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20483: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20484: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20485: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20486: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20487: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20494: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20499: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20502: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.
    Record 20503: Rejected - Error on table GLSTB270, column GLS27043_SITE_DES.
    Multibyte character error.Can you pls help..?
    thanks

    Hi Werner,
    on my linux desktop:
    $ file test.dat
    test.dat: UTF-8 Unicode text, with very long lines
    my colleague is working on a windows system.
    On both systems exact the same error from SQL Loader.
    Btw, try with different number of special characters (german umlaute and euro) and there is no chance to load without the error
    when to many (?) special characters or data is long as column length and special characters included.
    Regards
    Michael

  • Error message when installing SQL Server 2014 Express

    When installing SQL Server 2014 Express,
    I get the error shown below.
    Why do I get this and how to correct for it?
    TITLE: Microsoft SQL Server 2014 Setup
    The following error has occurred:
    An error occurred during the installation of assembly 'Microsoft.VC80.MFC,version="8.0.50727.4027",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32"'. Please refer to Help and Support for more
    information. HRESULT: 0x80070422. 
    For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0xDF039760%25401201%25401
    BUTTONS:
    OK
    Thanks

    Hi,
    here is the log file:
    Overall summary:
      Final result:                  Failed: see details below
      Exit code (Decimal):           -2068052081
      Start time:                    2015-04-14 10:25:00
      End time:                      2015-04-14 10:38:21
      Requested action:              Install
    Setup completed with required actions for features.
    Troubleshooting information for those features:
      Next step for Adv_SSMS:        Use the following information to resolve the error, and then try the setup process again.
      Next step for Conn:            Use the following information to resolve the error, and then try the setup process again.
      Next step for SDK:             Use the following information to resolve the error, and then try the setup process again.
      Next step for BC:              Use the following information to resolve the error, and then try the setup process again.
      Next step for SSMS:            Use the following information to resolve the error, and then try the setup process again.
      Next step for SQLEngine:       Use the following information to resolve the error, and then try the setup process again.
      Next step for Replication:     Use the following information to resolve the error, and then try the setup process again.
      Next step for Browser:         Use the following information to resolve the error, and then try the setup process again.
      Next step for ComponentUpdate: Use the following information to resolve the error, and then try the setup process again.
    Machine Properties:
      Machine name:                  BRENDA-PC-HOME
      Machine processor count:       4
      OS version:                    Windows 7
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   italiano (Italia)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                    Feature                
                     Language             Edition              Version         Clustered  Configured
    Package properties:
      Description:                   Microsoft SQL Server 2014 
      ProductName:                   SQL Server 2014
      Type:                          RTM
      Version:                       12
      SPLevel:                       0
      Installation location:         C:\Users\Brenda\Downloads\SQLEXPRWT_x64_ENU\x64\setup\
      Installation edition:          Express
    Product Update Status:
      None discovered.
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      true
      AGTSVCACCOUNT:                 NT AUTHORITY\SERVIZIO DI RETE
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Disabled
      ASBACKUPDIR:                   Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   Config
      ASDATADIR:                     Data
      ASLOGDIR:                      Log
      ASPROVIDERMSOLAP:              1
      ASSERVERMODE:                  MULTIDIMENSIONAL
      ASSVCACCOUNT:                  <empty>
      ASSVCPASSWORD:                 <empty>
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            <empty>
      ASTEMPDIR:                     Temp
      BROWSERSVCSTARTUPTYPE:         Disabled
      CLTCTLRNAME:                   <empty>
      CLTRESULTDIR:                  <empty>
      CLTSTARTUPTYPE:                0
      CLTSVCACCOUNT:                 <empty>
      CLTSVCPASSWORD:                <empty>
      CLTWORKINGDIR:                 <empty>
      COMMFABRICENCRYPTION:          0
      COMMFABRICNETWORKLEVEL:        0
      COMMFABRICPORT:                0
      CONFIGURATIONFILE:             
      CTLRSTARTUPTYPE:               0
      CTLRSVCACCOUNT:                <empty>
      CTLRSVCPASSWORD:               <empty>
      CTLRUSERS:                     <empty>
      ENABLERANU:                    true
      ENU:                           true
      ERRORREPORTING:                false
      FEATURES:                      SQLENGINE, REPLICATION, CONN, BC, SDK, SSMS, ADV_SSMS
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  <empty>
      FTSVCPASSWORD:                 <empty>
      HELP:                          false
      IACCEPTSQLSERVERLICENSETERMS:  true
      INDICATEPROGRESS:              false
      INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           C:\Program Files (x86)\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    SQLEXPRESS
      INSTANCENAME:                  SQLEXPRESS
      ISSVCACCOUNT:                  NT AUTHORITY\Network Service
      ISSVCPASSWORD:                 <empty>
      ISSVCSTARTUPTYPE:              Automatic
      MATRIXCMBRICKCOMMPORT:         0
      MATRIXCMSERVERNAME:            <empty>
      MATRIXNAME:                    <empty>
      NPENABLED:                     0
      PID:                           *****
      QUIET:                         false
      QUIETSIMPLE:                   false
      ROLE:                          AllFeatures_WithDefaults
      RSINSTALLMODE:                 DefaultNativeMode
      RSSHPINSTALLMODE:              DefaultSharePointMode
      RSSVCACCOUNT:                  <empty>
      RSSVCPASSWORD:                 <empty>
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         <empty>
      SECURITYMODE:                  <empty>
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  Latin1_General_CI_AS
      SQLSVCACCOUNT:                 NT Service\MSSQL$SQLEXPRESS
      SQLSVCPASSWORD:                <empty>
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           Brenda-PC-Home\Brenda
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  false
      TCPENABLED:                    0
      UIMODE:                        AutoAdvance
      UpdateEnabled:                 true
      UpdateSource:                  MU
      USEMICROSOFTUPDATE:            true
      X86:                           false
      Configuration file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\ConfigurationFile.ini
    Detailed results:
      Feature:                       Management Tools - Complete
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, and then try the setup process again.
      Component name:                SQL Server Setup Support Files
      Component error code:          1935
      Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\SqlSupport_Cpu64_1.log
      Error description:             An error occurred during the installation of assembly 'Microsoft.VC80.ATL,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32"'.
    Please refer to Help and Support for more information. HRESULT: 0x80070422.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=SqlSupport.msi%40CreateShortcuts%401935%3a0x80070422
      Feature:                       Client Tools Connectivity
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, and then try the setup process again.
      Component name:                SQL Server Setup Support Files
      Component error code:          1935
      Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\SqlSupport_Cpu64_1.log
      Error description:             An error occurred during the installation of assembly 'Microsoft.VC80.ATL,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32"'.
    Please refer to Help and Support for more information. HRESULT: 0x80070422.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=SqlSupport.msi%40CreateShortcuts%401935%3a0x80070422
      Feature:                       Client Tools SDK
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, and then try the setup process again.
      Component name:                SQL Server Setup Support Files
      Component error code:          1935
      Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\SqlSupport_Cpu64_1.log
      Error description:             An error occurred during the installation of assembly 'Microsoft.VC80.ATL,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32"'.
    Please refer to Help and Support for more information. HRESULT: 0x80070422.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=SqlSupport.msi%40CreateShortcuts%401935%3a0x80070422
      Feature:                       Client Tools Backwards Compatibility
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, and then try the setup process again.
      Component name:                SQL Server Setup Support Files
      Component error code:          1935
      Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\SqlSupport_Cpu64_1.log
      Error description:             An error occurred during the installation of assembly 'Microsoft.VC80.ATL,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32"'.
    Please refer to Help and Support for more information. HRESULT: 0x80070422.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=SqlSupport.msi%40CreateShortcuts%401935%3a0x80070422
      Feature:                       Management Tools - Basic
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, and then try the setup process again.
      Component name:                SQL Server Setup Support Files
      Component error code:          1935
      Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\SqlSupport_Cpu64_1.log
      Error description:             An error occurred during the installation of assembly 'Microsoft.VC80.ATL,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32"'.
    Please refer to Help and Support for more information. HRESULT: 0x80070422.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=SqlSupport.msi%40CreateShortcuts%401935%3a0x80070422
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, and then try the setup process again.
      Component name:                SQL Server Setup Support Files
      Component error code:          1935
      Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\SqlSupport_Cpu64_1.log
      Error description:             An error occurred during the installation of assembly 'Microsoft.VC80.ATL,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32"'.
    Please refer to Help and Support for more information. HRESULT: 0x80070422.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=SqlSupport.msi%40CreateShortcuts%401935%3a0x80070422
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, and then try the setup process again.
      Component name:                SQL Server Setup Support Files
      Component error code:          1935
      Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\SqlSupport_Cpu64_1.log
      Error description:             An error occurred during the installation of assembly 'Microsoft.VC80.ATL,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32"'.
    Please refer to Help and Support for more information. HRESULT: 0x80070422.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=SqlSupport.msi%40CreateShortcuts%401935%3a0x80070422
      Feature:                       SQL Browser
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, and then try the setup process again.
      Component name:                SQL Server Setup Support Files
      Component error code:          1935
      Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\SqlSupport_Cpu64_1.log
      Error description:             An error occurred during the installation of assembly 'Microsoft.VC80.ATL,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32"'.
    Please refer to Help and Support for more information. HRESULT: 0x80070422.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=SqlSupport.msi%40CreateShortcuts%401935%3a0x80070422
      Feature:                       Setup Support Files
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     Use the following information to resolve the error, and then try the setup process again.
      Component name:                SQL Server Setup Support Files
      Component error code:          1935
      Component log file:            C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\SqlSupport_Cpu64_1.log
      Error description:             An error occurred during the installation of assembly 'Microsoft.VC80.ATL,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32"'.
    Please refer to Help and Support for more information. HRESULT: 0x80070422.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=SqlSupport.msi%40CreateShortcuts%401935%3a0x80070422
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\20150414_102458\SystemConfigurationCheck_Report.htm

  • Where Clause SQL Loader

    Hi,
    Please could someone give me the syntax for expressing a where clause in SQL Loader control file? as an example i only want the data in the columns to be uploaded where person_id matches the person_id already present in the table.
    My control file is below which needs amending to include a 'Where'. The append will also need changing i assume.
    load data
    infile '/app/DEV/appl/xxcpp/11.5.0/bin/TEST.csv'
    APPEND
    into table XXCPP_SQL_LOADER_TEST
    fields terminated by "," optionally enclosed by '"'
    ( PERSON_ID, EMP_NAME, EMP_NUMBER, START_DATE DATE "fmDD/MM/RRRR" )
    Many Thanks

    SQL*Loader has very limited conditional load capabilities. WHEN clause does not support OR (and it is documented). Anyway, you could do the following. Control file:
    load data
    infile *
    APPEND
    into table XXCPP_SQL_LOADER_TEST
    When Person_id = '1'
    fields terminated by "," optionally enclosed by '"'
    ( PERSON_ID POSITION(1), EMP_NAME, EMP_NUMBER, START_DATE DATE "fmDD/MM/RRRR" )
    into table XXCPP_SQL_LOADER_TEST
    When Person_id = '2'
    fields terminated by "," optionally enclosed by '"'
    ( PERSON_ID POSITION(1), EMP_NAME, EMP_NUMBER, START_DATE DATE "fmDD/MM/RRRR" )
    into table XXCPP_SQL_LOADER_TEST
    When Person_id = '3'
    fields terminated by "," optionally enclosed by '"'
    ( PERSON_ID POSITION(1), EMP_NAME, EMP_NUMBER, START_DATE DATE "fmDD/MM/RRRR" )
    begindata
    1,A,11,13/01/2011
    2,B,12,13/01/2011
    3,C,13,13/01/2011
    4,D,14,13/01/2011
    5,D,15,13/01/2011
    {code}
    Now:
    {code}
    SQL> select * from XXCPP_SQL_LOADER_TEST;
    no rows selected
    SQL> host sqlldr scott/tiger control=c:\temp\XXCPP_SQL_LOADER_TEST.CTL log=c:\temp\XXCPP_SQL_LOADER_TEST.LOG
    SQL> select * from XXCPP_SQL_LOADER_TEST;
    PERSON_ID EMP_NAME   EMP_NUMBER START_DAT
             1 A                  11 13-JAN-11
             2 B                  12 13-JAN-11
             3 C                  13 13-JAN-11
    SQL>
    {code}
    SY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Loading data with dates using SQL*Loader

    Dear everyone
    I am currently trying to load some data containing dates using SQL*Loader.
    For termination of fields I have been using ^ because I have some book titles which contain " and ' as part of their title. I found that the TO_DATE function did not seem to work using ^ instead of ". Would I be correct? I think the Oracle manual says that " must be used.
    After some Web research I eventually amended my control file to as follows:
    load data
    infile 'h:\insert_statements\22_insert_into_SCAN_FILE_INFO.txt'
    REPLACE
    into table SCAN_FILE_INFO
    fields terminated by "," optionally enclosed by '^'
    TRAILING NULLCOLS
    (scan_id, scan_filename
    file_format_id
    orig_scanning_resolution_dpi
    scanner_id, scanner_operator_id
    scanning_date "TO_DATE (:scanning_date, 'YYYY-MM-DD')"
    original_map_publication_id
    reprint_publication_id)
    A simple line of data is as follow:
    280001, ^1910 - London^, 270001, 400, 250001, 260001, "TO_DATE('2007-06-06', 'YYYY-MM-DD')", 200019,
    The final column being null.
    However when I attempt that I get the following error message:
    Record 1: Rejected - Error on table SCAN_FILE_INFO, column SCANNING_DATE.
    ORA-01841: (full) year must be between -4713 and +9999, and not be 0
    If I change the scanning_date part to:
    scanning_date "EXPRESSION TO_DATE (:scanning_date, 'YYYY-MM-DD')",
    or
    scanning_date "CONSTANT TO_DATE (:scanning_date, 'YYYY-MM-DD')",
    I get the error message:
    Record 1: Rejected - Error on table SCAN_FILE_INFO, column SCANNING_DATE.
    ORA-00917: missing comma
    As soon as I do the following:
    scanning_date "EXPRESSION, TO_DATE (:scanning_date, 'YYYY-MM-DD')",
    or
    scanning_date "CONSTANT, TO_DATE (:scanning_date, 'YYYY-MM-DD')",
    I get too many values error message:
    Record 1: Rejected - Error on table SCAN_FILE_INFO.
    ORA-00913: too many values
    I also tested out scanning_date DATE "YYYY-MM-DD", but that just gave the same ORA-01841 error message as above.
    I must be doing something very simple which is wrong but I cannot figure it out.
    Kind regards
    Tim

    And why do you have scanning date as "TO_DATE('2007-06-06', 'YYYY-MM-DD')" in your infile? All you need is 2007-06-06. If you can not change infile generation code, use:
    load data
    infile 'h:\insert_statements\22_insert_into_SCAN_FILE_INFO.txt'
    REPLACE
    into table SCAN_FILE_INFO
    fields terminated by "," optionally enclosed by '^'
    TRAILING NULLCOLS
    (scan_id, scan_filename
    file_format_id
    orig_scanning_resolution_dpi
    scanner_id, scanner_operator_id
    scanning_date "TO_DATE(REPLACE(REPLACE(:scanning_date,'TO_DATE('),'''YYYY-MM-DD'')'), 'YYYY-MM-DD')"
    original_map_publication_id
    reprint_publication_id)SY.

  • Error: "PackageFromTheweb" when install SQL Server 2000 cluster

    Hi,
    I am trying to setup a WAS 6.40 system. When I am installing SQL Server 2000 on cluster, I got following error: "This program is used internally by PackageFromTheWeb. It should not be executed directly." Our OS is Windows 2003 Enterprise SP2. Search on the internet many have the same problem but seems no answers. We even completed rebuild OS and install again got the same error message. Very frustration! Realizing the installation has NOT even get to SAP part yet, but any of you see this kind error message when you install SQL Server? How do you fix it?
    Any helpful anwsers are appreciated and reward points.
    Thanks,
    Yujun Ran
    Edited by: Yujun Ran on Mar 18, 2008 3:53 PM

    Suhas,
    Not sure I understand what you are asking. But to answer your question, No, I did not install any software on my desktop. I am logon to the server remotely to install SQL Server 2000.
    Thanks,
    Yujun Ran

  • ORA-01003 when using SQL*Loader

    Hi people,
    Can anyone shed some light on this.
    We have a multitasked dataload operation that is using SQL*Loader and on occasion we're seeing some rows failing due to ORA-01003 no statement parsed. Could this be due to some shortage of a database resource (cursors, connections ??) or are there other well known reasons for this.
    Any help appreciated.
    Regards
    Andy

    Check those registers ( rows ) in the bad file or in the discard file. If the register(s) are in the discard file is because the register ( row ) does not complete the requirements of denoted in the controlfile file and if those registers are in the error file is because the database is rejecting them according to constraints and so on.
    Conclusion: realize in what file those rows are being stored after to be rejected.
    Joel Pérez

  • How to resolve error with code: 0xe7210001 cannot load powrprof, object:cls

    Hello there
    Doses anybody know how to resolve the error with code: 0xe7210001, message: cannot load powrprof, object:clsd-not-found;
    OR: Fingerprintsoftware error OR: THotkey.exe message window multiplicates and computer freezes
    Scanned maleware and viruses, also in safe mode, found no infection, reinstalled fingerprint driver but nothing changed.
    grateful for help!

    Hello
    > message: cannot load powrprof, object:clsd-not-found;
    In my opinion this would mean that there is a problem with Toshiba Power Saver
    What Toshiba notebook you have exactly?
    Maybe reinstalling Power Saver could help. You can find it on official Toshiba website.

  • How do i fix error 1004 when trying to load app on Ipad??

    how do I fix error 1004 on my ipad when trying to load an app

    If you used iTunes on your computer to download the app, suggest you download the app using your iPad. Should then install correctly.
     Cheers, Tom

Maybe you are looking for