Rebuild totalisators / create statistics on the column "OBJECT XMLSCHEMA RELATION.

Hello

I use the version of DB
select banner from v$Version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for HPUX: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
and tables created, which allows to store XML data in a table such as type 'Object relational XMLSchema':
CREATE TABLE CLX_MYTEST (id number,xmldoc XMLType) XMLTYPE xmldoc STORE
          AS OBJECT RELATIONAL XMLSCHEMA "mytest.xsd" ELEMENT "rootelement";
Creating this table it looks like a lot of SYS % totalisators are created automatically.

After these tables have been used for awhile = > I want to now start to rearrange the data.

Question 1: rebuild the Index

Is it necessary to rebuild the % SYS indexes created implicitly?

If Yes: how should I do this?

Just in
alter index SYS_BIMBAMBUM$$ rebuild; 
or is there a way to tell:
alter table clx_mytest modify xmldoc rebuild indexes;
(or something like that...)

Question 2: statistics

How are managed the statistical table for tables like the one described above?

Can they be collected by a 'normal '.
exec dbms_stats.gather_table_stats('CLX_MYTEST');
or is there some 'special' rules/best practices to follow

THX in advance

Stefan

1)

== NEVER REBUILD YOU THE INDEXES - PERIOD ==

(under what circumstances relational/xml/etc - this is the general rule - there are a few exceptions to this rule, and this isn't one of them)

2)

That should do it. No special "tricks" needed, even in this case.

Tags: Database

Similar Questions

  • Please tell us how to remove the 'message thread function' in the column 'Object' of my Inbox.

    Hello!
    For some reason, the column of the object on the Inbox of my e-mail account now has the topics of conversation. I have no idea how the son got there - and you would appreciate the help in eliminating these threads.
    Thanks a lot for your help.

    In the main menu bar:
    View (Alt - V) - sort by - Unthreaded

  • How to create indexes on the column xmtype

    Hello

    I have a table as follows

    CREATE TABLE T_TEST_XML (ID_PROCESSUS NUMBER, TXT_XML XMLTYPE);


    I query the table above very frequently with the query

    SELECT * FROM TXS T_TEST_XML WHERE EXISTSNODE (TXS. TXT_XML, '/ order [status = "PEN"]') = 1


    How to create function function index on the TXT_XML column for the xpath expression/order [status = "PEN"]' to improve the query performance?

    Thank you

    In fact if you are limited to the use of older software

    1 consider to define an XML schema and store XML using storage relational object.

    or

    2. If you need to store XML as CLOB to create the index on extractValue(), rather than existsNode() and provide the underlying value at the SQL level rather than the XPATH level.

    SQL> DROP TABLE T_TEST_XML
      2  /
    
    Table dropped.
    
    SQL> CREATE TABLE T_TEST_XML (PROCESS_ID NUMBER, TXT_XML XMLTYPE)
      2  /
    
    Table created.
    
    SQL> create INDEX T_TEXT_XML_IDX on T_TEST_XML( extractValue(TXT_XML,'/order/status'))
      2  /
    
    Index created.
    
    SQL> set autotrace on explain
    SQL> --
    SQL> SELECT *
      2    FROM T_TEST_XML TXS
      3   WHERE ExistsNode(TXT_XML,'/order[status="PEN"]') = 1
      4  /
    
    no rows selected
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 3001212210
    
    ---------------------------------------------------------------------------------
    | Id  | Operation          | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT   |            |     1 |  2017 |    31   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS SEMI |            |     1 |  2017 |    31   (0)| 00:00:01 |
    |   2 |   TABLE ACCESS FULL| T_TEST_XML |     1 |  2015 |     2   (0)| 00:00:01 |
    |*  3 |   XPATH EVALUATION |            |       |       |            |          |
    ---------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       3 - filter("P"."C_01$"='PEN')
    
    Note
    -----
       - dynamic sampling used for this statement (level=2)
    
    SQL> SELECT *
      2    FROM T_TEST_XML TXS
      3   WHERE extractValue(TXT_XML,'/order/status') = 'PEN'
      4  /
    
    no rows selected
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1430727070
    
    ----------------------------------------------------------------------------------------------
    | Id  | Operation                   | Name           | Rows  | Bytes | Cost (%CPU)| Time     |
    ----------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT            |                |     1 |  2015 |     1   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| T_TEST_XML     |     1 |  2015 |     1   (0)| 00:00:01 |
    |*  2 |   INDEX RANGE SCAN          | T_TEXT_XML_IDX |     1 |       |     1   (0)| 00:00:01 |
    ----------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       2 - access(EXTRACTVALUE(SYS_MAKEXML(0,"SYS_NC00003$"),'/order/status',null,0,0,5242
                  93,133120)='PEN')
    
    Note
    -----
       - dynamic sampling used for this statement (level=2)
    
    SQL>
    SQL>
    SQL>
    SQL>
    SQL>
    SQL>
    

    This allows the index press questioning on any status value, rather than just the PEN

  • Should Hyperic 5.8.4 create automatically relationship the computer object virtual vROPS?

    I installed Hyperic 5.8.4 and deployed an officer to a MS SQL VM.  Hyperic discovered, I added it to the inventory, and vROPs sees the various OS and VM, including SQL applications.   However, the Windows operating system and apps are not associated to the object vROPs vSphere VM.   Should Hyperic create automatically a relationship between the VM discovered Hyperic and vROPs/vSphere?  If so, what might be missing?

    Thank you

    -MattG

    I just thought the screenshot you sent me, and I think it's just HOW you are looking at it. If you are using the troubleshooting > the metrics tab, you will see Hyperic relationships. You probably don't have your relationships build properly.

    Create a dashboard with widgets of topology or relationships, and you will see these relationships actually exist when you look at the vCenter:VMs or Hyperic objects: Windows. Alternatively, use the tab relationships under Administration... you will see your virtual machines have child objects of the Hyperic agent type. If the data is there, it's just a matter of how you look at what it is what "seems" as if relations are not there (but they are).

  • Can I create subgroups in the grouped objects?

    Hello

    In CP 7 is it possible to create subsets of grouped objects?

    concerning

    Donal.

    No, one of my feature requests, but not realized in CP7.

    Lilybiri

  • Chains of substitution in the column link attributes

    I use this attribute a lot recently to activate the link columns in reports to the pleasant appearance buttons, using the same set of classes used by the button model options, for example:

    class="t-Button  t-Button--warning t-Button--simple t-Button--stretch"
    

    Instead of use the chain, I would like to set it either by using a chain of substitution of application to create consistency, or the columns of the region to provide classes based on a condition of level line.

    link_attribs.png

    I spotted some differences in behavior between classic and IR and 5.0.1 and 5.0.2. I am not too concerned by version differences because the progress is there, but I want to ensure further progress.

    I have an example here, ws (swesley/otn/forum) connection details

    https://Apex.Oracle.com/pls/Apex/f?p=88776:3

    For both types of reports, the EMPNO uses & BTN_CSS. to supply the value of a string substitution of application. It works for the IR, but not for the classic. Instead, I see

    <a href="javascript:void(0);" &btn_css.="">7369</a>
    

    The ENAME field uses #LINK_ATTRIBS # the source of the value of the SQL. The caveat here is that the LINK_ATTRIBS column must escape special characters the value no. It works in 5.0.2 but not 5.0.1. The latter treats the string as if it has not been dropped?

    pasted_image_at_2015_11_03_09_22_pm.png

    My solution is to provide

    class="#LINK_ATTRIBS#"
    

    where the sql returns just the set of classes, not the full html tag.

    This problem has recently been described in the mou channel # _Suit.

    Hi Scott - thank you for viewing this issue, I am agree that traditional reports that should support the do of reports interactively. So, I advanced and implemented this change for APEX 5.1.

    Marc

  • CSS: Pointing out the columns of the Table

    I want to use the border-bottom property to create underscore for the columns of the table. The complexity is when I try to create colspanned 'parent' or 'Super-colonnes' i.e. of the column heads that span 2 or more child/sub-headings heads. I need the underscore to stop a few pixels short of the next column, so that the user can see what child columns are included in the parent. When I tried to add white borders to the left and to the right, that he worked too good, in that not only it has created the space downstairs, he also created the space at the top (or bottom one above). Essentially the vertical borders to sit on top of the horizontal. Anyone can make sense what I said right? Any ideas how to get what I want (elegantly)?

    Thank you.

    Well, it was pretty easy. I just added the border-collapse attrib and set 'split' and now (white) borders left and right do not cut into the bottom border of the cell above.

    http://mysite.Verizon.NET/brentemerson/public/test_page0.html

  • index on the column using custom function

    Can we create index on the column using custom function?

    http://www.dbasupport.com/Oracle/ora8/FBI.shtml

    Kind regards
    Kaila Mahesh

  • How to create the default user interface is newly added to the columns in the table

    I added the new columns to the database table existed who got the default values for the user interface to the columns existed.

    How to create the default UI for the new columns.

    I couldn't see the newly added columns change the default UI (object browser-> database-> default UI - Edit-> Table).

    Using APEX 5.0.3

    Can you please help.

    Thank you.

    Find the option "Synchronize with database" under tasks on the interface's default user - Edit

  • is it possible to apply the sort on the columns added to a dynamic display object?

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    We have created a dynamic display object in the AM Impl, all objects in view columns are added dynamically.


    All lines are displayed correctly, but when sorting columns data disappear. (point of view are being refreshed, of course).


    is it possible to apply the sort on the columns added to a dynamic display object?

    This is how we show data in the JSF page:


    < af:table lines = ' #{bindings. " DynamicVO.rangeSize}' fetchSize = "#{bindings." DynamicVO.rangeSize}.

    emptyText = "#{bindings." DynamicVO.viewable? "{'No data to display.': 'Access Denied.'}".

    var = 'row' rowBandingInterval = '0' value = ' #{bindings. " DynamicVO.collectionModel}.

    selectedRowKeys = ' #{bindings. " DynamicVO.collectionModel.selectedRow}.

    selectionListener = "#{bindings." DynamicVO.collectionModel.makeCurrent}.

    rowSelection = "single" id = "t1" >

    < af:forEach elements = "#{bindings." Var DynamicVOIterator.attributeDefs}' = 'def' varStatus = 'vs' >

    "< af:column headerText =" #{def.propertyMap.label} "sortable ="true"sortProperty =" #{def.name} ".

    ID = "clmn$ {vs.index}" >

    < af:outputText value = "#{row [def.name]}" id = "ot1" / > "

    < / af:column >

    < / af:forEach >

    < / af:table >




    Thanks guys, I created a custom class that contains a model that can be sorted in a pod of support and I have to the adf work table it and it is very good about sorting.

    JSF:

    Rows = "#{pageFlowScope.crudBean.dynamicTable.collectionModel.RowCount} '"

    contentDelivery = 'immediate' var = 'row' rendered = 'true '.

    Binding = "#{backingBeanScope.crudBackingBean.tasksTable} '"

    selectionListener = "#{backingBeanScope.crudBackingBean.customListener} '"

    "rowSelection ="single"id ="t1"partialTriggers =": pt_gr2 "columnStretching =" column: clmn0 ">

    inlineStyle = "width: 100px;"  ID = "clmn$ {vs.index}" > "

  • Cannot create the folder to, navigate to the point of the entity object

    Hello gurus,

    I'm new in the adf and the use of 11.1.2.3. I have two field in the entity. A filed value is max (last value + 1) and the other field has a default value of "A". In my layer model when I click on the button create is fills the field with the highest value of the column and the other field is filled with the default value. In the layer of model results are as not planned no question and I can hire the newly created folder. But in the view down when I click on create the record he fill the first field with the highest values and the second field with a value of default but does not save changes to database until I have change something in the field. It does happen that a record has been created. Please any suggestions...

    What is little whereas if you set only the default values when you create a line, the line status is set to Row.STATUS_INITIALIZED which updates the row in a State where he is not put in the list of objects that should be added to the db. Only when you change an attribute status is set to Row.STATUS_NEW that will send the line to the db. You can set this status after the creation of a line with all default values by calling setNewRowState (STATUS_NEW) on the new line.

    More information can be found at one size does not fit all: ADF BC: EO/VO State initial post create() explained and Creating ADF Databound Tables - 11 g Release 2 (11.1.2.3.0)

    One last thing: I hope that you do not use the max (last value + 1) to create a primary key. It will not work in a multi user environment where several users can record.

    Timo

  • How to manually create the matrix object?

    Hello expert, I'm creating a matrix report object manually, I found a few steps on google, but they do not work to success.
    Please help me to create a.

    Google as follows:

    To create a matrix object:

    1.

    The layout of the document view, click the tool framework to repeat in the tool palette, and then drag a rectangle to create an extensible framework.
    2.

    In the property inspector, frame repeating, set the Source property of the "column" for the matrix and set the property to print the down Direction.
    3.

    Again click the tool framework to repeat in the Toolbox, and then drag a rectangle to create a second frame stretch, intersecting the first extensible frame.
    4.

    In the property inspector, frame repeating, set the Source property of the 'line' of the matrix and set the Direction of printing throughout property.
    5.

    Drag a rectangle around two expandable chassis to select, and then choose Insert > layout matrix.

    This creates a matrix object that represents the intersection of two Extensible frameworks. For example:

    Figure 4-1 example matrix object
    Shows the intersection of two rectangles
    Description of the "object of Figure 4-1 example matrix"

    6.

    Double-click the matrix object to set its properties.


    Thank you best regards n
    Yoann

    Hello

    You must select the two images (ctrl + click on the two fields) before you choose Insert > layout matrix.
    It should work.

    Kind regards
    Alex

  • Get the name of ' created by ' alias on custom object

    I build a report using custom objects 4-6 and I have the field ' created by ' get the alias. However, what I really want, it is the full name of the user (and, possibly other areas, if possible). Is there a function such as 'JoinFieldValue' that will give me this information?

    In the combined analysis you correspond using the Alias column and then create a column of the result with the MAX function (SAW_5 [column name with spaces] BY SAW_4 [the column of the Alias that has no blanks])

    Your writing workflow solution the complete owner name in a text field also works very well and creates a unique report worth not simpler.

  • Create a document with columns and the effects of impression

    If you create a new document and set the columns in the new menu document inside, and then subsequently create images, tables, text etc. in the document that are larger that a single column (which for example spans the whole page), will be the part of the image that is in the gutter print or see if it is saved in PDF format?

    Help!

    Thank you!

    Guides are there as a reference for you help in alignment. They restrict what or where objects can be placed or affect their visibility or printability.

    To see what your printed page, switch to Preview Mode (quick is to press W with nothing selected).

  • After downloading 4.0 I get this message: application JavaScript is unable to create the plugin object of mcafee: TypeError: components.classes['@ [cid] is undefined

    I finished to download Firefox for my Mac OS 4.o. X.
    When I try to open a Web site, I get the message:
    [JavaScript Application] cannot create the plugin object of mcafee: TypeError: components.classes['@ [cid] is undefined
    If I click on the OK button, the site opens, but without the alert McAfee at the bottom of the window.
    I had just downloaded 3.6.16 and got box suggesting version 4.0 download for better security, but that seems to be where the problem is!

    This indicates that an add-on that you use is not compatible, considering the other errors, maybe it's the McAfee add-in. To confirm that the module is originally, use the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for