SQL*Loader on Linux AS4

I am trying to execute SQL*Loader from Linux prompt (OS is RHEL AS4) and system is not able to recognize sqlload.
I am able to log on to sqlplus but not sure why or what needs to done to be able to invoke sqlload from linux command prompt.
Thx for any help.

You will have to install the full client software. Pl be aware that Ubuntu is not a certified OS to install Oracle software
HTH
Srini

Similar Messages

  • Invoking SQL Loader from linux - Help Needed

    Hi All,
    When i tried to invoke the sql loader from linux by using following command
    sqlldr username@server/password control=loader.ctl
    But its always throws this message
    Message 2100 not found; No message file for product=RDBMS, facility=ULMessage 2100 not found; No message file for product=RDBMS, facility=UL
    Can somebody help me to fix this issue?

    You may need to set your Oracle environment, try this ($ is the command prompt):
    $ export ORACLE_SID=orcl
    $ . /usr/local/bin/oraenv
    $ sqlldr username@server/password control=loader.ctl:p

  • Pls any one can tell about sql loader in linux?

    Pls any one can tell about sql loader in linux

    Hi,
    I don't think it matters which OS, sqlloader works the same for all OS. If you want more information, read first the manual: http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/ldr_concepts.htm#i1005437
    Herald ten Dam
    http://htendam.wordpress.com

  • Help: INFILE Syntax for Sql loader in Linux

    Hi
    I am using sqlload in Linux. How do I specify the INFILE when abc.dat is in say a logical drive ORACLE_INFILE?
    I also know the exact file location like /u01/file_folder.
    In Windows, we have for examle
    INFILE 'c: file_folder\abc.dat'
    In Linux, what we do when file, abc.dat is in /u01/file_folder or logical drive ORACLE_INFILE?
    Any suggestions are greatly appreciated.
    Thanks.

    Hi
    Just finished a test and it worked. It is apparently a simple thing just about path/file name in Linux. So in Linux we do:
    INFILE '/path/abc.dat'

  • SQL Loader (Oracle 8.1.5 on Suse 6.3) Internal Error

    Hi all,
    I try to insert data with SQL Loader on Linux (Suse 6.3) and get the following message:
    SQL*Loader-704: Internal error: ulmtsyn: OCIStmtExecute (tabhp) [-1073747572]
    ORA-00942: table or view does not exist
    The control file and data file did work on another platform.
    Please help me!
    Thanks,
    Thies Mauker

    Lee Bennett (guest) wrote:
    :Hi
    :I have successfully installed Oracle 8.1.5 Enterprise edition
    on
    :Suse 6.2 and applied the 8.1.5.0.1 patch set,
    NO!
    SuSe 6.2 have a patch file for Oracle made from their developers.
    Never use Oracle 8.1.5.0.1 patch file that doesn't work because
    us bugged.
    Use SuSe 6.2 Oracle patch set.
    (don't remember the web page where you can download it but a
    search with word "oracle" from SuSe homepage will lead you to
    it)
    -Stefano
    null

  • Loading data by sql loader in oracle 10g on linux

    I am trying to load data in Oracle 10g on linux by using sql loader, but getting error
    Problem in log showing that field length of SURNAME field is more than table field size.
    Following is the error in log file of sql loader
    Record 21: Rejected - Error on table TABLE1, column
    SURNAME.
    ORA-12899: value too large for column SURNAME (actual: 65, maximum: 64)
    and it is evident from following controlfile that i am using trim to discard any space then why it is giving an error.
    LOAD DATA
    TRUNCATE
    INTO TABLE TABLE1
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    ID INTEGER EXTERNAL,
    OPTION1 CHAR,
    REF1 CHAR,
    OTHER_REF CHAR,
    TITLE "TRIM(:TITLE)",
    FORENAME "TRIM(:FORENAME)",
    SURNAME "TRIM(:SURNAME)",
    JOINT_TITLE "TRIM(:JOINT_TITLE)",
    JOINT_FORENAME "TRIM(:JOINT_FORENAME)",
    JOINT_SURNAME "TRIM(:JOINT_SURNAME)",
    I checked the bad file and count number of characters, they are 64 characters.
    When i am inserting individual record from bad file by sql loader, it is loading

    Probably your database character set is multi-byte. That is %UTF8 or AL16UTF16%
    Post your NLS Database Parameters value
    select * from nls_database_parameters;
    In General varchar2(65) by default means 65 BYTES unless
    you have changed your Defalut NLS_LENGTH_SEMANTICS parameter from BYTE to CHAR.
    With best regards
    Shan

  • Error loading operating system after installation of Linux AS4

    Hi,
    I have Hardware HP DL580 G3 server attached with SAN.
    I just installed Linux AS4, installation went fine and successufly installed, upon rebooting of server it is giving following error.
    attempting from Hard Drive (C:)
    Error Loading Operating system
    Please help me out

    First: did you install the bootloader in the MBR (it's a question during the installation), so the server is able to boot linux automatically?
    "C:" is a typical MSDOS naming (and windows naming), which probably means the dos/windows bootloader is still in the MBR (master boot record)
    If not, reinstall linux and install grub (preferably) in the MBR

  • How to load an Excel sheet into Oracle via SQL* Loader

    Hallo!I am trying to load an Excel spreadsheet into an Oracle 10g database via SQL*Loader.
    How do I achieve this via Oracle Enterprise Manager?
    Please give a detailed explanation especially covering the locations of the control file,infile,bad file etc for Oracle 10g running in both Windows and Linux platforms.
    Thanks.

    This has nothing to do with Oracle Enterprise Manager
    SQL Loader is command line and it needs to be installed with SQL PLUS (The wrong install type will not have it)
    Consider reviewing this:
    http://www.orafaq.com/wiki/SQL*Loader_FAQ

  • SQL Loader Multibyte character error

    Hello,
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    Database Characterset: WE8MSWIN1252
    To load an utf8 File (UTF-8 Unicode text) i use option characterset UTF8 in controlfile.
    All went fine until in textfile the column is filled up with 40 chars and
    german umlaute included (ÜÖÄüöä...)
    Loader stops (errors=0) and gives:
    Record 146466: Rejected - Error on table 'TableName', column 'ColumnName'.
    Multibyte character error
    * use CHAR(40) and POSITION(start-end) for field description - no help
    * modify column, from VC2(40 char) to VC2(50 char) - no help
    * without characterset UTF8 option i got wrong characters for german umlaute - no help
    * manual insert the data from this row with NO problems !
    any hint or workaround?
    Regards
    Michael

    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

  • SQL Loader Multibyte character error, LENGTH SEMANTICS CHARACTER

    Hi,
    startet SQL Loader Multibyte character error
    {thread:id=2340726}
    some mod locked the thread, why?
    the solution for others:
    add LENGTH SEMANTICS CHARACTER to the controlfile
    LOAD DATA characterset UTF8 LENGTH SEMANTICS CHARACTER
    TRUNCATE                              
    INTO TABLE utf8file_to_we8mswin1252
      ID    CHAR(1)     
    , TEXT  CHAR(40)
    )Regards
    Michael

    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

  • 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

  • How to Eliminate Special Character in SQL LOADER Script

    How to eliminate special character from SQL LOADER script file which suppose not to insert in TABLE
    example.CSV lile like this
    <ABC/ , 7747>
    <DEF/ , 7763>
    <NEW/ , 7779>
    <OLD/, 7795>
    I have to remove < > and / character at the time of loading into table. How It could be done. It is not possible to remove < , > , / character manually from CSV file

    On Unix/Linux that's very easy, on Windows... I don't know...
    $ cat myfile.csv
    <ABC/ , 7747>
    <DEF/ , 7763>
    <NEW/ , 7779>
    <OLD/, 7795>
    $ tr -d "\057\074\076" <myfile.csv >outfile.csv
    $ cat outfile.csv
    ABC , 7747
    DEF , 7763
    NEW , 7779
    OLD, 7795
    $

  • SQL*Loader and binary

    i am trying to load binary data using SQL*Loader. given a table created a la:
    create table oofa ( data raw(500) );
    and a control file (running on x86 linux):
    LOAD DATA
    INFILE *
    APPEND INTO TABLE OOFA
    ( DATA VARRAW(500) )
    BEGINDATA
    X'05003132333435'
    i get an error "variable length field exceeds maximum length" and no record loaded. i tried using X'00053132333435' just in case i'd muffed the big- little-endian stuff, but the same thing happens.
    anyone successfully loaded binary data as above? if so, how'd you do it?
    also, is there a way to make SQL*Loader more verbose?
    thanks.

    i am trying to load binary data using SQL*Loader. given a table created a la:
    create table oofa ( data raw(500) );
    and a control file (running on x86 linux):
    LOAD DATA
    INFILE *
    APPEND INTO TABLE OOFA
    ( DATA VARRAW(500) )
    BEGINDATA
    X'05003132333435'
    i get an error "variable length field exceeds maximum length" and no record loaded. i tried using X'00053132333435' just in case i'd muffed the big- little-endian stuff, but the same thing happens.
    anyone successfully loaded binary data as above? if so, how'd you do it?
    also, is there a way to make SQL*Loader more verbose?
    thanks.

  • SQL Loader and weird source file structure

    I am familiar with using SQL Loader to process comma or tab delimited text files into proper table data. But how do you process "positionally delimited" files?!
    I mean, I have a text file which looks like this:
    Item A
    ---attribute1
    ---attribute2
    ---attribute3
    ---attribute4
    Item B
    ---attribute1
    ---attribute2
    ---attribute3
    ---attribute4
    Item C
    ---attribute1
    ---attribute2
    ---attribute3
    ---attribute4
    And so on. How do I tell SQL Loader, 'rows 1, 6 and 11 are the first column in the table; rows 2, 7 and 12 and the second column; rows 3, 8, 13 are the third and so on? I want to end up with data in the form
    Item A Attribute1 Attribute2 Attribute3 Attribute 4
    Item B Attribute1 Attribute2 Attribute3 Attribute 4
    Item C Attribute1 Attribute2 Attribute3 Attribute 4
    Is such a thing even possible with SQL Loader?

    If your data is exactly in that format like in sample provided by Enrique, you can try to play with that certain data pattern. Again, based on previous example:
    ~ >cat data.dat
    map1
        615050: ( 95, 83, 68) #5F5344 rgb(95,83,68)
        605728: ( 36, 27, 22) #241B16 rgb(36,27,22)
        225834: (154,107, 84) #9A6B54 rgb(154,107,84)
        176305: (218,187,155) #DABB9B rgb(218,187,155)
        141083: (188,142,111) #BC8E6F rgb(188,142,111)
    map2
        615050: ( 95, 83, 68) #5F5344 rgb(95,83,68)
        605728: ( 36, 27, 22) #241B16 rgb(36,27,22)
        225834: (154,107, 84) #9A6B54 rgb(154,107,84)
        176305: (218,187,155) #DABB9B rgb(218,187,155)
        141083: (188,142,111) #BC8E6F rgb(188,142,111)
    map3
        615050: ( 95, 83, 68) #5F5344 rgb(95,83,68)
        605728: ( 36, 27, 22) #241B16 rgb(36,27,22)
        225834: (154,107, 84) #9A6B54 rgb(154,107,84)
        176305: (218,187,155) #DABB9B rgb(218,187,155)
        141083: (188,142,111) #BC8E6F rgb(188,142,111)
    ~ >cat data.ctl
    LOAD DATA
    INFILE "data.dat" "str '\nm'"
    DISCARDFILE "data.dsc"
    DISCARDMAX 999
    REPLACE
    -- CONCATENATE 6
    INTO TABLE data
    fields terminated by X'0a' trailing nullcols
    ( item char "replace('m'||:item,'mm','m')",
      attrib1 char,
      attrib2 char,
      attrib3 char,
      attrib4 char,
      attrib5 char
    ~ >sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Oct 15 16:27:25 2008
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select count(*) from data;
      COUNT(*)
             0
    SQL> !sqlldr userid=scott/tiger control=data.ctl
    SQL*Loader: Release 10.2.0.4.0 - Production on Wed Oct 15 16:28:29 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Commit point reached - logical record count 2
    Commit point reached - logical record count 3
    SQL> col item for a4
    SQL> col attrib1 for a50
    SQL> col attrib2 for a50
    SQL> select item,attrib1,attrib2 from data;
    ITEM ATTRIB1                                            ATTRIB2
    map1     615050: ( 95, 83, 68) #5F5344 rgb(95,83,68)        605728: ( 36, 27, 22) #241B16 rgb(36,27,22)
    map2     615050: ( 95, 83, 68) #5F5344 rgb(95,83,68)        605728: ( 36, 27, 22) #241B16 rgb(36,27,22)
    map3     615050: ( 95, 83, 68) #5F5344 rgb(95,83,68)        605728: ( 36, 27, 22) #241B16 rgb(36,27,22)
    SQL>As you see, i loaded on linux, on windows you may slightly adjust controlfile to reflect end of lines...
    Best regards
    Maxim

  • SQL-Loader and Pipes

    I have to insert 300.000.000 datasets (generated dynamically by a seperate process) into an Oracle 8.1.6 database. I'd like to do this via SQL-Loader but since Linux (kernel 2.2 at least) supports only files up to 2Gigs and I don't have the necessary space on my machine to generate a large amount of ASCII files I'd like to ask whether there is a possibility to use an ordinary pipe in combination with SQL-Loader. I tried to use a named pipe but all my attempts failed.
    I don't like to use Perl and the DBI module since this would be far so slow (would take about one week I guess).
    Hans

    External tables are accessible from SQL, which generally simplifies life if the data files are physically located on the database server since you don't have to coordinate a call to an external SQL*Loader script with other PL/SQL processing. Under the covers, external tables are normally just invoking SQL*Loader.
    SQL*Loader is more appropriate if the data files are on a different server or if it is easier to call an executable rather than calling PL/SQL (i.e. if you have a batch file that runs on a server other than the database server that wants to FTP a data file from a FTP server and then load the data into Oracle).
    Justin

Maybe you are looking for