How to transfer Oracle table into XML?

Hello all,
Can anyone give some inputs on this issue of transferring the Oracel table/database in XML?
Thanks in advance
Himanshu

start with select xmlElement((xmlforest()) from your tables. The docs have detailed explanations on these and other xml functions and packages.
ben

Similar Messages

  • How to convert database table into xml file

    Hi.
    How to convert database table into XML file in Oracle HTML DB.
    Please let me know.
    Thanks.

    This not really a specific APEX question... but I search the database forum and found this thread which I think will help
    Exporting Oracle table to XML
    If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
    http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
    Hope this helps
    Chris

  • How to copy Oracle tables into a CD-ROM

    Hi, I have created some tables in my user account in Oracle. Now I want to burn them into a CD-ROM. Please tell me step by step instructions to copy the contents to a CD-ROM. Thanks in advance.

    user13288395 wrote:
    Hi, I have created some tables in my user account in Oracle. Now I want to burn them into a CD-ROM. Please tell me step by step instructions to copy the contents to a CD-ROM. Thanks in advance.Tables don't exist physically. They are logical representation of your Data.
    So a straight forward answer is you cant burn a table into a CD.
    But what you can do is Burn the Table information and Table Data into a CD. For that you need to export the table as a file and then write that file into a CD.

  • Store oracle table into flat file

    Hello,
    How to store oracle table into flat file with comma ( , ) delimiter.
    Thanx
    Murali

    set echo off feedback off termout off heading off pages 0
    spool path/filename
    select cola||','||colb||';'||colc ...
    from tablea;
    spool off

  • How to export oracle table?

    Does anybody knows how to export oracle table into sql format? I know by using PL/SQL Developer can do it,but I have a table,it contains a column,it's type is LONG,PL/SQL can't export it! How to export long type table into sql format?
    Any idea will be appreciated!

    My table structure is follows:
    create table MyDates
    COL1 LONG,
    COL2 VARCHAR2(20)
    In column col1,I store some date in it,then I want to export this table,but I don't want to export this table into dmp file,I only want to export this table' structure and export it into SQL File,such export filename is mydata.sql
    I don't know how to export this table's structure? Because it contains LONG type column.How to export it? By the way,would you tell me how to export other type table,such as it contains column type is blob?

  • Insert data into oracle table from XML file

    I need to insert data into oracle table from XML file
    If anybody handled this type of scenario, Please let me know how to insert data into oracle table from XML file
    Thanks in advance

    The XML DB forum provides the best support for XML topics related to Oracle.
    Here's the FAQ on that forum:
    XML DB FAQ
    where there are plenty of examples of shredding XML into Oracle tables and such like. ;)

  • How to transfer internal table data to Applicatiion Server in XML fromat.

    how to transfer internal table data to Applicatiion Server in XML fromat.

    Hi if u want to transfer from to application server using xml in
    do like this,
    v_xml_table is u r internal table,
    and define li_xml_table as line of u r internal table
    OPEN DATASET g_file FOR OUTPUT IN BINARY  MODE .
        LOOP AT v_xml_table INTO  li_xml_table.
          TRANSFER li_xml_table TO g_file .
        ENDLOOP.
        CLOSE DATASET g_file.
      ENDIF.
    <removed_by_moderator>
    Regards,
    Prasad.
    Edited by: Julius Bussche on Jul 16, 2008 2:43 PM

  • After generating a table into xml how can i save the result in a XML table?

    Hello everyone,
    I’ve used this function to generate a table into XML schema :
    example :
    SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
    xmlforest(name as "Name", population as "Population")) from state;
    result:
    <Statexmlns:gml="http://www.opengis.net/gml">
    <Name>Wilkopolska</Name>
    <Population>35000</Population>
    </State>
    Now I need to insert the result into a XML table, because i need to save the result to use it latter ,I hope that someone can help and if there's other solution to do this it would be great.
    Thanks a ot and best regards,
    Lama.

    Just insert into a table....
    insert into t
    SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
    xmlforest(name as "Name", population as "Population")) from state; and a complete example:
    SQL> create table t (test xmltype)
      2  /
    Table created.
    SQL>
    SQL> create table state
      2  (name varchar2(10)
      3  ,population number
      4  )
      5  /
    Table created.
    SQL>
    SQL> insert into state values ('WI', 35000)
      2  /
    1 row created.
    SQL>
    SQL> SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
      2  xmlforest(name as "Name", population as "Population")) from state;
    XMLELEMENT("STATE",XMLATTRIBUTES('HTTP://WWW.OPENGIS.NET/GML'AS"XMLNS:GML"),XMLFOREST(NAMEAS"NAME",P
    <State xmlns:gml="http://www.opengis.net/gml"><Name>WI</Name><Population>35000</
    SQL>
    SQL>
    SQL> insert into t
      2  SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
      3  xmlforest(name as "Name", population as "Population")) from state;
    1 row created.
    SQL> select *
      2    from t
      3  /
    TEST
    <State xmlns:gml="http://www.opengis.net/gml"><Name>WI</Name><Population>35000</

  • Error while downloading data from internal table into XML file

    hi all,
    i developed a program to download data from into internal table to xml file like this.
    tables: mara.
    parameters: p_matnr like mara-matnr.
    data: begin of itab_mara occurs 0,
                matnr like mara-matnr,
                ernam like mara-ernam,
                aenam like mara-aenam,
                vpsta like mara-vpsta,
          end of itab_mara.
    data: lv_field_seperator type c,     " value 'X',
          lv_xml_doc_name(30) type c,    " string value ‘my xml file’,
          lv_result type i.
          lv_field_seperator = 'x'.
          lv_xml_doc_name = 'my xml file'.
    types: begin of truxs_xml_line,
              data(256) type x,
          end of truxs_xml_line.
    types:truxs_xml_table type table of truxs_xml_line.
    data:lv_tab_converted_data type truxs_xml_line,
         lt_tab_converted_data type truxs_xml_table.
    data: lv_xml_file type rlgrap-filename value 'c:\simp.xml'.
    select matnr ernam aenam vpsta from mara into table itab_mara up to 5
           rows where matnr = p_matnr.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
       I_FIELD_SEPERATOR          = lv_field_seperator
      I_LINE_HEADER              =
      I_FILENAME                 =
      I_APPL_KEEP                = ' '
       I_XML_DOC_NAME             = lv_xml_doc_name
    IMPORTING
       PE_BIN_FILESIZE            = lv_result
      TABLES
        I_TAB_SAP_DATA             = itab_mara
    CHANGING
       I_TAB_CONVERTED_DATA       = lt_tab_converted_data
    EXCEPTIONS
      CONVERSION_FAILED          = 1
      OTHERS                     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    open dataset lv_xml_file for output in binary mode.
    loop at lt_tab_converted_data into lv_tab_converted_data.
    transfer lv_tab_converted_data to lv_xml_file.
    endloop.
    close dataset lv_xml_file.
    this program is syntactically correct and getting executed, but when i open the target xml file it is showing the following error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/simp.xml'.
    will anyone show me the possible solution to rectify this error
    thanks and regards,
    anil.

    Hi,
    Here is a small sample program to convert data in an internal table into XML format and display it.
    DATA: itab  TYPE TABLE OF spfli,
          l_xml TYPE REF TO cl_xml_document.
    * Read data into a ITAB
    SELECT * FROM spfli INTO TABLE itab.
    * Create the XML Object
    CREATE OBJECT l_xml.
    * Convert data in ITAB to XML
    CALL METHOD l_xml->create_with_data( name = 'Test1'
                                         dataobject = t_goal[] ).
    * Display XML Document
    CALL METHOD l_xml->display.
    Here are some other sample SAP programs to handle XML in ABAP:
    BCCIIXMLT1, BCCIIXMLT2, and BCCIIXMLT3.
    Hope this helps,
    Sumant.

  • Import data from Oracle table into flat file

    How to import the data in the oracle table into flat file using UTL File of PL/SQL....
    I am new in PL/SQL..
    can someone help me in writing query?

    Note : Not Tested.
    DECLARE
    V1 VARCHAR2(32767);
    F1 UTL_FILE.FILE_TYPE;
    cursor c1 is select ename,empno from emp;
    r_c1 c1%rowtype;
    BEGIN
    -- In this example MAX_LINESIZE is less than GET_LINE's length request
    -- so the number of bytes returned will be 256 or less if a line terminator is seen.
    open c1;
    F1 := UTL_FILE.FOPEN('MYDIR','MYFILE','W',256);
    loop
    fetch c1 into r_c1;
    v1:= r_c1.ename||''||To_char(r_c1.empno);
    UTL_FILE.PUT_LINE (F1, v1,TRUE);
    v1:= null;
    Exit when c1%not found;
    end loop;
    UTL_FILE.FCLOSE(F1);
    END;
    http://download.oracle.com/docs/cd/B19306_01/appdev.102
    ------------------------------------------------------------------

  • How to create Oracle Table in DWB from Oracle external table

    Dear all,
    I have create Oracle External Table by using DWB. Kindly tell me steps that how could i able to import this external oracle table into internal oracle table now.
    When I deploye this External table message arise "Name is using by an existing object.
    any help would be ppreciated.
    Thanks

    In your database is there a table already existing with the same name as your external table? If there is then you can try and rename your external table in OWB and then deploy it again.
    Then you can create a mapping with your source as the External Table Operator and the target as a Table Operator. When you run the mapping the data from the external table will be imported into the oracle table.
    I hope this helps.
    Regards
    GB

  • Tool or mechanism to put the Oracle metadata into XML format

    Hi,
    Is there any tool or mechanism provided by Oracle to put the Oracle metadata into XML format?I mean metadata here represents Database objects like Tables, Columns, Schemas, stored procedures, Table spaces etc.
    Regards,
    Dayakar

    From 9i and onwards, the dbms_metadata package will do this.
    Either use the documentation or Morgan's library [http://www.psoug.org/reference] for further info
    Sybrand Bakker
    Senior Oracle DBA

  • I have a great number of Hi8 video tapes and I would like to burn them onto CDs through MacBook Pro (ME665LL/A), but I do not know how to transfer those footage into Mac. What would you recommend?

    Hello everybody! My question is; my parents and I have a great number of video tapes (Hi8 and mini DV) and since I purchased a MacBook Pro (ME665LL/A) I would like to burn them onto CDs, but I do not know how to transfer those footage into Mac. What would you recommend(it can be a software, a hardware or combination of both)? By the way, I also purchased an external DVD-RW(Asus SDRW-08D2S) separately.

    Just Google "convert hi8 to dvd" and you'll find a number of software/hardware combinations that will allow you to do what you want. One important piece of the puzzle is whether or not you still have access to the video recorder(s) that the movies were shot on.
    Good luck,
    Clinton

  • How to load oracle data into SQL SERVER 2000?

    how to load oracle data into SQL SERVER 2000.
    IS THERE ANY UTILITY AVAILABLE?

    Not a concern for an Oracle forum.
    Als no need for SHOUTING.
    Conventional solutions are
    - dump the data to a csv file and load it in Mickeysoft SQL server
    - use Oracle Heterogeneous services
    - use Mickeysoft DTS
    Whatever you prefer.
    Sybrand Bakker
    Senior Oracle DBA

  • How to connect oracle database into VC?GIve step by step.

    Hi Experts,
    Please help
    How to connect oracle database into VC?
    I need step by step.
    what shall i do the first to connect via jdbc or  something else.
    whether we have to create dsn name or using jdbc connections?which one to use?
    Please give the basic steps.Its very urgent.
    Thanks and Regards,
    Nutan

    Hi ,
    all information are in the following document:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424">How to Configure a Business Intelligence JDBC System for Visual Composer</a>
    Rgds,
    Karim

Maybe you are looking for

  • Problem linking a video clip to a 3D element in After effects

    Good morning In the following picture from my project I want to link the fire to the basin in front of the statue. The camera pans up when approaching the statue and at this moment my fire flies up!!! The temple is a unique group I built in Element 3

  • Can't assign personal key commands

    Hello, I recently had to reinstall Logic Pro 9 and neglected to backup/save my personal key commands. In reentering these commands I'm having a problem with one specific personal key command for Solo Off For All that Logic won't accept. I have gone i

  • Native 1366x768 with Toshiba

    Hi all, I'm having problems getting my Mini Core Duo to display 1366x768 on my Toshiba LCD 32WL. I've searched high and low for a solution, in here and elsewhere, and while most people seem to fix the problem (with other TV's) using DisplayConfigX or

  • BADI or User Exit in VA22

    Hi everyone I need to have an user exit or badi to validate a field in the moment that i push save botton, if the field contain an specific information, i don't want to save the data. how can i do it?? Thanks & Regards    David

  • HT204655 How do I change the Names of a Group photos

    How do I change the Names of a Group of photos in the Photos app