Performance of XML question

Hi all

I have the query in order to retrieve the xml values in the table using XMLTABLE. The XMLTABLE extract about 280 columns. It takes 30 seconds to give the output. How to tune this XML query? or what is the best way.

DB version:

Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

PL/SQL Release 11.2.0.1.0 - Production

"CORE 11.2.0.1.0 Production."

AMT for Linux: Version 11.2.0.1.0 - Production

NLSRTL Version 11.2.0.1.0 - Production

Query:

SELECT OUTPUT.*

OF AM_CUST_WS_MB t

, XMLTABLE ('. t.CUSTXML PASSAGE des/ROOT/Types_of_Financials)

COLUMNS

PATH of VARCHAR2 (75) of Types_of_Financials '. / @VALUE',

PATH of VARCHAR2 (75) of FY_Ended_DD_MM_YY '. / FY_Ended_DD_MM_YY/@VALUE',

PATH of VARCHAR2 (75) of Operating_Months '. / FY_Ended_DD_MM_YY/Operating_Months/@VALUE',

..

..

.. / * more than 200 columns described here * /.

..

..) OUTPUT

Thank you

Fame

OK, this could be problematic:

XMLTYPE COLUMN CUSTXML STORE AS CLOB BASICFILE

You can recreate the table like this:

create table am_cust_ws_mb)

xmltype custxml

)

custxml XMLType column store as xml binary securefile;

and test again?

Tags: Database

Similar Questions

  • Beginner XML questions

    Hello

    First post on the forums in a long time and the first here altogether. I hope it's okay jump in.

    I have a little experience of FM not structured for several years ago and use Ventura (13 years) to my company's books (long directories - 3 000 + / volume). I made some scripts in Ventura have so little experience in programming.

    We are looking to switch to XML rather than text files tagged Ventura can import because of its lack of support, problems, perhaps due to Win7, and the effort required to maintain files to import. I downloaded the trial FM 11 and have been experimenting a bit with XML back and forth and also import what we already have in XML. If a bit I'm sure very simple questions. and thanks in advance:

    I was going through the tutorials from Adobe and everything I can find online. It seem not to be well reviewed books on Amazon that deal with structured FM 9-11. Some that look promising for XML are about 10 years old - I think not that our needs are sharp, so should I get something this old, or stay with most recent although we complain? Any recommendations? If I can get the hang of it with something that is not specific FM will be really difficult to adapt this knowledge to the FM band?

    I find EDD, DTD and schema to be rather confusing. Someone explain the difference in simple terms or direct me to a video, etc.? Assuming that I start with an XML file that is created in one other purpose, not meant to be FM, need more than one of them? Do you do first?

    Ventura if I want to have two separate data elements (off the coast of the database) on the same line, say a left-aligned with the other right aligned, programmers put both with a tab, and that is controlled by a tag paragraph in Ventura with a tab on the right. With XML, if I understand it correctly, you wouldn't do that in the XML file - I'm probably not ready to understand the method, I just want to know if this is possible without doing something like having paragraph of second properties point to have no line breaks. If so, where that would be appropriate, ESD, DTD, etc.?

    XML in FM can include inline graphics? What about an Excel chart?

    Thank you

    Gary

    Hi Gary,.

    a lot of questions, he

    But lets start with the first things first.

    For your general understanding: XML separates basically content layout. You can add metadata to the content by adding attributes to some semantic purposes or to include information for your page layout process (or any information that you feel should be here).

    XML is essentially made up of elements, attributes and entities. Those that are defined in a DTD or a schema. ESD does the same for the management of content structured in FM. To stuff FM back and forth into XML and vice versa, you will need both a DSP for handling in FM and the DTD or schema of XML processing. Basically the two similar at first, but ESD will be also some layout information included as well as routines to facilitate the production of structured content (so called context rules).

    The translation between XML and FM requires also some reading/writing-rules governing the specific elements of the FM and values to create "correct" XML files

    Your layout (-> master pages), styles of paragraph and character, etc. pre-set styles of paintings, graphics and so on, are stored in a template file, which is used when you import an XML file to the FM band.

    These are the basics that you are handling.

    Everything that affects page layout will be on the side of the FM of things (if you use it to publish stuff).

    Everything that affects the structure is mainly done on the DTD and the reading/writing-rules side (but has an equivalent in ESD).

    So, for your search:

    XML books who have 10 years maybe not the best choice, because they will probably have a lot of references to SGML, which doesn't help much. But some who are about 5 years old will do just fine - not much changed on the side of XML (unless you decide to use the XML schema).

    For FM11, it is preferable to use guides for FM9 (those are the most comprehensive) and use this forum.

    If you insured the most, I would say to book some consultant for training on the creation of ESD. This will help avoid a lot of frustration later and pays really fast off the coast.

    It can also provide answers to specific questions such as the ones you posted above (Yes, graphics work).

    Once your done with that, you need to do a search, if one of the XML flavors already established already meet your needs in general (I'm talking about DITA, DocBook, S1000D and others) or if you want to develop your own structure (which needs a mayor of brainstorming, but could better meet your needs).

    Soon Alex

  • Release of FrameMaker XML question

    I have a problem with an attribute not be exported in XML format by FM8.

    Here is the excerpt of the DTD:

    <! ELEMENT std.table.header (+ std.table.row) >
    <! ATTLIST std.table.header
    CDATA #REQUIRED passes
    rowsep CDATA '1 '.
    >

    The first question I had was "collar" does not present as an attribute in the structured view. I solved it in question (with the help of MarttiP) by adding it to the EDD as shown below:

    Element (container): std.table.header
    General rule: std.table.row +.
    List of attributes
    Name: whole passes required

    Now I'll have is on the export of XML, the "collar" attribute is not exported and I get an error "required attribute"cols"unplanned". Any suggestions?

    Mike

    Add this rule to write:

    element 'std.table.header '.
    {
    is part of fm;
    "collar" attribute is the attribute of fm;
    }

    This replaces the built-in handling for the cols attribute without affecting the CALS tables.

    Ian

  • Manifest.XML questions

    Hello

    I use Photoshop CC 2015 and CC extensions Manager. I'm trying to install the Panel of editing beauty 3.0.1 but it does not work because of the error message that manifest.xml is not correct. Reinstall the new version of the extension manager does not help. Any idea?

    Please see this thread: Add it will not install

  • Join XMLs Question

    I have 5 games of XMLs that are generated by a single package to places like CLOB diiferent...
    On the 5th, the first is a straight select query and the rest are from the SYS_refcursors
    I was wondering how I can I join all those who, under a start and end tag

    Well, if they are already in form CLOB, why not just create a new CLOB where you add on the required node start and end, such as

    l_new_clob := '' || l_clob_1 || l_clob_2 || '';
    

    or if they are in the format XMLType, you can use XMLElement and XMLConcat of them for putting it all together

    SQL> SELECT XMLElement("root",XMLConcat(XMLType(''),XMLType('')))
      2  from dual;
    
    XMLELEMENT(ROOT,XMLCONCAT(XM
    --------------------------------------------------------------------------------
    
    
    
    

    Note: All "XMLType ("")" would be your XMLType. Lazy to create the complete example which is an XMLType variable.

  • XML question

    I'm eventid parameter (if I'm passing eventid = 200) & after which is is a number when I show this event ID Message.

    now, I try as below. but do not get the result... Cau u help me... ?

    var eventID:String = this.loaderInfo.parameters.eventid;
    
    var myXML:XML;
    var myLoader:URLLoader = new URLLoader();
    myLoader.load(new URLRequest("http://www.sitename.com/events/idlist.xml"));
    myLoader.addEventListener(Event.COMPLETE, processXML);
    
    function processXML(e:Event):void
    {
              myXML = new XML(e.target.data);
              trace(myXML.Message.EventId);
              
       if(myXML.Message.EventId == eventID)
              {
                   trace("Yes this is 200");
                    mytxt.text = myXML.Message.MessageName;   
            }
    
    }
    

    trace

    < EventId > 100 < / EventId >

    < EventId > 200 < / EventId >

    < EventId > 300 < / EventId >

    My XML

    <?xml version="1.0" standalone="yes"?>
    <Messages>
      <Message>
        <EventId>100</EventId>
        <MessageName>Sample1</MessageName>
      </Message>
      <Message>
        <EventId>200</EventId>
        <MessageName>Sample2</MessageName>
      </Message>
      <Message>
        <EventId>300</EventId>
        <MessageName>Sample3</MessageName>
      </Message>
    </Messages>
    

    If you say "Yes well ' so I don't undersatand not what you're having a problem with.  As I said already, you should check all the individual values, which means that you probably want to check in a loop.

    for (var i: uint = 0; i

    If (myXML.Message [i]. EventID == eventID) {}

    myTxt.Text = myXML.Message [i]. MessageName;

    }

    }

  • JS - Can XML Question - I add attributes using Javascript?

    I want to add an attribute to an element tag, but I don't see how to do it programmatically. Is this possible? Also, is it possible to appoint a tag element dynamically? For example:

    How to add a child element is to use the appendChild as follows:

    XMLObject.appendChild(<childElement/>);
    XMLObject.childElement= "something";
    

    or just add it like this:

    XMLObject.childElement = "something";
    

    Right? (Side Question: is there a difference between these two methods?).

    What I want to do, is to add a dynamic attribute to a child named statically, or to create a child named dynamically.

    I could not understand this. Any ideas?

    Maybe take a look at Mozilla's E4X tutorial: https://developer.mozilla.org/en/E4X_Tutorial/

    There is no need eval() here. (There are usually not.) Use:

    XMLObject.appendChild(<{nameReference}/>);
    

    To add an attribute, you can use:

    XMLObject.@new_att = "the value";
    

    Jeff

  • Very basic XML question

    I am currently using two tables to load a sequence of videos in 2 areas of the Flash animation.

    var zoneAarray:Array = new Array ("movie1.mp4", "movie2.mp4", "movie3.mp4");

    var zoneBarray:Array = new Array ("movie4.mp4", "movie5.mp4", "movie6.mp4");

    var clipA:String = zoneAarray [0];

    var clipNumberA:int = 0;

    var clipTotalA:int = zoneAarray.length-1;

    var clipB:String = zoneBarray [0];

    var clipNumberB:int = 0;

    var clipTotalB:int = zoneBarray.length-1;

    Everything works fine, but I would like to import the list of videos from an XML file instead of hard-coding it in Flash.
    TIA,-Eric

    Large. Please mark the thread as answered.

  • Export XML question FM9

    Hello

    When you export to XML "File-Save as XML".

    FM exports all the information. Following is the display of the Structure:

    refsetup.png

    The XML output from this is:

    < ref >
    < Ref-installation-item id = "o00009-9-1230-783-00004" >
    < local link = "m00003-9-1230-783-00001" id = "m00003-9-1230-783-00001" > < / Ref-installation-point >.
    < Ref-installation-item id = 'o00009-9-1230-783-00007' >
    < local link = 's00001-9-1230-783-00050' id = ' s00001-9-1230-783-00050 "> < / Ref-installation-point >.
    < Ref-installation-item id = "o00009-9-1230-783-00010" >
    < local link = "o00031-9-1230-783-00001" id = "o00031-9-1230-783-00001" > < / Ref-installation-item > < / Ref > ".

    As you can see the text of 'link' element is missing and is not closed... any ideas?

    Of course - that would be my answer.  You don't need to force it to a frame of link - it can be treated as any other XML structure assuming that you have code that knows how to convert a link in HTML from the original XML structure.  Make a container and get rid of the rules R/W and it should come out just like the original DTD specification.

    Jim

  • XML question: How do I search for children without grandchildren

    With an XML document:

    var xml =

    < root >

    < name L1 = "First" >

    < garbage / >

    < / L1 >

    < name L1 = "Second" >

    < garbage / >

    < / L1 >

    < / root >

    I need a XMLList tags < L1 > without their children, then the output should be:

    < name L1 = "First" >

    < name L2 = "Second" >

    Can someone help me with the syntaxt actionscript to accomplish this XML query? I could not find an example that does not return the children of the < L1 > tags as well.

    Thank you

    David

    Well, if you need exact release, you could use this line:

    trace (xml.toXMLString (match) (/<\s*L1.*?>/g) .join ('\n'));

    This approach much faster that doing redundant xmlfiltering + removal of garbage, hope this helps

  • Hierarchical XML question

    I have the XML code that looks like this:

    < name name = "myDB" >

    < name of directory = "database" path = "D:\database" >

    < name of directory = 'Nick' path = "D:\Nick" >

    < name of base = 'New' path = "D:\New" / >

    < name of base = 'Old' path = "D:\Old" / >

    < name of base = 'Blue' path = "D:\Blue" / >

    < / Book >

    < name of directory = "tmp" path = "D:\tmp" / >

    < name of base = 'News' path = "D:\News/ >"

    < name of base = "Example" path = "D:\Example/ >"

    < name of base = 'Set' path = "D:\Set/ >"

    < / Book >

    < / DatabaseList >

    What I want to do is to go through this last time so in a

    structure of the hierarchy tree that has only the items in the directory.

    Anything with "Database" must be eliminated. Imagine all

    < Database > stuff went. Of course, each element has

    many attributes, but that does nothing.

    I think I've exhausted everything with no good answer. The

    Replace() does not seem to do the trick.

    Any ideas out there? Thanks in advance.

    Try this:

    var xmlElement:XML;
    for each (xmlElement in myXML... Database)
    {
    If (xmlElement.name () is "Database")
    {
    xmlDeleteNode (xmlElement);
    }
    }

    And the function of xmlDeleteNode found here:

    private void xmlDeleteNode(xmlToDelete:XML):Boolean
    {
    var cn:XMLList = XMLList (xmlToDelete.parent ()) .children ();
        
    for (var i: Number = 0; i< cn.length()="" ;="" i++="">
    {
    If (cn [i] is xmlToDelete)
    {
    delete cn [i];
    Returns true;
    }
    }
       
    Returns false;
       
    }

    And it works!

  • Report XML question

    Hi all

    I'm working on the XML reports. This is the first time that I'm working on the XML reports.
    Here, I need like below.

    Report must contain 3 layouts. When the function run simultaneous program, 3 layouts should display with the data.
    The problem is now,
    first layout complete records on the second page, the second provision must begin in the new page and in the same way third provision must begin in the new page. I'm not able to manage the new layout from new page.
    can someone please help me with this problem.

    Thanks in advance.

    Hello

    Please use the following tag after the first and second layouts.

    Thank you
    Kiran

  • Extract XML question

    Hello

    I have the XML code below in a table (configbom) that has a column (DATA) that is XMLTYPE. I try to extract the value of State via SQL in SQLPLUS like this:


    SQL > Select extract(data,'/ConfigBomRequestResponse/ConfigBomRequestResult/StatusCode') from configbom;

    EXTRACT(DATA,'/CONFIGBOMREQUESTRESPONSE/CONFIGBOMREQUESTRESULT/STATUSCODE')
    --------------------------------------------------------------------------------


    SQL >

    I didn't recover. Does anyone have any ideas what I am doing wrong?

    Thank you
    Melinda



    < ConfigBomRequestResponse xmlns = "http://swagelok.com/service/tibco/2009/09/03" >
    < ConfigBomRequestResult xmlns:i = "http://www.w3.org/2001/XMLSchema-instance" >

    < StatusCode > 0 < / StatusCode >
    < StatusMessage / >
    < BomResults >

    < ConfigBomData >
    < allocation_length i: nil = "true" / >
    < cut_length
    i: Nil = "true" / >
    < description > FL UNDER ASSEMBLY < / description >

    < part_number > SS-FL4B-C-RF4SA < / part_number >

    < quantity_per > 2 < / quantity_per >
    < i: Nile uom = "true" / >

    < / ConfigBomData >
    < ConfigBomData >

    < allocation_length > 33,84 < / allocation_length >

    < cut_length > 33,84 < / cut_length >
    < description > 1 / 4 & quot; TUBE & amp;
    BRAID < / description >
    < part_number > SS-FL4-B-HXX < / part_number >

    < quantity_per i: nil = "true" / >
    IN < Glu > < / UDM >
    < / ConfigBomData >

    < / BomResults >
    < / ConfigBomRequestResult >
    < / ConfigBomRequestResponse >

    Hi, Melinda,

    two things: first of all, you can set the column in the table by using a table alias. This is necessary because the column is a type of object-orientation that should be treated by a Manager.
    Then, you must pass in the namespace of the element. In otherwise, extract tent to search in the default namespace contains all values at all. As a result, your query should look like this:


    select extract(x.data,
    '/ConfigBomRequestResponse/ConfigBomRequestResult/StatusCode',
    'xmlns="http://swagelok.com/service/tibco/2009/09/03"')
    from configbom x;

    Best regards

    Jürgen

  • Loop XML question

    Here's the translation:

    Stop();
    time = 10;
    n = « » ;
    menuxml = new XML();
    menuxml. Load (toadd + "XML-Header - 1.xml");
    menuxml.ignoreWhite = true;
    menuxml.onLoad = {function (success)}


    If (success) {}
    XMLDATA = menuxml.firstChild.childNodes;
    maxnum = xmldata.length;
    for (n = 0; n < maxnum; n ++) {}
    sheet = menuxml.firstChild.childNodes [n];
    Set ("toptitle" + n, specs.attributes.toptitle);
    Set ("maintitle' + n, specs.attributes.maintitle);
    Set ('url' + n, specs.attributes.theurl);
    Set ("caption" + n, specs.attributes.caption);
    }
    PEAK = random (maxnum);

    Play();

    }
    };

    How can I loop just once? There are a total of 9 images. Thanks to anyone who can help me.

    Comment the following line:

  • Tree and XML Question

    Hello

    I have this XML code that is returned by a ColdFusion CFC. In Flex, so I have this code:

    var treeXML:XML = new XML (event.result);

    I am that assigning to the dataProvider of the tree. This works very well, but how do I get to each top-level node in the tree? Essentially I want to loop on the top level of the tree categories?

    Thank you

    -Westside

    "WestSide" wrote in message
    News:gigrbp$9dc$1@forums. Macromedia.com...
    > Hi,.
    >
    > I have this XML code that is returned by a ColdFusion CFC. So I in Flex
    > Copy the following code:
    >
    > var treeXML:XML = new XML (event.result);
    >
    > I am that assigning to the dataProvider of the tree. It works fine,
    > but
    > How can I get to each top-level node in the tree? I want to basically
    > loop
    > on the top level of the tree categories?

    treeXML.children)
    http://dispatchEvent.org/Roger/AS3-E4X-rundown/

Maybe you are looking for