Create table from XML schema

HI,
is there any possibilty to create a relational table from a XML schema?

Can you use a schema when we compose XML doc from Database tables?
Actually, I'm using SQL Server (sorry, wrong forum). But, I thought a Java tool would have a solution for me.

Similar Messages

  • How to create table for XML schema-based Interface form

    Hi All,
    With tcode SFP to crate  a XML schema-based Interface form, how to create a defined table can be listed in "Data View"?
    Just like APAP Dictonary- Based Interface form, that we can drag  a defined table from data view to the panel.

    Hi,
    Just follow these steps:
    1. Create interactive form UI element in your view.
    2. Now provide Datasource and PDFSOURCE to it in form properties.
    3. Now give a template name prefix with 'Z' or 'Y'.
    4. Double click on it. It will prompt for interface name.
    5. Provide interface name prefixed with 'Z' or 'Y'.
    6. Click on Context button in the Pop up window and provide the node you have selected as DATASOURCE.
    7. Click ok and it will open the form designer.
    8. In this way you can create a XML Schema based Form.
    9. Activate the interface and design the form providing layout type and other details.
    Hope it will help.
    Regards,
    Vaibhav

  • Create bean from XML Schema

    I am wondering if it is possible to create a bean from an XML Schema that I have defined in JDeveloper. In BEA Weblogic xml beans are automatically generated for you when you create a schema.
    What I am trying to do is create a web service that has an input of an xml document based off the schema I have created. But I don't know how to specify that as an input.
    Thanks.

    Asking a similar question I was guided to TopLink 10.1.3 in this thread:
    ADF Faces: Paginated Table backend (EA15)
    I looked at XMLBeans but was surprised to find out that it does not generate JavaBean compliant javabeans which caused problems with JSF.
    I have been using Castor, http://castor.exolab.org/, I don't know about it integrating with JDeveloper.
    TopLink would be the most obvious choice if you need to integrate with JDeveloper. Keep in mind that it is TopLink's XML to JavaBean functionality is new but Oracle has been working with XML for a while. XMLBeans is also a young technology. Castor has been around for many years.
    Good Luck,
    Rachel

  • Create Table from XML Data

    XML info: D:\XMLDATA\mytable.xml
    create directory XML_dir as 'D:\XMLDATA';
    <INFO>
    <Column_Name>Col1</Column_Name>
    <Data_Type>Char(1)</Data_Type>
    </INFO>
    <INFO>
    <Column_Name>Col2</Column_Name>
    <Data_Type>VARCHAR2(50)</Data_Type>
    </INFO>
    I need to create a table based on the XML data.
    Create Table mytable
    Col1 Char(1),
    Col2 Varchar2(50)
    How to read and execute the xml data to create a table.
    Thanks!    

    Something like this :
    SQL> declare
      2 
      3    v_xmlinfo      clob;
      4    v_ddl          varchar2(32767) := 'CREATE TABLE mytable ( #COLUMN_LIST# )';
      5    v_column_list  varchar2(4000);
      6 
      7  begin
      8 
      9    v_xmlinfo := dbms_xslprocessor.read2clob('TEST_DIR', 'info.xml');
    10 
    11    select column_list
    12    into v_column_list
    13    from xmltable(
    14           'string-join(
    15              for $i in /INFO
    16              return concat($i/Column_Name, " ", $i/Data_Type)
    17            , ", "
    18            )'
    19           passing xmlparse(content v_xmlinfo)
    20           columns column_list varchar2(4000) path '.'
    21         ) ;
    22 
    23 
    24    v_ddl := replace(v_ddl, '#COLUMN_LIST#', v_column_list);
    25    --dbms_output.put_line(v_ddl);
    26 
    27    execute immediate v_ddl;
    28 
    29  end;
    30  /
    PL/SQL procedure successfully completed
    SQL> select * from mytable;
    COL1 COL2

  • Unable to create xml from xml schema

    JDeveloper 10.1.3 EA1
    I am unable to create a new xml file from an xml schema when the starting root element is a complex type (but it works with a simple type). It does not matter if the xml schema is registered within JDeveloper.
    Is this a bug or intended behaviour?
    Error message:
    ''XML Document from XML Schema creation could not be competed succesfully. Make sure the source schema is valid and that you have write permissions to the output directory."
    NB The xml schema is valid and I have write permissions on the specified directory.

    When I do not register this (or other) schema with JDeveloper, I can create an xml document from xml schema. However, when I register this schema and then try to generate an xml document (either from the registered xsd either from a filesystem xsd) with person as starting node it fails with the mentioned error. However, when I use city as starting node it is generated successfully.
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.amis.nl/demo/hrm"
    targetNamespace="http://www.amis.nl/demo/hrm"
    elementFormDefault="qualified">
    <xsd:element name="person">
    <xsd:annotation>
    <xsd:documentation>
    A sample complex element
    </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="length" type="xsd:int"/>
    <xsd:element name="weight" type="xsd:int" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="city" type="xsd:string">
    <xsd:annotation>
    <xsd:documentation>
    A sample simple element.
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    </xsd:schema>

  • Create xml from xml schema in java

    If can i create a xml document framework from xml schema in java, then i can fill the value in java?
    thanks

    An XML document may be created from an XML Schema with JAXB.

  • APEX  How do I create a Form based on a Database Table from other schema

    My APEX schema is WISEXP. I have a database table that resides in WISDW schema on the same database. I want to create Tabular form based on this table.
    I am not able to create a FORM based on the table from WISDW schema. I am able to create a FORM based on SQL though from this table in WISDW schema - but it does not do any action on Update/Insert rows.
    Appropriate Synonyms and grants are created. Is there a limitation or am I missing something? Please advise.
    thanks
    Rupen

    If Rupen is using 2.2 or 2.2.1, it is likely he is running into the bug described here: Re: Workspace to Schema Assignments
    In that case, it may be a necessary and sufficient workaround to assign the foreign schema to the workspace.
    Scott
    Message was edited by:
    sspadafo

  • How to create table from one to another schema?

    Hi,
    There is two schema A and B. schema A want to create table on Schema. which privilege we need to provide? how to create?
    thanks in advance
    Thanks,

    user2017273 wrote:
    Hi,
    There is two schema A and B. schema A want to create table on Schema. which privilege we need to provide? how to create?
    thanks in advance
    Thanks,When you give CREATE ANY TABLE TO A then user A will create table on any schema.But you can create stored PROCEDURE on schema B for creating table and give GRANT EXECUTE <PROC NAME> to A.

  • How to identify objects created by registering xml schema

    Hi Everyone,
    We are using Oracle 9i Rel2. I have registered an XML schema and I saw that there were several objects created for it table ,some types and a trigger . For some build purposes I want to exclude all of these objects which are associated with xml schema and should be able to drop and recreate the whole of oracle schema.
    I see the user_types table does not have any parameter to indicate that these are autogenerated or are different. In user_types they look like any other type that a user would have created. Do any of you know how to differentiate these types created by registering XML schemas from the normal types.
    Thanks for your help

    There is no way I know of to differentiate between a type created by Schema Registration and another Type. You can query the XML Schema itslef to get the Typenames it relies on.
    SQL> --
    SQL> SQL> select nvl(extractvalue
    2 (
    3 value(ct),
    4 '/xs:complexType/@name',
    5 'xmlns:xs="http://www.w3.org/2001/XMLSchema"
    6 xmlns:xdb="http://xmlns.oracle.com/xdb"'
    7 ),'Local Complex Type') COMPLEX_TYPE,
    8 extractvalue
    9 (
    10 value(ct),
    11 '/xs:complexType/@xdb:SQLType',
    12 'xmlns:xs="http://www.w3.org/2001/XMLSchema"
    13 xmlns:xdb="http://xmlns.oracle.com/xdb"'
    14 ) SQL_TYPE
    15 from user_xml_schemas,
    16 table
    17 (
    18 xmlsequence
    19 (
    20 extract
    21 (
    22 schema,
    23 '//xs:complexType',
    24 'xmlns:xs="http://www.w3.org/2001/XMLSchema"
    25 xmlns:xdb="http://xmlns.oracle.com/xdb"'
    26 )
    27 )
    28 ) ct
    29 /
    COMPLEX_TYPE
    SQL_TYPE
    PurchaseOrderType
    PURCHASEORDER_T
    LineItemsType
    LINEITEMS_T
    LineItemType
    LINEITEM_T
    COMPLEX_TYPE
    SQL_TYPE
    PartType
    PART_T
    ActionsType
    ACTIONS_T
    Local Complex Type
    ACTION_T
    COMPLEX_TYPE
    SQL_TYPE
    RejectionType
    REJECTION_T
    ShippingInstructionsType
    SHIPPING_INSTRUCTIONS_T
    Local Complex Type
    ROOT_T
    COMPLEX_TYPE
    SQL_TYPE
    Local Complex Type
    P222_T
    10 rows selected.
    SQL>

  • Accessing tables from different schema in CDS and AMDP

    Hi All,
    We are working on a HANA system which has several schema replicated from SAP R/3/Non SAP systems. We have BW 7.4 SP9 deployed on the same system and accessing the HANA views using latest BW virtual objects such as Open ODS , Composite providers etc.
    We are also using the BW system for few ABAP based data processing developments. We are currently accessing HANA views in ABAP programs by creating dictionary views based on external HANA views.
    We would like to however use recent possibilities of CDS and AMDP for better life cycle management of ABAP based solutions. The open SAP course on this subject was of very good help. Thanks a lot "open SAP team" for that. I would however have few open questions,
    As I understand AMDP gives us full flexibility of writing sql procedures within ABAP development environment, but can we access tables from different schema into AMDP code. If yes, then sample code would help.
    If the answer of first question is yes, then how do we manage transports between development and production systems where the schema names would be different. Currently in open HANA developments, such transport is manged using Schema mapping.
    Can I also use different schema tables in CDS views.
    We are updating few tables in ABAP dictionary after applying processing logic in ABAP program as detailed in step 1. With the new approach using AMDP, can we directly update database schema tables which will give us an optimization advantage.
    New ABAP HANA program interfaces are quite promising and we would like to use them to optimize many data intensive applications.
    Thanks & Regards,
    Anil

    Hi Anil,
    I can only answer 1. and 2. (and would be interested into 3. as well):
    1.
    Yes you can access tables from a different schema and also HANA views. In this case no 'using' is needed.
    Examples:
        RESULT = SELECT
        FROM
              "SAP_ECC"."T441V" AS t,
              "_SYS_BIC"."tmp.package/AFPO" AS a.
        WHERE ...
    2. In this case, if you need schema mapping: You could use HANA (projection) views which just forward to a different schema, also see example.
    Best regards,
    Christoph

  • How can we copy table from one schema to other schema

    Hi,
    I have create one table in one schema and i want to copy it to other schema.How we can copy table from one schema to other schema

    Hi,
    You can try something like this :-
    SQL> CONNECT SYS/SYS123@SERVER AS SYSDBA
    Connected.
    SQL> CREATE USER TEST_1 IDENTIFIED BY TEST_1;
    User created.
    SQL> CREATE USER TEST_2 IDENTIFIED BY TEST_2;
    User created.
    SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_1;
    Grant succeeded.
    SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_2;
    Grant succeeded.
    SQL> CONNECT TEST_1/TEST_1@SERVER
    Connected.
    SQL> CREATE TABLE TEST_COPY ( TEST_COL NUMBER );
    Table created.
    SQL> INSERT INTO TEST_COPY VALUES ( 1 );
    1 row created.
    SQL> INSERT INTO TEST_COPY VALUES ( 2 );
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> GRANT ALL ON TEST_COPY TO TEST_2;
    Grant succeeded.
    SQL>  CONNECT TEST_2/TEST_2@SERVER
    Connected.
    SQL> CREATE TABLE TEST_COPY AS SELECT * FROM TEST_1.TEST_COPY;
    Table created.
    SQL>  SELECT * FROM TEST_COPY;
      TEST_COL
             1
             2Regards,
    Sandeep

  • How do I move a table from one schema to another schema?

    How do I move a table from one schema to another schema?

    Grant access to the table from the source schema to destination schema.
      GRANT SELECT ON <TABLE_NAME> TO  <DESTINATION SCHEMA>A simple way would be to use CREATE Table with select syntax (in destination schema)
      CREATE TABLE <TABLE_NAME> AS SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME><li>However, you would be in <b><u>trouble when the table has index,constraints and triggers</u></b>.
    So you can better of grab the DDL statement of the table(and any additional components) andd then create the table in the destination schema.You can use SQL developer, Toad or Apex's Object browser for this.
    After the table is created, Insert the records using SELECT.
    INSERT INTO <TABLE_NAME> SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME>This question is discussed in great detail in this <b>AskTom thread</b>

  • XML Document from XML Schema Bug

    When an XML document is generated from an XML Schema the XML document does not have all the elements specified in the XML Schema. The XML document only has the root element.
    1. Register an XML Schema.
    2. Create an XML document with File>New>General>XML>XML Document from XML Schema. The "Generate only Required Elements" is unchecked.
    3. The XML document has only the root element.
    In JDeveloper 10.1.3 all the elements in the XML Schema get generated.

    Also, the component palette for the XML document generated from the XML Schema does not list all the elements in the XML Schema, only the root element is listed. Even if elements are specified as required in the XML Schema with minOccurs="1" and the "Generate only Required Elements" checkbox is selected only the root element gets generated.

  • Java code to generate XML File from XML Schema

    Hi I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
    Thankz in advance...

    JAXB has been available as an early release download for some time. There are also XML Binding packages available from Borland (JBuilder) and Castor. These tools create Java classes from a source document, xml,dtd etc. You can use these classes to marshal-unmarshal XML documents.
    Dave

  • Unable to take export from particular tables from the schema.

    i created a schema duser data is imported and now i want to take select tables from this schema.
    the tables are (partyhdr,partyaddressdtl,partycontactdtl,partydsdtl,partytdsexcludedtl,partycurrencydtl)
    D:\>EXP DUSER/LOG@ORCL FILE=20121221PARTY0228PM.DMP TABLES=PARTYHDR,PARTYADDRESS
    DTL,PARTYCONTACTDTL,PARTYTDSDTL,PARTYTDSEXCLUDEDTL,PARTYCURRENCYDTL;
    Export: Release 10.1.0.2.0 - Production on Fri Dec 21 14:30:21 2012
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Release 10.1.0.2.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export specified tables via Conventional Path ...
    . . exporting table PARTYHDR 19387 rows exported
    . . exporting table PARTYADDRESSDTL 20747 rows exported
    . . exporting table PARTYCONTACTDTL 226 rows exported
    . . exporting table PARTYTDSDTL 53 rows exported
    . . exporting table PARTYTDSEXCLUDEDTL 2 rows exported
    EXP-00011: DUSER.PARTYCURRENCYDTL; does not exist
    Export terminated successfully with warnings.
    as i check in schema partycurrencydtl table is their AND SHOWING RECORDS ALSO.
    SELECT OBJECT_TYPE FROM ALL_OBJECTS WHERE OWNER='DUSER'AND OBJECT_NAME='PARTYCURRENCYDTL';
    OBJECT_TYPE
    TABLE
    i am able understand why this particualr table is not exporting.
    Kindly help out.

    Dear hitqon,
    i am facing the below problem in export only,but their is no problem in import.
    Tablespace Details
    FILE-NAME TABLESPACE_NAME BYTES BLOCKS
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\AXPERT.DBF AXPERT 8589934592 1048576
    Version:
    WE ARE USING version
    Oracle Database 10g Release 10.1.0.2.0 - Production
    PL/SQL Release 10.1.0.2.0 - Production
    CORE     10.1.0.2.0     Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
    D:\>EXP CENTRAL/LOG@ORCL FILE=20121217CENTRAL0857AMFROMSERVER237.DMP
    Export: Release 10.1.0.2.0 - Production on Mon Dec 17 08:57:47 2012
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Release 10.1.0.2.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user CENTRAL
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user CENTRAL
    About to export CENTRAL's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    EXP-00056: ORACLE error 24324 encountered
    ORA-24324: service handle not initialized
    EXP-00056: ORACLE error 24324 encountered
    ORA-24324: service handle not initialized
    EXP-00000: Export terminated unsuccessfully
    Only export will be successfully,when we restarted the oracle services. How to over come this issue with out restarting the oracle services.
    Edited by: leen on Dec 28, 2012 12:43 AM

Maybe you are looking for

  • Where can I buy a new HEADPHONE JACK PCB for Zen Mic

    Hi, I have resoldered my headphone jack 3 times, but it has once again started malfunctioning. This time, I tried superglueing the jack to the board, but I think I have accidentilly short-circuited some of the board that the jack rests on with the gl

  • Timesheet formulas in numbers '09 with multiple Start/Stop columns

    Hi there you amazing people I am creating a timesheet which will have the date, start time, stop time but also 3/4 start/stop times for breaks. I would like to have formulas that allow me to enter as many or as little info as I need (sometimes there

  • Failed Leopard Installation, now Tiger wont boot

    I recently tried to install Leopard onto my MacBook and during installation an error message came up talking about running a preupgrade script and it told me to contact tech support. so i tried to quit the installation and reboot normally but when I

  • Premier pro decided to start crashing on start up, it just freezes.

    Dear all I hope you can help me, I have been using this latest version for a month now and it sudenly just sarted freezing on first image, not loading settings etc. I tried reinstalling I tried updating Nvidea I updated Java run as administratior run

  • Privileges problem with firmware installation

    IMac G3/333 OS 9.2 64 RAM,, 4-6G. I plan to add more memory and when reading about how to do it, the instructions said to be sure to upgrade to firmware 2.1 first. To check to see if I already have it, instructions suggested downloading the file that