How do I load the csv into table values

Hi Experts,

could you please tell me how to load csv values in the table.

for example, I have a column given as: E01_0, actual work, FY12, Local, Total (data type is string)

by manually
Kind regards
Surya

Published by: surya on 6 March 2012 10:20

Hi Surya,
You can use the external table to load csv data.

CREATE TABLE EXT_TABLE (COL1 VARCHAR2 (256))
EXTERNAL ORGANIZATION
(TYPE ORACLE_LOADER DEFAULT DIRECTORY DUMPDIR
(SETTINGS) ACCESS
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ', '.
SURROUNDED OF POSSIBLY "" "
MISSING FIELD VALUES ARE NULL
)
LOCATION('TEST.) CSV')
)
REJECT THE LIMIT 0.

Then EXT_TABLE, you can insert your values into your target table.

Tags: Database

Similar Questions

  • How to load the image into the Blob field in Sql?

    Hello

    I want to know how to load the image into the Blob field in Sql

    Concerning


    Therese

    Re: How to load the image into the Long Raw column?

  • Load the CSV file

    I use Apex 3.2 and construction of a facility charge of csv file.
    I received a lot of help on this post
    Re: Validate CSV File
    I'm now able to load the data into my custom table.
    Before I do that I want to update the collection first, using this option if statement
    IF c001 IS NULL THEN
                c006    := 'APXIMP';
                c007    := c007 || 'Storekey is missing!';
              END IF;
    
              IF c002 IS NULL THEN
                c006    := 'APXIMP';
                c007    := c007 || 'Plan Delivery Moment is missing!';
              END IF;
    
              IF c003 IS NULL THEN
                c006    := 'APXIMP';
                c007    := c007 || 'WRIN Base is missing!';
              END IF;
    
              IF c004 IS NULL THEN
                c006    := 'APXIMP';
                c007    := c007 || 'WRIN Suffix is missing!';
              END IF;
    
              IF c005 IS NULL THEN
                c006    := 'APXIMP';
                c007    := c007 || 'Order Qty. is missing!';
              END IF;
    
              IF c005 IS NOT NULL THEN
                IF SIGN(vt_record(5))=-1 THEN
                  c006    := 'APXIMP';
                  c007    := c007 || 'Order Qty. must be a positive integer value!';
                END IF;
                IF MOD(c005,FLOOR(c005)) <> 0 THEN
                  c006    := 'APXIMP';
                  c007    := c007 || 'Order Qty. must be a positive integer value!';
                END IF;
              END IF;
            EXCEPTION
              WHEN others THEN
                c006    := 'APXIMP';
                c007    := c007 || 'Order Qty. must be a positive integer value!';
    I am new to the collections, so if someone could show me an example or point me in the right direction, as there seems to be several types of update of collection procedures.

    See you soon

    Gus

    Hello

    You talk about the package but written the anonymous block syntax. I did understand what you're trying to do.

    Assuming that it is a procedure of your code should look like

    CREATE OR REPLACE PROCEDURE UPDATE_COLL (
      P_collection_name IN VARCHAR2  -- parameter passed when calling from Apex Process
    ) AS
    
    begin
    
    for x in (select seq_id, c001, c002, c003, c004, c005, c006, c007
             from apex_collections
            where collection_name = p_ collection_name )
    LOOP
    
         IF x.c001 IS NULL THEN
          apex_collection.update_member_attribute (
             p_collection_name=> p_collection_name,
             p_seq=> x.seq_id,
             p_attr_number =>6,
             p_attr_value=> 'APXIMP'
            );
           apex_collection.update_member_attribute (
              p_collection_name=> p_collection_name,
              p_seq=> x.seq_id,
             p_attr_number =>7,
             p_attr_value=> x.c007 || 'Storekey is missing!'
          );
         END IF;
    
        IF x.c002 IS NULL THEN
          apex_collection.update_member_attribute (
             p_collection_name=> p_collection_name,
             p_seq=> x.seq_id,
             p_attr_number =>6,
             p_attr_value=> 'APXIMP'
            );
           apex_collection.update_member_attribute (
              p_collection_name=> p_collection_name,
              p_seq=> x.seq_id,
             p_attr_number =>7,
             p_attr_value=> x.c007 ||  'Plan Delivery Moment is missing!'
          );
         END IF;
    
        IF x.c003 IS NULL THEN
          apex_collection.update_member_attribute (
             p_collection_name=> p_collection_name,
             p_seq=> x.seq_id,
             p_attr_number =>6,
             p_attr_value=> 'APXIMP'
            );
           apex_collection.update_member_attribute (
              p_collection_name=> p_collection_name,
              p_seq=> x.seq_id,
             p_attr_number =>7,
             p_attr_value=> x.c007 ||   'WRIN Base is missing!'
          );
        END IF;
    
        IF x.c004 IS NULL THEN
          apex_collection.update_member_attribute (
             p_collection_name=> p_collection_name,
             p_seq=> x.seq_id,
             p_attr_number =>6,
             p_attr_value=> 'APXIMP'
            );
           apex_collection.update_member_attribute (
              p_collection_name=> p_collection_name,
              p_seq=> x.seq_id,
             p_attr_number =>7,
             p_attr_value=> x.c007 ||  'WRIN Suffix is missing!'
          );
       END IF;
    
      IF x.c005 IS NULL THEN
          apex_collection.update_member_attribute (
             p_collection_name=> p_collection_name,
             p_seq=> x.seq_id,
             p_attr_number =>6,
             p_attr_value=> 'APXIMP'
            );
          apex_collection.update_member_attribute (
              p_collection_name=> p_collection_name,
              p_seq=> x.seq_id,
             p_attr_number =>7,
             p_attr_value=> x.c007 || 'Order Qty. is missing!'
          );
      END IF;
    
      IF x.c005 IS NOT NULL THEN
          IF SIGN(c005)=-1 THEN
          apex_collection.update_member_attribute (
             p_collection_name=> p_collection_name,
             p_seq=> x.seq_id,
             p_attr_number =>6,
             p_attr_value=> 'APXIMP'
            );
          apex_collection.update_member_attribute (
              p_collection_name=> p_collection_name,
              p_seq=> x.seq_id,
             p_attr_number =>7,
             p_attr_value=> x.c007 || 'Order Qty. must be a positive integer value!'
          );
         END IF;
         IF MOD(c005,FLOOR(c005))  0 THEN
          apex_collection.update_member_attribute (
             p_collection_name=> p_collection_name,
             p_seq=> x.seq_id,
             p_attr_number =>6,
             p_attr_value=> 'APXIMP'
            );
          apex_collection.update_member_attribute (
              p_collection_name=> p_collection_name,
              p_seq=> x.seq_id,
             p_attr_number =>7,
             p_attr_value=> x.c007 ||'Order Qty. must be a positive integer value!'
          );
        END IF;
      END IF;
    END LOOP;
     EXCEPTION
              WHEN others THEN
          apex_collection.update_member_attribute (
             p_collection_name=> p_collection_name,
             p_seq=> x.seq_id,
             p_attr_number =>6,
             p_attr_value=> 'APXIMP'
            );
          apex_collection.update_member_attribute (
              p_collection_name=> p_collection_name,
              p_seq=> x.seq_id,
             p_attr_number =>7,
             p_attr_value=> x.c007 || 'Order Qty. must be a positive integer value!'
          );
    end;
    
  • Loading the data into Essbase is slow

    Loading the data into Essbase is slow.
    Loading speed of 10 seconds on a record.

    It is used standard KM.

    How it is possible to optimize the loading of data into Essbase?

    Thank you

    --
    Gelo

    Just for you say the patch was released

    ORACLE DATA INTEGRATOR 10.1.3.5.2_02 UNIQUE PATCH

    Patch ID - 8785893

    8589752: IKM SQL data Essbase - loading bulk instead of rank by rank treatment mode when an error occurs during the loading

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day?

    I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day?  I tried to make the old default iphoto but picture still open when I plug in my iPhone?

    I tried to make the old default iphoto but picture still open when I plug in my iPhone?

    When the iPhone is connected and Photos opens, select iPhone in sideba of the windowr of Photos. Then, uncheck the option 'Open for this iPhone Photos' below the toolbar.  Do this for all your iPhones. The hook should be unmarked for each device individually.

  • How can I load the security updates that Belarc suggests?

    HOW CAN I LOAD THE SECURITY UPDATES BELARC SUGGESTS?

    Hello jobtoo,

    You may have already solved this problem, but my suggestion would be to contact Belarc support.

    You can use the link below:
    e-mail: * address email is removed from the privacy *

    http://www.Belarc.com/contact.html

    Thank you!

  • Insert the ring into table

    Dear all,

    Is it possible to insert the ring into Table?

    I have a Table whose values are constant, but not fixed, for example, Col 1 can be set to 1 or 2.

    I am attaching the picture of the table to show clearly what I want.

    Collar "Site" can have values On or OFF.

    Nervous collar can have the values 1, 2 or 3.

    Col. Ampl can have values from Ridge to Ridge or Bs - PK.

    Is it possible to make a table to store multiple values for a cell?

    Thank you

    Ritesh

    Hi Mickaël

    This link will give you full details about your query. If it works let me know.

    http://forums.lavag.org/table-with-drop-down-items-t11249.html

  • How can I get the dll into the GAC on web servers (Win2008 R2/IIS 7) that don't have GACUTIL on them?

    I followed the steps described in KB911816, but I can't make it work.

    Two questions:

    How can I get the dll into the GAC on web servers (Win2008 R2/IIS 7) that don't have GACUTIL on them?

    Where should I put the reference to the dll in Web.config?

    OT:

    KB911816

    Hi Mike,.

    Refer to:

    https://TechNet.Microsoft.com/en-us/library/gg607836 (v = ws.10) .aspx

    https://msdn.Microsoft.com/en-us/library/ee265628%28V=BTS.10%29.aspx?f=255&MSPPError=-2147217396

    Please post your question here for improving assistance:

    https://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

  • How can I instill the microphone into my computer toshiba satellite, I have windows 7 32 bit, the microphone was not found in the device maneger?

    How can I instill the microphone into my computer toshiba satellite, I have windows 7 32 bit, the microphone was not found in the device maneger?

    Go to the Toshiba support site and search page of your PC/computer laptop.

    Download and then install the last set of specific drivers for W7.

    See you soon,.
    Jerry

  • In Photoshop, how can I change the background (Mount table) from black to white. I must have hit something because it changed suddenly mid-project and I cannot find anywhere in preferences to solve this problem.

    In Photoshop, how can I change the background (Mount table) from black to white. I must have hit something because it changed suddenly mid-project and I cannot find anywhere in preferences to solve this problem.

    Right-click on the pasteboard, and you should have a choice of colours from timeline menu.

    I would add that you should have a file to open it or it won't work.

    Gene

  • How to move/copy the sys schema table to the diagram of the system?

    Hello

    I am trying to copy the table from the diagram of SYSTEM SYS schema, I get the error:

    Could not commit: ORA-00942: table or view does not exist


    How to get out the schema SYS table?

    Any help will be much appreciated
    Thank you

    I am trying to copy the table from the diagram of SYSTEM SYS schema, I get the error:

    Could not commit: ORA-00942: table or view does not exist

    How to get out the schema SYS table?

    You can not - objects cannot be moved from one schema to another.

    You must re-create the object in the new scheme, and then delete the former.

    As I have already said, the only time where you have to do is when someone accidentally created their own objects in the SYS schema.

  • Can't view the data after loading the XML into RTF model

    Hi friends

    I am unable to view data in PDF after loading the XML into RTF model
    After I load the XMl file to my model
    The complement of the tab, I'm trying to get a glimpse of the output as pdf/xml etc, but he throws and error
    Window does not
    'C:\DOCUME~1\SYSNAME~\LOCALS~\APPLIC~1\Oracle\BIPUBL~1\TEMPLA~\tmp\3513518782149421out.pdf214921out.pdf '. Make sure you typed the name correctly and then try again. To search for a file, click the Start button and click Search

    I gave the name correctly only, but don't know y it displays error I have to reinstall the Office of Oracle BI Publisher once more please advice me what needs to be done to solve my problem of my PC

    Thank you
    Thiliban

    It seems that the problem is with the working directory of the BIP Office.

    If you have administrator access to the computer, please do the following:
    1 Windows-> Run-> regedit
    2. find the value of the next entry
    Publisher\Template HKEY_CURRENT_USER\Software\Oracle\XML for Word\TB_WORK_DIR generator
    3. change your path C:\DOCUME~1\SYSNAME~\LOCALS~\APPLIC~1\ORACLE\BIPUBL~1\TEMPLA~\tmp

    See you soon,.
    ND
    Use the buttons "useful" or "correct" to award points to the answers / mark the thread as answered, if your question is answered.

  • How I can scan the registry valuHi, how I can scan the Windows 7 registry value and how do I come to know if the registry value is same as it has been installed previously?

    Hello

    How can I scan the Windows 7 registry value and how do I come to know if the registry value is same as it has been installed previously?

    Hello
     
    The Windows registry is a vast and vital part of the computer, which continues to evolve being modified or deleted or new entries are created all the time.
     
    Case where the registry keys of change.
     
    At startup
     
    So that updates
     
    While making customization or custom settings in windows
     
    While to install the software
    Virus... etc.
     
     
    Each click Open and save is related to the registry.
     
    This is something very tedous to verify the integrity of a registry of windows with all of the above modifications being carried out.
     
    You can back up the registry of the computer after you install Windows new and update with all Windows updates and the custom software, into a registry backup or create a system image / restore point.
     
    Please visit these links for more information.

    Windows registry Description of the audit of the Windows Registry tool (Scanreg.exe) How do I add, edit or delete subkeys in registry and values by using a registration entries (.reg) file Hope this information helps

     
     
     
  • Data from the CSV into a TABLE

    Hello world...

    I have the csv file in c:\city.csv (this file have 2 fields that are 'id' and 'short-term'
    I have a form... There is a button on it.
    and I have a table in my database of CITY and its fields are (id number, city varchar2 (50))

    I want a procedure that when I press the button on the form fields CSV file copy of table

    I saw the number of threads, but I did not understand...
    Please make me a procedure...
    don't give me links refrence...
    Thanks in advance

    concerning
    Sani...

    Hoek put the right answer :) so... try next time

    Here is your code:

    -- Test-Table
    CREATE TABLE city_table (
      city_id    VARCHAR2(100),
      city_name  VARCHAR2(100)
    );
    
    -- Test-File
    1000,Cologne
    1001,Amsterdam
    1002,KFC :)
    1003,Blabla
    
    --Forms-Procedure to call
    PROCEDURE get_city_data
    IS
    
      file_handle   text_io.file_type;
      seperator     VARCHAR2(1) := ',';
      city_row      VARCHAR2(32767);
      city_id       VARCHAR2(100);
      city_name     VARCHAR2(100);
    
    BEGIN
    
      file_handle := text_io.fopen('c:\city.csv', 'R');
    
         BEGIN
    
           LOOP
    
             text_io.get_line(file_handle, city_row);
             city_id := SUBSTR(city_row, 1, INSTR(city_row, seperator) - 1);
             city_name := SUBSTR(city_row, INSTR(city_row, seperator) + 1);
             INSERT INTO city_table
             VALUES(city_id, city_name);
    
              END LOOP;
    
      EXCEPTION
        WHEN NO_DATA_FOUND THEN
        NULL;
      END;
    
         text_io.fclose(file_handle);
    
         COMMIT;
    
    EXCEPTION
         WHEN OTHERS THEN
              message('Error!!');
              RAISE FORM_TRIGGER_FAILURE;
    END;
    
  • How can I load a .swf into all the customer?

    Hello world...

    I load a .swf file in all connected clients by pressing a button from another customer.

    Please, help me...

    Emiliano.

    Emiliano,

    What I see wrong in your code is lines like this:

    myLoader.load (new URLRequest ("myParam"));

    If you don't do that you try to load a file called myParam on your server. Try this:

    myLoader.load (new URLRequest (myParam));

    You will then load the file name, your server has sent to your customer.

    On the embeded Apache, when you install FMS Setup asks you whether you want to install a bundled Apache server. In this case you will find the Apache server inside FMS application files and it will be configured for the HTTP proxy for it. To be brief, FMS listen on HTTP port (80) and Apache on port 8134 (default). When FMS receives an HTTP request post it Apache on port 8134 on localhost and the Apache line is sent to the client. So if you need load a SWF over HTTP so it's how it's done.

    The 'train' film is a FLV video that you see on a mini-site comes with the installer of the FMS. When you install it by default your server contains on its base address, port 80, a HTML page where you can see the FLV video. It's a beautiful country side with an old train upview passing. When you read the FMS installation program is how you can check your FMS server and Apache are running.

    If you have installed Apache after FMs that you must do 3 things:

    1. Edit you Apache httpd.conf so that he listens to a port other than 80 (say 8134). Just add the line "Listen 8134" when the httpd.conf file refer to the parameter "Listen."
    2. change the configuration of your FMS applications of HTTP proxy on your localhost, port 8134.
    3. then stop FMS, restart Apache and start FMS then they enter in a port conflict listens.

    See the documentation for the SGF in the Administrator's guide to look at where you can do for the FMS proxy configuration.

    See you soon,.

    François

Maybe you are looking for