Sqlldr fails

load data CHARACTERSET UTF8 truncate into table COLLECTION APPEND fields terminated by "," optionally enclosed by '^' trailing nullcols (COLLECTIONID,PERSONID,NAME1,TAGS,DELETED,PRIVACY,SERVICEID,TYPE1,CONTENTTYPE,EMAILID,DESCRIPTION,CREATIONTIME,UPDATETIME,THUMBURL,CATALOGID);
Table structure in oracle :
Name Null? Type
COLLECTIONID NOT NULL NUMBER
PERSONID NOT NULL NUMBER
NAME1 NOT NULL VARCHAR2(50)
TAGS VARCHAR2(50)
DELETED NOT NULL NUMBER
PRIVACY NOT NULL NUMBER
SERVICEID NOT NULL NUMBER
TYPE1 NOT NULL NUMBER
CONTENTTYPE NOT NULL NUMBER
EMAILID NOT NULL VARCHAR2(255)
DESCRIPTION VARCHAR2(500)
CREATIONTIME NOT NULL DATE
UPDATETIME NOT NULL DATE
THUMBURL VARCHAR2(255)
CATALOGID NOT NULL NUMBER
sqlldr profiles@USERS control=test1.ctl PARALLEL=TRUE data=test1.csv log=test1.log bad=test1.bad errors=100000
ERROR :
==========
SQL*Loader: Release 10.2.0.4.0 - Production on Wed Aug 18 13:29:01 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL*Loader-350: Syntax error at line 4.
Illegal combination of non-alphanumeric characters
IPTION,CREATIONTIME,UPDATETIME,THUMBURL,CATALOGID);
Sample Data in csv :
============
^21^,^3183^,^test^,^^,^0^,^0^,^0^,^2^,^2^,^vicky_bansal27^,^test^,^2008-04-30 13:06:31^,^2008-04-30 13:06:31^,^http://data.rerere.com/briefcase/55575E58715A28626B765F6B/7h25hfg5zlhs2371.D.67359.Kohli_ups_the_mush_factor.avi-0001.png^,^0^
^22^,^3539112^,^test^,^^,^0^,^0^,^0^,^2^,^2^,^vpython^,^description^,^2008-04-30 16:06:18^,^2008-04-30 16:06:18^,^http://data.rererre.com/briefcase/6069606B63686B5B6E5D613032/41mf76xhsvonomnr.D.182539.Hilton_Sisters_Photo_Shoot.avi-0001.png^,^0^
Edited by: user8764012 on 18-Aug-2010 03:46

>
load data CHARACTERSET UTF8 truncate into table COLLECTION APPEND fields terminated by "," optionally enclosed by '^' trailing nullcols (COLLECTIONID,PERSONID,NAME1,TAGS,DELETED,PRIVACY,SERVICEID,TYPE1,CONTENTTYPE,EMAILID,DESCRIPTION,CREATIONTIME,UPDATETIME,THUMBURL,CATALOGID);
>
Please remove the semi-colon from your control file; also format the DATE columns appropriately. You might want to use the code below.
LOAD DATA
CHARACTERSET UTF8
TRUNCATE INTO TABLE LIGHTON.test_otn
APPEND fields terminated by "," optionally enclosed by '^' trailing nullcols
COLLECTIONID,
PERSONID,
NAME1,
TAGS,
DELETED,
PRIVACY,
SERVICEID,
TYPE1,
CONTENTTYPE,
EMAILID,
DESCRIPTION,
CREATIONTIME date 'YYYY-MM-DD HH24:MI:SS',
UPDATETIME date 'YYYY-MM-DD HH24:MI:SS',
THUMBURL,
CATALOGID
)Regards,
Phiri

Similar Messages

  • How to remove trailing space-sqlldr failed OCI-30951-exceeds max length

    sqlldr failed to load the xml into xdb ( table created through schema registration) because of the padded space in element 'Country' whose maximum length is defined as '3'…Is there any way to remove the extra trailing space using the control file or xdb annotation in the xsd? Thanks!
    <Address>
    <StreetAddress1>1 BRKSTONE SQ </StreetAddress1>
    <StreetAddress2>SUITE 5 </StreetAddress2>
    <City>ANDOVER </City>
    <State>MA</State>
    <Country>USA </Country>
    <ZipCode>01810</ZipCode>
    </Address>
    Here is the errors I got:
    kgepop: no error frame to pop to for error 30951
    OCI-30951: Element or attribute at Xpath /BranchRegulatoryFiling/Branches/Branch[1]/Address/Country exceeds maximum length
    Errors in file :
    OCI-30951: Element or attribute at Xpath /BranchRegulatoryFiling/Branches/Branch[1]/Address/Country exceeds maximum length
    ----- Call Stack Trace -----
    Bus Error (core dumped)
    Here is my ctl file:
    load data
    infile *
    into table xml_stg_tbl
    append
    reenable disabled_constraints exceptions cnstr_xcptn_tbl
    xmltype(XMLDATA)(
    lobfn filler char terminated by ',',
    XMLDATA lobfile(lobfn) terminated by EOF
    BEGINDATA
    /tmp/1025552.xml
    Edited by: user10954036 on Jul 27, 2009 8:12 AM

    Hi,
    Its good that u pasted the complete log file. In your environment you have to run this upgrade tool only once from any of the middle tier.
    And with respect to your error that u got in precheck is quite simple. All u have to do is just run this script from by connecting to portal schema using sqlplus.
    Run dropupg.sql
    Location-------- /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/dropupg.sql
    Later you re-run the upgrade tool and let me know the status.
    Good luck
    Tanmai

  • Sqlldr failing with ORA-01017: invalid username/password; logon denied

    Hi,
    I am running the import of some files through an internal application (in C++) using Oracle 11.2.0.3: the load uses sqlldr and I am getting the below error
    SQL*Loader-128: unable to begin a session
    ORA-01017: invalid username/password; logon denied
    However, sqlldr used through the DOS command, connects without an issue with the same account.
    I have tried the same test using the same application on my local install which uses 11.2.0.2 and I am not having any issue...any idea what may be the cause of it?
    Thanks

    user13045898 wrote:
    Hi,
    I am running the import of some files through an internal application (in C++) using Oracle 11.2.0.3: the load uses sqlldr and I am getting the below error
    SQL*Loader-128: unable to begin a session
    ORA-01017: invalid username/password; logon denied
    However, sqlldr used through the DOS command, connects without an issue with the same account.
    I have tried the same test using the same application on my local install which uses 11.2.0.2 and I am not having any issue...any idea what may be the cause of it?
    ThanksOracle is too dumb to lie. Your app is obviously not passing the credentials you believe it is.

  • SQLLDR fails when records contain delimiter

    I am using Oracle 9i and am trying to load logs into a table using SQL*Loader.
    In the control file, one field has been specified as:
    S_STATUS_MSG enclosed by '"',
    However, in the incoming data, a record has the field with the following value:
    "[AUTH] Password supplied for "popenquiries-3" is incorrect."
    The optional delimiter appears in the field itself.
    sqlldr rejects the record saying:
    ORA-02363: No terminator found after TERMINATED and ENCLOSED field
    Any suggestions on how to get around this, and make sqlldr load such records?
    Thanks

    There's only one solution to your problem: make sure that your delimiter does not appear in the field itself.

  • Sqlldr failing via Java

    We call sqlldr from java to load oracle tables. everything was working fine until we upgraded to aix 5.2 from 5.1
    When trying to load around 60K records, the programs stalled after loading 40K records - the sqlldr process does not seem to end and seems to have gone to a loop (or wait) and the java program stays waiting for the sqlldr process to end..
    The sqlldr works fine when called from commandline..
    This problem goes off if we rollback 5.2 to 5.1
    any clue on what might be wrong will be really appreciated ..

    any clue on what might be wrong will be really
    appreciated ..Fairly obvious something with AIX.

  • Skipping lines whle uploading data through SQLLDR

    Hi All,
    I have a requirement where I need to upload the data using SQLLDR and skip first 3 lines.
    Can someone let me know the SQLLDR flags to do so.
    ~Parag

    ok thanks...it worked...Couple of more questions...
    1. Is it possible to skip a record (entire line) having particular string.
    2. Also the data file often contains extra new line character at the end. SQLLDR fails at the last line. Is it possible to make SQLLDR skip the new line at the end of file.
    Edited by: Parag Kalra on Jun 22, 2010 2:02 PM

  • How to clean the dead sessions in the database?

    Hi,
    sqlldr user/passwd@dbtns DIRECT=TRUE SKIP_UNUSABLE_INDEXES=TRUE SKIP_INDEX_MAINTENANCE=FALSE control="test.ctl"
    3M records
    The OS shutdown when i sqlldr, and start another sqlldr into the same table
    but the table is locked.
    sqlldr failed
    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 specified or timeout expired
    how to use ORACLE system maintenance procedure to clear the database dead session?
    Which procedure?
    I don't want to use the solution:
    alter system kill session

    HI..
    What is the status of the session in V$sesison view.Does the session exist.
    COLUMN username FORMAT A15
    col osuser for a15
    col module for a15
    COLUMN machine FORMAT A30
    col program for a20
    COLUMN logon_time FORMAT A20
    SELECT NVL(s.username, '(oracle)') AS username,
           s.osuser,
           s.sid,
           s.serial#,
           p.spid,
           s.status,
           s.module,
           s.terminal,
           s.machine,
           s.program,
           TO_CHAR(s.logon_Time,'DD-MON-YYYY HH24:MI:SS') AS logon_time
    FROM   v$session s,
           v$process p
    WHERE  s.paddr  = p.addr
    and AND    s.status = 'ACTIVE'
    ORDER BY s.username, s.osuser;Anand

  • Issues with agent.

    Here is the script:
    import os
    retVal = os.system(r'sqlldr odi_stage/test1234@devodi control=E:\Hyperion\DRM\ODI\Scripts/DRM_ESSBASE_PLANNING.ctl log=E:\Hyperion\DRM\ODI\Logs/DRM_ESSBASE_PLANNING2.log')
    when i excecute this script from studio with agent=local(noagent) it runs fine and when i run same script with an agent=d1odiagent_dev it fails with error Traceback (innermost last). it seems like its not able to recognise local drives. anyone came across this issue?
    Thanks.
    Sri.

    Phil..
    Here is the script I have added to capture the message:
    if retVal == 1 or retVal > 2:
    str1 = 'SQLLDR FAILED. Please check logs for details '
    raise str1
    else:
    str1 = 'SQLLDR SUCCESSFULL'
    and please find the error message below.
    Thanks.
    ODI-1217: Session PROC_LD_ESSBASE_PLANNING_SQLLDR_T (841001) fails with return code 7000.
    ODI-1226: Step PROC_LD_ESSBASE_PLANNING_SQLLDR_T fails after 1 attempt(s).
    ODI-1232: Procedure PROC_LD_ESSBASE_PLANNING_SQLLDR_T execution fails.
    Caused By: org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 7, in ?
    SQLLDR FAILED. Please check logs for details
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2374)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1615)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1580)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:619)

  • Calling SQL*Loader from PERL; Message 2100 not found

    I am trying a simple PERL script to call sqlldr and load data into an Oracle 10G database. I get the error message:
    Message 2100 not found; No message file for product=RDBMS, facility=UL
    Many forums have said the answer to this is to set environment variables like ORACLE_HOME and PATH. Even having done that I get this error. My script looks like:
    #!E:\CommonApps\Perl\Perl\bin -w
    $ENV{ORACLE_HOME}='E:\CommonApps\oracle';
    print "Oracle HOME is: ";
    print $ENV{ORACLE_HOME};
    print "\n";
    $ENV{PATH} = 'E:\CommonApps\oracle;E:\CommonApps\oracle\bin';
    print "Path is ";
    print $ENV{PATH};
    print "\n";
    if ($#ARGV != 7) { print "Incorrect Usage of runsqlldr\n";print "Usage: perl runsqlldr.pl dbuser dbpass dbname datafile discard ctlfile logfile badfile \n"; exit; }
    $dbuser=$ARGV[0];
    $dbpass=$ARGV[1];
    $dbname=$ARGV[2];
    $datafile=$ARGV[3];
    $discard=$ARGV[4];
    $ctlfile=$ARGV[5];
    $logfile=$ARGV[6];
    $badfile=$ARGV[7];
    if (system("sqlldr userid=$dbuser/$dbpass\@$dbname control=$ctlfile data=$datafile=log=$logfile bad=$badfile discard=$discard SKIP=1 ERRORS=10000 ROWS=10000 BINDSIZE=512000 PARALLEL=TRUE") != 0) {
    die "\n Running sqlldr failed!\n";
    exit 0;
    Is there anything else I need to do to make this work? The E:\CommonApps\oracle\rdbms\mesg directory has 3 files: kgpus.msb, ocius.msb, oraus.msb.
    Thanks
    Arvind

    *** Duplicate Post *** {code}                                                                                                                                                                                                                           

  • Problem using SQL Loader with ODI

    Hi,
    I am having problems using SQL Loader with ODI. I am trying to fill an oracle table with data from a txt file. At first I had used "File to SQL" LKM, but due to the size of the source txt file (700MB), I decided to use "File to Oracle (SQLLDR)" LKM.
    The error that appears in myFile.txt.log is: "SQL*Loader-101: Invalid argument for username/password"
    I think that the problem could be in the definition of the data server (Physical architecutre in topology), because I have left blank Host, user and password.
    Is this the problem? What host and user should I use? With "File to SQL" works fine living this blank, but takes to much time.
    Thanks in advance

    I tried to use your code, but I couldn´t make it work (I don´t know Jython). I think the problem could be with the use of quotes
    Here is what I wrote:
    import os
    retVal = os.system(r'sqlldr control=E:\Public\TXTODI\PROFITA2/Profita2Final.txt.ctl log=E:\Public\TXTODI\PROFITA2/Profita2Final.txt.log userid=MYUSER/myPassword @ mySID')
    if retVal == 1 or retVal > 2:
    raise 'SQLLDR failed. Please check the for details '
    And the error message is:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 5, in ?
    SQLLDR failed. Please check the for details
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)

  • "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.

  • Tablespace full

    Hi,
    When I repeatedly delete table entries and keep entries in dat files (on unix) and retrieve back those entries using sqlldr, the tablespace gets full even though table is empty. After a while, sqlldr fails to load because of tablespace full. If I increase tablespace for those tables, again after a while they gets full. Could anybody please tell me how to free table spaces.
    SHAMIM
    Software Developer
    TaracomNetworks

    It's a misconception that if you delete from tables the 'space' is now available. That is not necessary the case.
    You also have to take into consideration the parameters that the tablespace was created with. It may be trying to allocation more space than is available.
    There is also the problem of fragmentation.
    If possible either add another datafile to the tablespace, or export the database , drop the tables, and drop and re-create the tablespace (with more space and parameters exactly as you want)
    null

  • SQLLDR run command line fails:  ORA-03114: not connected to ORACLE

    We moved our db (11.2.0.3) to a new server (VM) and cannot get sql loader direct load to run for a non-oracle db owner account without specifying a connection string (@DB). I have the environment set up correctly for this user and can connect to the database via sqlplus.
    sqlldr dba1 control=test.ctl direct=yes <==FAILS
    Password:
    SQL*Loader: Release 11.2.0.3.0 - Production on Fri May 17 13:00:32 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    SQL*Loader-925: Error while uldlfca: OCIStmtExecute (ptc_hp)
    ORA-03114: not connected to ORACLE
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    sqlldr dba1@DB control=test.ctl direct=yes <==SUCCESSFUL
    Password:
    SQL*Loader: Release 11.2.0.3.0 - Production on Fri May 17 12:59:11 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

    My thoughts were along the line that the environment for user x not set up correctly but I verified ORACLE_SID & ORACLE_HOME prior to posting. This user's environment references TNS_ADMIN so I'm sending you the tnsnames.ora from that location.
    Please note that I can execute this logged in as the db binary owner (environment set the same as user x).
    DWQ1 =
    (DESCRIPTION =
    (ENABLE = BROKEN)
    (ADDRESS = (HOST = xxxx)(PORT = 1521)(PROTOCOL = TCP) )
    (CONNECT_DATA =
    (SERVICE_NAME = DWQ1)
    )

  • File loaded successfully by SQLldr but external table failed

    Hi ,
    When i tried to create an external table to load data from file it failed with the below error
    "KUP-04018: partial record at end of file",
    When i query on the external table for rows with rownum<2500 i can see the records being properly loaded but when i tried to fetch all records it throws the above error.
    But the same file when i loaded with sqlldr it loaded all the records successfully.
    Can you please let me know the reason for this?
    Regards

    Can you post us your SQLLDR control file, your external table definition, a sample of your data (preferably including the last lines of data which you believe are erroring) and also let us know your database version.

  • SQLLDR - how to set a default value for an empty string

    I'm using SQLLDR to load data from a flat file on Oracle 10g 10.2.0.4 EE, Linux RHEL 4 update 6. Seems like my question is simple, but darned if I can't find the solution.
    My source file (comma delimited extracted form a different RDBMS) has some (not all) rows where the output for a string is "", and not NULL. How do I check for empty string and add a default value in the control file? The target column is non-nullable
    Here's my current control file - however, the column attributeName where sometimes the source record is "" does not get evaluated as NULL.
    load data
    infile 'mydata.del'
    badfile 'mydata.bad'
    discardfile 'mydata.dsc'
    into table mydata
    fields terminated by "," optionally enclosed by '"'
       TRAILING NULLCOLS           
    (l_metadata,
    company,
    className,
    attributeName "decode(:vc_attributeName,null, 'none')",
    attributeDefault)
    {code}
    When I tried decode with "", I received the following error:
    {code}SQL*Loader-350: Syntax error at line 11.
    Expecting "," or ")", found ", 'none')".
    attributeName "decode(:vc_attributeName,"", 'none')", {code}
    This does not work either:
    {code}
    load data
    infile 'mydata.del'
    badfile 'mydata.bad'
    discardfile 'mydata.dsc'
    into table mydata
    fields terminated by "," optionally enclosed by '"'
       TRAILING NULLCOLS           
    (l_metadata,
    company,
    className,
    attributeName NULLIF attributeName = BLANKS ,"decode(:vc_attributeName,null, 'none')",
    attributeDefault) I get the following in the log:
    Table COMPANYMETADATA, 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
    L_METADATA                          FIRST     *   ,  O(") CHARACTER
    COMPANY                            NEXT     *   ,  O(") CHARACTER
    CLASSNAME                         NEXT     *   ,  O(") CHARACTER
    ATTRIBUTENAME                     NEXT     *   ,  O(") CHARACTER
        NULL if ATTRIBUTENAME = BLANKS
        SQL string for column : "decode(:attributeName,null, 'none')"
    ATTRIBUTEDEFAULT                  NEXT     *   ,  O(") CHARACTER
    Record 1: Rejected - Error on table COMPANYMETADATA, column ATTRIBUTENAME.
    ORA-01400: cannot insert NULL into ("SRV5"."COMPANYMETADATA"."ATTRIBUTENAME")
    {code}
    Any help is appreciated -
    Edited by: kpw on Feb 9, 2009 11:10 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello,
    I just loaded following data successfully in my_data table using the same control file I posted. Yes it will evaluate "" as null and replace with none, remember in control file you have this option, "optionally enclosed by '"'.
    #my_data.dat
    "myname1", "attribname1"
    "myname2", "attribname2"
    "myname3", "attribname3"
    "myname4", ""
    #my_data.ctl
    load data
    into table my_data
    fields terminated by "," optionally enclosed by '"'
    TRAILING NULLCOLS           
    my_name char(30),
    vc_attributeName "decode(:vc_attributeName,null, 'none', :vc_attributeName)"
    {code}
    Here is the output log file
    {code}
    Control File:   my_data.ctl
    Data File:      mydata.dat
      Bad File:     mydata.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 MY_DATA, 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
    MY_NAME                             FIRST    30   ,  O(") CHARACTER           
    VC_ATTRIBUTENAME                     NEXT     *   ,  O(") CHARACTER           
        SQL string for column : "decode(:vc_attributeName,null, 'none', :vc_attributeName)"
    Table MY_DATA:
      4 Rows successfully loaded.
      0 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:                  18560 bytes(64 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             4
    Total logical records rejected:         0
    Total logical records discarded:        0
    Run began on Mon Feb 09 18:17:35 2009
    Run ended on Mon Feb 09 18:17:36 2009
    Elapsed time was:     00:00:00.98
    CPU time was:         00:00:00.10
    {code}
    Hope this helps clearing your dobuts
    Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • ERROR report when backing up of ipad

    I get repeated error reports when backing ipad only when trying to update to ios 5. when I back up without update option it works fine i have version 4.3.1 and want to update it.help!

  • Reservation of materail against sales order

    Hi, I want to know if i have created a sales order for a standard material, we also have stock of that materail, but i dont want to sales that materail right now i want to sales that materail agaianst that sales order after some time then how to rese

  • How to include a shared photo by others into book

    I am trying to make a book but can not include the photos that where shared by others. How can I do that?

  • XML example

    I am trying to go a little backwards I realize...but I would like to add my content to an XML file, then dynamically load it via the accordion. I used the example and created the following .html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitio

  • How can I get my PC office documents onto my new ipad mini

    How can I get my microsoft office documents off my PC and onto my new Ipad mini?