How to load xml using sql loader data?

Is there any load script of XML data in a table through sql loader?

Help me out here...

Thank you

You can post your code here? while I can help you... your code format should be like this...

Example code:

DOWNLOAD THE DATA

INFILE *.

IN THE TABLE po_tab

ADD

XMLTYPE (xmldata)

FIELDS

(xmldata TANK (2000))

BEGINDATA

"" http://www.Oracle.com/po/"xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"

"" xsi: schemaLocation = "http://www.oracle.com/PO http://www.oracle.com/scha0/po1.xsd"

orderDate = "1999-10-20" >

Alice Smith

123 maple Street

Mill Valley

CA

90952

Robert Smith

8 oak Avenue

Old town

PA

95819

Hurry, my lawn is going wild!

Lawn mower

1

148.95

Confirm this is electric

Baby monitor

1

39.98

1999-05-21

Tags: Database

Similar Questions

  • How to load data from ms sql to the by the file rules and maxl essbase

    Hi, everybody!
    Pretty Shure the kind of topic exists already on the forum, but unfortunately can't find it.

    I want to understand, how to load data from the database to ms sql for the PB of essbase application.

    (I) so I have:
    1. a request for 'society '.
    2 and its database 'Plan '.
    3. with simple outline, which contains only two dimensions:

    -The time period < 1 > (Label only)
    -Total year (~)
    -Qtr1 (+)
    Jan (+)
    Feb (+)
    Mar (+)
    -Qtr2 (+)
    APR (+)
    May (+)
    Jun (+)

    -Accounts < 1 > (Label only)
    -Lost / based (~) (Label only)
    -Revenues (+)
    L1.1 (+)
    L1.2 (+)
    -Costs (-)
    L2.1 (+)
    L2.2 (+)

    (II) also, I created a rules file called "CO_DWH" and associated with this schema
    It (Rules file) a 3 columns:
    Data of the 'period', 'account '.

    There is also the option checked "load data".

    (III) in MS SQL Server, I have a database of "hypdb" and "essadmin" with "password" login

    (IV) I executed my bat file:
    C:\Hyperion\EssLoad.bat
    There is only one line:

    EssLoad.bat-
    startMaxl.cmd EssLoad.txt
    ----------------------------------------------

    EssLoad.txt-
    login password admin on erpserver;
    Import database data Company.Plan connect in essadmin password using the server rules_file 'CO_DWH' error abort;
    disconnection;
    "exit";
    --------------------------------------------


    All plans that I copied well worked ERP system, but I don't understand, this is exactly table in the MS SQL database, data loading to essbase db?

    TOU have to do a few things
    1. on the server of Essbase, put in place a system odbc for your MySQL database connection
    2. in the State of charge, go to the file menu and select open source SQL database and in the source of data in your SQL statement. A few tips. Where it says select, don't put in the select Word and when he says to not put in of. The system adds for you. TI enter a simple SQL statement is to do this in the box so select if your SQL would be normanlly as select * from myTable just enter the code as * from myTable in the upscale neighborhood

    The ol/recover the click and fill your connection information. Should bring back the data in the State of charge. Save the State of charge and use

  • How to load data after Migration?

    Hi all

    I've finished in cubes essbase migration from one environment to another using the EAS migration wizard, however I understad it's only brings the application and databases and data. How to load data?

    Thank you.

    Fix. Section Administrator's Guide of the database on migration: "you can reload is to export the data to a text file, upload the file of text on the new server and then use the text file to load the data.

    If you use EAS to do this, see the sections of the user guide on the export of data (http://docs.oracle.com/cd/E17236_01/epm.1112/eas_help/exportdb.html) and loading data (http://docs.oracle.com/cd/E17236_01/epm.1112/eas_help/loading.html). Note that for an export created in this way, you do not need a rules file.

    You can also use MaxL (data export / import data commands).

  • How to load data from workflow

    How to load data from workflow (POAPPRV.wft, QAPPRV.wft)

    11i apps

    Hello

    Use WFLOAD to load the workflow data I.

    WFLOAD apps / 0 Y FORCE xxxx.wft
    WFLOAD apps / 0 Y FORCE xxxx.wft

  • URGENT: How to load data into essbase R12 by ODI

    Hi all

    Could you please provide me with step by step document "How to load data into essbase R12 directly through the ODI".

    Kind regards

    Rubi

    Hello

    You need below KM

    RKM E-Business Suite

    IKM E-Business Suite (open Interface)

    then follow the link below

    Red shift: ODI for eBusiness Suite integration - in 4 steps

    Hope it helps

    Thank you

  • How to post JSON using the Oracle Data Service remains

    I use the regular (not NoSQL or something) oracle database with oracle rest data service. Now I need to post data / put wrote in the body of the request using some json/xml format, how to consume them using the rest data service, searching inside the express application?  important: using pl/sql block

    Also, I am on,

    Data service Oracle rest 3.0

    Oracle Application Express 4.2

    Post edited by: Jacynthe

    OK, I got the answer. At the express request, there is a link called body variable (: body in BLOB). but the BLOB data type. So, we have to convert that in other data, type what we in pl/sql. I've converted data type witch CLOB supports json.

  • Problem loading xml using sql loader file

    I am trying to load data into the table test_xml (xmldata XMLType)

    I have an xml file and I want any file to load in a single column

    When I use the following control file and run from the command-line as follows
    sqlldr $1@$TWO_TASK direct control=$XXTOP/bin/LOAD_XML.ctl = true; :

    DOWNLOAD THE DATA
    INFILE *.
    TRUNCATE INTO TABLE test_xml
    XmlType (XMLDATA)
    FIELDS
    (
    tank fill ext_fname (100),
    XMLDATA LOBFILE (ext_fname) COMPLETED BY expressions of folklore
    )
    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    the file is loaded in the table perfectly.

    Unfortunately I can't hard-code the name of file as file name will be changed dynamically.

    so I removed the block

    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    control file and tried to run by giving the following command line path

    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml = true;

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Please find the log of the program with the error

    ------------------------------------------------------------------
    Loading XML through SQL * Loader begins
    ------------------------------------------------------------------
    SQL * Loader-502: cannot open the data file ' <? XML version = "1.0"? > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< root >' XMLDATA field table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > forms < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > PLL < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML

    Please help me how can I load full xml in a single column using command line without Hardcoding in the control file

    Published by: 907010 on January 10, 2012 02:24

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Nothing strange, that the data parameter specifies the file containing the data to load.
    If you use the name of the XML here, the control file will try to interpret each line of XML as being separate ways.

    The traditional approach this is to have the name of the file stored in another file, say filelist.txt and use, for example:

    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;
    
  • How to load data from matrix report in the base using ODI table data

    Hello

    How to load matrix report data in the base table data using oracle Data Integrator?

    Description of the requirement:

    This is the data from matrix report:
    JOB                       DEPT10                DEPT20  
    ___________________________ _____________
    ANALYST                                           6000
    CLERK                   1300                     1900 
    Need to convert it to the format below:
    JOB                             Dept                        Salary
    _____________________________________________
    ANALYST                  DEPT10      
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        
    Thank you for your help in advance. Let me know if any other explanation is needed.

    Your list seems to be a bit restrictive, you can do much more with the procedures of ODI.

    If you create the new procedure and add a step. In the 'source' tab command you define technology and pattern according to your source database. Use the unpivot operator as described in the link, please, instead of using "SELECT *' use the column names and aliases for example:"

    SELECT workstation,
    deptsal as deptsal,
    saldesc as saledesc
    OF pivoted_data
    UNPIVOT)
    deptsal-<-->
    FOR saldesc-<-->
    IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->
    )

    Then in your tab 'command on target' defined technology and drawing on your target db, then put your INSERT statement for example:

    INSERT INTO job_sales
    (employment,
    deptsal,
    saledesc
    )
    VALUES
    (
    : job,.
    : deptsal,.
    : saledesc
    )

    That's why you use bind variables from source to load data into the target.

    Obviously if the source and target table is in the same database, you can have it all in a single statement to the "command on target' as

    INSERT INTO job_sales
    (employment,
    deptsal,
    saledesc
    )
    SELECT workstation,
    deptsal as deptsal,
    saldesc as saledesc
    OF pivoted_data
    UNPIVOT)
    deptsal-<-->
    FOR saldesc-<-->
    IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->
    )

    also assign the log count "Insert" on the tab corresponding to your INSERT statement, so that you know how many rows you insert into the table.

    I hope this helps.

    BUT remember that this feature is out in Oracle 11 g.

  • How dynamically load data in target tables using as source files

    Hello

    My script needs a single interface to load data from 5 different files in five paintings of target using a single interface. All target tables have the same structure. It is possible to point to files variable source using ODI. But the same approach does not work with database tables. I get errors trying to make my table as dynamic target/source.

    Can anyone suggest anything. The last option would write a dynamic PL/SQL block in the KM. Other friends of suggestions?

    Kind regards
    Jay

    and not exists)
    Select 'X '.
    h. #PLAYGROUND. "v_tab_name"T ".

    have you provided the name of the resource with the quotes, if so please remove it and try.

    If you have provided the name of the variable, a v_tab_name and do not provide quotes. Can you please change the name of the variable to the capital, namely V_TAB_NAME and use the same in the data store too and please try again.

  • How to load data into the App MVDEMO schema example

    Hi all

    I'm a POC on Oracle Mapviewer and try to build some reports in OBIEE using MApviewer.

    This POC, I use Oracle MVDEMO example Data (11g). I think that these sample data covers few countries like the USA.

    I need to make PDS for the Brazil, I downloaded data from the map of the site as Shapefiles Brazil

    http://GADM.org/country

    in these data of the Brazil, I got from .csv files 4 extensions, .dbf, .shp and SHX

    I need to know how can I load these files into my Oracle 11 g DB? Should I load data into the same pattern of mvdemo, if yes then which table?

    Any help will be appreciated a lot.

    Thank you

    Amit

    Use the Java shapefile Converter utility (http://www.oracle.com/technetwork/database/options/spatialandgraph/downloads/index-093371.html)

    GDAL (gdal.org) FME (Safe) or or MapBuilder.

    Specify the to SRID (i.e. the SRID for loading in Oracle geoms) 4326 or 8307.

    Load into a new table named anything you want. for example brazil_gadm with the geometry named GEOMETRY column

    Once it's loaded, verify that there is an entry for the table and column (BRAZIL_GADM, GEOMETRY) in user_sdo_geom_metadata

    Create a space on brazil_gadm.geometry index if the tool has not created a.

    Add the definitions of topic for the country, State or whatever the admin areas exist in the dataset.

    Import them as layers in OBIEE.

  • How to load data from different tables, but record to another table?

    Hi all

    I use the apex and I understand how it updates and saves the files normally.

    In this case, I would need to load from a table, but save on another Board on the button "submit".

    I am aware that it would be easy as forms where I could do a manual insert process. im making in tabular form and I don't really know how to handle this process.

    Suppose that I am loading a set of questionnaires in the form of tables and have a yes / no selection.

    If the questions would come from table A and I need to save it in table B.

    in this case that I can't put just the value default by the tabular row for questions coz it would be dynamic and this example is on a small scale. I would need to load the table A and record in table B.

    could someone guide me on this operation or provide tutorials any?

    Maybe that's what you're after.

    (1) create region report using SQL like this:

    Select apex_item.hidden(1,rownum).

    apex_item.display_and_save(2,question_column) in Question,

    apex_item. Text(3,,4,4) as answer

    from table_a

    apex_item documentation of package found:

    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35127/apex_item.htm

    The pidx (first number) in each apex_item parameter is used to identify this item in the same row of the report' / tabular form.

    (2) create a submit in procedure a bit like that.

    Start

    because I 1.apex_application.g_f01.count loop - identifies the "apex_item.hidden(1,rownum)" at the top and gets a count of how many times it occurs

    Insert into table_b (question, answer)

    values (apex_application.g_f02 (i), apex_application.g_f03 (i));

    end loop;

    end;

  • How to load data from Oracle tables into essbase?


    Hello

    I'm fairly new to essbase. We are working on essbase 11.1.2.2.

    I want to build size & load data using pre-existing data warehouse which is built on Oracle.

    I try to use "Open SQL". I use OIC.  It is gicing me connection error (1021001).

    The following log shows:

    [Sea 14 Aug 14:15:06 2013] Local/SA_EB_1/MIS_FIN/SA0053580@Native Directory/10868/Info (1021097)
    EssOCI Initializes the connection to the Oracle database on the server [tmdwtst1]

    [Sea 14 Aug 14:15:25 2013] Local/SA_EB_1/MIS_FIN/SA0053580@Native Directory/10868/Info (1021099)
    EssOCI could not connect to the Oracle database with error message [ORA-12154: TNS: could not resolve the connect identifier specified]
    ]

    [Sea 14 Aug 14:15:25 2013] Local/SA_EB_1/MIS_FIN/SA0053580@Native Directory/10868/Error (1021001)
    Cannot establish a connection to the SQL database server.  See the log for more information

    [Sea 14 Aug 14:15:25 2013] Local/SA_EB_1/MIS_FIN/SA0053580@Native Directory/10868/Warning (1080014)
    Transaction [0 x 2650001 (0x520b4392.0x69b68)] abandoned due to the State [1021001].

    Help, please.

    Thank you

    Sam

    You use the correct format for the OIC:

    Host: port / Oracle_service_name

    See you soon

    John

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

  • How to load data for the dimensions of the unmapped target

    Hello

    I HAV requirement that

    the source dimensions are

    1 account

    2 company

    Dimensions of the target

    1 account

    2 entity

    3.CUSTOM1

    4.CUSTOM2

    5 PIC

    I drew one account & other entity left blank...

    It was the order to HAV, mapped from the source address.

    For PEAK value [no PIC] must be load in the target, but this value was not in the source

    How can I specify the Format of data support Mapping in [Explicit, between the two, etc.] to encode the value target

    also other dimensions not mapped

    Thanks in advance

    Hello

    You can create a map like *-> [no PIC]

    If you want to display a value in the ICP source, you can configure your import format to import a static value and map this value.

    Concerning

  • How to load data into app unconventional planning (EPM 11.1.1.2)

    Advise me please, a few ways to load data into my unconventional planning (EPM 11.1.1.2) application or perhaps a work around
    Thanks in advance

    Hello

    Without knowing your implenmentation it is difficult to make a decision for you, but more robust methods will be essbase load rules or integration using ODI.

    See you soon

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

  • How to load data into the planning your application through FDMEE of Multicurrecny?

    Hi all

    I am new to FDMEE, I got hit with the loading of data, here's my problem,

    My application is the application of multicurrency with USD as the currency of presentation and a few more currencies like GBP, etc. INR currency basis to individual entities. The requirement is to load real historical data in application of planning in local currencies and in USD.

    I have a data file for USD. However, I have several files for local currencies, all data files will be in the same format. When I tried to load with the configuration under configuration of integration in location of given functional currency as USD and the data value as USD , but still only "Local" data loading, when I checked the recovery of data in Smart mode by keeping the dimension currency in Page and selecting USD, it shows no data , but if I choose Local it retrieves data!  Is it possible to load data from both local USD currency?

    Any help on this is much appreciated, thanks in advance.

    Kind regards

    Kamal

    Hi all

    Now, I managed to load time USD (presentation currency) and Local (different base for the entity currency). Before that I did not forget the currency (USD / Local) in the functional currency of the location field.

    Thank you all,.

    Kind regards

    Kamal

  • How to send XML using UTL_HTTP

    I try to drive, how to send XML data to a webserver using UTL_HTTP, but I get no answer

    I need to present the following document to server 'http://api.fastsms.co.uk/api/xmlapi.php' XML instructions are "the XML Document must be posted not coded, with a game like"xml"of UTF-8 character set parameter"

    If I submit the following in their test form XML

    <? XML version = "1.0"? >

    < apirequest version = "1" >

    < user >

    < username > * USER * < / username >

    password <>* password * < / password >

    < / user >

    < application >

    < name > Application example < / name >

    < version > 1.0 < / version >

    < / application >

    < inboundcheck lastid = "10711399" / >

    < / apirequest >

    I get a response XML returns with the messages in my Inbox.

    This is the code I'm trying to use to accomplish the same thing about PL/SQL: I know an answer just as soon as there is simply no content - header information.  What I am doing wrong?

    l_xml VARCHAR2 (5000);

    Utl_http.req req;

    resp utl_http.resp;

    HostHeaderName VARCHAR2 (256); -Name of the response header

    header_value VARCHAR2 (1024); -Value of the response header

    response_text VARCHAR2 (4000); -Response body

    l_url VARCHAR2 (100);

    BEGIN

    l_xml: = ' xml = <? XML version = "1.0"? > ';

    l_xml: = '< apirequest version = "1" >';

    l_xml: = '< user >. "

    l_xml: = ' < username > * USER * < / username > ';

    l_xml: = ' < password > * PASSWORD * < / password > ';

    l_xml: = ' < / user > ';

    l_xml: = '< application >. "

    l_xml: = ' < name > Application example < / name > '.

    l_xml: = ' < version > 1.0 < / version > ';

    l_xml: = < application "/ > ';

    l_xml: = ' < inboundcheck lastid = "10711399" / > ";

    l_xml: = ' < / apirequest > ';

    -Connection HTTP open

      l_url := ' http://api.fastsms.co.uk/api/xmlapi.php';

    Req: = utl_http.begin_request (l_url, 'POST', utl_http. HTTP_VERSION_1_1);

    -Set headers for type and length

    Utl_http.set_header ("req, 'Content-Type', ' application/x-www-formulaires-urlencoded");

    Utl_http.set_header (Req, 'Content-Length', to_char (length (l_xml)));

    -Write the setting

    Utl_http.write_text (Req, l_xml);

    -Reading response file

    resp: = utl_http.get_response (req);

    -Print the response headers

    BECAUSE me in 1... Utl_http.get_header_count (resp) LOOP

    Utl_http.get_header (resp, i, header_name, header_value);

    logging_pkg.info(header_name ||) ': ' || header_value);

    END LOOP;

    -Print the response body

    BEGIN

    LOOP

    Utl_http.READ_TEXT (resp., response_text);

    logging_pkg.info (response_text);

    END LOOP;

    EXCEPTION

    WHEN utl_http.end_of_body THEN

    logging_pkg.info ('end of body');

    END;

    -close the http connection

    Utl_http.end_response (resp);

    EXCEPTION

    WHEN utl_http.end_of_body THEN

    Utl_http.end_response (resp);

    END;

    See you soon,.

    Brent

    The fact that you do not receive a response of HTTP (headers) return, means that a basic communication worked. After reading the response:

    answer: = utl_http.get_response (request);

    Check the HTTP status code:

    If response.status_code...

    You should get a HTTP 200 for a successful call. May be that you run in a 50 x results, which implies a server error has occurred processing your HTTP call.

    Best bet to see the error on the server is the access log and/or Apache error.

    Oh yes - XML submits work very well through UTL_HTTP. Take a look at the sample code in https://forums.oracle.com/message/10450611#10450611

    In what concerns the validation code and using the syntax highlighting - edit, click use the Advanced Editor, highlight the code and click on the > on the toolbar to access the text highlighting the menu. Unfortunately this does not use fixed fonts - again. I hope that this will be corrected as forum features are addressed.

Maybe you are looking for