How to load a LOB with SQLLOADER

Hello,
could anyone give me a hint, how the controlfile has to look, if I try to load a LOB into a table?
I got a little basic structure, but I'm not sure how to handle the LOBS. Anyone's got an idea?
my table:
Create table LOB_Example
(LOB_ID Number(10) primary key,
text CLOB);
my controlfile:
LOAD DATA
INFILE *
APPEND
INTO TABLE LOB_EXAMPLE
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
(LOB_ID, text)
BEGINDATA
1,C:\samples\erle.txt
my command:
sqlldr userid=test/test control=c:\controldat.ctl log=c:\mylog.dat
That works fine, but I got only the text: "C:\samples\erle.txt" in the table.
My intention ist to have the file in there ;).
With best regards
Max

This document will be able to help you a lot.
Utilities Contents / Search / Index / PDF
http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96652.pdf
Joel P�rez

Similar Messages

  • How to load a sysdate with flat file

    How do I load a sysdate with a flat file
    I tried using a constant with a sysdate expression but it seems like OWB creates the ctl file with 'sysdate' as a text and not as a sysdate() function

    Ola Wernere,
    Two things to check:
    - is the data type of the constant a date?
    - did you enter 'sysdate' or just sysdate (without the ampersands)?
    Other thing that might help you is generate the intermediate result in the mapping. This will show you the results you'll expect to be loaded in the flat file...
    Good luck & regards
    Moscowic

  • How to load external DLLs with C++ interface in TestStand?

    Hi,
    Can you please let me know how would I load external DLLs with C++ interface in TestStand?
    Regards.

    TestStand 3.x can only call static class C++ methods. TestStand cannot call methods on a C++ object because TestStand does not know how to enstantiate the C++ object.  In TestStand 3.x, there is a online help topic called "Exporting Class Methods and Functions in Visual Studio .NET".
    Scott Richardson
    National Instruments

  • How to load my tree with data from SQL database????

    Hello friends
    May i know how i can load my tree with my database??
    i have 3 different tables and i need them to be the 3 main nodes of my tree
    They are
    1.fiche
    2.amis and
    3.famille
    and in each of these nodes need to load the 3 databases
    thank u in advance

    Heres my program so i loaded my vector ,
    Now how can i integrate the coding u gave me, and where ??
    Is it where i put the quetion mark?
    if so
    can you tell me how?? because i didnt understood well the codings you gave me as im nt at all familiar with this
    Thank you in advance
    public class carnetf extends javax.swing.JFrame  {
       DefaultMutableTreeNode root =null;
        public carnetf() {
           root= new DefaultMutableTreeNode("Carnet");
            DefaultMutableTreeNode tnFiche=new DefaultMutableTreeNode("Fiche");
           root.add( tnFiche);
            DefaultMutableTreeNode tnAmis=new DefaultMutableTreeNode("Amis");
            root.add( tnAmis);
            DefaultMutableTreeNode tnFamille=new DefaultMutableTreeNode("Famille");
            root.add( tnFamille);
           initComponents();
        public Vector vecfiche() {
            Vector v = new Vector();    
            Connection connection = null;
            try
                Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
                DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());;
            catch (Exception E)
                System.out.println("Unable to load driver.");
                System.out.println(E.getMessage());
                E.printStackTrace();
                return null;
            try
                connection = DriverManager.getConnection( "jdbc:microsoft:sqlserver://localhost:1433;user=sa;password=sa;DatabaseName=carnet");
            catch (Exception E)
                System.out.println("Unable to connect.");
                System.out.println(E.getMessage());
                return null;
            try
                Statement Stmt = connection.createStatement();
                if(jRadioButton1.isSelected()==true)  
                    String Query = "SELECT * FROM fiche";
                ResultSet RS= Stmt.executeQuery( Query );
                while ( RS.next())
                 v.add( new vecfiche( RS.getString("Nom"), RS.getString("Prenom")));
                if( RS!= null) RS.close();}
                if(jRadioButton2.isSelected()==true)  
                    String Query = "SELECT * FROM amis";
                ResultSet RS= Stmt.executeQuery( Query );
                while ( RS.next())
                 v.add( new vecfiche( RS.getString("Anom"), RS.getString("Aprenom")));
                if( RS!= null) RS.close();}
                if(jRadioButton3.isSelected()==true)  
                    String Query = "SELECT * FROM famille";
                ResultSet RS= Stmt.executeQuery( Query );
                while ( RS.next())
                 v.add( new vecfiche( RS.getString("Fnom"), RS.getString("Fprenom")));
                if( RS!= null) RS.close();}
                if( Stmt!= null) Stmt.close();
            catch (Exception E)
                System.out.println("Unable to query.");
                System.out.println(E.getMessage());
                return null;
            try
                connection.close();
            } catch (Exception E)
                System.out.println("Unable to close.");
                System.out.println(E.getMessage());
                return null;
            return v;
        }

  • How to load master data with text into infoObject in BI 7.0

    Hi all;
    I have an infoobject 0employee ( this is for employee number ,8 character long), with medium text option.
    I would like to load Employee name as a text option for employee number.
    How do I load this mater data into this 0employee object,
    Please help.
    I did look for something similar in the forum and there are many of them, but I couldn't find anything that for BI 7.0 and really clear help for me. Sorry to ask a question that been asked before.
    thanks.
    Raiine

    hi rainnie,
    check this link t oload master data in BI 7
    Re: BI 7.0 flat File extraction
    as you are using SAP defined infoobject you can start from the creation of datasource.
    text format for the flat file is
    LANGUAGE,INFOOBJECT,TEXT
    EN,0EMPLOYEE,RAINNIE
    You have to create ,infopakage, transformation ,dtp for both the attribute and text.
    hope this helps
    cheers
    Sunil

  • How to load an applet with 2 classes and get it to display properly

    Ok I am a very newbie as you can tell by code below but I need help duh. I am a student taking a Java course on my own (ie no marks) so I know what I am doing in a second level java courseI am not sure if my problem is with "Forte for Java 4, CE" or my code. I have two files. Door.java and Exercise4a.java
    The code is as follows:
    Door.java
    package Exercise4.Exercise4a;
    import java.awt.*;
    import java.applet.*;
    public class Door extends java.applet.Applet {
    /** Creates a new instance of Door */
    int x;
    int y;
    public void init() {
    Graphics b;
    public Door(Point aPoint)
    x = (int)aPoint.getX();
    y = (int)aPoint.getY();
    public void paint(Graphics graphics)
    graphics.drawRect(0 + x ,0 + y, 20,30);
    graphics.setColor(Color.black);
    graphics.fillOval(15 + x,15 + y ,5,5);
    graphics.drawImage(buffer,0,0,this);
    public static void main(String args[]){}
    and Exercise4a.java
    package Exercise4.Exercise4a;
    import java.awt.*;
    import java.applet.*;
    public class Exercise4a extends java.applet.Applet {
    Graphics b;
    public void init() {
    Point a = new Point(0,0);
    Door door = new Door(a);
    My problem is that I do not see my door when I compile either file.
    What am I doing wrong? Is this acode problem. ie how do I load the graphics or is it that I am not compiling it correctly.

    package Exercise4.Exercise4a;
    import java.awt.*;
    import java.applet.*;
    public class Exercise4a extends java.applet.Applet {
    Graphics b;
    public void init() {
    Point a = new Point(0,0);
    Door door = new Door(a);// door.paint (b)

  • Fglrx: How to load intel driver with various options, e.g. AccelMethod

    Hi,
    When using fglrx and pxpress on a system with hybrid graphics, how can options be set for the intel device?
    Normally in the "xorg.conf" I could just put something like
    Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "AccelMethod" "sna"
    EndSection
    But with fglrx installed the xorg.conf looks like
    Section "ServerLayout"
    Identifier "Radeon Layout"
    Screen 0 "aticonfig-Screen[0]-0" 0 0
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    BusID "PCI:6:0:0"
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device "aticonfig-Device[0]-0"
    Monitor "aticonfig-Monitor[0]-0"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    EndSubSection
    EndSection
    (Adding an intel device section in here would cause major problems(I get segfaults). I guess because both fglrx/pxpress and xorg try to launch the i915 driver)
    So how can I configure options for the intel driver?
    Why do I want to do this?
    Well aside from the ability to tweak the integrated GPU performance in the usual manner, I have a bug that occurs when UXA is used as the accleration method, but not when SNA is used for the intel driver (even before fglrx is installed on the system). Without fglrx SNA is the default anyway, but fglrx for some reason likes to use UXA.
    Last edited by fpghost84 (2014-01-27 15:16:34)

    Hi, thanks for the new link. Yes, this is completely relevant, but unfortunately it's incomplete & didn't work for me. Please pass this along to the documentation team. Referring to the document, here are the steps I followed:
    A) Starting at section "Restore your computer when Windows 8 cannot start normally" ...
    B) I turned the laptop on & pressed F11 : "System Recovery"
    C) Spinning dots never end, just like during normal start-up, as I reported in original post 
    D) -> Document should mention the option of booting from Windows 8 installation DVD
    E) Booting from Windows 8 DVD, I was able to reach step 7 : "On the Advanced options screen, click System Restore ."
    F) I was unable to reach step 8 in the section :  "Click Windows 8 as the target operating system." b/c I need to load the Intel storage driver for the RAID array that's configured in the BIOS, so that System Restore can see my hard drive.
    How can I load that driver??
    Thanks,
    Brad

  • How to load an applet with older version of JRE?

    Hi All,
    I'm writing an applet which should read the username from the user's system using System.getProperty("user.name") method. I've JRE 1.4.2 in my browser, and it's throwing a AccessControlException whenever the applet is trying to read the "user.name" system property. So, I want to load this particular applet with an older version of JRE, say JRE 1.3. I've tried various approaches like,
    <jsp:plugin type="applet" code="LoginApplet.class" archive="login.jar"
         jreversion="1.3"     iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    </jsp:plugin>
    and also tried OBJECT tag,
    <OBJECT
    classid="clsid:CAFEEFAC-0013-0000-0000-ABCDEFFEDCBA" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"
         width="200" height="200" align="baseline" >
    <PARAM NAME="code" VALUE="LoginApplet.class">
    <PARAM NAME="archive" VALUE="login.jar">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
    <PARAM NAME="scriptable" VALUE="true">
    No Java 2 SDK, Standard Edition v 1.3 support for APPLET!!
    </OBJECT>
    I've not tried the simple APPLET tag because we can't specify a java plugin using the APPLET tag.
    In both the above methods, I'm still getting AccessControlException. In Java console, I'm seeing Java Plugin as 1.4.2.
    Can someone tell me is it possible to read the "user.name" system property from user's machine using Applets? If yes, how?
    Thanks,
    Tarun.

    Applets are prevented from doing certain things - reading data is one - to maximize security. You can either add permissions to the computer that the applet is running on, or you can sign the applet.
    See
    http://java.sun.com/docs/books/tutorial/security1.2/tour1/step2.html
    and
    http://forum.java.sun.com/thread.jspa?threadID=686184&tstart=45

  • Linux JVM: How to load shared libraries with mutual/circular dependencies

    Hi,
    I am using the API
    System.loadLibrary(String name)
    to dynamically link shared libaries to Linux JVM.
    The shared libraries has complex circular symbol dependencies among them.
    I am not able to load shared libraries due to java.lang.UnsatisfiedLinkError.
    Any ideas on how a number of shared libraries with interdependent realtionships
    could be successfully linked in to the Linux JVM?
    Thanks,
    Soumen.
    Background
    ===========
    Successful execution of native code within Java virtual machine in a
    host platform, has two necessary prerequisites:
    Prerequisite 1: The native code is written to the JNI specification
    Prerequisite 2: The native code is dynamically linked with Java virtual
    machine.
    The second step is achieved via simple Java interface, System.loadLibrary:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#loadLibrary(java.lang.String)
    However, implementation of this interface is highly platform dependent
    in regards to exact nature of dynamic linking process.
    Tests
    =====
    I made three shared libraries libfeatureA.so, libfeatureB.so and libfeatureC.so.
    Feature A and Feature B are mutually dependent on each other (i.e cicular
    dependencies between libfeatureA.so, libfeatureB.so) whereas libfeatureC.so
    has no external dependencies.
    Case 1
    I could link libfeatureC.so with java.
    Case 2
    Java failed to resolve circular dependency between libfeatureA.so, libfeatureB.so
    resulting in linking failure. There may be repackaging workarounds which I have
    not yet explored.
    Java source code
    ================
    class TestLoadLibrary
    static
    System.loadLibrary("featureB");
    System.loadLibrary("featureA");
    System.loadLibrary("featureB");
    public static void main(String[] args)
    System.out.println("In TestLoadLibrary.main()");
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /homes/soumen/work/event/featureB/libfeatureB.so.1.0: /homes/soumen/work/ev B.so.1.0: undefined symbol: featureA_func2
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1737)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1662)
    at java.lang.Runtime.loadLibrary0(Runtime.java:817)
    at java.lang.System.loadLibrary(System.java:986)
    at TestLoadLibrary.<clinit>(TestLoadLibrary.java:5)

    The use of "dlopen() application programming" to achieve dynamic link closure works if there are
    no circular dependencies. For example, I have the following dependency:
    libfeatureD.so ==> libfeatureC.so
    Even if I call Java APIs in correct dependency order, i.e.,
    System.loadLibrary("featureC");
    System.loadLibrary("featureD");
    there would be java.lang.UnsatisfiedLinkError for call System.loadLibrary("featureD").
    Now, I have a JNI method implementation, which makes native API call in same dependency order:
    dlopen("libfeatureC.so", RTLD_LAZY|RTLD_GLOBAL);
    dlopen("libfeatureD.so", RTLD_LAZY|RTLD_GLOBAL);
    and now System.loadLibrary calls succeed. Note that I had to set environment
    variable LD_LIBRARY_PATH so that dlopen call would find libraries to load.
    In other words, from a JNI programming point of view, "linking chasm" has been crossed.
    I am looking at circular dependency issue, i.e.,
    libfeatureA.so <==> libfeatureB.so
    There may be library repackaging workaround.
    If anybody knows any workaround, please post.
    -Soumen Sarkar
    JNI code
    ========
    #include <jni.h>
    #include "TestLoadLibrary.h"
    #include <stdio.h>
    #include <string.h>
    #include <dlfcn.h>
    JNIEXPORT void JNICALL Java_TestLoadLibrary_libLoadNative
    (JNIEnv * jenv, jclass class, jobjectArray libNames)
    printf("native: In TestLoadLibrary.libLoadNative()\n");
    char linuxLibName[1024];
    jsize idx = 0;
    jsize nLibs = (*jenv)->GetArrayLength(jenv, libNames);
    for(idx = 0; idx < nLibs; ++idx)
    /* obtain the current object from the object array */
    jobject myObject = (*jenv)->GetObjectArrayElement(jenv, libNames, idx);
    /* Convert the object just obtained into a String */
    const char libName = (jenv)->GetStringUTFChars(jenv,myObject,0);
    strcpy(linuxLibName, "lib");
    strcat(linuxLibName, libName);
    strcat(linuxLibName, ".so");
    printf("\nnative: Trying to open lib with name %s\n", linuxLibName);
    void* handle = dlopen(linuxLibName, RTLD_LAZY|RTLD_GLOBAL);
    if(handle == 0)
    fputs ("\nnative: Could not load lib\n", stderr);
    fputs (dlerror(), stderr);
    else
    printf("\nnative: Loaded lib %s\n", linuxLibName);
    /* Free up memory to prevent memory leaks */
    (*jenv)->ReleaseStringUTFChars(jenv, myObject, libName);
    return;

  • How to load selected column with sql loader

    Hi all
    I want to load only few columns from a datafile not all columns and i don't know how to do from SQL LDR.
    I know we can use position but the data is not fixed length.
    I'm working with Oracle 11g and Linux OS.
    Here is an example of my data file and table.
    Data file is and the field is separated by | :
    3418483|VOU|20120609090114|555208363|0|2858185502059|1000|0||
    3418484|SR|20120609090124|551261956|0|4146314127759|200000|0||
    SQL> desc TBL1
    Name                                      Null?    Type
    CTYPE                                              VARCHAR2(5)
    BDATE                                              DATE
    PARTNUM                                             VARCHAR2(60)
    SERIALNO                                           NUMBER
    FVALUE                                             NUMBER
    I want to have:
    SQL> select * from TBL1
    CTYPE     BDATE          PARTNUM          SERIALNO          FVALUE
    VOU     09/06/2012     555208363     2858185502059          1000
    SR     09/06/2012     551261956     4146314127759          200000Thank you.

    look at FILLER
    http://www.orafaq.com/wiki/SQL*Loader_FAQ#Can_one_skip_certain_columns_while_loading_data.3F
    --add sample
      num1 FILLER,
      ctype,
      bdate "to_date(:bdate, 'YYYYMMDDHH24MISS')",
      PARTNUM,
      num2 FILLER,
      SERIALNO,
      FVALUE, 
      num3 FILLER
      )Edited by: AlexAnd on Jun 9, 2012 4:29 AM

  • How to load a file with out specifying its absolute location

    Hi,
    I'm having some config files in a specific location. I'm setting that folder path to the CLASSPATH and trying access those file just by giving its name.
    For eg: contents are in e:\config folder
    I set e:\config to CLASSPATH
    and trying to load the file which is in the above said folder.
    using getResourceAsStream(filename).
    The above approach is working in certain cases, but not working when i try to do in a class which under a big package structure.
    Can someone help me out, the reason for this unexpected behaviour.
    Please do suggest me, if u know some work-around for this problem.
    Thnaks in advance,
    Chandrasekhar

    Hi,
    Thank you. I tried by adding a forward slash, it started working.
    But I still have one doubt, when the program is within the package structure, then we have to give forward slash, where as if the program doesn't have any pkg structure we have to give only the file name without prefixing the slash.
    Any idea, why is it so ??
    Is it bcz, that getOutputAsStream() will prepend the package names, if forward slash is not given. Even if this is true, why providing a forward slash in a program with no packages doesn't work ?

  • How to load configuration files with to TestStand

    Hello,
    I need an expert advise on setting up Teststand environment. I am developing a generic tester that will eventually support multiple product lines. The PXI equipment is common but the Pin assignment will change from product to another. So, I was thinking to have a configuration file (xml, excel, .csv...etc) that defines each product line. The configuration file will contain all the pin routing, like which pin is connected to which NI Card channel and fault insertion unit. My thought was to load this configuration file to the Teststand environment before starting a series of tests. I had in mind using XML files and use a labview parser to extract the data and write it to Teststand variables. My question is:
    Is this the best practice for this approach ? Is there a better method ? Can I load data into Teststand first and hold the data in Teststand while testing a bunch of UUTs. I do not want load this file at the beginning of every Test, just once when opening Teststand.
    I appreciate any advise on this.
    Thanks,
    Ayman

    I'm using .ini file with configuration information and a startup sequence what read this file, configure the system and then run selected tests. Selected tests list is in the .ini file as well. Configuration info is passed to subsequences as a parameter or "propagate local".
    I disagree with the idea of creating a separate sequence for each product, this solution is not scalable.
    Message Edited by skof on 12-24-2009 09:37 PM
    Sergey Kolbunov
    CLA, CTD

  • How to load a project with Eclipse

    Ok, I'm new to eclipse, and I know this may seem like a dumb question, but how do you load a project you've already been working on? I don't see any "open project" menu item to click on in Eclipse, all I see are "new..." everything.

    Ithink the problem here may be that you are thinking in Visual Studio while trying to use Eclipse.
    In Eclipse, the workspace is a sort of "mini-environment" (for want of a better phrase) in which you develop you application. You can have many projects within each workspace (you are prompted for the workspace when you start Eclipse, so you can have multiple workspaces). Projects are merely directories at the filesystem level).
    I would suggest that you simply import all your projects into your workspace and then you can switch between then by clicking on the project - an Eclipse project is not really analogous to a VS project (I think - haven't used VS much and not for some time). The idea is that projects in Eclipse are really application modules

  • How to load Existing partitons with VirtualBox

    Howdy to all you Archers,
    Does anyone how my existing windows partition in virtualbox ? as VMplayer is out of date in the AUR's
    It is just cause on this laptop has pre-loaded XP (legit) and I need to use lastest itunes for my Iphone and photoshop so I can bring my work home.
    Cheers

    Kewl,
    Really apprectiace the you post.
    My sda permission is
    ls -al /dev/sda
    brw-rw---- 1 root disk 8, 0 2009-07-01 00:08 /dev/sda
    and my /etc/group file is
    root::0:root
    bin::1:root,bin,daemon
    daemon::2:root,bin,daemon
    sys::3:root,bin
    adm::4:root,daemon
    tty::5:
    disk::6:root,myusername
    lp::7:daemon,myusername
    mem::8:
    kmem::9:
    wheel::10:root,myusername
    ftp::11:
    mail::12:
    uucp::14:
    log::19:root
    locate::21:
    smmsp::25:
    http::33:
    games::50:
    network:x:90:
    video:x:91:myusername
    audio::92:myusername
    optical::93:hal,myusername
    floppy:x:94:hal
    storage:x:95:hal,myusername
    scanner:x:96:
    power:x:98:myusername
    nobody::99:
    users::100:myusername
    dbus:x:81:
    policykit:x:102:
    hal:x:82:
    vboxusers:x:108:myusername
    avahi:x:84:
    camera:x:97:
    gdm:x:109:
    myusername:x:1000:
    So I think that I have that stuff cover.  Is it a commend issue how to tell Virtual Box to read /dev/sda1 not the whole paritition ?
    Macy

  • How can load exponential number by sqlloader

    Hi All,
    i need to load into oracle 11g db one csv file with the following record:
    CSV File:
    781041,413538,"REG000200900009052399",+3.01673574421232E+000
    Desc Oracle Table
    ID NUMBER(19)
    IDLOG NUMBER (10)
    INTERNALID VARCHAR2(255)
    SCORE NUMBER (38)
    CTL File
    LOAD DATA
    INFILE "../DATA/REGRT.PID_CANDIDATE_SCORE.csv"
    APPEND
    INTO TABLE PID_CANDIDATE_SCORE
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (ID, IDLOG, INTERNALID, SCORE )
    I receive the following error:
    Error on table PID_CANDIDATE_SCORE, column SCORE.
    ORA-01722: numero non valido
    Please, help me!
    Thanks
    Regards
    Giovanni

    The correct format is FLOAT EXTERNAL:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/ldr_field_list.htm#i1007110
    Werner

Maybe you are looking for