Exporting XML schema

Hello All,
When i am trying to export xml schema of repository in console it is giving Unhandeld exception.
Can any one have any idea about it?
Thanks
Ankit

Hi Ankit,
Exception in Exporting XMl schema can occur due to the following reasons
1) If there are any Fatal error that cannot be repaired by MDM.
Check to see if there are any Fatal errors which cannot be repaired and see the log.If there is some field or lookup table error which you cannot fix then try deleting and recreating it and then recheck the rep.
2)The second possibilities could be the format is not saved as XML while exporting.Check it.
Hope it helps
Thanks & Regards
Simona
Edited by: Simona Pinto on Feb 27, 2008 10:50 PM

Similar Messages

  • Exp XML Schema (.xsd) to another schema on same instance

    Hello,
    I hope someone on this forum can help me or point me in the correct direction. I want to export a schema which contains a table (EQUIPMENT) which has a XMLType column defined against a registered .xsd. I would then like to restored this schema to another schema on the same instance (development instance) and also onto another db instance.
    I have been trying to do this with the help of "Chapter 30 Importing and Exporting XMLType Tables" from the Oracle® XML DB Developer's Guide
    10g Release 2 (10.2). Unfortunately without success. At the end of this message I have encluded sample error messages that I am receiving for creation of TYPES which is causing my import to fail.
    I cannot find any examples on the web on how to achieve an exp from one schema and imp in another either on the same instance or another one.
    DDL for my table is :
    create table EQUIPMENT
    ID number(7) not null,
    STATUSID number(7) not null,
    ATTRIBUTEDATA xmltype
    xmltype column ATTRIBUTEDATA xmlschema "EQUIPMENT.xsd" element EQUIPMENT_XML
    tablespace TBS_DATA1;
    Three test runs as follows:
    1. Using an empty u2 schema and I register the .xsd file. Then I try to import (FROMUSER - TOUSER imp mode) my dump file which leads to the following error:
    IMP-00017: following statement failed with ORACLE error 2304:
    "CREATE TYPE "MTA1440_T" TIMESTAMP '2007-11-14:14:42:16' OID '3EE57B10307317"
    "74E044080020C94102' AS OBJECT ("SYS_XDBPD$" "XDB"."XDB$RAW_LIST_T",""
    "ATTRIBUTE_01" NUMBER(38),"ATTRIBUTE_02" VARCHAR2(4000 CHAR),"ATTRIBUTE_03" "
    "VARCHAR2(4000 CHAR),"ATTRIBUTE_04" NUMBER(38),"ATTRIBUTE_05" VARCHAR2(4000 "
    "CHAR))FINAL INSTANTIABLE "
    IMP-00003: ORACLE error 2304 encountered
    NOTE: Even though import failed, I now see a new TYPE created called "MTA1526_T".
    2. If I try to create the TYPE as is from the error above I get the following error:
    SQL> CREATE TYPE MTA1440_T
    2 OID '3EE57B1030731774E044080020C94102'
    3 AS OBJECT (SYS_XDBPD$ XDB.XDB$RAW_LIST_T,
    4 ATTRIBUTE_01 NUMBER(38),
    5 ATTRIBUTE_02 VARCHAR2(4000 CHAR),
    6 ATTRIBUTE_03 VARCHAR2(4000 CHAR),
    7 ATTRIBUTE_04 NUMBER(38),
    8 ATTRIBUTE_05 VARCHAR2(4000 CHAR)) FINAL INSTANTIABLE;
    9 /
    CREATE TYPE MTA1440_T
    ERROR at line 1:
    ORA-02304: invalid object identifier literal
    3. So now I create the "MTA1440_T" type without the OID value and retry the import.
    IMP-00061: Warning: Object type "U2"."MTA1440_T" already exists with a different identifier
    "CREATE TYPE "MTA1440_T" TIMESTAMP '2007-11-14:14:42:16' OID '3EE57B10307317"
    "74E044080020C94102' AS OBJECT ("SYS_XDBPD$" "XDB"."XDB$RAW_LIST_T",""
    "ATTRIBUTE_01" NUMBER(38),"ATTRIBUTE_02" VARCHAR2(4000 CHAR),"ATTRIBUTE_03" "
    "VARCHAR2(4000 CHAR),"ATTRIBUTE_04" NUMBER(38),"ATTRIBUTE_05" VARCHAR2(4000 "
    "CHAR))FINAL INSTANTIABLE "
    Questions from me:
    A. Can I export TYPES only as suggested by the online documentation ?
    B. If importing onto same instance in another schema surely the OID for the TYPE will always fail - so then why can the import not create the required TYPE name itself during the import ?
    C. Should I use global TYPES and Register the .XSD globally for all schema's in an instance to validate against .. would this prevent me from having errors on an import ?
    I would appreciate any insight any one could provide me. Many thanks in advance.
    Dom

    Hi Guys,
    Thank you all for the replies. I am dissappointed to hear that in 10g does not support exp/imp of schema's structured XML. However I am a little confused or should I say mislead by the "" documentation I
    Here is an extract from chapter "30 - Importing and Exporting XMLType Tables" from the Oracle XML DB 10g Developers Guide documentation:
    "..... Oracle Database supports the import and export of XML schema-based XMLType tables. An XMLType table depends on the XML schema used to define it. Similarly the XML schema has dependencies on the SQL object types created or specified for it. Thus, exporting a user with XML schema-based XMLType tables, consists of the following steps:
    1. Exporting SQL Types During XML Schema Registration. As a part of the XML
    schema registration process .....
    2. Exporting XML Schemas. After all the types are exported, XML schemas are
    exported as XML text .....
    3. Exporting XML Tables. The next step is to export the tables. Export of each table consists of two steps:
    A. The table definition is exported as a part of the CREATE TABLE statement....
    B. The data in the table is exported as XML text. Note that data for out-of-line
    tables is.....
    From this documentation I was under the impression that the exp/imp of XML Schema-Based XMLType Tables was supported.
    Regarding the backup mechanism/strategy for database schema's containing tables with Schema-Based XMLTypes what would you recommend the best online backup method to use - tablespace backups ?
    What I need to be able to do in day-to-day work is to have the ability to be able to take a copy of a customers UAT or production database schema and apply it to a dev or test db instance here for bug testing etc. Do you have any advice on best to achieve this without the use of an exp/imp when the schema will contain Schema-Based XMLType tables.
    Thank you all for your assistance so far.

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How can i export a XML Schema

    Hi!
    I'm a newbie and i've export a XML file but how can i export a XML Schema from a database?
    With best regards
    Nicole

    Hi Nicole
    I never seen a tool/package/... in the DB that generates the XML Schema for a whole DB schema.
    Anyway you can find some generation capabilities in:
    - package DBMS_XMLSCHEMA (method GENERATESCHEMA)
    - XDK's utility XSU (option -withSchema)
    Chris

  • Can't i use xml schema and oledb data connection at the same time?

    Hello to all and thanks in advance.I use xml schema and oledb data connection at the same time and the problem is that when I try to export the xml, the outcome is not what i expect.Without the oledb connection everything is ok (just the schema) and the xml complies with the schema.
    Can't i have both schema and oledb and the exported xml be as i want it?

    You can use both at the same time, but not gor Internet access if that's what you're asking.
    Now there is a thing called Link Aggregation, which combines a number of interfaces for speed/redundancy, but it really only works locally, and then only with ALL special equipment in the route, and most likely OSX Server involved.
    Sorry.

  • Adapter Engine XML Schema Validation Error Surpression

    We recently developed a number of web services that are called by 3rd parties outside our network. The web service request once made is picked up by a Web Dispatcher which then forwards the request to the de-central adapter. Both of these components reside within within a DMZ.
    We have, as an additional security measure made use of the new Adapter Engine XML Schema validation available with PI 7.1, to ensure that the payload of incomming messages is checked to ensure that it is a known structure.
    Now here is my problem, we recently had these services penetration tested by a 3rd party to ensure that they were secure and whilst the report was very good showing no major weaknesses they did pickup on a couple of items including that the fact that if the XSD to be used during payload message validation cannot be found an 'ADAPTER.JAVA_EXCEPTION' is returned to the web service consumer that highlights the path details of where the XSD should be (but could not be found).
    This was viewed as useful to an attacker for a number of reasons:
    1. Feedback in SQL injection attempts via verbatim DB error messages greatly improves attacker efficiency
    2. Path information is useful to the attacker for OS fingerprinting, directory traversal attempts
    3. Other miscellaneous stack trace information is useful to an attacker to understand how the application works
    Is there anyway this can be surpressed so that the adapter does not show this information in the returned error message - see example message below ?
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: Schema MaintenanceOrderByIDQuery_sync.xsd not found in E:\usr\sap\DPI\DVEBMGS40\j2ee\cluster\server0\validation\schema\f7cd3b50a87411e08830ed9d0af006a5\urnstw.contractor.wfm.workorderretrieval\MaintenanceOrderByIDQueryRequest_Out\httpsap.comxiSAPGlobal20~Global\MaintenanceOrderByIDQuery_sync.xsd  (validation\schema)
         at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1041)
         at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: Schema Schema1.xsd not found in E:\usr\sap\DPI\DVEBMGS40\j2ee\cluster\server0\validation\schema\f7cd3b50a87411e08830ed9d0af006a5\urnstw.contractor.wfm.workorderretrieval\MaintenanceOrderByIDQueryRequest_Out\httpsap.comxiEA-APPLSEGlobal\Schema1.xsd  (validation\schema)
         at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1041)

    Hi,
    We are having the same problem, so you are not alone.
    I had an extensive call with Azure premium support and we where able to determine that:
    - Nothing is missing or in the wrong place in my exported .xml file.
    - Any changes to the VNET's using the web gui interface of https://manage.windowsazure.com is not possible when you have dns servers and use an gateway
    - You can download the .xml configuration file of the network and make manual changes to it, then import it again , to add/remove dns servers and or subnet's. 
    I am currently waiting for an solution,  i have let them lower the urgency from A to B (because i can make changes trough xml) and responded to the next support contact (saying he will continue with the issue) that the problems seems to be with azure and
    he should speak with the previous person helping me.  I have not heard from Azure support since.
    SR Number:115021812414226
    Open on:02/18/2015 09:28
    > There are networks with and without gateways created and the issue is happening on all the networks.
    > We are unable to add or remove the DNS servers. (by web gui)
    > Also not able to add or remove any subnets. (by web gui)
    > Every time the error message is same but the DNS server name is different. (from another subnet then the one we are changing)
    > Created CRI- 3405931, but they said it will need WATS team.
    > Confirmed with WATS engineer as well and moving case to WATS.
    > Cx agreed to lower the severity of the case as they are able to make changes through the network configuration file.
    > But they still want to get this resolved soon.
    > Agreed and dropped off, reducing severity to B 24/7.
    I hope microsoft is going to resolve this soon, as i do not want to edit my xml for little things like adding a subnet all the time. I have requested an status update in the issue.
    Should anyone have more information on this, please share it here.

  • XML Schema validation error in network configuration. Missing DnsRef

    When ever we try to make changes to a Virtual network we receive
    XML Schema validation
    error in network configuration. Missing DnsRef
    We can't make any changes to the Virtual network.
    The DNS ref exists as well.
    Considering exporting network config and re-importing however we have a lot of networks configured and want to be sure this is the correct way to proceed.
    Any feedback much appreciated.
    Thanks

    Hi,
    We are having the same problem, so you are not alone.
    I had an extensive call with Azure premium support and we where able to determine that:
    - Nothing is missing or in the wrong place in my exported .xml file.
    - Any changes to the VNET's using the web gui interface of https://manage.windowsazure.com is not possible when you have dns servers and use an gateway
    - You can download the .xml configuration file of the network and make manual changes to it, then import it again , to add/remove dns servers and or subnet's. 
    I am currently waiting for an solution,  i have let them lower the urgency from A to B (because i can make changes trough xml) and responded to the next support contact (saying he will continue with the issue) that the problems seems to be with azure and
    he should speak with the previous person helping me.  I have not heard from Azure support since.
    SR Number:115021812414226
    Open on:02/18/2015 09:28
    > There are networks with and without gateways created and the issue is happening on all the networks.
    > We are unable to add or remove the DNS servers. (by web gui)
    > Also not able to add or remove any subnets. (by web gui)
    > Every time the error message is same but the DNS server name is different. (from another subnet then the one we are changing)
    > Created CRI- 3405931, but they said it will need WATS team.
    > Confirmed with WATS engineer as well and moving case to WATS.
    > Cx agreed to lower the severity of the case as they are able to make changes through the network configuration file.
    > But they still want to get this resolved soon.
    > Agreed and dropped off, reducing severity to B 24/7.
    I hope microsoft is going to resolve this soon, as i do not want to edit my xml for little things like adding a subnet all the time. I have requested an status update in the issue.
    Should anyone have more information on this, please share it here.

  • XML Schemas embedded in Forms TIPS

    I have been having a lot of trouble with embedding an XML Schema into my form to be used with a Workflow. The first problem appears to be that if you create a form and the very "FIRST" dataconnection is not to your schema, the workflow designer will not see it. The only way around this was to manually edit the XML behind the form so that it was the first connection (not fun).
    The other issue I have makes sense. I had my schema in the same folder as my form on my local machine, so when I bound my schema to the folder, it just put ./schema.xsd as the location of the schema. When I loaded the form into the Form Manager, I also uploaded the schema into the same folder. When I made a change to my schema on my local copy, I forgot to change the copy I had put in the Form Manager, so even though I was making the change to my form and re-saving the form again with the check-box to embed the schema, the workflow designer never saw it. When you export a workflow, there is no reference to the schema, so it must just look at the form variable that you defined.

    Hi Dave
    In my experience, the "embed" option does actually work. However, you need to restart Workflow Designer if you change the embedded schema, because WFD caches the schema, and will not refresh it if it's changed.
    As far as I'm aware, WF will not follow the link to a non-embedded schema.
    Howard
    http://www.avoka.com

  • Xml Schema xs:choice element in dynamic forms

    Hi all,
    I'm developing an xml schema for creating the data model of a form. I connect LC Designer-8.2ES to this schema.
    In the schema I do have mutually exclusive elements implemented with a <xs:choice> element. A very comparable situation was described in this thread : http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=123 in 2007.
    The problem, as related in this thread, is that only the very first element of the choice is displayed in the generated pdf and I don't know how to display all parts as a real choice.  So what's the best way to let user fill in one part or the other of the choice?
    Does it need to be implemented with scripting (xfa...myform.presence = visible | hidden)?
    I want that only the filled element of the choice be exported from the form, the resulting xml being valid according the schema. I seems to work, but as of now, only for the first element...
    BTW, what's the best document describing what parts of xml schema are usable in dynamic XFA forms?  Is it 100% compatible?  I've observed that the constraints in my schema are not validated in the forms.  Shouldn't xml schema generate validating script in LCD? Does it apply for a subset of xml schema?
    Thanks in advance,
    jgrd

    Hi all,
    finally, I understand that we cannot use "anonymous" sequences neither in LiveCycle (like this following example where person might have many email)
        <xs:element name="person">
            <xs:complexType>
                <xs:sequence maxOccurs="unbounded">
                    <xs:element name="email" type="xs:string"/>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
    valid instance with 3 emails :
    <person xsi:noNamespaceSchemaLocation="Untitled39.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <email>String</email>
        <email>String</email>
        <email>String</email>
    </person>
    In LC Designer, element with same name (<email>) are not used AFAK.  Maybe I'm wrong?
    The same hands with <xs:choice> where only first choice appears in pdf although being present in LC Designer.
    As for sequences, my idea is to produce <email1>, <email2>, etc. in a static schema, before connecting schema's data to LCD.
    Hope someone can show up and tell it's the right way or not.
    Regards
    jgrd

  • Synchonous webservice call is missing xml schema information

    Hello,
    We migrated an interface to a new PI server. All repository objects were exported and imported. The interfaces is working fine on old PI environment but on new environment we get an error:
    From an Integration Process we do a call to a synchronous webservice via a soap receiver communication channel.
    In the old envrionment we get response back with right message content and:
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    In the new environment we get response back with right message content but without:
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    The first message mapping needs this XMLSchema information and throws an error:
    RuntimeException
    during appliction Java mapping
    com/sap/xi/tf/_______
    Thrown:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: The prefix
    "xsi" for attribute "xsi:type" associated with an element
    type "ns0:responseOut" is not bound.
    I expect this error is thrown because this XMLSchema information is missing in webservice response:
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    Does anybody know why this information could be missing?
    I also used SOAP UI from the new PI server to call same synchronous webservice and then I do get this XML Schema information back.
    Many thanks for your help!

    Hi ,
    Go through below links for sol.
    PI 7.11: Prefix for attribute is bound
    &amp;lt;element xsi:type=&quot;T3&quot; attribute=&quot;USD&quot;&amp;gt;1.... | SCN
    Regards
    Venkat

  • Updated xml schema not reflected in Import Manager and Syndicator

    Hi all,
    We have a perfectly running MDM scenario using custom XML schema for import and syndication. I have now updated the schema by adding a couple of fields to the schema and uploaded the new schema to MDM using Console - Admin - XML Schemas, and we have added the same fields in the repository. However, when I open Import Manager or Syndicator the xml schema is not updated, it is still showing the old version without the new fields. The fields added to the repository show up just fine.
    I have searched around the forum and it suggests I actually have to re-create manually all mappings with the new schema?! I cannot believe this is really necessary and would mean massive amounts of work.
    I have tried to export old maps and create new map with new schema. Then the new fields show up, but when I import the previously exported map the old schema returns and the new fields disappear.
    Any help with this seemingly very odd behavior is very much appreciated!
    Thanks,
    Kenneth

    Hi Kenneth, Aamir
    the statement
    > Uploading the XML schema in Console is mainly a placeholder, it not not synced with Import Manager or Syndicator schema at runtime.
    is not completely true. You have to differentiate the MDM version and the tools:
    MDM 7.1 Import Manager: uses the actual XSD of MDM Console
    MDM 7.1 Syndicator: stores the XSD as part of the map and disregards the one in MDM Console
    MDM 5.5 Import Manager: stores the XSD as part of the map and disregards the one in MDM Console
    MDM 5.5 Syndicator: stores the XSD as part of the map and disregards the one in MDM Console
    Best regards
    Michael

  • Query resultset to xml using java and XML schema

    Hi,
    I query data using JDBC and I want to store it to an XML file which has a well defined XML schema. I searched a lot in the forum but did not find an answer. Please guide me to create this program.
    I have managed to use JDBC to get result set but I do not know how to export is to XML using XSD and Java.
    Please help.
    Regards,
    Ravi

    I have managed to use JDBC to get result set but I do
    not know how to export is to XML using XSD and Java.Export using XSD? Schemas are for validation.
    Iterate through the result set, and build up the XML stream by creating an entry for each row.
    Another way to do it is to load the ResultSet into a Java object and serialize that to XML using something like XStream.
    %

  • Errors when importing 10.2.0.4  Solaris xml schema into 11g Linux

    We are migrating our database from 10g on Solaris to 11g on Linux. Used expdt for full DB but getting this error - (ORA-39139: Data Pump does not support XMLSchema objects. TABLE_DATA:"SPRUBATCH"."ACCNT_XML_STG_50" will be skipped.) for the schema containing XML. So used exp for this particular schema. But Getting the following errors during import:
    IMP-00058: ORACLE error 604 encountered
    ORA-00604: error occurred at recursive SQL level 1
    ORA-22814: attribute or element value is larger than specified in type
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 72
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 33
    ORA-06512: at line 1
    . . importing table             "ACCNT_XML_ALL_52"ORA-24550: signal received: [si_signo=11] [si_errno=0] [si_code=1] [si_int=0] [si_ptr=0x7000000000]
    [si_addr=0x1043f94e8]
    Memory fault
    Should we deinstall 11g XDB and bring in 10g XDB ? It seems like the "XDB.DBMS_XMLSCHEMA" has changed from 10 to 11?
    Or there is upgrade script needs to be run?
    Who has done this upgrade before and appreciate if you can share your experience with us.
    Thanks!

    Hi Srini,
    here is the export log:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Oracle Label Security, Data Mining and Real Application Testing options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8MSWIN1252 character set (possible charset conversion)
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user SPRUBATCH
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user SPRUBATCH
    About to export SPRUBATCH's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export SPRUBATCH's tables via Conventional Path ...
    . . exporting table ACCNT_XML_ALL_50 0 rows exported
    . . exporting table ACCNT_XML_ALL_51 0 rows exported
    . . exporting table ACCNT_XML_ALL_52 1712 rows exported
    . . exporting table ACCNT_XML_STG_50 0 rows exported
    . . exporting table ACCNT_XML_STG_51 0 rows exported
    . . exporting table ACCNT_XML_STG_52 1 rows exported
    . . exporting table AsOfDate1714_TAB 0 rows exported
    . . exporting table AsOfDate1736_TAB 0 rows exported
    . . exporting table BRNCH_XML_ALL_50 0 rows exported
    . . exporting table BRNCH_XML_ALL_51 0 rows exported
    . . exporting table BRNCH_XML_ALL_52 99 rows exported
    . . exporting table BRNCH_XML_STG_50 0 rows exported
    . . exporting table BRNCH_XML_STG_51 0 rows exported
    . . exporting table BRNCH_XML_STG_52 1 rows exported
    . . exporting table CNSTR_XCPTN_TBL 2 rows exported
    EXP-00091: Exporting questionable statistics.
    . . exporting table ChangeDatestamp1730_TAB 0 rows exported
    . . exporting table ChangeDatestamp1756_TAB 0 rows exported
    . . exporting table ChangedBy1731_TAB 0 rows exported
    . . exporting table ChangedBy1757_TAB 0 rows exported
    . . exporting table Comments1715_TAB 0 rows exported
    . . exporting table ComplaintsFromDate1716_TAB 0 rows exported
    . . exporting table ComplaintsToDate1717_TAB 0 rows exported
    . . exporting table DueDate1718_TAB 0 rows exported
    . . exporting table File1742_TAB 0 rows exported
    . . exporting table FileName1738_TAB 0 rows exported
    . . exporting table FileNumber1741_TAB 0 rows exported
    . . exporting table FileReceivedDate1740_TAB 0 rows exported
    . . exporting table FileSize1739_TAB 0 rows exported
    . . exporting table FirmCrdNumber1720_TAB 0 rows exported
    . . exporting table FirmCrdNumber1743_TAB 0 rows exported
    . . exporting table FirmDeletedFiles1746_TAB 0 rows exported
    . . exporting table FirmName1721_TAB 0 rows exported
    . . exporting table FirmName1747_TAB 0 rows exported
    . . exporting table MatterID1719_TAB 0 rows exported
    . . exporting table MsgType1722_TAB 0 rows exported
    . . exporting table MsgType1748_TAB 0 rows exported
    . . exporting table NewStatus1732_TAB 0 rows exported
    . . exporting table NewStatus1758_TAB 0 rows exported
    . . exporting table PublishDate1723_TAB 0 rows exported
    . . exporting table RejectComment1733_TAB 0 rows exported
    . . exporting table RejectComment1759_TAB 0 rows exported
    . . exporting table RequestGroupId1724_TAB 0 rows exported
    . . exporting table RequestGroupId1749_TAB 0 rows exported
    . . exporting table RequestId1725_TAB 0 rows exported
    . . exporting table RequestId1734_TAB 0 rows exported
    . . exporting table RequestId1750_TAB 0 rows exported
    . . exporting table RequestId1760_TAB 0 rows exported
    . . exporting table RequestStatus1726_TAB 0 rows exported
    . . exporting table RequestType1727_TAB 0 rows exported
    . . exporting table RequestType1751_TAB 0 rows exported
    . . exporting table SRM_RQ_XML_ALL 50 rows exported
    . . exporting table SRM_RQ_XML_STG 1 rows exported
    . . exporting table SRM_SST_SC_XML_ALL 43 rows exported
    . . exporting table SRM_SST_SC_XML_STG 1 rows exported
    . . exporting table SRM_XF_XML_ALL 83 rows exported
    . . exporting table SRM_XF_XML_STG 1 rows exported
    . . exporting table SST_SRM_SC_XML_STG 0 rows exported
    . . exporting table SchemaVersion1728_TAB 0 rows exported
    . . exporting table Status1755_TAB 0 rows exported
    . . exporting table ValidFiles1754_TAB 0 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully with warnings.
    And import log:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export file created by EXPORT:V10.02.01 via conventional path
    Warning: the objects were exported by SPRUBATCH, not by you
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8MSWIN1252 character set (possible charset conversion)
    . importing SPRUBATCH's objects into SPRUBATCH
    IMP-00058: ORACLE error 604 encountered
    ORA-00604: error occurred at recursive SQL level 1
    ORA-22814: attribute or element value is larger than specified in type
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 72
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 33
    ORA-06512: at line 1
    IMP-00058: ORACLE error 604 encountered
    ORA-00604: error occurred at recursive SQL level 1
    ORA-22814: attribute or element value is larger than specified in type
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 72
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 33
    ORA-06512: at line 1
    IMP-00058: ORACLE error 604 encountered
    ORA-00604: error occurred at recursive SQL level 1
    ORA-22814: attribute or element value is larger than specified in type
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 72
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 33

  • OLEDB Dataconnection and XML Schema

    Hi,
    I create a form with fields binding with a OLEDB dataconnection.
    It's work, I can request my database and store my data.
    I want to be able to can access these field in a process (with workbench ES).
    If I bind fields with a xml schema I can access to them and manipulate them but I can't bind them with a OLEDB dataconnection and a xml schema.
    How can I do this ?
    Thank you and I hope you could understand me :D

    Yes, I have a DB but I am already working with the XML file. The Data Connection that I am using has this config:<br /><br />XML Schema<br />Schema file: contents.xsd<br />Options: <contents>, no checkboxes activated<br /><br />My solution is supposed to run online in a LAMP env, when the user clicks a Print Button, I run a script to generate the XML from the DB, and then I open a new page with the PDF form that I've built in LC Designer (8.0) with the generated data. I don't need data navigation, it's a summary report that will be printed.<br /><br />So, while developing, I've saved a populated XML locally and keep trying to open the PDF file with the data without success. Same if I save the 3 files (xsd, xml and pdf form) in the server and try to open the PDF through browser. But, as I said before, when previewing it in LC, I see the form exactly as I want.<br />I did what you mentioned (import data in Adobe Reader), and it worked partially, since the repeating row just showed one record.<br /><br />As I can see, I need some kind of script in the PDF form that, when it's loaded, the data (XML file) is imported. By now, I am trying to do it locally and think this should work. Then, for the online solution, I thought that I would need something running on the server, and based on what you said, I will need LC Forms, is that correct?<br /><br />Hope things are clearer now. Answering to your question, my form is binded globally. The repeating row is connected (Default Binding) to > $record.content[*] < and each field in the row connected to an item from the XSD definition. No Import/Export Bindings in use.<br /><br />Thanks for the help so far! :)

  • EXPORT.XML file used during Java export?

    Hi all !!!
    I'm doing an export of a Solution Manager 7.01 system. This system also has a CPS (redwood) installation in thev database java schema.
    What happened was that not all tables listed in the EXPORT.XML existed, so I got a failure.
    I then "undeployed" CPS, and deleted all CPS files from the database (JCS_). However, when I restarted (or started from the beginning) I got the same error. The EXPORT.XML (in the export java directory) still have all the JCS_ tables listed.
    This file is recreated during every restart, so I tested to create a script which override this file with one without the JCS_* tables all the time (more than 100 times a minute). But the export still has the JCS_* tables in the list during export.
    So is the EXPORT.XML even used during export, or does it keep the values in memory already when the file is created.
    And a second question is: From where does the input to the EXPORT.XML file come from? It's not from the database since there is not a trace of any JCS_* tables in the database however ju list information from the DB2 dictionary (DB2 9.5.2)
    So can anyone tell me how to skip these tables from the export?
    // Claes

    Hello Claes,
    is this system (CPS) a copy or migration of other system ? it happens sometimes that old schema tables remains in the system.
    regards, Javier

Maybe you are looking for

  • How can I get a screw kit for my SL510?

    Hey guys--your manual says that the hard drive is a customer replaceable unit. That makes sense. Your manual also cautions people repairing a machine not to re-use screws and says to use a new screw every time. Obviously, to get at my hard drive to r

  • 3GB used in a day?

    Hey, just wanted to ask something, or try and figure out how this happened. I know I'm getting near my usage for the month, well I had 9.2GB after Thursday 26th and yesterday (Friday 27) I was trying not to use much in order to have some usage left o

  • Multiple Libraries problem

    So I am trying to separate some of my images into different libraries to relieve some space on my hard drive. I tried to export an album as a new library to a Western Digital ext. HD, but I got an error message that said "The library could not be cre

  • Urgent: Table- Column Properties

    Hi all We have a table in our view and 5 GroupedColumns in that table. If the text length is more the horizontal scroll bar appears. But the text does not wrap within the text area in each column. It displays as one long line. So sometimes only the f

  • How do I unblock Blocked Plug-ins?

    I just downloaded and installed the latest version of Safari.  Now during some internet searches, the message "Blocked Plug-in" appears on my screen.  This never happened before I installed the new version of Safari.  How can I unblock all plug-ins?