CreateResource and CreateSchema, big XML and XSD with plsql...

Hello

I am new to XML... but I feel really stuck!
We are in gr 10 2 using PLSQL (not java)

We receive the XMLs files we can insert into a table (* all_my_xml * with 2 columns xmlName varchar2 (50), xml XMLTYPE).
We can query XML data using SELECT (for example):
Select t1.resourceId, t1.lastName, t1.firstname
of sipmo_xml t
*, xmltable ('* ' in passing t.xml.extract('WORKBENCH_PROJECT/Resources/*') *.
path of resourceId varchar2 columns (20) "@resourceId".
*, lastName varchar2 (70) path "@lastName."
*, firstName varchar2 (70) path "@firstName."
*) t1 *.
WHERE xmlName = "myfilename.xml";

Everything seems perfect, except that it is very slow when the XML is great.


Some suggestions are on the registration of a schema...
Here I'm stuck... because it is not clear in my mind (and my English is so poor that it is difficult to read all of the literature in English!)
(I read the XML DB Developer's guide)

I downloaded a (Stylus Studio) tools to build the XSD file.

(1) will I load the file XSD in the same way that I load the XML in the all_my_xml with the XMLTYPE table?
(2) I have CreateResource before CreateSchema?
with createresource, it returns FALSE (I don't understand why):
IF DBMS_XDB. CREATERESOURCE ("projet.xsd"
+ XMLTYPE (BFILENAME('XSD_DIR','projet.xsd'), NLS_CHARSET_ID ('AL32UTF8')) +.
+)+
THEN...

and createSchema is only successfully created:
DBMS_XMLSCHEMA. REGISTERSCHEMA)
SCHEMAURL = > 'http://www.oracle.com/xsd/projet.xsd '.
, SCHEMADOC = > BFILENAME ('XSD_DIR', 'projet.xsd')
(, CSID = > NLS_CHARSET_ID ('AL32UTF8'));

(3) do I write the XSD reference in the XML file?
If Yes... because we receive XML files from another, we are not supposed to change...
So, what is the command?

(4) if I want to create an index on the XML file that is saved in an XMLTYPE at my table all_my_xml... (includes many different types of XMLs)
> > Can I do?
> > I feel I need to load only a SINGLE file xml in a table containing a column of XMLTYPE... correct?

(5) there are many tutorials and examples I've seen, but it seems that we do not follow these!
Can you say that our approach is not one that fits?

(6) is there a tutorial or an example of code that is a XML data querying, linked to a schema?

I undestand that this post is very long, with a lot of questions...
but I hope that someone will be able to advise us and provide assistance.

Thanks in advance,
Olivier
1) shall I load the XSD file in the same way that I load the XML in table all_my_xml with the XMLTYPE ? 

2) Do I have to CreateResource before CreateSchema ? 

Not necessary, you will need to present XML schema as an XMLType, CLOB, and BFILE object in order to move to registerSchema. In general, the XML schema cannot be hard coded in your SQL script due to the upper limit of 32 K in PL/SQL Script.

with createresource, it returns FALSE (I dont understand why) :

IF DBMS_XDB.CREATERESOURCE( 'projet.xsd'
, XMLTYPE( BFILENAME('XSD_DIR','projet.xsd'), NLS_CHARSET_ID('AL32UTF8'))
)

Probably because you don't have permission to create a resource called "project.xsd". Try ' / public/project.xsd '.

3) Do I have to write the reference of the XSD into the XML file ?

No, you nee a benchmark for the URL schema, convention is that a form of URL. However we never access. The only time where it's important that they match, is if the document contains an attribute noNamespaceSchemaLocation or schemaLocation.

4) If I want to create a index on the XML saved as a XMLTYPE into my table all_my_xml ... (that includes many different type of XMLs) Can I do that ?

Yes there are a lot of examples. If XML schema is complex with several nested collections, you will need to use a VARRAY according to storage model to get performance and indexing. There are examples in the forum. Look for the terms VARRAY or STORE AS TABLE to find examples

I have the impression that I should load only ONE xml file into a table with one column XMLTYPE ... correct ?

Incorrect answer. You can store many documents in the table. Each document will become a line

6) Is there a tutorial or example of code that is querying data of a XML, linked to a schema ?

Does not change the syntax.

Tags: Database

Similar Questions

  • Cluster SOA with BigIP as HTTPFrontEnd - deployed WSDL and XSD composite files are not accessible

    Hello

    In our SOA environment, we have an architecture like that.

    We have a Cluster with two nodes of SOA. Each node is to have an OHS. There's a BIGIP which is the HTTP of SOA Cluster interface.

    BIG IP load balancing and HTTP Port 80 and HTTPS 443 port.

    All access to BIGIP is over HTTPS. With HTTP, we are not able to access the artifacts.

    Here, we are faced with a problem.

    All WSDL, XSD, deployed on the server files have as - ends http://bigiphost:80 / soainfra / .....

    These end points are not accessible, and we have to manually convert URLS to https://bigiphost:443 / soainfra / ... for testing.

    Main question is coming when we're trying to raise our composites to RJO. Because the WSDL and XSD files is seen port http endpoints and they are not accessible from the harvester tool. Where a failure.

    Can you please how do ensure that all composite end point and endpoint WSDL are generated as Https://bigiphost:443 instead of HTTP Port.

    I tried two options

    (a) setting serverURL to https://bigiphost:443

    This option modifies all the endpoints and the localities of XSD in a wsdl to the https address document. but it does not composite point endpoint and endpoint WSDL. They are still Http. so not accessible through harvester or browser.

    (b) setting HttpsServerURL to https://bigiphost:443

    It makes a difference.

    Please suggest how can I convert a composite and endpoint WSDL (protocol header) end point to https://bigipport:443 instead of http:bigipport:80

    Thank you

    Jessyca

    Finally got the fix.

    Changed the HTTPServerURL property in the EM Console > SOA-INFRA > SOA Administration > common properties > more advanced properties

    Https://bigipport:443the value HTTPServerURL.

    This helped and all the endpoints and composite WSDL endpoints have been generated with https://bigipport:443 instead of http.

    So overall, I used two properties.

    (a) a HTTPServerURL - change the endpoint WSDL and the composite end.

    (b) ServerURL - change endpoints in the wsdl file with the value set in the present.

    Thank you

  • Problem with ECS and XSD

    Hi gurus B2B.
    We are facing the problem with ECS and last 2 weeks XSD files, we followed measures

    1 created an ECS file in document editor version 11 g: 6.6.0
    2 files ECS consists only from segments ST and SE
    Ex: ST
    BCH
    HEART
    REF
    BY - Exclude
    TAX - Exclude
    ...
    .....
    ....
    ....
    IS
    3: file ECS from a file (File-> export-> Oracle B2B) XSD in document ediotr

    4. we have imported an ECS and XSD file in console B2B (documents - file ECS docdef-transaction set) and an XSD file

    5. we have tested a single file of manually, we face below error:

    B2B-51507 error code
    Error Description Machine Info: Description of the (usmtnz - dinfap19.dev.emrsn.org): payload validation error.
    ERROR_LEVEL_COLLABORATION error level
    Severity of the error
    Error text

    and a few times it shows load Guideline error or just simply

    Please help us solve this problem

    Concerning

    You can validate EDI XML with XSD is.

    1 can I use 10 g ECS file and XSD file in 11 G

    You need to upgrade using Oracle Document B2B Publisher (Migrator).

    Error, error short text: the item includes all the important data

    Make sure that the payload is encoded in UTF - 8. B2B Oracle only works with UTF-8 encoding.

    You can discuss a case with support and/or move files (b2b export and test data) to my id.

    Kind regards
    Anuj

  • Incorporation of data inline HTML in XML using the & lt; MX:XML & gt; tag with & amp; Lt; and & amp; GT;

    What is best practices for integrating HTML in the tag < mx:XML >? Programmatically, I can successfully implement this:

    [Bindable]
    public var xmlDP:XML = < data component = "" & lt; "/ >;"

    However, I get the following error if I try to keep the same data row in a mx:XML tag, as such:

    < mx:XML id = "xmlDP" >
    < data component = "" & lt; "/ >"
    < / mx:XML >

    Error #1095: XML parser failure: attribute not completed.

    If I modify as follows the MXML tag, it works fine:

    < mx:XML id = "xmlDP" >
    < data component = "& amp; Lt; "/ >
    < / mx:XML >

    Unfortunately, I also can I supply not the tag mx:XML to a XML file which uses & lt; or & gt; the codes, because it gives the same results. This leads me to believe that the < mx:XML > tag does not support special character codes for < and >, but why?

    Either way, this code also gives an error 1095:

    < mx:XML id = "xmlDP" >
    < data component = "" & #0060; "/ >"
    < / mx:XML >

    A problem with my data source because it is not hand typed in Flex, and the XML standard supports the & lt; and & gt; codes. I tried a string of HTML complete, as shown below, but it also generates the error:

    < mx:XML id = "xmlDP" >
    < data component = "& lt; b & gt; Test & lt; /b & gt; "/ >
    < / mx:XML >

    Thank you very much for any input that you may have!

    This:
    "has the same problem, the.<" gets="" parsed="" by="" the="" mxml="" parser="" long="" before="" the="" "escape"="" has="" any="" meaning="" at="">

    Your last example XMLDeclaration com Tower has come full circle: it is him even that you posted in your first post and still has the same problem. This is not a bug in the compiler.

    I advise the encoding of special characters using the form URL (%), then use escape() to decode the attribute values.

    Tracy

  • How to build custom EDI .ecs and .xsd to a file

    B2B gurus,

    I have a question. I have with me the file with an extension of steffen42. This isn't a standard EDI file. So, I need to create this file steffen42-based .ecs and .xsd files. How to do this in the Document B2B Oracle Editor. I tried going on the card manufacturer, but it gives an error. can you help me please on this.

    Thank you
    NGO

    Hello, NGO,

    Use the SpecGenerator tool in B2B Document Editor to generate ecs from a data file. With the help of ecs you can generate XSD later.

    Don't forget, it's the same risks as the generation XSD from an XML where it will be very specific to the structure of the data file used to generate the spec. Ideally, you should follow the opposite approach that is firstly set the ecs according to your requirement and then to generate data to test out of it.

    Kind regards
    Anuj

  • Tablespace name starting with o1_mf and ending with cb58lw2z_.dbf?

    Hi all

    I can't figgure where in the database creation process how all tablespaces being named for example, beginning with o1_mf and ending with cb58lw2z_.dbf:

    DB_1 > select name from v$ datafile;

    NAME
    --------------------------------------------------------------------------------
    /U01/shared_data/oradata/DB/datafile/o1_mf_system_cb58lw2z_.dbf
    /U01/shared_data/oradata/DB/datafile/o1_mf_undotbs3_cb58q00g_.dbf
    /U01/shared_data/oradata/DB/datafile/o1_mf_sysaux_cb58krqh_.dbf
    /U01/shared_data/oradata/DB/datafile/o1_mf_undotbs1_cb58nbnn_.dbf
    /U01/shared_data/oradata/DB/datafile/o1_mf_undotbs2_cb58pznk_.dbf
    .
    .
    .
    /U01/shared_data/oradata/DB/datafile/o1_mf_index_cb58pznk_.dbf

    Not that it's a big problem, I would like to know how this happens.  Example of how I create a tablespace:

    CREATE bigfile TABLESPACE 'INDEX' LOGGING datafile SIZE 100 M AUTOEXTEND ON NEXT 250 M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

    DB_1 > select * from v version $;

    BANNER                                                                               CON_ID
    -------------------------------------------------------------------------------- ----------
    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production 0
    PL/SQL Release 12.1.0.2.0 - Production 0
    CORE 12.1.0.2.0 Production 0
    AMT for Linux: Version 12.1.0.2.0 - Production 0
    NLSRTL Version 12.1.0.2.0 - Production 0

    Thank you!

    2932017 wrote:

    Hi all

    I can't figgure where in the database creation process how all tablespaces being named for example, beginning with o1_mf and ending with cb58lw2z_.dbf:

    DB_1 > select name from v$ datafile;

    NAME
    --------------------------------------------------------------------------------
    /U01/shared_data/oradata/DB/datafile/o1_mf_system_cb58lw2z_.dbf
    /U01/shared_data/oradata/DB/datafile/o1_mf_undotbs3_cb58q00g_.dbf
    /U01/shared_data/oradata/DB/datafile/o1_mf_sysaux_cb58krqh_.dbf
    /U01/shared_data/oradata/DB/datafile/o1_mf_undotbs1_cb58nbnn_.dbf
    /U01/shared_data/oradata/DB/datafile/o1_mf_undotbs2_cb58pznk_.dbf
    .
    .
    .
    /U01/shared_data/oradata/DB/datafile/o1_mf_index_cb58pznk_.dbf

    Not that it's a big problem, I would like to know how this happens.  Example of how I create a tablespace:

    CREATE bigfile TABLESPACE 'INDEX' LOGGING datafile SIZE 100 M AUTOEXTEND ON NEXT 250 M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

    DB_1 > select * from v version $;

    BANNER                                                                               CON_ID
    -------------------------------------------------------------------------------- ----------
    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production 0
    PL/SQL Release 12.1.0.2.0 - Production 0
    CORE 12.1.0.2.0 Production 0
    AMT for Linux: Version 12.1.0.2.0 - Production 0
    NLSRTL Version 12.1.0.2.0 - Production 0

    Thank you!

    https://www.Google.com/webhp?hl=en&tab=WW#hl=en&q=Oracle+managed+files

  • Is it possible to get the layer, layerset and layer with status layerset...!

    Hello world!

    Is it possible to get the layer, layerset and layer with the status layerset. Because I met a big problem out of it.

    I have a single PS document which is contain the collection of layer, layer with layer games collection. I need apply the function for each layer and layers and each layer games with of layerset.

    I also tried a code, but its error getting. Please help me out of this code...

    -yajiv

    #target photoshop

    app.bringToFront ();

    level of $= 2;

    var app.activeDocument = docRef;

    Journal of the var ="";

    var x = 0;

    var n = number (docRef.layers.length) - 1;

    for (i = 0; i < n; i ++) {}

    var tm = String (docRef.layers [i]);

    var isLayer = tm.lastIndexOf ("ArtLayer");

    var isLayerSet = tm.lastIndexOf ("LayerSet");

    {if(isLayer!=-1)}

    Check_LayerStructure (DocRef.Layers [i], 'Layer');

    }

    {if(isLayerSet!=-1)}

    Check_LayerStructure (DocRef.layerSets, "LayerSets");

    x = x + 1;

    }

    }

    function Check_LayerStructure (objLayer, objflag, x) {------}

    {if(objflag=="Layer")}

    LayetStructure (objLayer, objLayer.name, BlendMode.NORMAL, 100, 100, 0, true, 'Layer');

    }

    else {if(objflag=="LayerSets")

    LayetStructure (objLayer [x] objLayer [x] .name, BlendMode.PASSTHROUGH, 100, 100, 1, true, 'together');

    m = Number (objLayer [x] .layers. Length)

    for (j = 0; j < m; j ++) {}

    var tm = String (objLayer [x] .layers [j]);

    var isLayer = tm.lastIndexOf ("ArtLayer");

    var isLayerSet = tm.lastIndexOf ("LayerSet");

    {if(isLayer!=-1)}

    Check_LayerStructure (objLayer [x]. Layers [j], 'Layer');

    }

    {if(isLayerSet!=-1)}

    Check_LayerStructure (objLayer [x] .layerSets, "LayerSets", x);

    }

    } / / Loop Layerset

    } / / I loop For

    } //Function loop

    function LayetStructure(layerRef,L,bMode,Opt,fillOpt,S,layVisible,Lref) {}

    {if(layerRef.BlendMode!=bMode)}

    If (confirm (L + Lref + "belend mode was bad...!)) \n"+"do you want to change...? »)) {

    layerRef.blendMode = bMode;

    Journal = Journal + "-" + L + Lref + "belend mode has been changed...! \n\n ";

    e = 1;

    }

    }

    {if(layerRef.Opacity!=opt)}

    If (confirm (L + Lref + ' opacity has been "+ Math.round (layerRef.opacity) +"%...! ")) \n"+"do you want to change...? »)) {

    layerRef.opacity = Opt;

    Journal = Journal + "-" + L + Lref + ' opacity was changed to 100...! \n\n ";

    e = 1;

    }

    }

    If (layerRef.fillOpacity! = fillOpt & & S == 0) {}

    If (confirm (L + Lref + ' Fill has been "+ Math.round (layerRef.fillOpacity) +"%...! ")) \n"+"do you want to change...? »)) {

    layerRef.fillOpacity = fillOpt;

    Journal = Journal + "-" + L + Lref + ' fill has been changed to 100...! \n\n ";

    e = 1;

    }

    }

    {if(layerRef.visible!=layVisible)}

    If (L + Lref + ' left eye...! ") \n"+"do you want to change...? ») {

    layerRef.visible = layVisible;

    Journal = Journal + "-" + L + Lref + ' eye was turn on...! \n\n ";

    e = 1;

    }

    }

    }

    Code of responsible for the action would naturally faster, but if you should be more comfortable with the DOM code, it could be useful to you.

    #target photoshop

    var theLayers = collectLayers (app.activeDocument, []);

    Alert (theLayers.join ("\n"));

    function to collect all the layers.

    function collectLayers (theParent, allLayers) {}

    If (! allLayers) {var allLayers = new Array}

    else {};

    the number of var theParent.layers.length = - 1;

    for (var m = number; m > = 0; m-) {}

    var theLayer = theParent.layers [m];

    apply the function of games of layers;

    If (theLayer.typename == "ArtLayer") {}

    allLayers.push ([theLayer, theLayer.blendMode, theLayer.opacity, theLayer.fillOpacity])

    }

    else {}

    allLayers = (collectLayers (theLayer, allLayers))

    This line includes layer groups;

    allLayers.push ([theLayer, theLayer.blendMode, theLayer.opacity, theLayer.fillOpacity]);

    }

    };

    return allLayers

    };

  • I'm a language monitor, I use Adobe Presenter to work properly on both, English, Spanish and presentations with the same software?

    I'm a language monitor, I use Adobe Presenter to work properly on both, English, Spanish and presentations with the same software?

    It shouldn't be a problem. Ultimately, presenter doesn't care what language the audio content is in, he will give all the same. The only problem I could see because of problems would be the appearance of the player. There Spanish lables, but they show only on a computer with the operating system in Spanish. If you want the student to view the two Englishmen and a version in Spanish on the same computer, you may have two versions of the language.xml file where you have one that has the help of English labels in the 'fr' section and the other where it has Spanish labels in the section 'fr '. You would then share those files in and out of the folder located at, C:\Users\ {UserName} \AppData\Local\Adobe\Adobe Presenter\Themes, you must publish a presentation in English or Spanish.

  • CS5 built and deployed with "Disable AAM."  How to enable updates without having to reinstall?

    I used Adobe Enterprise Deployment Manager to create a package Design Premium CS5.  Now 6 users who have received this package report that they cannot update their own facilities.  I realized that a default build configuration has the box checked ' disable the MAO"!

    In the package build itself, there is a file called "optionxml.xml" that contains a line about updates, with a "remove = true" indicator is defined.  This seems to be only configurable during compile.

    Is it possible to change this on customers, once it is deployed, without having to reinstall the suite?

    Adobe has a TechNote to disable the AAM, the procedure might work in reverse, that is, to find and delete/rename AdobeUpdaterAdminPrefs.dat. See http://kb2.adobe.com/cps/850/cpsid_85016.html for more details

    The computer-wide disability

    To disable access to updates for all users on a given computer, administrators can create an admin preferences file. (This file disables access to updates both the help > menu updates, as well as automatic update of controls.) Create a text file named AdobeUpdaterAdminPrefs.dat with the following content:

    
    
         
    
         1
    
         
    

    Place the file in the following location:

    Mac OS / Library/Application Support/Adobe/AAMUpdaterInventory/1.0/AdobeUpdaterAdminPrefs.dat
    Windows XP and above C:\Program Files\Fichiers files\adobe\AAMUpdaterInventory\1.0\AdobeUpdaterAdminPrefs.dat
    Windows XP and higher (64-bit) C:\Program files (x 86) \common files\adobe\AAMUpdaterInventory\1.0\AdobeUpdaterAdminPrefs.dat

    Note: This will also prevent administrators to check updates and installation of updates through this verification of updates. This situation is easily dealt with by simply renaming the file AdobeUpdaterAdminPrefs.dat, run the update checking and installation with Adobe Application Manager, and then restore the file to its original name.

  • New version of firefox, constantly keeps popping up a message asking me to "Bring your bookmarks and passwords with you." I am currently working. He's already seen

    WIndows 7, Firefox 42.0
    New version of firefox, constantly keeps popping up a message asking me to "Bring your bookmarks and passwords with you." I am currently working. It shows me once then stop. OFF to Chrome I guess

    Sorry, this is a message from the heart function. She undergoes a bug right now. Better to turn it off if you can get immediate relief.

    To turn off the heart rate:
    Talk openly about: config config in a tab, then search for browser.selfsupport.url and double click on it and set it to an empty value.

    You may need to restart Firefox for the changes to take effect.

  • Index and MATCH with several conditions

    Hi all! I hope I can explain what I'm trying to do here clearly. This is my first shot:

    In the table below "Office entry Worksheet - area 1" I am trying to insert a formula in column B which will result in an answer ' true / false ' and be used for conditional highlighting

    The first condition that must be met is that the checkbox in the table "Labor and material Checklist" column A or check, if it is not checked, then move to the next line. If the box is checked, then the following condition would need to index and match with column C of table "Office entry Worksheet - area 1" in column B. If there is a match in column C, then move to the next line of column B in the table 'labor and material Checklist '. This continues until there is a 'match', then highlight column B in the table "entry Office sheet - surface 1" in red (or something like "MISSING task")

    It is an estimate and the idea is to ensure that the Phases that are checked in the table "Labor and material Checklist" will not miss when you use the table "entry office map - zone 1".

    Thank you very much for your help!

    Tim

    Is it possible that I can download this spreadsheet file?

  • Synchronization of e-mail and contacts with icloud

    I have an iphoneSE c. 9.3 (last updated) and win 10 computers.  I want to synchronize my computer messaging and contacts with my phone.  I need to create an e-mail for this icloud account?  Also, I'm confused by what I should turn on or off in the settings.

    Just set up the e-mail account with the same information on your computer to your phone:

    Set up an e-mail account on your iPhone, iPad or iPod touch - Apple...

    This discussion might help the synchronization of contacts:

    How can I sync my Iphone contacts with laptop running Windows 7

  • is there a difference between 38 and 42mm with their pixel density?

    is there a difference between 38 and 42mm with their pixel density? the 38mm and 42mm watches have same interns?

    You can see the technical details of the Apple Watch here. Apple - Support - technical specifications

  • With this new firefox updated. The (enter private browsing) is gone and replaced with (new private window). It is sort of back enter private browsing?

    With this new firefox updated. The (enter private browsing) is gone and replaced with (new private window). It is sort of back enter private browsing?

    You can drag links to the private browsing window (hover the icon on the task bar for this update of the Firefox window).

    If you drop the link on an empty space on the tab bar, then the link should open in a new tab.

  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

Maybe you are looking for