Can I load 2 tables at a time using Sqlldr

Can I append into 2 tables using the flat file.

Yes u can append into 2 tables from SQLLDR.
Use the position clause in defining the columns
Suppose your flat file is :
1234yurtfg78
5678oisdn89
so on
and you want to insert data from column 1 from column 6 into table A and data from column cloumn 7 to cloumn 12 into table B, then u can write:
LOAD DATA
INFILE '<filename>'
BADFILE '<filename.bad>'
DISCARDFILE '<filename.dsc>'
RECLEN 12
INTO TABLE A
col1 POSITION(01:06) CHAR
INTO TABLE B
col2 POSITION(07:12) CHAR
)

Similar Messages

  • Where can I find the Tables script that are used in the Documentation

    Hello All,
    Where can I find the Tables script that are used in the Documentation, Like Sales, Customers, employee, department.......
    Appreciate any Help
    Thanks & Regards
    Madhu K

    10g
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14198/scripts.htm#sthref77
    9i
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96539/scripts.htm#4216

  • Can I load batteries from an electrical socket, using the same as my IPhone charger?

    Can I load batteries from an electrical socket, using the same as my IPhone charger?

    Your terminology is confusing...  If you are describing the USB power adapter (that plugs into a wall outlet) that you use to charge your iPhone, you can use the same connection to charge your iPod nano.

  • Loading source tables without common columns using owb

    Dear All,
    I have 5 tables say a,b,c,d,e who has no columns between any of these tables .but i need to poulate some of the columns in each table as per my requirement and
    i need to load into my target table which needs the above tables source columns data .
    how can we achieve this as we dont have any columns across 5 tables.
    regards
    rajesh

    Same thread .
    Loading source tables data without common columns in  owb
    Please close it.
    Edited by: Nawneet on May 18, 2009 11:06 AM

  • Can I load xml file from SWC without using @embed

    I'm developing a mobile application in which I need to load xml files from File.applicationDirectory. This works great if the xml files are part of the main application swf. But I would like to move these xml files into a SWC so they could be shared across multiple applications.
    Using FlashBuilder 4.5, when a SWC is built, I can specify files to embed in the library that are not assets (Assets Tab of Flex Library Build Path). For various design reasons, I do NOT want to embed the xml files via @embed.
    When the swc is built and I open it up using a zip utility, I see the xml files in there just fine. So they are being bundled with the SWC. But how can I load these files in my main application that does not involve using @embed? When the main application is built, the swc setting for link type is "merged into code".
    I wouldn't expect the application to automatically pull out the xml files from the swc and place them in the File.applicationDirectory on the mobile device. I've tried loading from there just in case but file.exists is false (as expected).
    I've searched the web (and continue to do so) and all the answers seem to be to use @embed. Is there another way?
    Randy

    It's actually a lot easier than you think.
    Just reference the file like any'ol URL using a path relative to the SWC's src directory.
    So if you include the file "assets/xml/some.xml", just use that same string like you would any remote resource.
    For example:
    var loader:URLLoader = new URLLoader( new URLRequest("assets/xml/some.xml"));
    I believe it would also work like this "/assets/xml/some.xml", but I prefer relative paths so the link doesnt break if moved out of the SWC...

  • Can I load ms word file in flash using JSFL?

    What I want to do is,
    Load a .doc file in flash using jsfl
    Read it and save its data in xml
    Is it possible?

    If you have a problem with Word, ask Microsoft.  But I suspect you only came here to post your spam link!

  • How to load xml with large base64 element using sqlldr

    Hi,
    I am trying to load xml data onto Oracle 10gR2. I want to use standard sqlldr tool if possible.
    1) I have registered my schema with succes:
    - Put the 6kbytes schema into a table
    - and
    DECLARE
    schema_txt CLOB;
    BEGIN
    SELECT text INTO schema_txt FROM schemas;
    DBMS_XMLSCHEMA.registerschema ('uddkort.xsd', schema_txt);
    END;
    - Succes: I can create table like:
    CREATE TABLE XmlTest OF XMLTYPE
    XMLSCHEMA "uddkort.xsd"
    ELEMENT "profil"
    - USER_XML_TABLES shows:
    TABLE_NAME,XMLSCHEMA,SCHEMA_OWNER,ELEMENT_NAME,STORAGE_TYPE
    "XMLTEST","uddkort.xsd","THISE","profil","OBJECT-RELATIONAL"
    2) How can I load XML data into this?
    - One element of the schema is <xs:element name="billede" type="xs:base64Binary" minOccurs="0"/>
    - This field in data can be 10kbytes or more
    I have tried many control files - searching the net, but no luck so far.
    Any suggestions?
    /Claus, DK

    - One element of the schema is <xs:element name="billede" type="xs:base64Binary" minOccurs="0"/>
    - This field in data can be 10kbytes or moreThe default mapping in Oracle for this type is RAW(2000), so not sufficient to hold 10kB+ of data.
    You'll have to annotate the schema in order to specify a mapping to BLOB datatype.
    Something along those lines :
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb">
    <xs:element name="image" xdb:defaultTable="IMAGES_TABLE">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="name" type="xs:string"/>
          <xs:element name="content" type="xs:base64Binary" xdb:SQLType="BLOB"/>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    </xs:schema>http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb05sto.htm#sthref831
    Then :
    SQL> begin
      2   dbms_xmlschema.registerSchema(
      3   schemaURL => 'image.xsd',
      4   schemaDoc => '<?xml version="1.0"?>
      5  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb">
      6  <xs:element name="image" xdb:defaultTable="IMAGES_TABLE">
      7    <xs:complexType>
      8      <xs:sequence>
      9        <xs:element name="name" type="xs:string"/>
    10        <xs:element name="content" type="xs:base64Binary" xdb:SQLType="BLOB"/>
    11      </xs:sequence>
    12    </xs:complexType>
    13  </xs:element>
    14  </xs:schema>',
    15   local => true,
    16   genTypes => true,
    17   genTables => true,
    18   enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE
    19   );
    20  end;
    21  /
    PL/SQL procedure successfully completed
    SQL> insert into images_table
      2  values(
      3    xmltype(bfilename('TEST_DIR', 'sample-b64.xml'), nls_charset_id('AL32UTF8'))
      4  );
    1 row inserted
    where "sample-b64.xml" looks like :
    <?xml version="1.0" encoding="UTF-8"?>
    <image>
    <name>Collines.jpg</name>
    <content>/9j/4AAQSkZJRgABAgEBLAEsAAD/7QlMUGhvdG9zaG9wIDMuMAA4QklNA+0KUmVzb2x1dGlvbgAA
    AAAQASwAAAABAAEBLAAAAAEAAThCSU0EDRhGWCBHbG9iYWwgTGlnaHRpbmcgQW5nbGUAAAAABAAA
    AHg4QklNBBkSRlggR2xvYmFsIEFsdGl0dWRlAAAAAAQAAAAeOEJJTQPzC1ByaW50IEZsYWdzAAAA
    O9r8FHXdH4LDSSUHoImAmcIcQPwWAkkh3ogKI404WGkkkO8Po/EpmmCYWEkkru7z/FJg9sRqsFJJ
    XR3iPZMJN1HmsFJJXT6u+3UQdJUJj7lhpJKHV32dh96i3Qx8lhJJK7u9w4jw7p+SCsBJJDukQ7Tu
    VM6Ln0klHo7rjEeak0rASST0f//Z</content>
    </image>BTW, open question to everyone...
    XMLTable or XMLQuery don't seem to work to extract the data as BLOB :
    SQL> select x.image
      2  from images_table t
      3     , xmltable('/image' passing t.object_value
      4         columns image blob path 'content'
      5       ) x
      6  ;
    ERROR:
    ORA-01486: size of array element is too large
    no rows selectedhowever this is OK :
    SQL> select extractvalue(t.object_value, '/image/content') from images_table t;
    EXTRACTVALUE(T.OBJECT_VALUE,'/IMAGE/CONTENT')
    FFD8FFE000104A46494600010201012C012C0000FFED094C50686F746F73686F7020332E30003842
    494D03ED0A5265736F6C7574696F6E0000000010012C000000010001012C0000000100013842494DIs there a known restriction when dealing with LOB types?
    Edited by: odie_63 on 17 nov. 2011 19:27

  • Example of loading systimestamp in a timestamp field using sqlldr

    can anyone provide me with an working example of loading a default value of systimestamp in a timestamp field using sqlldr - control file

    Example:
    LOAD DATA
    INFILE 'vendor.dat'
    BADFILE 'vendor.bad'
    DISCARDFILE 'vendor.dsc'
    REPLACE
    INTO TABLE VENDORS
    (     ADVE_VENDOR_NO POSITION(002:011) CHAR,     
         ADVE_VENDOR_SUFFIX POSITION(015:016) INTEGER EXTERNAL NULLIF adve_vendor_suffix ='**',     
         ADVE_VENDOR_NAME POSITION(020:059) CHAR,
         ADVE_STREET POSITION(063:102) CHAR NULLIF adve_street=BLANKS,
         ADVE_CITY POSITION(106:120) CHAR NULLIF adve_city=BLANKS,
         ADVE_STATE POSITION(134:135) CHAR NULLIF adve_state=BLANKS,
         ADVE_ZIP POSITION(139:148) CHAR NULLIF adve_zip=BLANKS,
         ADVE_COUNTRY POSITION(152:154) CHAR NULLIF adve_country=BLANKS,
         ADVE_PHONE_AREA_CODE POSITION(158:160) CHAR NULLIF adve_phone_area_code=BLANKS,
         ADVE_PHONE POSITION(164:171) CHAR NULLIF adve_phone=BLANKS,
         ADVE_FAX_AREA_CODE POSITION(175:177) CHAR NULLIF adve_fax_area_code=BLANKS,
         ADVE_FAX POSITION(181:188) CHAR NULLIF adve_fax=BLANKS,
         ADVE_EMAIL POSITION(192:231) CHAR NULLIF adve_email=BLANKS,
         ADVE_CONTACT POSITION(235:274) CHAR NULLIF adve_contact=BLANKS,
         ADVE_VENDOR_HDR_STATUS POSITION(278:278) CHAR NULLIF adve_vendor_hdr_status=BLANKS,
         ADVE_VENDOR_DTL_STATUS POSITION(282:282) CHAR NULLIF adve_vendor_dtl_status=BLANKS,
         ADVE_REGISTER_ID POSITION(286:286) CHAR NULLIF adve_register_id=BLANKS,
         ADVE_STATUS_DATE POSITION(290:297) DATE "YYYYMMDD",
         ADVE_CREATED_DATE POSITION(301:308) DATE "YYYYMMDD",
         ADVE_FEDTAX_SSN_IND POSITION(312:312) CHAR NULLIF adve_fedtax_ssn_ind=BLANKS,
         ADVE_FEDTAX_SSN_NO POSITION(316:324) CHAR NULLIF adve_fedtax_ssn_ind=BLANKS,
         ADVE_VENDOR_TYPE POSITION(328:328) CHAR NULLIF adve_vendor_type=BLANKS,
         ADVE_DATE_CREATED SYSDATE,
         ADVE_CREATED_BY CONSTANT TEST)

  • Loading two tables at same time with SQL Loader

    I have two tables I would like to populate from a file C:\my_data_file.txt.
    Many of the columns I am loading into both tables but there are a handful of columns I do not want. The first column I do not want for either table. My problem is how I can direct SQL Loader to go back to the first column and skip over it. I had tried using POSITION(1) and FILLER for the first column while loading the second table but I got THE following error message:
    SQL*Loader-350: Syntax error at line 65
    Expecting "," or ")" found keyword Filler
    col_a Poistion(1) FILLER INTEGER EXTERNALMy control file looks like the following:
    LOAD DATA
    INFILE 'C:\my_data_file.txt'
    BADFILE 'C:\my_data_file.txt'
    DISCARDFILE 'C:\my_data_file.txt'
    TRUNCATE INTO TABLE table_one
    WHEN (specific conditions)
    FIELDS TERMINATED BY ' '
    TRAILING NULLCOLS
    col_a FILLER INTEGER EXTERNAL,
    col_b INTEGER EXTERNAL,
    col_g FILLER CHAR,
    col_h CHAR,
    col_date DATE "yyyy-mm-dd"
    INTO TABLE table_two
    WHEN (specific conditions)
    FIELDS TERMINATED BY ' '
    TRAILING NULLCOLS
    col_a POSITION(1) FILLER INTEGER EXTERNAL,
    col_b INTEGER EXTERNAL,
    col_g FILLER CHAR,
    col_h CHAR,
    col_date DATE "yyyy-mm-dd"
    )

    Try adapting this for your scenario.
    tables for the test
    create table test1 ( fld1 varchar2(20), fld2 integer, fld3 varchar2(20) );
    create table test2 ( fld1 varchar2(20), fld2 integer, fld3 varchar2(20) );
    control file
    LOAD DATA
    INFILE "test.txt"
    INTO TABLE user.test1 TRUNCATE
    WHEN RECID = '1'
    FIELDS TERMINATED BY ' '
    recid filler integer external,
    fld1 char,
    fld2 integer external,
    fld3 char
    INTO TABLE user.test2 TRUNCATE
    WHEN RECID <> '1'
    FIELDS TERMINATED BY ' '
    recid filler position(1) integer external,
    fld1 char,
    fld2 integer external,
    fld3 char
    data for loading [text.txt]
    1 AAAAA 11111 IIIII
    2 BBBBB 22222 JJJJJ
    1 CCCCC 33333 KKKKK
    2 DDDDD 44444 LLLLL
    1 EEEEE 55555 MMMMM
    2 FFFFF 66666 NNNNN
    1 GGGGG 77777 OOOOO
    2 HHHHH 88888 PPPPP
    HTH
    RK

  • How can I build a table with the time values of a timer from a while loop

    Hi:
    I have a question concerning building a table:
    Every 100ms I read a value from a sensor (while loop with a timer). I would like to build a table with the actual time and the concerning value. For example:
    0msec         1V
    100msec     2V
    200msec     3V
    300msec     4V
    etc.
    If I use the Express VI for building a table, I always get the date and time, but I don't need the date and the time is in the following format: HH:MMS, which is nonsensical for me as I can't differentiate within msec. Can I change the format anywhere?
    Can I also save the table to a file or even to an Excelsheet? How can I do that?
    Thanks for your help!

    Hi Craig:
    thank you very much. To solve the mystery : ) :
    I want to drive a stepper motor with a specific frequency. To get the current degree value of the motor I would like to measure the current time (from the beginning of the move on). (With a formula I get the degree value out of the time)
    Concurrently I would like to get data from a torque sensor and from a pressure sensor. That's why I asked you about the time and the table. The measurement should start with the movement of the motor. How can I do that? Right now I have different block diagrams (different while loops) (see attachment) and I would like to put them in one.
    I haven't done the block diagram for the pressure sensor yet, so there is only the one for the torque sensor and the one for the motor.
    I also would like to set a mark in the table when the voltage value of an analog input gets under a specific threshold value. Is that possible?
    I'm sorry, I'm a novice in LabVIEW. But maybe you can help me.
    Thank you very much!
    Steffi
    Attachments:
    motor.vi ‏238 KB
    sensor.vi ‏59 KB

  • How can i Delete the data from three tables at a time  using same key.

    I am New to Oracle ADF, I have a Requirement Like these, I have three tables like Employee,Salaries,Teams all of these are having one common EmpNo as common attribute, I have Search form these will return the all the employees related to that search query, when i click on Delete button the particular employe Data should delete from all the three tables based on the EmpNo.
    Any Help is appreciable..

    1) The easiest way is to mark the foreign key constraints from SALARIES to EMPLOYEES and from TEAMS to EMPLOYEES as ON DELETE CASCADE. The DB server will then delete the necessary rows whenever you delete an employee row.
    2) Another way is to implement a Before-Delete-Row DB trigger on the EMPLOYEES table where you can delete the related rows in the other tables (have in mind, that if you have foreign keys you may get a Mutating Table Exception, so this approach might be not very good).
    3) An ADF way is to implement a custom EntityImpl class for the Employee entity and to override the remove() method where you can lookup the related TeamMember and Salary entities (through EntityAssoc accessors) and invoke their remove() methods too.
    4) Another ADF way is to implement a custom EntityImpl class for the Employee entity and to override the doDML() method where you can delete the necessary rows in SALARIES and TEAMS tables through JDBC calls whenever a DELETE operation is being performed on the underlying Employee entity.
    Dimitar

  • Claims it has internet access, but can't load over 50% of the times

    Hello, So I've used the WD TV Live for multiple years and just recently the box began to cause really weird bugs when it came to the networking, all of a sudden it barely works with Network share, Streaming or anything related to network, the past 3 days i've been forced to repeatly re-enter network info, and restart the machine multiple times, and sometimes I can get it to randomly work. Everytime I've checked if it had connectivity through the machine, and it checkered everything, but still it has massive problems. Network setup; Wired.Fiber outlet -> Netgear Router -> WD TV Live Network Info;IP Address: 192.168.1.2Subnet Mask: 255.255.255.0Gateway: 192.168.1.1DNS: 46.246.93.29 (Unotelly) Firmware version: 2.02.32 I have no idea why all of a sudden it began to not fully function, it really only began to cause massive problems after I used wire, but it makes no sense how it claims to be connected to the internet but sometimes it work.

     
    Hello,
    Do you have a firewall setup on your router that you can check?
    Have you tried using a different cable?
    Also you can try resetting the media player using the physical button. 

  • Can I Send&Load Variables at the same time using php?

    Hi
    I have a php file that is using $_GET method to get the "id"
    of an item and then a query will search the database and return the
    results back. I am using the following code but there is something
    wrong. Can anyone help me with this?
    myVar = new LoadVars();
    myVar.id = "1";
    myVar.SendAndLoad("
    http://localhost/sports/latest_news.php",myVar,"GET");
    //<?php $out = "";
    // $out .= "idn" . $i . "&" ;
    // $out .= "titlen" . $row['sports_news_title'];
    // echo $out;
    //?>
    myVar.idn
    myVar.titlen
    myVar.onLoad = function (success)
    if (success)
    for( var key in this )
    //content is the variable name for the text object where the
    output text will be displayed
    content = this[key];
    else
    trace (" Error loading variables ");

    thanks for the fast response.
    Its working but i want to display more than one results and I
    am using:
    myVar.onLoad = function(success)
    if (success)
    for( var prop in this )
    trace (prop + ". " + this[prop]);
    //trace(this.idn);
    //trace(this.titlen);
    else
    trace(" Error loading variables ");
    when i run the above code i get:
    apos;s World Cup campaignidn. 7
    apos;s conversionidn. 2
    titlen. Bath still sitting pretty
    idn. 1
    onLoad. [type Function]
    id. 1
    how can i choose which details to display?

  • How can I load one photo at a time from Documents into the Firefox Photo Album. Using Vista ome Basic

    I really cannot see exactly where to start

    select the head with one of Photoshop's selection tools
    When doing this, I find it quite helpful to create an intermediate image with a transparent background that contains only the head to be pasted into the second image. First I paste the head onto this transparent background, scale it, rotate it or skew it to make it fit into the other image, adjust the lighting, then select it.
    To be able to paste the head seemlessly into the second image (and without aliasing effects), I make the border of the selection soft (⌥⌘D); my Photoshop has a german interface, so I am not sure about the english localization, this command must be something like "selection -> modify selection -> soft border".
    I would not bother to get the lighting and color excactly right in Photoshop, that is  far easier with the "dodge" and "burn" brushes and color adjustments in Aperture.
    To do this completely in Aperture, you would have first to combine both images into one (for example by creating a book page), then use the retouche->clone tool to stamp the head from one image to the other. I use this occasionally to stamp a face into a flower bud or for  similar effects. However, for this to work you need a plain background and nearly circular shapes to be pasted.
    Léonie

  • Can a PL/SQL table Object Type be used in a VO?

    Hi,
    Is it possible to use a PL/SQL table object type to provide data to a View Object? In short, I would like to be able to do something like this:
    1. Create record object:
    CREATE OR REPLACE TYPE xx_rec_type AS OBJECT
    (xxid NUMBER,
    xxdesc varchar2(10),
    xxcost number...);
    2. Create table object:
    CREATE OR REPLACE TYPE xx_tbl_type AS TABLE OF xx_rec_type;
    3. Declare and populate the object in PL/SQL package:
    xx_tbl xx_tbl_type;
    xx_tbl(i).xxid := 1;
    xx_tbl(i).xxdesc := 'XXX';
    xx_tbl(i).xxcost := 10.00;
    4. Create a View Object as:
    SELECT * FROM xx_tbl
    Is it even possible to access xx_tbl from View Object? If anyone has done something like this, please do share.
    TIA
    Alka

    A PL/SQL procedure can exist in Oracle DB, in TimesTen, or in both. You control that by where you create the procedure. Procedures that exist in Oracle can really only be called in Oracle and can only access data in Oracle. Procedures that exist in TimesTen can only be called in TimesTen and can only access data in TimesTen. There is a limited capability, using the TimesTen PassThrough capability to call PL/SQL procedures located in Oracle, from Timesten, and for Timesten PL/SQL procedures to access data in Oracle. Using PassThrough does have some overhead.
    Chris

Maybe you are looking for

  • Enter short text error when creating a purchase requisition using ME51

    Hello I would be grateful if someone can help. I am currently trying to raise a purchase req using ME51. The purchase req is for one item so i enter details of this item on line 1. However when i try to save the purchase req i get an error message st

  • Features in ECC 6.0

    Hi,   I am new to the ECC 6.0 version and have several doubts about the usage of different features. Please find below my questions and help me in understanding them and use. 1) Enhancement: There are two types of enhancements Implicit and Explicit.

  • COPA derivation rule :more than 6 target fields

    Hi , As per client's requirement I need to include 10 target fields in a COPA derivation rule . Now after entering 6 , I can see rest of the rows are greyed out ; it looks like SAP does not allow more than 6 as target . I tried to find out if such li

  • How to manage multiple ipads and iphones on the same computer

    Any advice on how to manage multiple iphones (iPhone 4S, iPhone 4 & iPhone 3G) along with an iPad & iPad 2 on the same computer? Thank you

  • InDesign 2014.2 displays beach ball every few seconds

    Hi there, is anyone else having the issue of InDesign being unresponsive every 30s or so? The programm hangs and shows the beach ball for 10s, then it works again. I've turned the preflight off already. Doesn't matter whether I'm editing a book or in