View of XMLType of relational data - filtering at the beginning

Database version:
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for Solaris: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
First of all, I want to apologize for my lack of knowledge in Oracle XML DB space. :)

I have a relationship master detail, stored in relational tables. I created XMLType view based on an XSD that relationship master detail. The problem, in that I am running is that this point of view is just a simple join of two tables. In real life I need to return a subset of these two relational tables based on filtering conditions on the master and detail tables. I know that I can use functions such as XMLExist to filter the dataset according to the needs, but the problem is that Oracle built the entirety of an instance of XMLType first (hundreds of thousands of records) and make the filter after the fact.

Is there anyway to exploit an XMLType view, but effectively filter useless records in relational tables?

I'm afraid, is not possible.
With XMLExists, it's going to be all or nothing. We cannot push a filter predicate in a group together like that.

The only solution I can think of is to extract the necessary parts using XQuery, but this way we need to rebuild things parents every time, thus negating the purpose of the view.

I think you need a "set view" to do this, but this is perhaps not an option?

Tags: Database

Similar Questions

  • Data filtering of the subsidiary ledger which are loaded into the tables of BAW of EBS

    Hi all

    Thank you for taking the time to read this post.

    Environment

    Applications of Oracle's BI 7.9.6 (financial and analytical project)
    Oracle E-Business Suite 11.5.10

    Question

    I would like to be able to filter the source EBS 11.5.10 (mainly by the operational unit) that are loaded in the BAW. I've implemented financial analytics and project analytics and to the departure I intended according to the instructions described in the documentation of Oracle Oracle BI Configuration Guide Applications for Informatica PowerCenter section 5.2.2.4 users how to specify the great book or series of books for which GL Data is extracted, but then realized that it wasn't relevant to the General Ledger and would not impact the subsidiary ledgers.

    I want to filter a (large) special operational unit (org_id) whose business do not want to include in their BI reporting at this stage.

    Is it possible to do easily thanks to the configuration? I don't really want to be change all workflow or deletion at the .rpd level.

    I can implement security OU_ORG to limit the data that end users have visibility to display, but my goal is not to fill the BAW tables withthis data in the first place (mainly as a result of the quality of the data volumes and data) which are perform my execution Plans.

    Kind regards
    Gary.

    Gary, this can be done by a simple configuration. For the moment, this done as a customization. Basically, you need to add a filter to the mappings of extract (SDE) that you want to limit the data.

  • How to let the data appears at the beginning of the second page?

    Hi all
    I created a form type report and model layout is like this:

    ! http://up1.arb-up.com/files/ARB-up-2009-9/Fgm23304.jpg!

    You can see the parents repeat the number of frame 1 and child number 2 in red
    Suppose that the normal image that contains f1 is spreading by the areas falling under repeat part 1
    If I run the report, the first page is displayed normally, but the second page the "f2" field will not appear at the beginning of this. I want the field f2 appearing at the beginning of page 2 because there is a blank space at the beginning of this one.

    the value of the vertical elasticity of the image containing F_1 variable or shrink.

  • "Filtering exceeds the maximum time" error in the crawl log

    A track log contained the following error. Is this error related to the Configuration of robot setting "Crawler Timeout (seconds) threshold? (Mine is set * 30 * seconds.)

    "Filtering exceeds the maximum time * 108 * seconds; killed process. dating status 1 without any error message.

    No, they are not related. Filtering is the process of conversion to the format (Word, PDF) documents into searchable text. If it exceeded the 108 seconds the process had almost certainly hanged, most likely indicating a corrupt file.

  • Poor performance of XMLType? (compared to relational data recovery)

    Hello

    I am currently a concept for relational storage of XMLType Vs.

    I have TABLE_A which has the following DDL:
    CREATE TABLE 'WEBUSER. "' TABLE_A '.
    (NUMBER (10.0) 'HEADER_NUM',)
    NUMBER (10,0) "DETAIL_NUM."
    "XML_RESPONSE" 'SYS '. "" XMLTYPE.
    ) STORE 'XML_RESPONSE' COLUMN XMLTYPE AS RELATIONAL XMLSCHEMA 'MySchema.xsd' ELEMENT 'test '.


    I TABLE_B which has ordinary relational table structure (with each column represents one node in MySchema.xsd. The schema is around 85-100 items.

    Now I'm under queries as follows:

    (A) TO RETRIEVE THE XMLTYPE COLUMN

    StringBuilder queryStr = new StringBuilder();
    queryStr.append ("SELECT X.* FROM TABLE_A X WHERE ROWNUM < = 10000 ORDER BY X.DETAIL_NUM");
    pstmt = conn.prepareStatement (queryStr.ToString ());
    RS = pstmt.executeQuery ();
    int totalRecordsFiltered = 0

    While (RS. Next())
    {
    totalRecordsFiltered ++;
    }
    System.out.println (totalRecordsFiltered);

    (B) TO RETRIEVE VALUES OF RELATIONAL TABLE

    StringBuilder queryStr = new StringBuilder();
    queryStr.append ("SELECT X.* FROM TABLE_B X WHERE ROWNUM < = 10000 ORDER BY X.DETAIL_NUM");
    pstmt = conn.prepareStatement (queryStr.ToString ());
    RS = pstmt.executeQuery ();
    int totalRecordsFiltered = 0

    While (RS. Next())
    {
    totalRecordsFiltered ++;
    }
    System.out.println (totalRecordsFiltered);


    When the number of rows in both tables is 10,000
    -(a) While loop ends in about 5 min
    -the while loop in point b ends in about 10 sec

    Note that I don't really anything inside the while loop. I just want to see how long it takes to make a loop on the resultset object.
    Can you please tell me why we see this difference in the two types of data storage? I do something wrong in the way resultset is handled?

    I use Oracle 10 g / ojdbc14.jar is with JDBC thin driver / Websphere Application Server

    Published by: 916343 on March 7, 2012 13:03

    Published by: 916343 on March 7, 2012 13:04

    XMLType will always run slower than purely relational in a comparison between.

    No one is using XMLType for performance... they use it for his many other attributes.

  • Using different filters on the same measure in single result table (view)

    I have a table of twelve columns, each column with different filters tailor-made same table actually. Say a filter column (several people existing on 01/01/2003) comes from people dimension (date_of_birth < = January 1, 2003 ""). Two filter in column b (number of people living in Bucharest between 1 January 2004 and 1 January 2006 "") is (between 2004 and 2006 date_of_birth) etc.
    How do I use column a & column b in the same table of results (view)? I need the different filters on the same table.

    Thank you!

    Published by: seiciu on March 27, 2010 08:51

    Hello
    This filter clause works.
    filter (using Date = current_date)
    filter (using Date = date'2010-01-01')
    filter (measures using the year between 2004 and 2006)
    Concerning

  • How to load firefox when I get this message of corrupted content error, the page you are trying to view cannot be shown because an error in the transmission of data.

    When I connect Firefox, it starts to load the page problem loading page and this message pops up error content corrupted

     The page you are trying to view cannot be shown because an error in the data transmission was detected.
    

    Same problem here. I don't see a fix listed on this site. If anyone has found a?

  • TDMS Viewer and excel display different data

    Hello

    I have a problem of reading/viewing my PDM file. My file contains 37 channels and about 7 000 samples per channel. (Just this file... Later, I have to develop on many more ~ 150 k samples per channel)

    Now my problem is: if I open the PDM file with VI TDMS files Viewer, it starts to change the channel after ~ 1000 samples (Channel 29-37(MM1-MM9) should always be-32768, but after 1000 samples, the channel passes their place

    My analysis of switching: after ~ 1000 channels 29-37(MM1-MM9) is the 11-19 after ~ 2000 on 30-1 after ~ 3000 on 12-20, etc...

    Besides the switching channel there is a block of lines ~ 30 only filled every 0 ~ 1000 samples

    But if I open the file in Excel with the PDM-Addin is to show the correct data. Why is this and how to fix the Viewer?

    Hope you understand what I'm trying to say

    I have a my TDMS attached as a ZIP file, could not fix a PDM directly.

    It must be a bug of PDM, not the file viewer component. We will go is studying the issue. Workaround for you call the node "PDM defragment" to defragment this file, then it might appear correctly in the Viewer.

    According to your file, I found that the file has been created by TDMS Advanced knots. You define 10000 samples for an interlaced channel, but you write only 499 samples for a channel in writing. I suggest setting the sample counts exactly acrrording how are going to write.

  • How to plan the report filtered by dynamic date based on the date, the Agent is running

    Hello

    I have a question about account using OBIEE agent.

    If I run an agent today to deliver A report, can I me A report based on the date of last Monday or any dynamic dates?

    For example, say is today, December 18, 2013, and my agent is run according to how I put the calendar. Now the content of the delivery report one being delivered. Now A report has a date column, normally this column is filtered by the current date. But if it comes through the agents to different users, the data should be the previous Monday, so in this case, 9 December 2013. When this agent is run once again, declared December 27, 2013, then the report must be filtered by December 16, 2013, which is the previous Monday 27 dec.

    Something like this is possible in OBIEE 11 G?

    Thanks in advance.

    Yala,

    Not in a straightforward way

    (1) let the report through Agent with filter current Date

    (2) after he ran for the first time you can see IBOT name/last execution time (LAST_RUNTIME_TS) in S_NQ_JOB

    Create a variable reference 'last_run_agent' to aid in sql to get max (LAST_RUNTIME_TS)

    SELECT max (LAST_RUNTIME_TS) from s_nq_job, whose name = "AGENT_NAME;

    Change analysis with current date filter report and amend accordingly the condition of filter to filter on repository variable, newly created

    Thank you

    Angelique

  • Data filtering

    Hello

    can anyone help on this below requirment? the requirment is, there are a many (2) replication (oracle for oracle only), the particular source of tables in database with all the data of 2 regions (United Kingdom and New Zealand), replication must come from a source of first target with only the datas UK and NDDN target will be with the NZ data. simple method how we can use to achieve this, the table has the column "region_name". but when I use under the control of filter caps letter No filtering as the name of the region, only its filtering as we mentioned in the filter condition, how to filter if region name the two caps (UK) are in small letters (uk)?

    TABLE CBC. ACCOUNTS, FILTER (@STRFIND (rated, 'uk') > 0);

    the same tried with where clause and the filter also, clause but is not region name of replication like UK (caps), only replication of data with "uk".

    advice where to mention the terms of filter extracted also aside or replicate for better performance?

    Thanks in advance.

    Could you try with one of the following?

    TABLE CBC. ACCOUNTS, FILTER (@STRFIND (@STRUP (rated), 'UK') > 0);
    or
    TABLE CBC. ACCOUNTS, FILTER (@STRFIND (UPPER (rated), 'UK') > 0);

    The best way to do it is to use an extract that extracts all the data. Use then the two excerpts from datapump, which filters UK data and one that filters data NZ.

  • The date type of the column in the view

    Hello

    I would like to keep the start_date column type as a "date" type. But when create the view like below the type of the column is automatically set to varchar2 (11)

    {code}
    create table emp
    (digital emp_no
    , varchar2 (10) name
    start_date date);

    insert into the emp
    values
    (10, "Alan", January 1, 2010 "")
    insert into the emp
    values
    (20, 'Smith', may 12, 2000 ')

    create or replace view emp_v
    (emp_no
    first name
    start_date
    )
    as
    Select
    e.emp_no
    e.first_name
    , to_char (e.start_date, ' Mon-dd-yyyy "")
    from emp e
    {code}

    Thanks in advance
    Concerning
    Anna

    insert into the emp
    values
    (10, "Alan", January 1, 2010 "")
    insert into the emp
    values
    (20, 'Smith', may 12, 2000 ')

    you forcing oracle to convert string to date here - the best practice is to say explicitly what you mean with a to_date()

    the reason for which the view is created with a varchar column is that you explicitly convert a character with to_char() value, something you don't need as demonstrated above the column date.

  • I have a problem with a graphic refreshing after its related data provider changes.

    I have a problem with a graphic refreshing after its related data provider changes. After calling the subsetHighLowData.refresh () I expect the table to redraw, but he looks always the same. I even checked the debugger to see if the range had occurred and he had.

    Ideas of friend codes?

    "nikos101" wrote in message
    News:gib6aa$PRR$1@forums. Macromedia.com...
    > I have a problem with a graphic refreshing after its related data provider
    > changes.
    > After calling the subsetHighLowData.refresh () I expect the graph
    > to
    > redraw, but it still looks like the same. I even checked the debugger to see
    > If
    > the slice took place and he had.
    >
    > Any ideas friends coding?
    >
    > subsetHighLowData.source =
    > highLowData.source.slice(slider.values[0],slider.values[1]);

    Just use the removeItemAt collection ArrayCollection, and it must handle the event
    a distribution for you.

    HTH;

    Amy

  • LCM-importing relational data-&gt; planning units

    In LCM, when I import relational data, I don't want to import account Annotations, extra and the texts of the cell details because there may be a lot of junk in them. Relational data section also includes "planning unit". Do I have to import the planning units? Is this Unit the same as this combination Dept Planning, scenario / Version? I find it odd that the planning units would be by virtue of the section of relational data. When I import the Type of Plan, I would expect planning units to be automatically copied to.

    Hello

    The planning unit information should all relate to any workflow you have in progress, if you want to migrate your current workflow then you migrate planning units.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • View the information from the related table instead of the ID in several line datablock

    Hello

    I searched on the web, the forum and the documentation, but I have not found a solution to this problem:

    I have two tabs with a relationship of the master / detail of one-to-many. Block detail data shows several lines such that it can be several associations table of mater in the details and I want to display the description of the master data block instead of the field with the ID for each line in the block of retail.

    I tried to place an item with the option 'copy value', but then I lose the relationship of master / detail, because that is what forms wih the field id for linking blocks.

    Also, I've seen in other posts that I can use a view, but I can't understand how would I update or remove data then.

    The only thing that I realized is to the description field in its own datablock in the same tab, a relationship master / detail-detail (or master-detail-master). BTW, I don't think it's beautiful "formulas"programming"and it does too much for my needs."

    I guess it must be a trivial thing, but I don't know what to try next. Thanks in advance!

    Published by: user10278211 on Sep 17, 2008 20:13

    AAH, I think now I got your management!

    You have 1 Deptno and dname "XYZ" in the master and you want to display:

    EmpNo Ename DName
    1     User1 XYZ
    2     User2 XYZ
    

    -What?

    If so:

    1 create a new element in the retail block, let's call it DSP_DNAME, set database property to point to 'no '.
    2. create a POST-QUERY-Trigger on detail-block with the code: DETAILBLOCKNAME. DSP_DNAME: =: MASTERBLOCKNAME. DNAME;
    3. create WHEN-CREATE-RECORD-Trigger with the same code.

    That's all

  • Smart View adhoc unable to present data

    "We try to present data using smartview adhoc"send data"button."  However, instead of the values hard-coded in the data cell, we use a formula to calculate the value to be submitted.

    for example, in cell F24, instead of typing in 200, he uses a cell containing the A10 * 2 formula for calculating a value at present.  When I click on send data with this formula, it will not submit the data.  I know that the intersection points are valid because if I sumbit a hard coded value it is sent successfully.

    I have the "Preserve and comments on ad-hoc (except pivot) checked operation formula.  If I have it uncheck the box and click on submit.  It reminds me of the data in the cube and my formulas have disappeared.  So I can not delete the check mark for the formula "Preserve."

    is it possible to submit data based on the calculated value?

    We will present the Essbase cube data as HFM. »

    https://community.Oracle.com/message/11226945#11226945

    It is a question of a previous post from another user. The original solution, said that this bug has been fixed in the 11.1.2.2 version however I use SV version 11.1.2.3.4408 and has the same problem.

    I found that if I use twice the button submit data, data can be recovered. Is it normal to click twice on the button submit data or this bug has been addressed?

    Thank you!

    To change the values to zero, it must go to smart display on the tab options options data, and select submit zero (you may need to change the #Missing to #Numericzero to make it work

    It is preferable to refer #missing to the database instead of the zeros as zeroes are considered datavalues and are stored as opposed to #missing which is not. Zeros can inflate the saze of your DB and everything slow

Maybe you are looking for

  • Could not open the app store on iphone 6splus

    My Appstore used for good work. Now, I can only open the updates, all other 4 tabs in appstore are empty. I have an iphone 6s more 64 G

  • iCloud shows my purchase downloaded as not downloaded nor on my iPhone and iTunes

    Well, I swear to you that sometimes I am crazy because of the iCloud function, first of all I want to know what a little problem is that? I am on iOS 9.2.1 and 6s iPhone more and just bought an entire season to see the TV for my camera and I download

  • on the timing and the GUI control loop

    Hi all I have a code with two buttons placed on the Panel, one is EXECUTED, another is STOP. Initially, STOP is disabled and when I launch RUN, the JUDGMENT will turn off. But when the JUDGMENT is made, the RACE will be activated. #include "testimg.h

  • interrupt an event of any other event handler

    Is it possible to have an event that interrupts another handful rutin event? I mean, I have an event handle the structure with several events (case). One of this event takes place, and the structure begins to run in rutin. Meanwhile, rutin is running

  • Can't find driver

    I have HP ProBook 4510 s with Windows XP! Can you advise me - which driver should I, to make the quick launch buttons work (I mean extra - functions that should work with "fn" - button)?