Finding out subsetted paths in an XML index

Hi,
CREATE INDEX IDX_1 ON t1(c1) INDEXTYPE IS XDB.XMLINDEX PARAMETERS
( 'PATHS (INCLUDE (/A/B))' );
ALTER INDEX IDX_1 REBUILD PARAMETERS ('PATHS (INCLUDE ADD( /C/D ))' );
If I issue CREATE INDEX followed by ALTER INDEX, SELECT PARAMETERS FROM DBA_INDEXES shows only the parameters string specified in the last ALTER INDEX, but the effective set for the case above should be /A/B and /C/D.
Is there a way to find out the entire set of the subsetted paths for a given XML index?
Thanks.
Peter

what about...
SQL> select owner, index_name, index_type, parameters
  2  from DBA_INDEXES
  3  where PARAMETERS is not NULL;
OWNER                          INDEX_NAME                     INDEX_TYPE
PARAMETERS
XDB                            XDB$ACL_XIDX                   FUNCTION-BASED DOMAIN
PATH TABLE XDBACL_PATH_TAB VALUE INDEX XDBACL_PATH_TAB_VALUE_IDX
WK_TEST                        WK$DOC_PATH_IDX                DOMAIN
filter wksys.wk_filter lexer wksys.wk_lexer language column lang stoplist wksys.wk_stoplist storage wksys.wk_storage wordlist wksys
.wk_wordlist section group wksys.wk_section_group datastore wksys.wk_datastore
2 rows selected.
SQL> select INDEX_OWNER, INDEX_NAME, PARAMETERS
  2  from DBA_XML_INDEXES;
INDEX_OWNER                    INDEX_NAME
PARAMETERS
XDB                            XDB$ACL_XIDX
1 row selected.
SQL> desc DBA_XML_INDEXES;
Name                                                                     Null?    Type
INDEX_OWNER                                                              NOT NULL VARCHAR2(30)
INDEX_NAME                                                               NOT NULL VARCHAR2(30)
TABLE_OWNER                                                              NOT NULL VARCHAR2(30)
TABLE_NAME                                                               NOT NULL VARCHAR2(30)
PATH_TABLE_NAME                                                          NOT NULL VARCHAR2(30)
PARAMETERS                                                                        SYS.XMLTYPE
ASYNC                                                                             VARCHAR2(9)
STALE                                                                             VARCHAR2(5)
PEND_TABLE_NAME                                                                   VARCHAR2(30)
TYPE                                                                              VARCHAR2(10)
EX_OR_INCLUDE                                                                     VARCHAR2(8)
SQL> set long 100000000
SQL> select dbms_metadata.get_ddl('INDEX','XDB$ACL_XIDX','XDB') from dual
  2  ;
DBMS_METADATA.GET_DDL('INDEX','XDB$ACL_XIDX','XDB')
  CREATE INDEX "XDB"."XDB$ACL_XIDX" ON "XDB"."XDB$ACL" (SYS
_MAKEXML('600B617F01DE4718A70B2AE0B2E4CE
7E',2036,256,"XMLDATA"))
   INDEXTYPE IS "XDB"."XMLINDEX" PARAMETERS ('PATH TAB
LE XDBACL_PATH_TAB VALUE INDEX XDBACL_PA
TH_TAB_VALUE_IDX')
1 row selected.Message was edited by:
Marco Gralike

Similar Messages

  • How to find out the path of current jsp

    Hi all.
    I was wondering if someone could help me figure this out: how can I programmatically find out what path a given jsp is in from within the jsp?
    if I use currentPath = new File("./"), it defaults to the /config folder (Iplanet WS).
    Any advice is appreciated.

    Try using a combination of javax.servlet.http.HttpServletRequest.getServletPath() and javax.servlet.ServletContext.getRealPath() in your JSP. Like...
    appplication.getRealPath(request.getServletPath());I haven't tested it though.

  • Not able to find out the path where i need to place the .plx file on server

    I have to make some changes in the PLL (library) file and compile it into it's .plx file and move the .plx to the server.
    I am not able to find out the path where i need to place the .plx file on the server.
    I have placed it in /iasapp01/app_name/library,but it is not taking it into effect.
    Please help,if anyone knows about this,as to how to solve this issue
    Thanks
    GAG

    Hi Andreas,
    My Forms Version is 9.0.2 and the application server is 9iAS( 9.0.2)
    The variable FORMS90_PATH in the .env file has the following entries
    FORMS90_PATH=/iasapp01/app_name/fmx:/iasapp01/app_name/library:/iaspp01/app_name/html
    and i have placed the plx in the /iasapp01/app_name/fmx path,but somehow its not referencing it.
    My Formsweb.cfg has the following entry...
    [app_name]
    pagetitle=app_name_WEB
    serverapp=/app_name/app_name
    width=800
    height=550
    colorscheme=blue
    separateframe=true
    form=log.fmx
    otherparams=REPORT_PATH=/iasapp01/app_name/html/report_files/ FILE_PATH=/iasapp01/app_name/rep/
    WEB_PATH=http://server.com:7778/app_name/
    envfile=/ias01/app/oracle/product/ias_9.0.2/forms90/server/app_name.env
    I have another question which is ..Does applciation built on Forms 9.0.2 would work on Internet Explorer 8 and Windows 8 environment using Sun JRE.
    I was going through this website
    http://nutthaphon.blogspot.com/2009/05/how-do-jinitiator-and-jpi-parameters.html
    and followed the steps as mentioned,but it did not work for me.
    Can you help me if you have any info on this?
    Thanks
    GAG

  • How to find out the stop words of an index?

    I am sure it's something very easy but:
    I want to find out the stop words that i am using in a particular index via SQL query?
    I had several indexes with diferent stoplists.
    Thanks

    I already found out.
    thanks.
    for anyone also looking see
    select * from ctx_stopwords;

  • How to find out the encoding of an XML input document

    Hello all,
    I read a XML file into a DOM document and would like to save it back in the same encoding as the input. How do I find out the encoding of the input document?
    This is my code for reading the document:
    import java.io.File;
    import java.io.FileInputStream;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.stream.StreamSource;
    import org.w3c.dom.Document;
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    DOMResult domResult = new DOMResult();
    transformer.transform(new StreamSource(new FileInputStream(fileName)),
                          domResult);
    Document doc = (Document)domResult.getNode();
    .

    FileInputStream fis = new FileInputStream(fileName);
    String encoding = new InputSource(fis).getEncoding();
    fis.close();Note that this only works because you can get an InputStream over the document twice. If the document were coming from an HTTP response (for example) it wouldn't work.

  • Script to find out important ports in an xml file.

    Is there any script to find out important ports detail in the xml file ??

    928983 wrote:
    Is there any script to find out important ports detail in the xml file ??Use the grep command -- http://bit.ly/KqYTVf
    Thanks,
    Hussein

  • How to find out the path of already existing directory?

    I need to get the exact path of 'FCO_DIR' directory. Could you please help me out with this.
    Is there any table name or a quey that I can run to get this information?
    Below is the code that I am using :
    Code:
    l_input_dir CONSTANT VARCHAR2 (30) := 'FCO_DIR';
    l_input_file CONSTANT VARCHAR2 (30) := abc_ca_upd.dat';
    fhandle := UTL_FILE.fopen (l_input_dir, l_input_file, 'r');
    Thanks in Advanvce !!

    900811 wrote:
    I tried running this query in production. I am getting error message ORA-00942: table or view does not exist
    Does this require DBA privileges ?As mentioned before, this should not require "DBA privileges", whatever that means, but it requires rights to query the view (think least privileges principle).
    Did you try querying ALL_DIRECTORIES instead? (or USER_ equivlent)
    In dev environment, I am getting the correct results.What is the output from ALL_DIRECTORIES in dev?

  • How to find out if your query uses the indexes?

    How can one tell if the query being issued is using your indexes or doing full table scans?
    Thank you.

    Thank you.
    Ok, let me see if I understand it. So, having an
    index may not speed things up.True
    Full table scans are not bad at all -- as I have it
    in my head. The query I ran before was: select *
    from table1;In that case an index would only slow things down; you are asking it to get all the information from the table - it has to read all of the table ( a full scan).
    >
    So full table scans and index have to do with the db
    block size and the size of the row correct?
    Block size and row size don't have a huge amount to do with it, but they do play a role.
    Let me ask: How does one know the size of a row and
    then the best option for the db blocks? Block size is a global setting (at the tablespace level I think). You would not likely change the block size based on the average row length in any one table. It would be about the last thing you might look at in terms of tuning (though you might consider it up-front if you had a huge amount of very predictable data).
    >
    And if, I create indexes and queries have the where
    clause and the database uses full table scans then
    does it means that either:
    The database believes that the best execution plan is
    to either do FULL SCANS OR USE INDEXES -- ALL UPTO
    THE DATABASE?
    No. There is another piece of information that the database needs to make good decisions. If for example you have a WHERE clause "WHERE not_paid = 1" and you have an index on not_paid. To make a good decision the database needs to know about how many of the rows are likely to be not_paid =1. If it's 90% then a full table scan will be cheaper than looking up the addresses of 90% of the rows and then getting the data. If it's 10% using the index will be cheaper. You need to use Analyze Tables to get the database to store this information. Looks like you need to use a bit of time with the manuals.
    Jon
    -J

  • Is there any way to find out what brush is applied to a path?

    I'm trying to write a script: select some paths, run the script, then each path that has a brush applied to it is changed to use a random brush whose name is sufficiently similar to its current brush. The application is pretty obvious - draw a bunch of lines in, say, 'ragged marker 1', then give it some extra liveliness by having five or six 'ragged marker' brushes that get randomly chosen.
    The problem I'm running against is that as far as I can tell, Illustrator only lets Javascript set what brush an object is using with brush.applyTo (artItem), but I can't seem to find any way to find out what path a brush is currently using via JS.
    Am I just not looking in the right place of the Javascript reference, or is this really a thing that only has a setter, with no corresponding getter?

    Just like you said earlier
    3.  Re: Is there any way to find out what brush is applied to a path?
           imagecollection     Apr 7, 2015 6:01 PM  (in response to Silly-V)   
    The skill of scripting in Illustrator is to (due to necessity) find the most difficult way to achieve the simplest of tasks...
    so to retort I say this;
    “I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail.”
      ― Abraham Maslow, Toward a Psychology of Being

  • Find out  indexes

    Hi
    How to find out which columns on the table indexes and type of index(Bit map or Btree index)
    Regards
    Mrao

    Here is your query :
    select i.table_name, i.index_name, i.uniqueness, c.column_name, c.descend, c.column_position
    from user_ind_columns c
    , user_indexes i
    where i.index_name = c.index_name
    and i.table_name = 'MYTABLE'
    order by i.table_name, i.index_name, column_position
    You have to change MYTABLE with the name of the table you want indexes.
    You can also find out more information (tablespace, storage...) in user_indexes view.
    Hope this help.
    Regards.

  • Query to find out pertcular schema related datafiles free space????

    hai,
    whats the query to find out free space in datafiles and index files related free space for perticular schmea?
    Regards
    dba

    If you wish to get free space in index tablespace then use following query:
    select b.tablespace_name, tbs_size SizeMb, a.free_space FreeMb
    from
    (select tablespace_name, round(sum(bytes)/1024/1024 ,2) as free_space
    from dba_free_space group by tablespace_name) a,
    (select tablespace_name, sum(bytes)/1024/1024 as tbs_size
    from dba_data_files group by tablespace_name
    UNION
    select tablespace_name, sum(bytes)/1024/1024 tbs_size
    from dba_temp_files
    group by tablespace_name ) b
    where a.tablespace_name(+)=b.tablespace_name
    and a.tablespace_name='INDX';
    and if you get info for all tablespace then :
    select b.tablespace_name, tbs_size SizeMb, a.free_space FreeMb
    from
    (select tablespace_name, round(sum(bytes)/1024/1024 ,2) as free_space
    from dba_free_space group by tablespace_name) a,
    (select tablespace_name, sum(bytes)/1024/1024 as tbs_size
    from dba_data_files group by tablespace_name
    UNION
    select tablespace_name, sum(bytes)/1024/1024 tbs_size
    from dba_temp_files
    group by tablespace_name ) b
    where a.tablespace_name(+)=b.tablespace_name;

  • How to find out how much bytes/ diskspace a tables uses ?

    Hi out there,
    How can I need find out how much bytes/diskspace (data & index) a certain tables(BKPF/BSEG)  uses ?
    Thank You
    Best wishes Martin

    Hi Orkun,
    do You know who its works for clustered tables ?
    For BKPF the amount I get seems to high.
    For BSEG the amount I get it seems to low.In fact uts the initial allocated size).
    To me it seems that DB02 is based on the native (Oracle) SQL table names.
    The (ABAP Dictionnary Tablenames) are not 1:1 equivalent to native (Oracle) SQL table names.
    Thank You !
    Martin

  • How to find out index of string

    Hi,
    Can you help me to find out index of following strting.
    "sss.xxxxx_pain.001.001.02_1002225618.xml"
    need to get value "1002225618".
    ideally i need to get the value inbetween after second "_"  and value before ".xml".
    Thanks
    Mahi

    Hi Mahi,
    UDF should be like this:
    If you do not want .xml in the out replace statement
    var1=var1.substring(sublen+1, len);
    with
    var1=var1.substring(sublen+1, len-4);
    Regards,
    Krupa

  • How to find out web-inf path from the physical drive?

    How to find out web-inf path from the physical drive?
    I have some user profiles in web-inf directory.SO I want to know the path from root directory like
    d:/program files/allaire/jrun/appname/web-inf/profiles/username like that.
    Presently I am able to get the path upto the application directory and from that I am concatinationg web-inf/profiles/username .
    But it is giving problems when it is deployed under unix or linux.Because web-inf there it treats as WEB_INF
    SO I want to get the path of web-inf directory with out hard coding.
    Thanku

    String path = application.getRealPath("/WEB-INF/profiles/username");
    Note sure why you need this, but you don't need the real path to read the file - you can get an InputStream using the relative path. See ServletContext getResource() and getResourceAsStream().

  • Need to find out how to lock a point in a path that will not allow the rest of the path to rotate or move around it

    Hello,
    I am having some trouble with using shape layers and paths to create a solid, flat 'hair' effect in a cartoon animation.
    I have used a semicircle shape layer as the hair on the head itself and then a path with a stroke of the same width as the semi circle to be the long part of the hair.
    Unfortunately when I move/rotate the bottom point in the path it causes gaps to appear further up where the stroke is rotating around the point at which the stroke is supposed to "connect" to the semi circle.
    I have included a couple of screenshots of me rotating the hair opposite ways so you can see.
    - imgur: the simple image sharer
    - imgur: the simple image sharer
    I need to find out if there is a way to lock the top point in place where it joins the semi circle blond hair which will stop this part from moving at all, even rotating around the point.
    But the bottom needs to move freely and obviously the part between the two points will move fairly naturally.
    If you can imagine how a girl with long hair has her hair attached to her head, it does not move at all, but the bottom moves freely. It needs to be like this.
    If you can provide any assistance it would be greatly appreciated.
    Thanks!

    That is perfect thank you so much!
    Can't believe I didn't think of that but you da real MVP!

Maybe you are looking for

  • Import midi  and play to external midi

    When I import a mid(i) file, it creates all the tracks and plays back through the system output. What I would like to do is play it to my USB attached external midi device. I can do this by moving individually each track to a newly created External M

  • Old websites visited keep popping up as tabs when I reopen the browser

    As it says, I have 2 old websites that appear as tabs every time I reopen my browser. How do I get rid of them?

  • Opening .fmx file in form builder

    I have a .fmx form file which I want to open in form builder v6 environment, but could not do it. How do I convert this file to a .fmb so as to open in form builder.

  • Is ACR redundant for me?

    I hate to ask stupid questions but here goes: I import raw files for my Nikon into Aperture. Occasionally, I will export them to PSE 6.0 for creative purposes--so how will ACR help me? Or, maybe the better question is, what will it do that Aperture a

  • Problem in Loading data from R/3 to ODS

    Whn i load data from r3 - tables ,I could not get the data to the data target ODS. What is the problem ? can any one help this out .