Sqlldr question

hi all,
why would sqlldr issue the following error mesages:
SQL*Loader-500: Unable to oen file (C:\oratest\20080318.dat)
SQL*Loader-503: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
SQL-Loader-2026: the load was aborted because SQL Loader cannot continue
when all I wanted to do is upload a file that is called 20080318.
So, the path would be C:\oratest\2008318
Do I really need an extesion?
I see that any name I choose for the file, if I don't specify an extension, the errors above will be alway about not being able to find "whateverFileName.DAT" so by default it is looking for a .DAT file. Is there any way to avoid this? I don't want to be forced to stick extensions for all my files.
Thanks,
kowalsky

Sorry for the confusion,
load data
infile 'C:\oratest\20080318'
BADFILE 'c:\oratest\badsyno.txt'
APPEND
into table synotest
fields terminated by "|" optionally enclosed by '"'          
(id4, cityname, maxtemp, mintemp, precip DEFAULTIF(precip = "TR") , sog)
My problem is that if I leave the control file as it is, sqlldr will issue the error messages from my first post. It seems if I leave the file without extension it will always look for 20080318.dat - and obviously it is not going to find it, since my file is called 20080318.
On the other hand, if I change the file name to 20080318.txt or 20080318.dat, then even if I leave the infile with C:\oratest\20080318 it will work just fine. So, it seems I need some extension in the file's name.
My question is can I avoid doing this? I have lots of files and I wouldn't want to go and add extension to them, and somehow I guess this can be done with some trick in the control file ...
thanks,
kowalsky

Similar Messages

  • Simple (probably) sqlldr question

    I’m new to sqlldr, am having a problem, and would appreciate some help.
    This is probably a easy problem for someone who is experienced.
    The input data file looks has year and month of birth in the second position. For instance,
    15|198101|4|20040204|20040204
    means the person was born in 1981, in January.
    The table I want to load wants person’s age in years, which goes into field 7.
    A crude way of calculating the person’s age would be 2011 – 1981,
    So I tried
         col7      POSITION(4:7)     EXPRESSION ”2011 – TO_NUMBER( SUBSTR(:col7,1,4),9 )“
    For instance,
    INTO TABLE TABLE1
         col1     POSITION(1:2)      CHAR,
         col2               CONSTANT 0,
         col3               CONSTANT "30-SEP-11",
         col4     POSITION(11:11) INTEGER EXTERNAL,
         col5     POSITION(13:20) "TO_DATE(:col5,'yyyymmdd')",
         col6     POSITION(22:29) "TO_DATE(:col6,'yyyymmdd')",
         col7      POSITION(4:7)     EXPRESSION ”2011 – TO_NUMBER( SUBSTR(:col7,1,4),9 )“
    But that didn’t work. I tried various variations but they didn't work either.
    Can anyone suggest the proper code?
    Also, a more refined way would take the month into consideration, so that a person born
    in Sept 1991 would today be 20 but one born in Dec 1991 would still be 19.
    Can anyone suggest the proper code for that?
    Thanks.

    Hello user6071447.
    I'm not sure what error you are getting, but here is an example of calculating age while loading using sqlldr with the sample data that you provided:LOAD DATA
    APPEND
    INTO TABLE test_table
    age_in_years POSITION(4:9) "FLOOR(MONTHS_BETWEEN(SYSDATE, TO_DATE(:age_in_years, 'YYYYMM')) / 12)"
    )If your looking for a little less accuracy, you can remove the month from the equation.
    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 actual or sample statements and the full text of errors along with error code to help the forum members help you better.

  • SQLLDR Question - Load 2004/02/17 14:53:12 into a TIMESTAMP(6)

    Hi All
    any idea how I'd load a date/time in the format '2004/02/17 14:53:12' into a TIMESTAMP(6) column
    TIA
    Bill

    Here an example :
    $ cat test.dat
    2004/02/17 14:53:12
    $ cat test.ctl
    LOAD DATA
       INFILE 'test.dat'
       append
       INTO TABLE test
    (test_date timestamp "yyyy/mm/dd hh24:mi:ssxff")
    $ sqlldr scott/tiger control=test.ctl
    SQL*Loader: Release 9.2.0.4.0 - Production on Mon Nov 7 10:53:40 2005
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Commit point reached - logical record count 1
    $ sqlplus scott/tiger
    SQL*Plus: Release 9.2.0.4.0 - Production on Mon Nov 7 10:53:48 2005
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    SQL> desc test
    Name                                      Null?    Type
    TEST_DATE                                          TIMESTAMP(6)
    SQL> select * from test;
    TEST_DATE
    17-FEB-04 14:53:12,000000
    SQL>

  • Sqlldr question -- ideas welcome please!

    Hi,
    I work in an environment where my application produces about 20K flat files every day with atleast 10K rows in each. I would like to implement a solution in Java harnessing the capabilities of SQL Loader.
    Say at a time i want to process 5 files with 5 instances of SQL Loader running (ofcourse i will have to log all happening with the bad files/discard files etc) what is the best approach that needs to be followed using Java?--your thoughts?
    Plus, i want to keep my DB connection alive always, is this possible with the above approach. Any pointers would be greatly appreciated. Thanks

    FYI--This is on UNIX and 10g. Good.
    But my requirement is that these flat files must be
    read continuously and must be processed and inserted
    into the DB. This is because the destination DB is
    our provisioning DB, and it must be available to the
    customers with a very very minimal delay.Then I'd still be looking at external tables. Unless I could get the information via message queues, in which case I'd switch to AQ.
    There are a lot of assumptions in the design. There are many ways to accomplish what you want. Reading flat files continuously has some interesting implications - such as 'are they ever closed'?

  • Remove content from Google

    Dear Moderators,
    Can you please remove these two posts from Google?
    Re: sqlldr question - how do I skip the last record of a file when loading?
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=932649&tstart=0

    The best thing you can do is simply use the Google request methods for removing content.
    If you believe that content breaches privacy and that's somehow urgent then request an urgent removal:
    http://www.google.com.bd/support/webmasters/bin/answer.py?hl=en&answer=61062
    If it's not urgent then there's a link on that same page for requesting the same.
    You've made posts on a public site on the internet, google has come along and copied that public content, which they are entitled to do. It's not really Oracle's concern if you decide that information should be removed. Of course, if you have posted personal details such as names, address, credit card details etc. then Oracle will be quite happy to edit/remove such details from their own forum (they have before, I know for a fact) and if that information is know to exist on Google then maybe Oracle will help out (Justin will be able to give a definitive answer) by requesting the removal from google if the appriopriate google cache links are given, but I don't think they are obliged to.
    user8660878 wrote:
    I don't see the need for this forum to be indexed anyway. It has an internal search function so all one has to do is get here and then look around.All forums (as well as any website) on the internet get indexed by search engines. That's what makes the search engines a powerful and popular method of finding information and is what the internet is all about (shame some of the people with questions don't use them first before posting ;) ). It would be poor to expect people to know whereabouts to find the forums on www.oracle.com and then have to trawl about the forums once they do find them to try and find an answer to their question (the search facility on the forum is certainly not the best or easiest to use). Google and other search engines provide a great information sharing service.
    I hesitate to come close to the forum during work hours in the event my employer decides the banter is more social than technical.Why banter? Nobody is making you. If you come to the forums and only post technically, even if it is just for you to ask questions and you don't get involved answering any, then your employer can check and see that you have only used the forums to further your knowledge or do a better job. In general, these forums are more technical discussions than banter, so I'd hardly refer to them as being social, although regulars here do get to know each other somewhat.

  • I have a question about SQLLDR

    Hi all,
    Alongwith the data in the INFILE, I want to load the name of the INFILE too in a column of the table. How can I do that... The file name is going to be different everyday... I want to have the filename in a column of the target table to make sure that the data belong to a particular file....
    Any body has any idea.. please help.
    Thanks in advance

    SQL*Loader doesn't accept data parameters. A workaround may be achieved using a template control file with placeholders (filename constant "x_file_name") and a shell script. The script will use sed to change the x_file_name with the datafile name and replace existing ctl, then call sqlldr.

  • SQLLDR Command line arg question.

    Is there a way to override , from the command line,
    the table_name of the ...
    INTO TABLE table_name
    ... clause of SQLLDR's LOAD statement?
    ie.
    If my control file looked like this ...
    LOAD DATA
    INFILE *
    APPEND
    INTO TABLE my_table_1
    could I have data loaded into my_table_2 like so ...
    sqlldr scott/tiger@test TABLE=my_table_2
    ... I know that TABLE= will not work. But is there
    a way to do something like this?

    oops! ignore this post

  • Can you use schema name in "INTO TABLE" in sqlldr?

    Hi All,
    I have a simple question.
    My Oracle userid is SBHAT.
    SBHAT has insert,delete, select,update privileges on a Table in another schema XYZ.
    I want to SQL*Load data in Table EMPLOYEE in XYZ schema, using my userid. Something like ....
    sqlldr userid=*SBHAT*/password control=test.ctl data=test.txt
    I tried to use the following in my test.ctl file but it does not work.
    load data
    append
    into table "XYZ.EMPLOYEE"
    fields terminated by ',' optionally enclosed by '"'
    trailing nullcols
    Can someone give me the proper syntax for into table that uses *schema.table_name* construct.
    Thanks,
    Suresh

    Pl post exact OS and database versions - what do you get when you execute sql*loader with the syntax you have identified so far ?
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm#i1005623
    HTH
    Srini

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Getting ORA-22805 when trying to load XML file using SQLLDR

    I'm trying to learn the basics of XML since we'll be getting XML files in the near future. I'm using one of the sample schemas that comes with XMLSPY. I loaded this schema into an 11g Oracle DB using XMLSPY:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XML Spy v4.0 NT beta 1 build Jun 13 2001 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ipo="http://www.altova.com/IPO" targetNamespace="http://www.altova.com/IPO" elementFormDefault="unqualified" attributeFormDefault="unqualified">
         <annotation>
              <documentation>
    International Purchase order schema for Example.com
    Copyright 2000 Example.com. All rights reserved.
    </documentation>
         </annotation>
         <!-- include address constructs -->
         <include schemaLocation="address.xsd"/>
         <element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
         <element name="comment" type="string"/>
         <complexType name="PurchaseOrderType">
              <sequence>
                   <element name="shipTo" type="ipo:Address"/>
                   <element name="billTo" type="ipo:Address"/>
                   <element ref="ipo:comment" minOccurs="0"/>
                   <element name="Items" type="ipo:Items"/>
              </sequence>
              <attribute name="orderDate" type="date"/>
         </complexType>
         <complexType name="Items">
              <sequence>
                   <element name="item" minOccurs="0" maxOccurs="unbounded">
                        <complexType>
                             <sequence>
                                  <element name="productName" type="string"/>
                                  <element name="quantity">
                                       <simpleType>
                                            <restriction base="positiveInteger">
                                                 <maxExclusive value="100"/>
                                            </restriction>
                                       </simpleType>
                                  </element>
                                  <element name="price" type="decimal"/>
                                  <element ref="ipo:comment" minOccurs="0"/>
                                  <element name="shipDate" type="date" minOccurs="0"/>
                             </sequence>
                             <attribute name="partNum" type="ipo:Sku"/>
                        </complexType>
                   </element>
              </sequence>
         </complexType>
         <simpleType name="Sku">
              <restriction base="string">
                   <pattern value="\d{3}-[A-Z]{2}"/>
              </restriction>
         </simpleType>
    </schema>
    Then I created an XMLType table:
    CREATE TABLE purchaseOrder OF XMLType
    XMLSCHEMA "ipo.xsd" ELEMENT "purchaseOrder"
    I'm trying to load the sample XML file ipo.xml into purchaseOrder using SQLLDR. This is ipo.xml:
    <?xml version="1.0"?>
    <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Mr. Nobody (Altova GmbH) -->
    <ipo:purchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ipo="http://www.altova.com/IPO" orderDate="1999-12-01" xsi:schemaLocation="http://www.altova.com/IPO
    ipo.xsd">
         <shipTo export-code="1" xsi:type="ipo:EU-Address">
              <ipo:name>Helen Zoe</ipo:name>
              <ipo:street>47 Eden Street</ipo:street>
              <ipo:city>Cambridge</ipo:city>
              <ipo:postcode>126</ipo:postcode>
         </shipTo>
         <billTo xsi:type="ipo:US-Address">
              <ipo:name>Robert Smith</ipo:name>
              <ipo:street>8 Oak Avenue</ipo:street>
              <ipo:city>Old Town</ipo:city>
              <ipo:state>AK</ipo:state>
              <ipo:zip>95819</ipo:zip>
         </billTo>
         <Items>
              <item partNum="833-AA">
                   <productName>Lapis necklace</productName>
                   <quantity>2</quantity>
                   <price>99.95</price>
                   <ipo:comment>Need this for the holidays!</ipo:comment>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="748-OT">
                   <productName>Diamond heart</productName>
                   <quantity>1</quantity>
                   <price>248.90</price>
                   <ipo:comment>Valentine's day packaging.</ipo:comment>
                   <shipDate>2000-02-14</shipDate>
              </item>
              <item partNum="783-KL">
                   <productName>Uncut diamond</productName>
                   <quantity>7</quantity>
                   <price>79.90</price>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="238-KK">
                   <productName>Amber ring</productName>
                   <quantity>3</quantity>
                   <price>89.90</price>
                   <ipo:comment>With no inclusions, please.</ipo:comment>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="229-OB">
                   <productName>Pearl necklace</productName>
                   <quantity>1</quantity>
                   <price>4879.00</price>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="128-UL">
                   <productName>Jade earring</productName>
                   <quantity>5</quantity>
                   <price>179.90</price>
                   <shipDate>2000-02-14</shipDate>
              </item>
         </Items>
    </ipo:purchaseOrder>
    This is what's in the control file:
    LOAD DATA
    INFILE *
    INTO TABLE purchaseOrder TRUNCATE
    xmltype(xmldata)
    FIELDS
    xmldata LOBFILE (CONSTANT ipo.xml)
    BEGINDATA
    0
    The load fails with:
    Record 1: Rejected - Error on table PURCHASEORDER.
    ORA-22805: cannot insert NULL object into object tables or nested tables
    Another question I have is, how do we know how many records (0's) to specify in the control file? In this case there's only one but when real files are used we won't know how many are in the file.
    Thanks for your help!

    The concept was "Don't use SQL*Loader to parse XML".
    You can use SQL*Loader to load an entire XML document into the DB. That is fine. You can do the same via BFILENAME to read in files from disk as well.
    If you want to parse XML, do that from within Oracle via PL/SQL and/or SQL. The solution depends upon your version of Oracle and what is good enough for you in terms of performance.
    So the basics are
    a) How am I getting the information?
    b) How am I getting in into Oracle?
    c) How do I want to parse it?
    As I see the schema, it only allows for one ipo:purchaseOrder node in the document, since that is the root node. If you have multiple in the incoming file, you no longer have valid XML, both per the schema and because you have no single root node. You have an XML fragment, which must be treated different.
    Just trying to understand the question since I now realize it does not agree with what the schema in your initial example shows.

  • How to add file name by sqlldr

    Hi All,
    Can anyone kindly give me an approach to use a variable in a sql loader ctl file. I am trying to add the value before each insert of row and this value is the file name. So the question is how can I dynamically identify the input data file name, if not, is there a way I can make my SQL Loader to insert a value (file name) before each row into the table.
    my control file like below ,
    LOAD DATA
    INTO TABLE "user"."AAA_BILL"
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    EXCEPTIONS "USER"."AAA_BILL"
    FIELDS TERMINATED BY '|'
    (Streamnumber ,
    MSID ,
    UserName,
    Domain,
    UserIP ,
    Correlation_ID)and the loading script as below ,
    for j in $(GetFileNames)
    do
    let i=$i+1
    sqlldr user/pass control="/u01/ctrlfile/loadBILLDtl.ctl" log=$WiMAXlog$j.log data=$WiMAXsource$j   bad=$WiMAXlog$j.bad
    GetFileNames ()
    sqlplus -s user/pass << EOF
    set echo off
    SET FEEDBACK OFF
    SET heading off
    set pagesize 50000
    select bi_file_name from dbm_bill_head where bi_file_name like 'WiMAX_%' and bi_auto_status=35  order by bi_file_name;
    EOF
    }What I am trying to accomplish here is, I want to insert the data file name along with other data in the data file into table AAA_BILL and this table has the file name coloumn, but the data file does not contain the file name as one of its contents.
    Note : my DB is 10G and OS is RHEL
    any help please ,
    Edited by: 876602 on 18/12/2011 05:44 ص

    Hi,
    Now it is working just well.
    I kept 2 variables: one with the POSIX file path for my do shell script and another one (using the provided tip here) for the Applescript function.
    The only problem I had left was that teh file was writen in, maybe, UTF8 so I added to the open for access a "as text" at the end to make the file as straith text file.
    I always found languages like Applescript a little bit hard to learn. Strangely, I have less difficulty with Cocoa!
    Thanks for avery one here!

  • Sqlldr:  Message 2100 not found - No msg files in my RDBMS\Mesg dir

    Hi All,
    I am trying to use sqlldr on an WIN2003R3 server. This is not working and I get an error message:
    MESSAGE 2100 NOT FOUND: WHEN ATTEMPTING TO START SQLLDR.
    I searched the internet and there it states that this should have to do with my ORACLE_HOME or ORACLE_BASE environment variables or path. I checked those, but they seem fine.
    On metalink it states two possiblities, for WIN NT,
    - Removing the ORACLE_HOME env. variable
    - Copy the files from another Oracle installation
    (Metalink Note:171648.1 and Note:1081848.6).
    I tried the first, but still doesnot work. Unfortunately I can't try the second, because all other Oracle installations I have access to are the same version, so they all have the same files in the RDBMS\Mesg directory.
    My questions are:
    - How many files should there be in the mentioned directory? (Now I've got 4: kgpus.msb, ocius.msb, oraus.msb, smgus.msb )
    - Where can I get the missing files, or is there any other way to get around this?
    - any ohter suggestions?
    Thanks in advance. Any help will be appreciated,
    Regards,
    Toin.
    Message was edited by:
    Toin
    Fixed a typo.
    Message was edited by:
    Toin

    The problem is that my SQL Loader is not working under WIN NT. This is a known issue, one of the suggestions I found on metalink is to manually copy the message files that should be in ORACLE_HOME\DBMS\Mseg from another Oracle installation.
    I cannot do this, because all my Oracle installations are the same. So the questions is where can I find the appropriate message files, so I can get my SQL Loader to run??
    Thanks.
    Toin.

  • IKM File to Oracle (SQLLDR)

    Gurus,
    I am in the process of creating IKM File to Oracle (SQLLDR) per metalink note 762723.1 using ODI version 10.3.5.4, but it doesn't work the way it is described in the note. Thus the questions are:
    1. Does the IKM exist and where can I download one. I can't find it on metalink.
    2. If that doesn't exist, and I have to create one, then I need help figuring out creation of sqlldr control file for fixed length flat file. how do I reference the fixed length file attrbutes ( like field positions/format ) when I create the control file. Here is what I currently have:
         <%=odiRef.getColList("", "[CX_COL_NAME]\tPOSITION([FILE_POS]:[FILE_END_POS])\t"+
              "<?=sqlldrColFormat.get(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022[DEST_DT]\u0022, \u0022[COL_FORMAT]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>"
         , ",\n\t", "","")%>
    That code does not work.
    Also to avoid any confusion my IKM is set up as multi-connections and I set staging where my files are.
    Thank You.
    Edited by: user12118531 on Nov 9, 2009 3:05 PM

    If you have a situation where you want a "one-step" interface (often the simplest SELECT and INSERT), there is a way in ODI. You should select the "Staging different from target" checkbox on the Definition tab. Then select the schema in the drop-down which corresponds to your source schema (in effect you are saying "the data is already in the staging area"). Now when you go to the Flow tab, you will see it does not offer you the option of an LKM, but of course you do have to have a multi-technology IKM - like "IKM SQL to SQL Append".

  • Sqlldr using decimal only works direct? why?

    I am loading data from a file received from a client. It contains char, smallint and decimal data. after creating a .ctl file to load the file, it will only load if i use direct=true why? All columns are defined and line-up with the data (looking at the log file) but I get "Invalid zoned decimal nibble.". Is there a bug in sqlldr?

    Hi Ben, thanks for taking the time to read my query.
    The site in question is an intranet site, so I am unable to give you a link to the page. Would the entire page of code rather than just the odd bits help?
    Cheers
    Dan

  • How to call sqlldr utility in stored procedure

    Hi,
    i want to call sqlldr exe from stored procedure.
    Regards,
    Tushar Josih

    user12044491 wrote:
    currently i am working on oracle release 10g R2.
    i am not very much sure whether all CTL option are available in the external table.Before you decide on the method you should clearly understand the following. SQL*Loader is client side tool while job and external table are server side tools. Therefore, unless you are connecting to oracle from database server or file you are loading is accessible from database server, neither job nor external table will help you. And now back to your question - yes, not all SQL*Loader features are available for external tables but most of the time there is a way around it.
    SY.

Maybe you are looking for

  • Figured Out Why AirDisk Shows No Files/Folders

    I think I figured it out. Maybe I'm just an idiot or something, but I have Windows XP and gigantic music library. (About 100gb). When I plugged my hard drive into my Airport Extreme, I couldn't figure out why all of my home videos and pictures were s

  • Is there a step by step guide to transfer licences?

    I have a PC that has started having the following message: 'windows detected a hard disk problem. 'Back up your files immediately to prevent information loss and then contact the computer manufacture to determine if you need to repair or replace the

  • Can't receive calls on my new Iphone 3GS

    I'm a new Telus customer since yesterday. I can't receive any calls on my Iphone 3Gs except if the caller is on the Telus network. Telus confirmed that this ain't a network problem. They beleive it might be a problem whith codes inside the phone? Sim

  • I have no(!) admin pw and I cannot continue upgrade

    I have no(!) admin pw on my iMac and I cannot continue upgrade Maverick because an admin pw is requested

  • How to transfer files from PC to iPad air 2?

    Hi, How do I transfer files from my PC (Dell) to my new iPad Air 2? I downloaded iTunes to my PC but don't know what to do next. Thanks,