loading the data into a table

Hi master,

I have to use sql loader...!

The client gave the data format below.

****************************************************

21, 1-Oct-2010, 31-Oct-2010, 49573, 33048, 1000, 11860

33048 21, 1-Nov-2010, 30-Nov-2010, 49573, 1000, 9408

1000 21, 1-Dec-2010, 31-Dec-2010, 49573, 33048,

33048 21, jan-1-2011, 31-Jan-2011, 49573, 1000, 8520

When I loaded through Sql loader with TOAD...

I get lines like this...

************************************

21, 1-Oct-2010, 31-Oct-2010, 49573, 33048, 1000, 11860

TECOM Business Group,

33048 21, 1-Nov-2010, 30-Nov-2010, 49573, 1000, 9408

TECOM Business Group,

21, 1-Dec-2010, 31-Dec-2010, 49573, 33048, 1000, TECOM Business Group.

33048 21, jan-1-2011, 31-Jan-2011, 49573, 1000, 8520

TECOM Business Group,

There are so many (more than 50 columns) columns in my table.

Please advise...!

AR

You can declare the empty fields as fields of FILLING.

Scott@orcl12c > t DESC

Name                                      Null?    Type

----------------------------------------- -------- ----------------------------

COL1                                               NUMBER

COL2                                               DATE

COL3                                               DATE

COL9                                               NUMBER

Scott@orcl12c > a.ctl TYPE of HOST

load data

INFILE *.

in the t table truncate

fields ended by ',' possibly framed by "" "

TRAILING NULLCOLS

(

col1,

col2 DATE 'DD_MON-YYYY. "

COL3 DATE 'DD_MON-YYYY. "

COL4 FILLER,

col5 FILLER,

col6 FILLER,

col7 FILLER,

COL8 FILLER,

col9

)

BEGINDATA

33048 21, 1-Oct-2010, 31-Oct-2010, 49573,

33048 21, 1-Nov-2010, 30-Nov-2010, 49573,

Scott@orcl12c > HOST SQLLDR scott/tiger CONTROL = a.ctl LOG = a.log

SQL * Loader: release 12.1.0.1.0 - Production on Sun Feb 2 10:23:28 2014

Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

Path used: classics

Commit the point reached - the number of logical records 2

Table T:

2 rows loaded successfully.

Check the log file:

a.log

For more information on the charge.

Scott@orcl12c > select * from t

2.

COL1 COL2 COL3 COL9

---------- --------------- --------------- ----------

21 Friday, October 1, 2010 Sunday, October 31, 2010 33048

21 Monday, November 1, 2010 on Tuesday, November 30, 2010 33048

2 selected lines.

Tags: Database

Similar Questions

  • I'm going to pull a recordset and I want to load the data into a table

    Loop through it and I see it passing through all data correctly, but when I try to assign to a table using $i - it just continues replacing, it does not add a new value in the table.

    Thanks in advance!

    $index = "";
    $service_singular = "";
    $service_plural = "";
    $sub_service = "";
    $description = "";
    $duration = "";
    $duration_descript = "";
    $price = "";
    $i = 0;
    If ($fac_id! = "" & & $fac_id! = 0) {}
    If ($stmt = $mysqli - > prepare ("SELECT ' index', 'service_singular', 'service_plural', 'sub_service', 'description', 'length', 'duration_descript', 'price' OF 'service' WHERE 'fac_id' =?")) {
    $stmt-> bind_param (of ', $fac_id); Bind "fac_id" to the parameter.
    $stmt-> execute(); Execute the prepared query.
    $stmt-> store_result();
    $i = $stmt-> num_rows;
    $stmt-> bind_result ($index, $service_singular, $service_plural, $sub_service, $description, $duration, $duration_descript, $price); read the result variables.
    While ($stmt-> fetch() {)}

    $i = $i++; }

    }

    Thanks for watching it.

    ~~~~~~~~~~~~

    ); read the result variables.

    While ($service-> fetch() {)}

    [$srv_rows] = array ("index"-online $index, "m_serve" => $m_serve, "sub_service" => $sub_service, "description"-online $des cription, "term"-online $duration, "duration_descript" => $duration_descript, 'price'-$price, "delete"-online $remove, online "display"-online $display).

    }

    ~~~~~~~~~~~~~~

    This gave me what I needed.

  • How to load the values into a table?

    In my jspx page, I have a combo and a table... Based on the values of the drop-down list, when I click on a button, I want to load the values into a table... The data in the table are from 5 database tables. I created a viewObject readonly... What to do to load the values from the table, I click on a button?

    Ensure that you have defined a variable to bind your view object.

    Read-only or not, this is what would make the Execute with action of parameters available.

    John

  • 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/

  • Is mapping dimension AWM - possible to load the data in two tables of entry?

    Hi all

    I have two tables ProductFamily (parent level) and products (child level).

    I want to load a dimension of those tables where the parent-child relationships are maintained (I use AWM).

    I created a map with these two entry tables, but the loaded data has no relationship.
    So, how do I do that? Is it possible to load dimensions where different levels get data from multiple tables?
    Is any type of Carpenter available in AWM?

    Thank you

    ------------------------

    A few Notes:

    -I don't want to use OWB here that my data are clean
    -In AWM, when I loaded the data in a single view that contains two tables of input data, it worked fine. But it's my worst case option.

    You must use Dimension option in snowflake in the mapping screen of size for the Product Dimension (as opposed to the default style mapping - star schema dimension).

    This will modify map entries to include a separate parent for each level of hierarchy level / that is to say, for each level of hierarchy / (unless a higher level of the hierarchy), you must specify the parent level key in addition to the key current level, code/name/description/other attributes etc.

    You can make the mapping or... use the icons at the top of the map screen.
    mode drag/drop by dragging the relational column on dimension - level/hierarchy/attribute model
    -or-
    the table expression mapping mode that gives the same effect... by dragging a column on an attribute defined in the .

    . the format of .

    HTH
    Shankar

    Note1: Complete the mapping of a sudden... B & w switching mapping modes cause the mappings to reset.
    NOTE2: assumes that your data are correct foreign key table parent level: ProductFamily exists in the child level table: products.

  • Loading the data into the ASO cube

    Hello

    Is it possible to load data to a member in the structure where there is a related formula?

    For example:

    Account - interest paid:

    Budget must be charged to members
    Real must be a calculated field

    I tried something like:

    CASE
    WHEN [scenario]. CurrentMember IS [real] THEN-[finance costs (IFRS)]
    END

    but it does not work?

    Is this possible?

    Thank you

    Hello

    ASO, you cannot load data to a member who has a formula attached to it. One option is to have 3 accounts, 2 accounts system and an original. Load data for accounting system: VAC - Bud and VAC - law and then to set a formula to the original account to get the values of 2 accouts of system based on the scenario.

    Let me know if it helps.

    However, you can do it in ASF, loading the data to the Budget and have a calculation script calculate the value of actual expenditures to the Member of the account.

    See you soon
    RS

  • Loading the data into the planning

    I'm a little confused how loading data in the planning of the work of the application. I have created the new application of planning with the Application Wizard, created the database, etc.. Then, after documentation (the administrator Planning Guide), I loaded the metadata using contour loading utility (OutlineLoad). Now I want to load the data. Following a few steps from ducumentation I add DIRECT_DATA_LOAD = False parameter (there is no front) and the DATA_LOAD_FILE_PATH parameter points to a directory on the server (I tried creating the empty file and DATA_LOAD_FILE_PATH the value piont this file). After saving configuration and restart the schedule I used Adminsitation to load data to choose the size of data loading, Driver-Dimension, I recorded it and then... no new files in the DATA_LOAD_FILE_PATH catalog has been created. What I am doing wrong?

    EPM 11.1.1.1.0 on Windows 2003 Server EE

    Hello

    Let me give you an example of loading data from the sample application planning.

    Dimensions
    Account, currency, entity, period, scenario, Version, year, Segments

    Loading data Dimension = account

    Driver dimension = scenario

    Selected member real =

    The format of the csv file is

    Account, Point of view, data load Cube real name
    330000, "USD, Jan, E05 NoSegment, work, AFA 08 ', Consol, 1000

    I hope that gives you an idea?

    See you soon

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

  • Hi all, how can restrict us and end from 'a droping table' user but need access to the 'workshop of data' to load the data into the spreadsheet.

    Hi all

    How can we limit and end user of "droping a table."

    For example: I created an array of login admin and gave access to "SQL workshop" for the end user. but after that I have created a table, the end user cannot access object browser shop and drop a table. one thing we can do does not have access to the SQL workshop. However, my requirement is the user needs to access the data workshop, which is located under the SQL workshop but they it should not access the tables.

    Kindly let me know how we can do this?

    Thank you

    Vinod Paparaju

    User13309437-Oracle wrote:

    Please update your forum profile with a recognizable username instead of "User13309437": Video tutorial how to change username available

    Always include the information referred to in these guidelines when you post a question: How to get the answers from the forum

    How can we limit and end user of "droping a table."

    For example: I created an array of login admin and gave access to "SQL workshop" for the end user. but after that I have created a table, the end user cannot access object browser shop and drop a table. one thing we can do does not have access to the SQL workshop. However, my requirement is the user needs to access the data workshop, which is located under the SQL workshop but they it should not access the tables.

    Kindly let me know how we can do this?

    There is no way not to restrict access to individual tools in the workshop of SQL. Rather than give the developer-level end-users to access the SQL workshop, create applications containing data support Wizards, where end-user access can be controlled using the standard APEX authentication and authorization schemas.

  • Loading the data into the order of series of Timestamp

    I need to load data into the target table in the order of series of timestamp. How to do it.

    ex:

    2015-12-10 02:14:15

    2015-12-10 03:14:15

    2015-12-10 04:14:15

    After you follow the how to use the Direct-Path INSERT ordered by your "timestamp column" series described here above, you can sort the lines in ODI (order of) this way:

  • Not able to load the data into ODI

    Team,
    I get the error when I am trying to load some data from the Oracle source to the target Oracle table.
    SOure: I have col1 and target I row_wid, col1. For Row_wid I created the sequence and mapping is the other Col 2


    I get error during a stage, wherei captures the code:

    / * DETECTION_STRATEGY = NOT_EXISTS * /.

    insert into CONFIG_NBN_BIW. I _WC_EAM_STATUS_D $
    (
    STATUS_NAME,
    IND_UPDATE
    )
    Select
    STATUS_NAME,
    IND_UPDATE
    de)


    Select
    SEPARATE
    C1_STATUS_NAME STATUS_NAME,

    'I' IND_UPDATE

    of CONFIG_NBN_BIW. C$ _0WC_EAM_STATUS_D
    where (1 = 1)
    ) S
    If NOT EXISTS
    (select 1 from CONFIG_NBN_BIW. WC_EAM_STATUS_D T
    where T.ROW_WID = S.ROW_WID
    and ((T.STATUS_NAME = S.STATUS_NAME) or (T.STATUS_NAME IS NULL and S.STATUS_NAME IS NULL))
    )

    The above query fails with an error: ORA-00904: "S". "' ROW_WID ': invalid identifier.

    Since the S.ROW_WID in T.ROW_WID = S.ROW_WID is incorrect. IT is supposed to be T.ROW_WID = S.IND_UPDATE.

    Now, can someone tell me where exactly I'm incorrect in ODI. OR need additional information.

    Thank you

    Hello

    What is happening because you check the KEY field against the column is populated in a sequence.
    Uncheck this option, make sure you also UPDATE filed is also uncheck for that particular column.

    According to the request stuck by you, I think STATUS_NAME should be marked as KEY.

    Thank you
    Fati

  • Loading the data into Essbase (add the crash)

    Hello

    We are loading data from oracle to target Essbase cube table. How to manage ODI loading data to add to rather than replace the last value?

    Ex: We have the data source with the mapping of M:1, so we court statement case [case when the Group has, B, C and D] is there a setting in ODI who allows to add (add) instead of overwrite data?

    Currently, the value of data in C is loaded into D instead of A + B + C in D.


    Thank you.

    You can put the CASE WHEN, in the mapping target and continue to use a rule to load a load rule has nothing to do with what you are doing in target mappings.

    See you soon

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

  • Loading the data into environmental assessments?

    Hello

    When you load data via a DLR in environmental assessments and you have a member in the source file that does not exist in the general plan, just to stop at this point and said 566 666 files and status is 'error' no .err file is generated. Is there a way to continue in order to jump the lines which does not exist and then write the lines in the .err file that do not exist? I don't want to have to reload the file even hundreds of times to find the missing members...

    It stops at two conditions.
    1. you have not used a load rule to load data and/or
    2. you have specified in the EA to abort error

  • SQL Loader loading data into two Tables using a single CSV file

    Dear all,

    I have a requirement where in I need to load the data into 2 tables using a simple csv file.

    So I wrote the following control file. But it loads only the first table and also there nothing in the debug log file.

    Please suggest how to achieve this.

    Examples of data

    Source_system_code,Record_type,Source_System_Vendor_number,$vendor_name,Vendor_site_code,Address_line1,Address_line2,Address_line3

    Victor, New, Ven001, Vinay, Vin001, abc, def, xyz

    Control file script

    ================

    OPTIONS (errors = 0, skip = 1)
    load data
    replace
    in the table1 table:
    fields ended by ',' optionally surrounded "" "
    (
    Char Source_system_code (1) POSITION "ltrim (rtrim (:Source_system_code)),"
    Record_type tank "ltrim (rtrim (:Record_type)),"
    Source_System_Vendor_number tank "ltrim (rtrim (:Source_System_Vendor_number)),"
    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"
    )
    in the Table2 table
    1 = 1
    fields ended by ',' optionally surrounded "" "
    (
    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"
    Vendor_site_code tank "ltrim (rtrim (:Vendor_site_code)),"
    Address_line1 tank "ltrim (rtrim (:Address_line1)),"
    Address_line2 tank "ltrim (rtrim (:Address_line2)),"
    Address_line3 tank "ltrim (rtrim (:Address_line3)).
    )

    the problem here is loading into a table, only the first. (Table 1)

    Please guide me.

    Thank you

    Kumar

    When you do not provide a starting position for the first field in table2, it starts with the following after a last referenced in table1 field, then it starts with vendor_site_code, instead of $vendor_name.  So what you need to do instead, is specify position (1) to the first field in table2 and use the fields to fill.  In addition, he dislikes when 1 = 1, and he didn't need anyway.  See the example including the corrected below control file.

    Scott@orcl12c > test.dat TYPE of HOST

    Source_system_code, Record_type, Source_System_Vendor_number, $vendor_name, Vendor_site_code, Address_line1, Address_line2, Address_line3

    Victor, New, Ven001, Vinay, Vin001, abc, def, xyz

    Scott@orcl12c > test.ctl TYPE of HOST

    OPTIONS (errors = 0, skip = 1)

    load data

    replace

    in the table1 table:

    fields ended by ',' optionally surrounded "" "

    (

    Char Source_system_code (1) POSITION "ltrim (rtrim (:Source_system_code)),"

    Record_type tank "ltrim (rtrim (:Record_type)),"

    Source_System_Vendor_number tank "ltrim (rtrim (:Source_System_Vendor_number)),"

    $vendor_name tank "ltrim (rtrim (:Vendor_name)).

    )

    in the Table2 table

    fields ended by ',' optionally surrounded "" "

    (

    source_system_code FILL (1) POSITION.

    record_type FILLING,

    source_system_vendor_number FILLING,

    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"

    Vendor_site_code tank "ltrim (rtrim (:Vendor_site_code)),"

    Address_line1 tank "ltrim (rtrim (:Address_line1)),"

    Address_line2 tank "ltrim (rtrim (:Address_line2)),"

    Address_line3 tank "ltrim (rtrim (:Address_line3)).

    )

    Scott@orcl12c > CREATE TABLE table1:

    2 (Source_system_code VARCHAR2 (13),)

    3 Record_type VARCHAR2 (11),

    4 Source_System_Vendor_number VARCHAR2 (27),

    5 $vendor_name VARCHAR2 (11))

    6.

    Table created.

    Scott@orcl12c > CREATE TABLE table2

    2 ($vendor_name VARCHAR2 (11),)

    3 Vendor_site_code VARCHAR2 (16).

    4 Address_line1 VARCHAR2 (13),

    5 Address_line2 VARCHAR2 (13),

    Address_line3 6 VARCHAR2 (13))

    7.

    Table created.

    Scott@orcl12c > HOST SQLLDR scott/tiger CONTROL = test.ctl DATA = test.dat LOG = test.log

    SQL * Loader: release 12.1.0.1.0 - Production on Thu Mar 26 01:43:30 2015

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    Path used: classics

    Commit the point reached - the number of logical records 1

    TABLE1 table:

    1 row loaded successfully.

    Table TABLE2:

    1 row loaded successfully.

    Check the log file:

    test.log

    For more information on the charge.

    Scott@orcl12c > SELECT * FROM table1

    2.

    RECORD_TYPE SOURCE_SYSTEM_VENDOR_NUMBER $VENDOR_NAME SOURCE_SYSTEM

    ------------- ----------- --------------------------- -----------

    Victor Ven001 new Vinay

    1 selected line.

    Scott@orcl12c > SELECT * FROM table2

    2.

    $VENDOR_NAME VENDOR_SITE_CODE ADDRESS_LINE1 ADDRESS_LINE2 ADDRESS_LINE3

    ----------- ---------------- ------------- ------------- -------------

    Vinay Vin001 abc def xyz

    1 selected line.

    Scott@orcl12c >

  • Loading external data to a table syntax error

    I'm trying to load some data from an external text file in a table. I created a table and can't seem to load the data into a table, if I explicitly say something like


    ActionScript code:
    Array [0] = event.target.data.uid1_name;

    I can then do a trace statement on array [0] and it will display the correct name of the file. My problem is that I try to browse the variable names in the text file in the file by using an index variable. This is the code I use after all the URLloader, URLRequest and so on things:


    ActionScript code:
    for (var i = 0; i < 20; i ++) {}
    fArray _name = event.target.data.uid;
    }

    It produces a syntax error. I tried several other variations of syntax but have not been able to understand.

    I also tried the following:

    = event.target.data fArray ["uid" + i + "_name"];
    fArray
    = event.target.data. ["uid" + i + "_name"];
    = event.target.data fArray. "" uid "+ i +"_name ";

    All three of those who also give me errors. For the first, education outputs trace "undefinded" instead of "Doug." For the second, I get 'syntax error. Expecting identifier before left hook. " And for the third, I get "syntax error, expecting to identify before uid.":

    Any thoughts on the syntax to iterate the number after uid (uid1_name, uid2_name, uid3_name, etc.)?

    This one:
    fArray [i] = event.target.data ["uid" + i + "_name"];

    is probably the one you want.

    But I suspect that your uid # _Nom variable start at 1, because it works:
    Array [0] = event.target.data.uid1_name;

    so, try:
    fArray [i] = event.target.data ["uid" +(i+1) + "_name"];

  • Need a sql script loader to load data into a table

    Hello

    IM new to Oracle... Learn some basic things... and now I want the steps to do to load the data from a table dump file...

    and the script for sql loader

    Thanks in advance

    Hello

    You can do all these steps for loading data...

    Step 1:

    Create a table in Toad to load your data...

    Step 2:

    Creating a data file... Create your data file with column headers...

    Step 3:

    Creating a control file... Create your control file to load the data from the table data file (there is a structure of control file, you can search through the net)

    Step 4:

    Move the data file and the control file in the path of the server...

    Step 5:

    Load the data into the staging table using sql loader.

    sqlldr control = data =

    connect as: username/password@instance.

Maybe you are looking for