questions AF:Query a taskflow

JDev: 11.1.2.1

I created a simple merger application, using the country HR and tables of the Department. The ViewController contains a home page and a taskflow.

The taskflow accepts a parameter "SearchBy", and I have a router (by default) which then redirects the user to one of the two pages, based on this setting.
< case id = "__1" >
< expression > #{pageFlowScope.SearchBy eq 'country'} < / expression >
< result > country < / results >
< / Body >
< case id = "__2" >
< expression > #{pageFlowScope.SearchBy eq 'departments'} < / expression >
< result > departments < / results >
< / Body >

The two pages "CountriesQueryPage" and "DeptsQueryPage" are nothing more than a standard (with table) af:query according to the criteria named "All searchable attributes" for the respective points of view.

The homepage contains the taskflow above as a region and a few links, including the value of a parameter #{requestScope.SearchBy}. The taskflow link has been changed to Refresh "ifNeeded.
< af:panelHeader text = "panelHeader 1" id = "ph1" >
< f: facet = 'context' name / >
< name f: facet = 'bar menu' / >
< f: facet name = "toolbar" >
< af:group id = "g1" >
< af:commandLink text = 'Country' id = "cl1" partialSubmit = "true" >
< af:setPropertyListener = ' #{'countries'} "to =" #{requestScope.SearchBy} ' "
type = 'action' / >
< / af:commandLink >
< af:spacer width = "10" height = "10" id = "s1" / >
< af:commandLink text = "Departments" id = "cl2" partialSubmit = "true" >
< af:setPropertyListener = ' #{'departments'} "to =" #{requestScope.SearchBy} ' "
type = 'action' / >
< / af:commandLink >
< / af:group >
< / f: facet >
< f: facet = name "legend" / >
< f: facet = 'info' name / >
< af:region value = "#{bindings.tf11.regionModel}" id = "A1" partialTriggers =": cl1: cl2" / >
< / af:panelHeader >


When I run the present, the 'country' default page in the region. Af: query works perfectly. When I click on the link to the page of departments, the region cools as expected, but when the rendering of the table of queries, an error "failed to load... content data transmission was interrupted. Check the log, I get...
< LifecycleImpl > < _handleException > ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase 6 RENDER_RESPONSE
java.lang.IllegalStateException: component data flow is not found
< FaceletViewHandlingStrategy > < handleRenderException > view made Error [home]
java.lang.IllegalStateException: component data flow is not found

Can't find much online about this error message.
The only way that I was able to stop the issue is to remove the af: table on the departments query page.
I also tried to use a dynamic region to get the functionality above (splitting each page in its own taskflow application and removing the router) and got exactly the same problem.

Any ideas?

Thank you

Published by: drb on November 24, 2011 18:31

Hello

can you send me a test case. My email address is in my profile OTN (just click on my OTN username). Put the workspace in a ZIP file and rename the ZIP extension to DECOMPRESS

Frank

Tags: Java

Similar Questions

  • Question on query SQL Tuning

    We have made from a 9i database to an 11 g database.  The defined query works perfectly under 9i (about 1 second) but takes 60 to 70 seconds back to 11g.  The strange thing is that it has an outer query and a subquery.  If I remove the where clause of the outer query, it runs in less than a second.  Here's the query...

    SELECT the period, biweek_start, biweek_end, pay_period_complete, worker_count

    FROM (SELECT to_char (en.start_date, ' dd/mm/yyyy') |) « à » ||

    TO_CHAR (en.start_date + 13, ' dd/mm/yyyy') period.

    en.start_date biweek_start,

    en.start_date + biweek_end 13,

    Decode (sign (sysdate - en.start_date - 13),

    -1,

    'Ongoing',

    Pay_period_complete 'Done'),

    ta_mssauth_pkg.actual_endorser (en.start_date, '33811') worker_count

    FROM (select worker_id,

    default_endorser resolved_endorser,

    effective_date,

    correspondents

    of endorse_delegate_history_v

    where default_endorser = '33811'

    Union

    Select worker_id,

    temporary_delegate resolved_endorser,

    effective_date,

    correspondents

    of endorse_delegate_history_v

    where temporary_delegate = '33811'

    and temporary_delegate is not null),

    endorse_activity_v en

    WHERE en.worker_id = de.worker_id

    AND en.endorse_status = n

    AND en.start_date < = de.expiration_date

    AND en.start_date + 13 > = de.effective_date

    GROUP BY en.start_date)

    WHERE worker_count > 0;

    The function that is used in the inner query to generate the worker_counts is quite complex.  But it works subsecond if you run manually.  And it works very well when you run the query without the "where worker_count > 0" part.

    So the where clause of the outer query seems to be the cause of the problem - it is based on a function which should have calculated a value FIRST, and then the outer query must run depending on the result of the inner query.  Here are the plans to explain to the two different versions:

    BAD REQUEST - 60 to 70 seconds

    Object owner name cardinality bytes cost object description
    SELECT STATEMENT, GOAL = 41 1 617 ALL_ROWS
    HASH GROUP BY 41 1 617
    NESTED LOOPS
    616 1 41 NESTED LOOPS
    VIEW CA17062 58 186 4464
    58 186 5392 SINGLE FATE
    UNION-ALL
    TABLE ACCESS BY INDEX ROWID TAS_AUTH ENDORSE_DELEGATE_HISTORY_TBL 42 139 4170
    INDEX RANGE SCAN TAS_AUTH ENDORSE_DELEGATE_HIST_DEF_IDX 3 139
    TABLE ACCESS BY INDEX ROWID TAS_AUTH 14 47 1222 ENDORSE_DELEGATE_HISTORY_TBL
    INDEX RANGE SCAN 3 47 ENDORSE_DELEGATE_HIST_TEMP_IDX TAS_AUTH
    INDEX RANGE SCAN TAS_AUTH 2 1 TA_SCLENDORSE_PK

    TABLE ACCESS BY INDEX ROWID 3 1 17 ENDORSE_ACTIVITY_TBL TAS_AUTH

    GOOD QUESTION < 1 second

    Object owner name cardinality bytes cost object description
    SELECT STATEMENT, GOAL = 1025 25 617 ALL_ROWS
    HASH GROUP BY 1025 25 617
    NESTED LOOPS
    616 25 1025 NESTED LOOPS
    VIEW CA17062 58 186 4464
    58 186 5392 SINGLE FATE
    UNION-ALL
    TABLE ACCESS BY INDEX ROWID TAS_AUTH ENDORSE_DELEGATE_HISTORY_TBL 42 139 4170
    INDEX RANGE SCAN TAS_AUTH ENDORSE_DELEGATE_HIST_DEF_IDX 3 139
    TABLE ACCESS BY INDEX ROWID TAS_AUTH 14 47 1222 ENDORSE_DELEGATE_HISTORY_TBL
    INDEX RANGE SCAN 3 47 ENDORSE_DELEGATE_HIST_TEMP_IDX TAS_AUTH
    INDEX RANGE SCAN TAS_AUTH 2 1 TA_SCLENDORSE_PK
    TABLE ACCESS BY INDEX ROWID 3 1 17 ENDORSE_ACTIVITY_TBL TAS_AUTH

    If these expleain plans look almost identical to me - can someone tell me why having where clause of the outer query is originally so wrong and how I can solve this problem?  I tried using the NO_MERGE and PUSH_SUBQ - tips but nothing of what I did so wrong not better requested.

    Thanks in advance!

    Cory

    You can also try taking advantage of the scalar subquery caching by changing

    ta_mssauth_pkg.actual_endorser (en.start_date, '33811') worker_count

    TO

    worker_count (select ta_mssauth_pkg.actual_endorser (en.start_date, '33811') of double)

    Which could cache the results for recent start dates, massively reducing the number of calls.

    I think the NO_PUSH_PRED is a better approach, because the cache is less reliable to eliminate duplicate calls - it can cache the value, it could have thrown the corresponding value in the cache already, there is no guarantee of behavior and values the more en.start_date the request to meet the less reliable the caching will be.

  • Newb question: SQL query on an imported table

    Hi all. I'm a newb, that this issue will probably tell you!
    But I am very interested to familiarize themselves with the Oracle environment.

    I installed 10g Express.
    I was able to set up a new user (schema) profile?

    I created a new table, by importing an Excel file, saved as a CSV file. It has a PK.

    When I log in as an administrator, I can see the table 'discovers' the content.
    However, I can't run a SQL command with the new table.
    It is said Table or view does not exist.

    The table is called "Customers" and contains a column called "City" and I type City Select From Customers.

    Like the Adminisistrator, I have "given" all the rights for the new table to my profile newly created (schema).
    When I connect as long as this new person, I can't see the new table imported into the list of tables, yet alone to run an application or a SQL to it. What did I miss?

    Any tips will be appreciated. Glyn gray...

    Published by: user12501005 on February 7, 2010 11:26

    Hello

    You wrote:
    The original table is still visible to the diagram of the system, but he reports yet again as saying that the table does not exist when I try SQL.
    So is there a reason why a table imported is visible to the user DBA, but SQL does not exist?
    The other imported tables, those the DBA can run SQL still aren't visible to other users (schemas).
    The DBA has "tuned" EVERYTHING to the default HR schema.
    When I connect like HR, I'm unable to find the given table and SQL reports that the table does not exist.

    If I understand that you have created a Table in the schema of the SYSTEM, and you cannot question him by SQL.

    For example, if you then create a table A in the diagram of SYSTEM, you can view the table A if you connect to the database
    SYSTEM or any intended user he has the privilege to CHOOSE ANY TABLE.

    If you are connected to a user (for example, HR), which does not have this privilege, you can not query the Table.

    If you have a privilege to HR as follows:

    connect system/
    grant select on A to HR;
    

    Then you can query the Table has to HR:

    connect HR/
    select * from system.A;
    

    Hope this helps.
    Best regards
    Jean Valentine

  • Question of query OR Simulator

    Hello. I have an Instrument Simulator NOR I've tested using the test panel VISA to the MAX to test. "I'm not sure of what is happening but when I ask a simple * IDN?, read 00062\r\n. Then, when I ask it again, it reads "National\sInstruments\sGPIB\sand\sSerial\sDevice\sSimulator\sRev\sB.1\n". When I ask it again, it rereads the '00062\r\n '. He flip-flops between the two with each request. It is to me that I need to question constantly twice, in order to obtain the desired data read? I don't know how to put this in a Vi. I tried a lot of different things, but it always the same fate. Even if I delete the registry and tried an individual entry and read, then it does the same thing. Is this normal and how do I do this in Vi?

    Thank you very much for your support.

    You need to refine your Google-fu skills. I was thinking something like this - http://www.amazon.com/TekPower-TP4000ZC-RS232-Interaced-Ranging-Multimeter/dp/B000OPDFLM/ref=cm_cr_p...

  • Question of query with row_number

    Hello

    I need help to change this query, so that I can select all the results where NAS = 1.

    I tried this:
    SELECT DEPTNO, ENAME, 
               row_number() over(partition BY DEPTNO ORDER BY DEPTNO  ASC) AS rna,
               row_number() over(partition BY DEPTNO ORDER BY DEPTNO DESC) AS rnd
          FROM emp
     where rna = 1
      ORDER BY DEPTNO ASC, rna ASC
    But it dosent work
    SELECT DEPTNO, ENAME, 
               row_number() over(partition BY DEPTNO ORDER BY DEPTNO  ASC) AS rna,
               row_number() over(partition BY DEPTNO ORDER BY DEPTNO DESC) AS rnd
          FROM emp
    
      ORDER BY DEPTNO ASC, rna ASC
    result
    DEPTNO     ENAME     RNA     RND
    10     CLARK     1     1
    10     KING     2     2      2
    10     MILLER     3     3
    20     JONES     1     1
    20     SCOTT     2     2
    20     ADAMS     3     3
    20     SMITH     4     4
    30     ALLEN     1     1
    30     WARD     2     2
    30     TURNER     3     3
    I want to have this result:
    10     CLARK     1     1
    20     JONES     1     1
    30     ALLEN     1     1
    Thanks in advance

    Roseline

    Hello

    Try this code

    SELECT   deptno, ename, rna, rnd
        FROM (SELECT deptno, ename,
                     ROW_NUMBER () OVER (PARTITION BY deptno ORDER BY deptno ASC)
                                                                           AS rna,
                     ROW_NUMBER () OVER (PARTITION BY deptno ORDER BY deptno DESC)
                                                                           AS rnd
                FROM emp)
       WHERE rna = 1
    ORDER BY deptno ASC, rna ASC
    
        DEPTNO ENAME             RNA        RND
    ---------- ---------- ---------- ----------
            10 CLARK               1          1
            20 JONES               1          1
            30 WARD                1          1
    
    3 rows selected.
    
  • Question about query hirarchical

    Hi gurus!

    I have a problem with a query hirarchical. I want is possible to query the information on the table a and b table of hierarchically.

    Table one
    < pre >
    e_id, e_name e_num
    1 ABC 100
    2 200 DEF
    < / pre >
    Table b
    < pre >
    d_id, d_name e_id d_num
    1 300 ABC 1
    2 400 DEF 1
    3 500 GHI 2
    4 600 JKL 2
    < / pre >

    The lines should be displayed like this:
    < pre >
    e_id, e_name d_id, d_name d_num e_num
    1 ABC 100
    1 300 ABC
    DEF 2 400
    2 200 DEF
    3 500 GHI
    4 600 JKL
    < / pre >

    Please tell me if this is possible.

    I'm waiting for your answers.

    Yours sincerely


    Florian W.

    Florian,

    This isn't exactly a hierarchical query as far as I can see, but you can generate the additional lines using a rollup:

    SQL> create table a (e_id, e_num, e_name)
      2  as
      3  select 1, 100, 'ABC' from dual union all
      4  select 2, 200, 'DEF' from dual
      5  /
    
    Tabel is aangemaakt.
    
    SQL> create table b (d_id, d_num, d_name, e_id)
      2  as
      3  select 1, 300, 'ABC', 1 from dual union all
      4  select 2, 400, 'DEF', 1 from dual union all
      5  select 3, 500, 'GHI', 2 from dual union all
      6  select 4, 600, 'JKL', 2 from dual
      7  /
    
    Tabel is aangemaakt.
    
    SQL> select case lag(max(a.e_id)) over (partition by a.e_id order by b.d_id nulls first) when a.e_id then null else max(a.e_id) end e_id
      2       , case lag(max(a.e_num)) over (partition by a.e_id order by b.d_id nulls first) when a.e_num then null else max(a.e_num) end e_num
      3       , case lag(max(a.e_name)) over (partition by a.e_id order by b.d_id nulls first) when a.e_name then null else max(a.e_name) end e_name
      4       , b.d_id
      5       , b.d_num
      6       , b.d_name
      7    from a
      8       , b
      9   where a.e_id = b.e_id
     10   group by a.e_id
     11       , a.e_num
     12       , a.e_name
     13       , rollup((b.d_id, b.d_num, b.d_name))
     14   order by a.e_id
     15       , b.d_id nulls first
     16  /
    
          E_ID      E_NUM E_N       D_ID      D_NUM D_N
    ---------- ---------- --- ---------- ---------- ---
             1        100 ABC
                                       1        300 ABC
                                       2        400 DEF
             2        200 DEF
                                       3        500 GHI
                                       4        600 JKL
    
    6 rijen zijn geselecteerd.
    

    Kind regards
    Rob.

  • Question of query result table

    Hi all

    For the following tables, I expect results reported below. But the one I received was different

    with tab1 as (
                 select 'aaa' c1,'www' c2, 'sss' c3 from dual union ALL
                 select 'bbb' c1,'ttt' c2, 'wsw' c3 from dual union ALL
                 select 'xxx' c1,'zzz' c2, 'rer' c3 from dual union ALL
                 select 'ccc' c1,'kkk' c2, 'ftf' c3 from dual
                 ),
          tab2 as (select 'ttt' g1,'ppp' g2 from dual union ALL
                   select 'kkk' g1,'yyy' g2 from dual union ALL
                   select 'qqq' g1,'fff' g2 from dual union ALL
                   select 'uuu' g1,'jjj' g2 from dual
                   ),
        tab3 as (  select 'sss' h1,'uuu' h2 from dual union ALL
                   select 'bbb' h1,'mmm' h2 from dual union ALL
                   select 'rer' h1,'qqq' h2 from dual union All
                   select 'jjj' h1,'ddd' h2 from dual
                   ),
        tab4 as (  select 'mmm' j1,'vvv' j2 from dual union ALL
                   select 'uuu' j1,'lll' j2 from dual union ALL
                   select 'qqq' j1,'eee' j2 from dual union ALL
                   select 'ddd' j1,'rrr' j2 from dual)
    select tab1.c1, tab2.g2, tab3.h2, tab4.j2 FROM tab1, tab2, tab3, tab4
    WHERE tab1.c2 = tab2.g1 (+)
    AND tab1.c3 = tab3.h1
    AND tab3.h2 = tab4.j1
    Expected results
    tab1.c1    tab2.g2   tab3.h2    tab4.j2
                  
    aaa                        uuu          lll
    bbb         ppp           
    xxx                        qqq          eee 
    ccc          yyy 
    Please explain


    See you soon

    Sexy
    with tab1 as (
                 select 'aaa' c1,'www' c2, 'sss' c3 from dual union ALL
                 select 'bbb' c1,'ttt' c2, 'wsw' c3 from dual union ALL
                 select 'xxx' c1,'zzz' c2, 'rer' c3 from dual union ALL
                 select 'ccc' c1,'kkk' c2, 'ftf' c3 from dual
                 ),
          tab2 as (select 'ttt' g1,'ppp' g2 from dual union ALL
                   select 'kkk' g1,'yyy' g2 from dual union ALL
                   select 'qqq' g1,'fff' g2 from dual union ALL
                   select 'uuu' g1,'jjj' g2 from dual
                   ),
        tab3 as (  select 'sss' h1,'uuu' h2 from dual union ALL
                   select 'bbb' h1,'mmm' h2 from dual union ALL
                   select 'rer' h1,'qqq' h2 from dual union All
                   select 'jjj' h1,'ddd' h2 from dual
                   ),
        tab4 as (  select 'mmm' j1,'vvv' j2 from dual union ALL
                   select 'uuu' j1,'lll' j2 from dual union ALL
                   select 'qqq' j1,'eee' j2 from dual union ALL
                   select 'ddd' j1,'rrr' j2 from dual)
    select tab1.c1, tab2.g2, tab3.h2, tab4.j2 FROM tab1, tab2, tab3, tab4
    WHERE tab1.c2 = tab2.g1(+)
    AND tab1.c3 = tab3.h1(+)
    AND tab3.h2 = tab4.j1(+)
    /
    
    C1  G2  H2  J2
    --- --- --- ---
    aaa     uuu lll
    xxx     qqq eee
    ccc yyy
    bbb ppp
    
    SQL> 
    

    SY.

  • Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?

    Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?

    Welcome to Oracle Forms!  Out of curiosity, what do you mean by 'new '?  You are a student or new to an organization that uses Oracle Forms?  Or just play with Oracle Forms to learn something new?

    Let me start by saying that many of your questions designtime can answer by searching in the help of the constructor of the form library.  It's accessible, like most of the other products in the Builder menu > help.

    Regarding your question, ENTER QUERY mode, as the term implies, is when it is in a State where it is accept input for the execution of a query.  When in this mode, there are various restrictions.  Yet once, it will find more details in the Builder Help.  In this case, search help for these two subjects, "SYSTEM." MODE'and "built-ins comments that are not allowed in the input query Mode".  There are many other pages that contain information about the ENTER_QUERY method, but these two should help you get started.

    Normal mode, as its name implies, is when it is in a State of 'normal '.  Basically to do nothing in particular, but also not in ENTER QUERY mode.  In this State, you can move the shape, INSERT, UPDATE, DELETE, documents, etc..

    You will find additional information, as well as a lot of documentation on the product page of forms of OTN:

    http://www.Oracle.com/technetwork/developer-tools/forms

  • Complex query - sort, join

    Hello

    I have and control panels and Department.

    I'm trying to get a set of records as such:
    * get 50 entries of orders with the lowest time_of_order time table, time of order is not null and department_id = 1
    * Get 40 records of control panel with the lowest time of time_of_order, at the time of the order is not null and department_id = 2
    * get 30 records in the order with time table lowest of time_of_order, at the time of the order is not null and department_id = 3
    ...
    * get 10 records in the table control with the lowest time_of_order time, time of order is not null and department_id = 5


    I came up with something like this:

    SELECT items.order_id,
    Items.Order_Details,
    Items.department_name
    Items.time_of_order
    FROM (SELECT Row_number()
    During)
    ORDER BY time_of_order ASC) AS ROW_NUMBER,
    NS.order_id,
    NS. Order_Details,
    NS.department_name
    NS.time_of_order
    Ns orders
    outer join left Department dept
    ON ns.department_name = dept.department_name
    WHERE dept.department_id = 1
    AND ns.time_of_order IS NOT NULL
    WHERE row_number < = 50
    UNION ALL
    ...
    UNION ALL
    SELECT items.order_id,
    Items.Order_Details,
    Items.department_name
    Items.time_of_order
    FROM (SELECT Row_number()
    During)
    ORDER BY time_of_order ASC) AS ROW_NUMBER,
    NS.order_id,
    NS. Order_Details,
    NS.department_name
    NS.time_of_order
    Ns orders
    outer join left Department dept
    ON ns.department_name = dept.department_name
    WHERE dept.department_id = 5
    AND ns.time_of_order IS NOT NULL
    WHERE row_number < = 10



    This statement is very long and effective questionable (my query would go again and again looped while the data changes dynamically. There is large amount of data).

    How can I rewrite it without all these statements of UNION? Do you see how to improve the effectiveness of the statement? I'd appreciate any help.

    Hello

    IF you "PARTITION BY department_id", you get results like a UNION, where each branch of the UNION made only department_id.

    Here's one way:

    WITH  got_r_num      AS
    (
         SELECT  ns.order_id
         ,     ns.order_details
         ,     ns.department_name
         ,     ns.time_of_order
         ,     dept.department_id
         ,     ROW_NUMBER () OVER ( PARTITION BY  dept.department_id
                                   ORDER BY          ns.time_of_order
                           )          AS r_num
         FROM           orders          ns
         LEFT OUTER JOIN      department     dept  ON   ns.department_name  = dept.department_name
         WHERE   dept.department_id     IN (1, 2, 3, 4, 5)
         AND     ns.time_of_order     IS NOT NULL
    )
    SELECT       *     -- or list all columns except department_id and r_num
    FROM       got_r_num
    WHERE       r_num          <= 10 * (6 - department_id)
    ORDER BY  department_id
    ,            r_num
    ;
    

    If you would care to post some sample data (CREATE TABLE and INSERT statements) and the results desired from these data, then I could test it.
    Feel free to simplify the problem. For example "I want the.
    6 first rows of department_id = 1, the
    4 first department_id = 2 rows and the
    first 2 rows department_id = 3. »

    If you're concerned about efficiency, don't do it in a loop. Do all the values (which otherwise, you would change in the loop) at once, in a single query. If you want to know, post some sample data and the results desired from these data.

  • Taskflow in my webcenter application

    Hi people,

    I created a Webcenter application and inside it a custom taskflow, now I would like to add this taskflow in my catalog of resources, but I have read that I need to deploy in a jar.

    My question is, even my taskflow is my application, I need deploy it in a jar, add in my application and therefore in RC? Or I can add a few references directly from my Webcenter application.

    I tried this:


    < resource id = 'job-workflow-definition '.
    repository = "application.classpath"
    path="PortalIT7.war/ADF_TaskFlow/Web-INF+taskflows+conteudo-definition.XML#task-flow-definition"/ >

    This:

    < resource id = 'job-workflow-definition '.
    repository = "application.classpath"
    path = "WEB - INF + taskflows conteudo - accordingly #-definition of task-flow" / >

    But no one works.

    Thks in advance

    I have not tried to add a taskflow since the classpath of the application to a catalogue of resources.
    But by it is recommended, you must create several jars for your application and your taskflow. Especially if you want to add your taskflow to your catalog of resources because if you have another application that wishes to use the taskflow even you cannot reference easily it unless you add the full jar file in the lib of the other application.

    Then, create a new application and deploy it as a library of the ADF. You should be able to reference which...

  • Text of tappable/Clickable URL

    Hi all

    I have a url text contains a site and an email ID. I want only that part of the text to be highlighted and clickable.

    Lets say I have following text: 'Post your questions to [email protected] or visit our website www.abc.com for details'.

    no idea how to do only "[email protected]" and "www.abc.com" clickable/tappable?

    Thanks in advance

    ActiveRichTextField?

  • 1st step you should take to identify the problem

    Hi gurus

    I did my interview today and has confused the following question:

    Question Your query was working fine yesterday and today, when you try to run the same query, then it stuck, what would be the 1st step you should take to identify the problem?.

    My answer I checked the Plan to explain...

    but it seems that I gave the wrong answer.

    Any idea, what should be the 1st and other steps to identify and resolve the problem. Thank you

    Concerning

    Shu

    I did my interview today and has confused the following question:

    Question Your query was working fine yesterday and today, when you try to run the same query, then it stuck, what would be the 1st step you should take to identify the problem?.

    My answer I checked the Plan to explain...

    but it seems that I gave the wrong answer.

    Why it looks like you have the right answer?

    Any idea, what should be the 1st and other steps to identify and resolve the problem. Thank you

    Only the people interview you can say what response THEY were looking for and, for them, ONLY it would be the right answer.

    , You ask them what response they wanted? If not, why? It is an object of an interview - to see if someone is WILLING and ABLE to COMMUNICATE with you and he is not afraid to ask questions if they don't understand something.

    If you ask the poster what they were saying. If you did NOT request you missed them the perfect opportunity to get your question answered.

    When running a query today is different than it yesterday so SOMETHING has CHANGED.

    The FIRST step is to confirm that you really have a performance problem. In other words, to confirm that the request really is "stuck".

    The NEXT step is to determine what has changed between yesterday and today. There is a large data load? Are there more users of the NLE system?

  • lack of performance in the documents XML SELECT-ing

    Hello fields, I'm new to the world of XML. But as a DBA, now I'm in the position to suggest the best performance improvement in access to XML documents.

    Problem:

    There is a batch of informatica, fetch the records in XML tables (almost 400, one by one) stored in the oracle database. All 400 tables have only two columns as follows:

    Name                                         Null?          Type

    ----------------------------------------- -     -------         ---------------------------

    RECID A NOT NULL VARCHAR2 (255)

    XMLRECORD XMLTYPE

    Each table is NORMAL index created for her for the VARCHAR2 column:

    CREATE UNIQUE INDEX "username". "' Indexname_PK ' WE 'username '. "' table_name ' ('RECID') PCTFREE 10 INITRANS 2 MAXTRANS 255 NOLOGGING COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE"tbs_idx ";

    The entire table has index CLOB created home under description.

    PIECE PCTVERSION RETENTION FREEPOOLS CACHE IN_ROW FORMAT BY

    ----------             ---------          ----------             ---------- ----------          ---------    ---------------            ---

    8192 14400 YES YES NO ENDIAN NEUTRAL

    Informatica questions under query on the entire table, where he could just fetch only 400rows/s in average. It takes the day whole buisness to complete the batch for all 400 tables, which gives a big problem in the production environment.

    SELECT < table_name >. < nom_de_colonne >. < table_name > getclobval();

    SQL > select * from v version $;

    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE Production 10.2.0.5.0
    AMT for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - production
    NLSRTL Version 10.2.0.5.0 - Production

    Necessary details:

    1. where do you see in this scenario, there is a problem that is blocking the performance?

    2. what type of index on this configuration is normally advisable?

    Thanks a lot for your help.

    For storage of XMLType relational object works, you would need an XML schema. According to the XML schema, the works of art/storage of XMLType will be created.

    Be aware, but you're probably aware of this, Oracle 10.2 is a version of database desupported (also no extended support is available).

  • analysis Vs hard soft

    Hello Experts / gurus


    I have a few questions for query execution details.


    Question 1: How do we know if the request goes to parse soft or hard analysis?

    Question 2: Where can we check exactly to find it?

    Ques3: If the query will Parse hard, how can I show proof?

    Ques4: If the query will soft Parse, how can I show proof?


    -GooGle don't really know an answer to this question!

    Thanks in advance!

    > If you include the hash value, I can understand very well, but we missed...

    There is nothing prevents you to accomplish the same experience.  It wouldn't matter anyway, the hash value would have been the same between the two statements.

    > what I thought (if (SQL_ID, HASH_VALUE, SQL_TEXT) these values are the same for both declarations = it is soft analysis)

    Absolutely not.

    > If (SQL_ID, HASH_VALUE) is different, it's hard analysis.

    Well, any.  New topic that appears in v$ sql got there because of a difficult analysis.

    > but I do NOT understand why you went to the ' v$ sql_shared_cursor '

    > Question 1 :-is this good place to find, if the analysis is soft_parse or not?

    Because this view will show you why two identical sql statements (with same sql_id or hash_value) could NOT be reused.  This is the scenario you sketched out.

    > Question 2 using sql_id, hash_value   we can determine if it is hard analysis or not?

    If an sql statement is reused (uses good bind variables, etc.), you can see his performances increases.

    declare

    L_Name varchar2 (30);

    number of l_employee_id;

    Start

    l_employee_id: = 101;

    Select first_name from l_name from employees where employee_id = l_employee_id;

    l_employee_id: = 102;

    Select first_name from l_name from employees where employee_id = l_employee_id;

    l_employee_id: = 103;

    Select first_name from l_name from employees where employee_id = l_employee_id;

    end;

    /

    Select sql_id, executions, sql_text from v$ sql where lower (sql_text) like '% employees;

    SQL_ID EXECUTIONS SQL_TEXT

    ------------- -------------------- ----------------------------------------------------------

    3. SELECT FIRST_NAME from EMPLOYEES WHERE EMPLOYEE_ID = bhd9y189arp8q: B1

  • List of available MDX properties / always show the name of the Member instead of alias

    Hi all

    does anyone know if there is a list of all available MDX properties that can be used in a query with Essbase MDX?
    There is a very small list in the technical documentation (http://docs.oracle.com/cd/E12825_01/epm.111/esb_techref/mdx_properties.htm), but I know that there are many more properties.
    For example, a property that is not documented is ANCESTOR_NAMES:
    WITH MEMBER [year]. [false] '0', SOLVE_ORDER = 0
    SELECT {[year]. [Dummy]} on columns,
    [Account]. Properties of members ANCESTOR_NAMES lines
    OF [App.Db];

    Anyone know if there is such a list?

    And another question:
    The query displays always the alias of members (e.g. [account]. Members). Is it possible that by default the name of the Member instead of the alias is used? Without using the nom_membre property.

    Essbase version: 11.1.1.3

    Thank you
    Th

    To the second question about the name of the Member, try the following statement at a MaxL session:
    change the alias set session dml_output

Maybe you are looking for