Execution plans for a Query

Hi,
       As per documentation i learnt, For Every SQL statement i.e Executed , it will generate 23 Executions plan for a single query. The Runtime Engine will choose the Best Execution plan for Fetch Operation.
    In which Data dictionary view , do i have to check all those 23 Executions plans..
Thanks

startup wrote:
Hi,
       As per documentation i learnt, For Every SQL statement i.e Executed , it will generate 23 Executions plan for a single query. The Runtime Engine will choose the Best Execution plan for Fetch Operation.
    In which Data dictionary view , do i have to check all those 23 Executions plans..
Thanks
please post URL to document that says 23 Execute Plans are generated.

Similar Messages

  • How to capture the execution plan for a query

    HI All,
    Can anyone please help me in finding out the command to capture the execution plan for a query.
    Execution plan for select * from EMP where <Condtions>
    it is getting executed successfully but i need to get the proper execution plan for the same.
    Thanks

    971830 wrote:
    i want to know where execution plan gets generated??
    in PMON of server process or in shared pool??
    i know that optimixer create execution plan..It is stored in Library Cache (present inside Shared Pool ).
    select * from v$sql_plan;An absolute beautiful white paper :
    Refer this -- www.sagelogix.com/sagelogix/SearchResults/SAGE015052
    Also -- http://www.toadworld.com/KNOWLEDGE/KnowledgeXpertforOracle/tabid/648/TopicID/XPVSP/Default.aspx
    HTH
    Ranit B.

  • How to skip existing execution plan for a query

    Hi,
    I want to skip existng execution plan for a query which I am executing often. I dont want it to use the same execution plan everytime. Please let me know if any method is there skip the existing execution plan.
    Thanks in advance.......
    Edited by: 900105 on Dec 1, 2011 4:52 AM

    Change the query so it is syntactically different, but has the same semantics (meaning). That way CBO will reparse it and you might get a new execution plan.
    One simple way to do that is to add a dummy predicate ( 45=45) to the where clause. The predicate must be changed every time the query is executed ( 46=46 , 47=47 ,… ).
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • Different execution plan for same query but for different condition value

    Hi All,
    I'm facing a strange situation where same query for different condition not working.
    1--
    Select  top 10 * from revenuefact(nolock) 
    where feecode ='OW4'
    2--
    Select  top 10 * from revenuefact(nolock)
    where feecode ='BTE'
    1st query is returning result easily but 2nd query is taking too long. Column
    feecode has already Non-clustered index and Clustered index is also available for another col RevenueSID.
    I was surprised when checked the query execution plan for both the above queries  which is quite different (as per attached below). Can anyone suggest me the reason behind it.
    And solution for the same. One more thing that data for feecode BTE is inserting through different source instead of others feecode and table contains more than 300 million rows.

    When I speak with people inside Microsoft who work with the optimizer, the refuse to accept the work "bug" when a query produces the correct result, but with a suboptimal plan. They prefer to use the word "limitation".
    The limitation here is that when the optimizer compares two plans, it only looks at the estimated cost. As far as I know, it does not perform any analysis from the perspective "what if the statistics are wrong"? They do provide the hint OPTIMIZE
    FOR UNKNOWN, but that does not work then there is a constant as in this case.
    The optimizer will surely distinguish between TOP 10 and TOP 10000000. With the latter, you have all reason to expect a Clustered Index Scan no matter which value you search for - unless you pick a value for which the histogram indicates that there are no
    rows.
    Interesting enough, I was able to reproduce the situation in my Northgale database, which is an inflated version of Northwind, and where statistics should be accurate.
    SELECT TOP 10 * FROM Orders WHERE EmployeeID = 8
    results in a CI scan, and so does also EmployeeID = 7, and even 5. There are only 2292 rows out of a total of 344305 rows. If I try EmployeeID 808 for which there are 1797, the optimizer goes for the index seek.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • One query - one database - different execution plan for different users.

    Hi everyone.
    I've encountered one of the strangest things I've ever seen with Oracle.  I'm hoping that someone else here has seen something like this before and solved it!  On an 11g database I have a query that runs differently depending on which user runs it.  If the owner of the tables or someone with the DBA role runs the query I get a perfect execution plan.  If someone else runs it, I get a really bad execution plan - though the query still executes.  So it almost seems like depending on who is running the query, the optimizer might not have access to the same statistics??  I'm really grasping at straws here - any help would be greatfully accepted!!!
    Here is the query and the two plans for it...
    On TASD as a General User (Bad execution plan) - CA17062 is USER
    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Connected as ca17062
    SQL> explain plan for
    select w.worker_id, w.worker_name
      from worker_v                   w,
           worker_cost_centre_v       c
    where w.worker_id = c.worker_id
       and c.effective_date <= trunc(sysdate)
       and c.expiration_date >= trunc(sysdate)
       and c.cost_centre = '100033'
       and pkg_taw_security.user_worker_access('CA17062',
                                               'TIMEKEEPER',
                                               w.worker_id,
                                               trunc(sysdate)) = 1
    order by w.worker_name;
    Explained
    Executed in 0.234 seconds
    PLAN_TABLE_OUTPUT
    Plan hash value: 1726112176
    | Id  | Pid | Ord | Operation                      | Name                   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 |     |   8 | SELECT STATEMENT               |                        |    18 |  1800 |   606   (1)| 00:00:01 |
    |   1 |   0 |   7 |  SORT ORDER BY                 |                        |    18 |  1800 |   606   (1)| 00:00:01 |
    |*  2 |   1 |   6 |   HASH JOIN                    |                        |    18 |  1800 |   605   (1)| 00:00:01 |
    |   3 |   2 |   3 |    VIEW                        | WORKER_COST_CENTRE_V   |    18 |   558 |    19   (0)| 00:00:01 |
    |*  4 |   3 |   2 |     TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL |    18 |   522 |    19   (0)| 00:00:01 |
    |*  5 |   4 |   1 |      INDEX RANGE SCAN          | WORKER_CC_CC_IDX       |    29 |       |     3   (0)| 00:00:01 |
    |*  6 |   2 |   5 |    VIEW                        | WORKER_V               |   161K|    10M|   584   (1)| 00:00:01 |
    |   7 |   6 |   4 |     TABLE ACCESS FULL          | WORKER_TBL             |   161K|  3466K|   584   (1)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("W"."WORKER_ID"="C"."WORKER_ID")
       4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
    PLAN_TABLE_OUTPUT
       5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
       6 - filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"W"."WORKER_ID",TRUN
                  C(SYSDATE@!))=1)
    About
      - XPlan v1.2 by Adrian Billington (http://www.oracle-developer.net)
    23 rows selected
    Executed in 0.577 seconds
    WORKER_ID WORKER_NAME
    123703    FADDEN, CLAYTON
    11131     HAHN, BRAD
    33811     HALL, MAUREEN
    53934     JANES, CATHERINE
    Executed in 35.241 seconds
    On TASD as the owner of the tables or as someone with the DBA role (Good Execution) - TAS is USER:
    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Connected as tas
    SQL> explain plan for
    select w.worker_id, w.worker_name
      from worker_v                   w,
           worker_cost_centre_v       c
    where w.worker_id = c.worker_id
       and c.effective_date <= trunc(sysdate)
       and c.expiration_date >= trunc(sysdate)
       and c.cost_centre = '100033'
       and pkg_taw_security.user_worker_access('CA17062',
                                               'TIMEKEEPER',
                                               w.worker_id,
                                               trunc(sysdate)) = 1
    order by w.worker_name;
    Explained
    Executed in 0.203 seconds
    PLAN_TABLE_OUTPUT
    Plan hash value: 3435904055
    | Id  | Pid | Ord | Operation                      | Name                   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 |     |   8 | SELECT STATEMENT               |                        |    18 |   918 |    38   (3)| 00:00:01 |
    |   1 |   0 |   7 |  SORT ORDER BY                 |                        |    18 |   918 |    38   (3)| 00:00:01 |
    |   2 |   1 |   6 |   NESTED LOOPS                 |                        |       |       |            |          |
    |   3 |   2 |   4 |    NESTED LOOPS                |                        |    18 |   918 |    37   (0)| 00:00:01 |
    |*  4 |   3 |   2 |     TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL |    18 |   522 |    19   (0)| 00:00:01 |
    |*  5 |   4 |   1 |      INDEX RANGE SCAN          | WORKER_CC_CC_IDX       |    29 |       |     3   (0)| 00:00:01 |
    |*  6 |   3 |   3 |     INDEX UNIQUE SCAN          | WORKER_PK              |     1 |       |     0   (0)| 00:00:01 |
    |   7 |   2 |   5 |    TABLE ACCESS BY INDEX ROWID | WORKER_TBL             |     1 |    22 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
       5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
    PLAN_TABLE_OUTPUT
       6 - access("X"."WORKER_ID"="X"."WORKER_ID")
           filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"X"."WORKER_ID",TRUN
                  C(SYSDATE@!))=1)
    About
      - XPlan v1.2 by Adrian Billington (http://www.oracle-developer.net)
    23 rows selected
    Executed in 0.624 seconds
    WORKER_ID WORKER_NAME
    123703    FADDEN, CLAYTON
    11131     HAHN, BRAD
    33811     HALL, MAUREEN
    53934     JANES, CATHERINE
    Executed in 1.307 seconds
    THANKS!!!
    Cory Aston

    I reran the whole thing - with full declared view names and display_cursor.  Here are the results...
    On TASD as CA17062  (BAD EXECUTION PLAN)
    SQL> set linesize 160
    SQL> set serveroutput off
    SQL>
    SQL> select /*+ gather_plan_statistics */
      2         w.worker_id, w.worker_name
      3    from tas.worker_v                   w,
      4         tas.worker_cost_centre_v       c
      5   where w.worker_id = c.worker_id
      6     and c.effective_date <= trunc(sysdate)
      7     and c.expiration_date >= trunc(sysdate)
      8     and c.cost_centre = '100033'
      9     and tas_user.pkg_taw_security.user_worker_access('CA17062',
    10                                             'TIMEKEEPER',
    11                                             w.worker_id,
    12                                             trunc(sysdate)) = 1
    13   order by w.worker_name;
    WORKER_ID WORKER_NAME
    123703    FADDEN, CLAYTON
    11131     HAHN, BRAD
    33811     HALL, MAUREEN
    53934     JANES, CATHERINE
    SQL>
    SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID  gs5vtgany8vbv, child number 3
    select /*+ gather_plan_statistics */        w.worker_id, w.worker_name
    from tas.worker_v                   w,        tas.worker_cost_centre_v
          c  where w.worker_id = c.worker_id    and c.effective_date <=
    trunc(sysdate)    and c.expiration_date >= trunc(sysdate)    and
    c.cost_centre = '100033'    and tas_user.pkg_taw_security.user_worker_ac
    cess('CA17062',
    'TIMEKEEPER',                                            w.worker_id,
                                             trunc(sysdate)) = 1  order by
    w.worker_name
    Plan hash value: 1726112176
    | Id  | Operation                      | Name                   | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    |   0 | SELECT STATEMENT               |                        |      1 |        |      4 |00:00:18.52 |     947K|       |       |          |
    |   1 |  SORT ORDER BY                 |                        |      1 |      4 |      4 |00:00:18.52 |     947K|  2048 |  2048 | 2048  (0)|
    |*  2 |   HASH JOIN                    |                        |      1 |      4 |      4 |00:00:15.84 |     947K|  1348K|  1348K|  791K (0)|
    |   3 |    VIEW                        | WORKER_COST_CENTRE_V   |      1 |      4 |      4 |00:00:00.01 |      18 |       |       |          |
    |*  4 |     TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL |      1 |      4 |      4 |00:00:00.01 |      18 |       |       |          |
    |*  5 |      INDEX RANGE SCAN          | WORKER_CC_CC_IDX       |      1 |     29 |     21 |00:00:00.01 |       3 |       |       |          |
    |*  6 |    VIEW                        | WORKER_V               |      1 |    161K|      4 |00:00:15.84 |     946K|       |       |          |
    |   7 |     TABLE ACCESS FULL          | WORKER_TBL             |      1 |    161K|    160K|00:00:00.09 |    2135 |       |       |          |
    Predicate Information (identified by operation id):
       2 - access("W"."WORKER_ID"="C"."WORKER_ID")
       4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
       5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
       6 - filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"W"."WORKER_ID",TRUNC(SYSDATE@!))=1)
    Note
       - cardinality feedback used for this statement
    39 rows selected.
    SQL>
    On TASD as TAS: (GOOD EXECUTION PLAN)
    SQL> set serveroutput off
    SQL>
    SQL> select /*+ gather_plan_statistics */
      2         w.worker_id, w.worker_name
      3    from tas.worker_v                   w,
      4         tas.worker_cost_centre_v       c
      5   where w.worker_id = c.worker_id
      6     and c.effective_date <= trunc(sysdate)
      7     and c.expiration_date >= trunc(sysdate)
      8     and c.cost_centre = '100033'
      9     and tas_user.pkg_taw_security.user_worker_access('CA17062',
    10                                             'TIMEKEEPER',
    11                                             w.worker_id,
    12                                             trunc(sysdate)) = 1
    13   order by w.worker_name;
    WORKER_ID WORKER_NAME
    123703    FADDEN, CLAYTON
    11131     HAHN, BRAD
    33811     HALL, MAUREEN
    53934     JANES, CATHERINE
    SQL>
    SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID  gs5vtgany8vbv, child number 1
    select /*+ gather_plan_statistics */        w.worker_id, w.worker_name
    from tas.worker_v                   w,        tas.worker_cost_centre_v
          c  where w.worker_id = c.worker_id    and c.effective_date <=
    trunc(sysdate)    and c.expiration_date >= trunc(sysdate)    and
    c.cost_centre = '100033'    and tas_user.pkg_taw_security.user_worker_ac
    cess('CA17062',
    'TIMEKEEPER',                                            w.worker_id,
                                             trunc(sysdate)) = 1  order by
    w.worker_name
    Plan hash value: 3435904055
    | Id  | Operation                      | Name                   | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    |   0 | SELECT STATEMENT               |                        |      1 |        |      4 |00:00:00.01 |     185 |       |       |          |
    |   1 |  SORT ORDER BY                 |                        |      1 |      4 |      4 |00:00:00.01 |     185 |  2048 |  2048 | 2048  (0)|
    |   2 |   NESTED LOOPS                 |                        |      1 |        |      4 |00:00:00.01 |     185 |       |       |          |
    |   3 |    NESTED LOOPS                |                        |      1 |      4 |      4 |00:00:00.01 |     181 |       |       |          |
    |*  4 |     TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL |      1 |      4 |      4 |00:00:00.01 |      18 |       |       |          |
    |*  5 |      INDEX RANGE SCAN          | WORKER_CC_CC_IDX       |      1 |     29 |     21 |00:00:00.01 |       3 |       |       |          |
    |*  6 |     INDEX UNIQUE SCAN          | WORKER_PK              |      4 |      1 |      4 |00:00:00.01 |     163 |       |       |          |
    |   7 |    TABLE ACCESS BY INDEX ROWID | WORKER_TBL             |      4 |      1 |      4 |00:00:00.01 |       4 |       |       |          |
    Predicate Information (identified by operation id):
       4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
       5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
       6 - access("X"."WORKER_ID"="X"."WORKER_ID")
           filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"X"."WORKER_ID",TRUNC(SYSDATE@!))=1)
    Note
       - cardinality feedback used for this statement
    39 rows selected.
    SQL>

  • Out of the box execution plan for Payables EBS 11.5.10

    Has anyone else experienced performance issues with the out of the box execution plan for the Payables subject area for Oracle EBS 11.5.10? Our incremental ETL for this particular subject area is taking 8+ hours. I understand that there are several factors involved with performance and that there are a lot of AP transactions, but this is ridiculous for a nightly incremental ETL job.
    In particular it is the SDE_ORA_APTransactionFact_Payment task that is taking forever. This query appears to have extremely high cost (see explain plan below). Has anyone been successful in rewriting or changing this query?
    SELECT STATEMENT  ALL_ROWSCost: 586,953  Bytes: 16,550  Cardinality: 50                                                                         
                13 NESTED LOOPS OUTER  Cost: 586,953  Bytes: 16,550  Cardinality: 50                                                         
                            10 NESTED LOOPS  Cost: 586,952  Bytes: 15,800  Cardinality: 50                                             
                                        7 HASH JOIN  Cost: 468,320  Bytes: 11,693,526  Cardinality: 59,358                               
                                                    5 HASH JOIN  Cost: 429,964  Bytes: 9,200,490  Cardinality: 59,358                     
                                                                3 HASH JOIN  Cost: 366,009  Bytes: 7,740,544  Cardinality: 60,473         
                                                                            1 TABLE ACCESS FULL TABLE AP.AP_AE_LINES_ALL Cost: 273,240  Bytes: 15,212,604  Cardinality: 230,494 
                                                                            2 TABLE ACCESS FULL TABLE AP.AP_INVOICE_PAYMENTS_ALL Cost: 45,211  Bytes: 715,512,860  Cardinality: 11,540,530 
                                                                4 TABLE ACCESS FULL TABLE AP.AP_PAYMENT_SCHEDULES_ALL Cost: 39,003  Bytes: 309,648,420  Cardinality: 11,468,460       
                                                    6 TABLE ACCESS FULL TABLE AP.AP_CHECKS_ALL Cost: 28,675  Bytes: 130,126,920  Cardinality: 3,098,260               
                                        9 TABLE ACCESS BY INDEX ROWID TABLE AP.AP_INVOICES_ALL Cost: 2  Bytes: 119  Cardinality: 1                                 
                                                    8 INDEX UNIQUE SCAN INDEX (UNIQUE) AP.AP_INVOICES_U1 Cost: 1  Cardinality: 1             
                            12 TABLE ACCESS BY INDEX ROWID TABLE PO.PO_HEADERS_ALL Cost: 1  Bytes: 15  Cardinality: 1                                                 
                                        11 INDEX UNIQUE SCAN INDEX (UNIQUE) PO.PO_HEADERS_U1 Cost: 1  Cardinality: 1                       

    Hi Srini, All,
    Thanks for the reply.
    The payables documentation (i.e. User Guide) discusses about options that could be used in implementing EFT. However, if possible, we would like suggestions on what would be the better ways to implement EFT (US bank) using either XML or text formats. We would also prefer not using e-commerce gateway or EDI.
    Thanks in advance.
    MM

  • How can I get an execution plan for a Function in oracle 10g

    Hi
    I have:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    I would like to know if is possible to get an EXECUTION PLAN for a FUNCTION if so, how can I get it ?
    Regards

    You can query the AWR data if your interesting SQL consumes enough resources.
    Here is a SQL*Plus script I call MostCPUIntensiveSQLDuringInterval.sql (nice name eh?)
    You'll need to know the AWR snap_id numbers for the time period of interest, then run it like this to show the top 20 SQLs during the interval:
    @MostCPUIntensiveSQLDuringInterval 20The script outputs a statement to run when you are interested in looking at the plan for an interesting looking statement.
    -- MostCPUintesticeSQLDuringInterval: Report on the top n SQL statements during an AWR snapshot interval.
    -- The top statements are ranked by CPU usage
    col inst_no             format      999 heading 'RAC|Node'
    col sql_id              format a16      heading 'SQL_ID'
    col plan_hash_value     format 999999999999 heading 'Plan|hash_value'
    col parsing_schema_name format a12      heading 'Parsing|Schema'
    col module              format a10      heading 'Module'
    col pct_of_total   format        999.99 heading '% Total'
    col cpu_time       format   999,999,999 heading 'CPU     |Time (ms)'
    col elapsed_time   format   999,999,999 heading 'Elapsed |Time (ms)'
    col lios           format 9,999,999,999 heading 'Logical|Reads'
    col pios           format   999,999,999 heading 'Physical|Reads'
    col execs          format    99,999,999 heading 'Executions'
    col fetches        format    99,999,999 heading 'Fetches'
    col sorts          format       999,999 heading 'Sorts'
    col parse_calls    format       999,999 heading 'Parse|Calls'
    col rows_processed format   999,999,999 heading 'Rows|Processed'
    col iowaits        format   999,999,999,999 heading 'iowaits'
    set lines 195
    set pages 75
    PROMPT Top &&1 SQL statements during interval
    SELECT diff.*
    FROM (SELECT e.instance_number inst_no
                ,e.sql_id
                ,e.plan_hash_value
                ,e.parsing_schema_name
                ,substr(trim(e.module),1,10) module
                ,ratio_to_report(e.cpu_time_total - b.cpu_time_total) over (partition by 1) * 100 pct_of_total
                ,(e.cpu_time_total - b.cpu_time_total)/1000 cpu_time
                ,(e.elapsed_time_total - b.elapsed_time_total)/1000 elapsed_time
                ,e.buffer_gets_total - b.buffer_gets_total lios
                ,e.disk_reads_total - b.disk_reads_total pios
                ,e.executions_total - b.executions_total execs
                ,e.fetches_total - b.fetches_total fetches
                ,e.sorts_total - b.sorts_total sorts
                ,e.parse_calls_total - b.parse_calls_total parse_calls
                ,e.rows_processed_total - b.rows_processed_total rows_processed
    --            ,e.iowait_total - b.iowait_total iowaits
    --            ,e.plsexec_time_total - b.plsexec_time_total plsql_time
          FROM dba_hist_sqlstat b  -- begining snap
              ,dba_hist_sqlstat e  -- ending snap
          WHERE b.sql_id = e.sql_id
          AND   b.dbid   = e.dbid
          AND   b.instance_number = e.instance_number
          and   b.plan_hash_value = e.plan_hash_value
          AND   b.snap_id = &LowSnapID
          AND   e.snap_id = &HighSnapID
          ORDER BY e.cpu_time_total - b.cpu_time_total DESC
         ) diff
    WHERE ROWNUM <=&&1
    set define off
    prompt  to get the text of the SQL run the following:
    prompt  @id2sql &SQL_id
    prompt .
    prompt  to obtain the execution plan for a session run the following:
    prompt  select * from table(DBMS_XPLAN.DISPLAY_AWR('&SQL_ID'));
    prompt  or
    prompt  select * from table(DBMS_XPLAN.DISPLAY_AWR('&SQL_ID',NULL,NULL,'ALL'));
    prompt .
    set define on
    undefine LowSnapID
    undefine HighSnapIDI guess you'll need the companion script id2sql.sql, so here it is:
    set lines 190
    set verify off
    declare
       maxDisplayLine  NUMBER := 150;  --max linesize to display the SQL
       WorkingLine     VARCHAR2(32000);
       CurrentLine     VARCHAR2(64);
       LineBreak       NUMBER;
       cursor ddl_cur is
          select sql_id
            ,sql_text
          from v$sqltext_with_newlines
          where sql_id='&1'
          order by piece
       ddlRec ddl_cur%ROWTYPE;
    begin
       WorkingLine :='.';
       OPEN ddl_cur;
       LOOP
          FETCH ddl_cur INTO ddlRec;
          EXIT WHEN ddl_cur%NOTFOUND;
          IF ddl_cur%ROWCOUNT = 1 THEN
             dbms_output.put_line('.');
             dbms_output.put_line('   sql_id: '||ddlRec.sql_id);
             dbms_output.put_line('.');
             dbms_output.put_line('.');
             dbms_output.put_line('SQL Text');
             dbms_output.put_line('----------------------------------------------------------------');
          END IF;
          CurrentLine := ddlRec.sql_text;
          WHILE LENGTH(CurrentLine) > 1 LOOP
             IF INSTR(CurrentLine,CHR(10)) > 0 THEN -- if the current line has an embeded newline
                WorkingLine := WorkingLine||SUBSTR(CurrentLine,1,INSTR(CurrentLine,CHR(10))-1);  -- append up to new line
                CurrentLine := SUBSTR(CurrentLine,INSTR(CurrentLine,CHR(10))+1);  -- strip off up through new line character
                dbms_output.put_line(WorkingLine);  -- print the WorkingLine
                WorkingLine :='';                   -- reset the working line
             ELSE
                WorkingLine := WorkingLine||CurrentLine;  -- append the current line
                CurrentLine :='';  -- the rest of the line has been processed
                IF LENGTH(WorkingLine) > maxDisplayLine THEN   -- the line is morethan the display limit
                   LineBreak := instr(substr(WorkingLine,1,maxDisplayLine),' ',-1); --find the last space before the display limit
                   IF LineBreak = 0 THEN -- there is no space, so look for a comma instead
                      LineBreak := substr(WorkingLine,instr(substr(WorkingLine,1,maxDisplayLine),',',-1));
                   END IF;
                   IF LineBreak = 0 THEN -- no space or comma, so force the line break at maxDisplayLine
                     LineBreak := maxDisplayLine;
                   END IF;
                   dbms_output.put_line(substr(WorkingLine,1,LineBreak));
                   WorkingLine:=substr(WorkingLine,LineBreak);
                END IF;
             END IF;
          END LOOP;
          --dbms_output.put(ddlRec.sql_text);
       END LOOP;
       dbms_output.put_line(WorkingLine);
       dbms_output.put_line('----------------------------------------------------------------');
       CLOSE ddl_cur;
    END;
    /

  • Tkprof not showing the Execution Plan for Statement

    Hi all
    using oracle 9i release 2
    I have issued the following statements
    alter session set sql_trace
    alter session set events '10046 trace name context forever, level 12';
    --then executed a pl-sql procedure
    after reading the traceout outfile it shows the Execution plan for statements directly wirtten under begin and end block and doesnot displays the plan for the statements written like this
    procedure a is
    cursor b is
    select ename,dname from dept a,emp b
    where a.deptno=b.deptno;
    begin
    for x in a loop --plan not found but stats are written
    select ename into v_ename from emp where empno=300; --does show the plan+stats
    end;
    what I am missing to get the actual plan in trace output file
    thanks in advance

    You have to exit sql*plus after running the procedure, example tkprof is below:
    declare
    cursor c is
    select ename, dname
    from emp, dept
    where emp.deptno = dept.deptno;
    begin
    for v_x in c
    loop
    dbms_output.put_line(v_x.ename || ' ' ||v_x.dname);
    end loop;
    end;
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.06 0 0 0 1
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.06 0 0 0 1
    Misses in library cache during parse: 0
    Optimizer goal: CHOOSE
    Parsing user id: 68
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 0.00 0.00
    SELECT ENAME, DNAME
    FROM
    EMP, DEPT WHERE EMP.DEPTNO = DEPT.DEPTNO
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 15 0.01 0.00 0 44 0 14
    total 17 0.01 0.00 0 44 0 14
    Misses in library cache during parse: 0
    Optimizer goal: CHOOSE
    Parsing user id: 68 (recursive depth: 1)
    Rows Row Source Operation
    14 NESTED LOOPS
    14 TABLE ACCESS FULL EMP
    14 TABLE ACCESS BY INDEX ROWID DEPT
    14 INDEX UNIQUE SCAN DEPT_PK (object id 40350)
    Best Regards
    Krystian Zieja / mob

  • Failed while running Execution Plan for Financial Analytics

    Hi gurus,
    I got this error when running SDE_ORA_PartyOrganizationDimension_Customer_Full
    *****START LOAD SESSION*****
    Load Start Time: Thu May 10 10:43:51 2012
    Target tables:
    W_PARTY_ORG_DS
    2012-05-10 10:43:51 : INFO : (16808 | READER_1_1_1) : (IS | BIA_IS) : node01_bidev.localhost : RR_4029 : SQ Instance [mplt_BC_ORA_PartyOrganizationDimension_Customer.SQ_BCI_CUSTOMERS] User specified SQL Query [SELECT  DISTINCT  HZ_PARTIES.PARTY_ID,
      HZ_PARTIES.CREATED_BY,
      HZ_PARTIES.LAST_UPDATED_BY,
      HZ_PARTIES.CREATION_DATE,
      HZ_PARTIES.LAST_UPDATE_DATE,
      HZ_PARTIES.PARTY_NUMBER,
      HZ_PARTIES.PARTY_NAME,
      HZ_PARTIES.ADDRESS1,
      HZ_PARTIES.ADDRESS2,
      HZ_PARTIES.ADDRESS3,
      HZ_PARTIES.ADDRESS4,
      HZ_PARTIES.CITY,
      HZ_PARTIES.STATE,
      HZ_PARTIES.POSTAL_CODE,
      HZ_PARTIES.PROVINCE,
      HZ_PARTIES.COUNTRY,
      HZ_ORGANIZATION_PROFILES.DUNS_NUMBER_C,
        (CASE
       WHEN DOM_DUNS.RELATIONSHIP_CODE = 'DOMESTIC_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
      END) DOM_DUNS_NUMBER,
      (CASE
       WHEN DOM_DUNS.RELATIONSHIP_CODE = 'GLOBAL_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
       END) GLBL_DUNS_NUMBER,
      HZ_PARTIES.EMPLOYEES_TOTAL,
      HZ_PARTIES.YEAR_ESTABLISHED,
      HZ_PARTIES.CURR_FY_POTENTIAL_REVENUE,
      HZ_PARTIES.HQ_BRANCH_IND,
      HZ_PARTIES.PERSON_LAST_NAME,
      HZ_PARTIES.KNOWN_AS,
      HZ_PARTIES.PERSON_TITLE,
      HZ_PARTIES.EMAIL_ADDRESS,
      HZ_PARTIES.URL,
      HZ_PARTIES.CATEGORY_CODE,
      HZ_PARTIES.SIC_CODE,
      HZ_PARTIES.PARTY_TYPE,
      HZ_ORGANIZATION_PROFILES.OOB_IND,
      HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_IND,
      HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_TYPE,
      HZ_ORGANIZATION_PROFILES.WOMAN_OWNED_IND,
      HZ_ORGANIZATION_PROFILES.DISADV_8A_IND,
      HZ_ORGANIZATION_PROFILES.SMALL_BUS_IND,
      HZ_ORGANIZATION_PROFILES.DB_RATING,
      HZ_ORGANIZATION_PROFILES.SIC_CODE_TYPE,
      HZ_ORGANIZATION_PROFILES.INTERNAL_FLAG,
      HZ_ORGANIZATION_PROFILES.BRANCH_FLAG,
      HZ_ORGANIZATION_PROFILES.CREDIT_SCORE,
      HZ_ORGANIZATION_PROFILES.STATUS,
      HZ_PARTIES.CUSTOMER_KEY,
      HZ_PARTIES.JGZZ_FISCAL_CODE,
      AP_SUPPLIERS.VENDOR_ID,
      AP_SUPPLIERS.VENDOR_NAME,
      AP_SUPPLIERS.VENDOR_NAME_ALT,
      AP_SUPPLIERS.SEGMENT1,
      AP_SUPPLIERS.ENABLED_FLAG,
      AP_SUPPLIERS.VENDOR_TYPE_LOOKUP_CODE,
      AP_SUPPLIERS.ONE_TIME_FLAG,
      AP_SUPPLIERS.PARENT_VENDOR_ID,
      AP_SUPPLIERS.ORGANIZATION_TYPE_LOOKUP_CODE,
      AP_SUPPLIERS.START_DATE_ACTIVE,
      AP_SUPPLIERS.END_DATE_ACTIVE,
      AP_SUPPLIERS.MINORITY_GROUP_LOOKUP_CODE,
      AP_SUPPLIERS.WOMEN_OWNED_FLAG,
      AP_SUPPLIERS.SMALL_BUSINESS_FLAG,
      HZ_CUST_ACCOUNTS.PARTY_ID
    FROM HZ_PARTIES,
      AP_SUPPLIERS,
      HZ_ORGANIZATION_PROFILES,
      HZ_CUST_ACCOUNTS,
        (SELECT  DOM_REL.RELATIONSHIP_CODE RELATIONSHIP_CODE,
         DOM_ULT_DUNS.PARTY_ID PARTY_ID,
         DOM_ULT_DUNS.DUNS_NUMBER DOM_DUNS_NUMBER,
         DOM_REL.OBJECT_ID OBJECT_ID
       FROM HZ_PARTIES DOM_ULT_DUNS,
         HZ_RELATIONSHIPS DOM_REL
       WHERE(1 = 1)
       AND(DOM_REL.SUBJECT_ID = DOM_ULT_DUNS.PARTY_ID)
       AND(DOM_REL.OBJECT_TYPE = 'ORGANIZATION')
       AND(DOM_REL.SUBJECT_TYPE = 'ORGANIZATION')
       AND(DOM_REL.SUBJECT_TABLE_NAME = 'HZ_PARTIES')
       AND(DOM_REL.RELATIONSHIP_CODE IN('DOMESTIC_ULTIMATE_OF',    'GLOBAL_ULTIMATE_OF'))
       AND(DOM_REL.ACTUAL_CONTENT_SOURCE = 'DNB')
       AND(DOM_REL.RELATIONSHIP_TYPE = 'DNB_HIERARCHY')
       AND((DOM_REL.END_DATE IS NULL
       OR DOM_REL.END_DATE > SYSDATE
    DOM_DUNS
    WHERE(1 = 1)
    AND HZ_PARTIES.PARTY_TYPE = 'ORGANIZATION'
    AND HZ_PARTIES.PARTY_ID = AP_SUPPLIERS.PARTY_ID(+)
    AND HZ_ORGANIZATION_PROFILES.EFFECTIVE_END_DATE IS NULL
    AND HZ_ORGANIZATION_PROFILES.ACTUAL_CONTENT_SOURCE = 'SST'
    AND
    (HZ_ORGANIZATION_PROFILES.LAST_UPDATE_DATE >  TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
    HZ_PARTIES.LAST_UPDATE_DATE >  TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
    AP_SUPPLIERS.LAST_UPDATE_DATE >  TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    OR
    HZ_CUST_ACCOUNTS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND HZ_ORGANIZATION_PROFILES.PARTY_ID = HZ_PARTIES.PARTY_ID
    AND HZ_CUST_ACCOUNTS.PARTY_ID(+)=HZ_PARTIES.PARTY_ID
    AND DOM_DUNS.OBJECT_ID(+) = HZ_PARTIES.PARTY_ID]
    2012-05-10 10:43:51 : INFO : (16808 | READER_1_1_1) : (IS | BIA_IS) : node01_bidev.localhost : RR_4049 : RR_4049 SQL Query issued to database : (Thu May 10 10:43:51 2012)
    2012-05-10 10:43:51 : ERROR : (16808 | READER_1_1_1) : (IS | BIA_IS) : node01_bidev.localhost : RR_4035 : SQL Error [
    ORA-00942: table or view does not exist
    Database driver error...
    Function Name : Execute
    SQL Stmt : SELECT DISTINCT HZ_PARTIES.PARTY_ID,
    HZ_PARTIES.CREATED_BY,
    HZ_PARTIES.LAST_UPDATED_BY,
    HZ_PARTIES.CREATION_DATE,
    HZ_PARTIES.LAST_UPDATE_DATE,
    HZ_PARTIES.PARTY_NUMBER,
    HZ_PARTIES.PARTY_NAME,
    HZ_PARTIES.ADDRESS1,
    HZ_PARTIES.ADDRESS2,
    HZ_PARTIES.ADDRESS3,
    HZ_PARTIES.ADDRESS4,
    HZ_PARTIES.CITY,
    HZ_PARTIES.STATE,
    HZ_PARTIES.POSTAL_CODE,
    HZ_PARTIES.PROVINCE,
    HZ_PARTIES.COUNTRY,
    HZ_ORGANIZATION_PROFILES.DUNS_NUMBER_C,
    (CASE
    WHEN DOM_DUNS.RELATIONSHIP_CODE = 'DOMESTIC_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
    END) DOM_DUNS_NUMBER,
    (CASE
    WHEN DOM_DUNS.RELATIONSHIP_CODE = 'GLOBAL_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
    END) GLBL_DUNS_NUMBER,
    HZ_PARTIES.EMPLOYEES_TOTAL,
    HZ_PARTIES.YEAR_ESTABLISHED,
    HZ_PARTIES.CURR_FY_POTENTIAL_REVENUE,
    HZ_PARTIES.HQ_BRANCH_IND,
    HZ_PARTIES.PERSON_LAST_NAME,
    HZ_PARTIES.KNOWN_AS,
    HZ_PARTIES.PERSON_TITLE,
    '[email protected]' EMAIL_ADDRESS,
    HZ_PARTIES.URL,
    HZ_PARTIES.CATEGORY_CODE,
    HZ_PARTIES.SIC_CODE,
    HZ_PARTIES.PARTY_TYPE,
    HZ_ORGANIZATION_PROFILES.OOB_IND,
    HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_IND,
    HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_TYPE,
    HZ_ORGANIZATION_PROFILES.WOMAN_OWNED_IND,
    HZ_ORGANIZATION_PROFILES.DISADV_8A_IND,
    HZ_ORGANIZATION_PROFILES.SMALL_BUS_IND,
    HZ_ORGANIZATION_PROFILES.DB_RATING,
    HZ_ORGANIZATION_PROFILES.SIC_CODE_TYPE,
    HZ_ORGANIZATION_PROFILES.INTERNAL_FLAG,
    HZ_ORGANIZATION_PROFILES.BRANCH_FLAG,
    HZ_ORGANIZATION_PROFILES.CREDIT_SCORE,
    HZ_ORGANIZATION_PROFILES.STATUS,
    HZ_PARTIES.CUSTOMER_KEY,
    HZ_PARTIES.JGZZ_FISCAL_CODE,
    AP_SUPPLIERS.VENDOR_ID,
    AP_SUPPLIERS.VENDOR_NAME,
    AP_SUPPLIERS.VENDOR_NAME_ALT,
    AP_SUPPLIERS.SEGMENT1,
    AP_SUPPLIERS.ENABLED_FLAG,
    AP_SUPPLIERS.VENDOR_TYPE_LOOKUP_CODE,
    AP_SUPPLIERS.ONE_TIME_FLAG,
    AP_SUPPLIERS.PARENT_VENDOR_ID,
    AP_SUPPLIERS.ORGANIZATION_TYPE_LOOKUP_CODE,
    AP_SUPPLIERS.START_DATE_ACTIVE,
    AP_SUPPLIERS.END_DATE_ACTIVE,
    AP_SUPPLIERS.MINORITY_GROUP_LOOKUP_CODE,
    AP_SUPPLIERS.WOMEN_OWNED_FLAG,
    AP_SUPPLIERS.SMALL_BUSINESS_FLAG,
    HZ_CUST_ACCOUNTS.PARTY_ID
    FROM HZ_PARTIES,
    AP_SUPPLIERS,
    HZ_ORGANIZATION_PROFILES,
    HZ_CUST_ACCOUNTS,
    (SELECT DOM_REL.RELATIONSHIP_CODE RELATIONSHIP_CODE,
    DOM_ULT_DUNS.PARTY_ID PARTY_ID,
    DOM_ULT_DUNS.DUNS_NUMBER DOM_DUNS_NUMBER,
    DOM_REL.OBJECT_ID OBJECT_ID
    FROM HZ_PARTIES DOM_ULT_DUNS,
    HZ_RELATIONSHIPS DOM_REL
    WHERE(1 = 1)
    AND(DOM_REL.SUBJECT_ID = DOM_ULT_DUNS.PARTY_ID)
    AND(DOM_REL.OBJECT_TYPE = 'ORGANIZATION')
    AND(DOM_REL.SUBJECT_TYPE = 'ORGANIZATION')
    AND(DOM_REL.SUBJECT_TABLE_NAME = 'HZ_PARTIES')
    AND(DOM_REL.RELATIONSHIP_CODE IN('DOMESTIC_ULTIMATE_OF', 'GLOBAL_ULTIMATE_OF'))
    AND(DOM_REL.ACTUAL_CONTENT_SOURCE = 'DNB')
    AND(DOM_REL.RELATIONSHIP_TYPE = 'DNB_HIERARCHY')
    AND((DOM_REL.END_DATE IS NULL
    OR DOM_REL.END_DATE > SYSDATE
    DOM_DUNS
    WHERE(1 = 1)
    AND HZ_PARTIES.PARTY_TYPE = 'ORGANIZATION'
    AND HZ_PARTIES.PARTY_ID = AP_SUPPLIERS.PARTY_ID(+)
    AND HZ_ORGANIZATION_PROFILES.EFFECTIVE_END_DATE IS NULL
    AND HZ_ORGANIZATION_PROFILES.ACTUAL_CONTENT_SOURCE = 'SST'
    AND
    (HZ_ORGANIZATION_PROFILES.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
    HZ_PARTIES.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
    AP_SUPPLIERS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    OR
    HZ_CUST_ACCOUNTS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND HZ_ORGANIZATION_PROFILES.PARTY_ID = HZ_PARTIES.PARTY_ID
    AND HZ_CUST_ACCOUNTS.PARTY_ID(+)=HZ_PARTIES.PARTY_ID
    AND DOM_DUNS.OBJECT_ID(+) = HZ_PARTIES.PARTY_ID
    Oracle Fatal Error
    Database driver error...
    Function Name : Execute
    SQL Stmt : SELECT DISTINCT HZ_PARTIES.PARTY_ID,
    HZ_PARTIES.CREATED_BY,
    HZ_PARTIES.LAST_UPDATED_BY,
    HZ_PARTIES.CREATION_DATE,
    HZ_PARTIES.LAST_UPDATE_DATE,
    HZ_PARTIES.PARTY_NUMBER,
    HZ_PARTIES.PARTY_NAME,
    HZ_PARTIES.ADDRESS1,
    HZ_PARTIES.ADDRESS2,
    HZ_PARTIES.ADDRESS3,
    HZ_PARTIES.ADDRESS4,
    HZ_PARTIES.CITY,
    HZ_PARTIES.STATE,
    HZ_PARTIES.POSTAL_CODE,
    HZ_PARTIES.PROVINCE,
    HZ_PARTIES.COUNTRY,
    HZ_ORGANIZATION_PROFILES.DUNS_NUMBER_C,
    (CASE
    WHEN DOM_DUNS.RELATIONSHIP_CODE = 'DOMESTIC_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
    END) DOM_DUNS_NUMBER,
    (CASE
    WHEN DOM_DUNS.RELATIONSHIP_CODE = 'GLOBAL_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
    END) GLBL_DUNS_NUMBER,
    HZ_PARTIES.EMPLOYEES_TOTAL,
    HZ_PARTIES.YEAR_ESTABLISHED,
    HZ_PARTIES.CURR_FY_POTENTIAL_REVENUE,
    HZ_PARTIES.HQ_BRANCH_IND,
    HZ_PARTIES.PERSON_LAST_NAME,
    HZ_PARTIES.KNOWN_AS,
    HZ_PARTIES.PERSON_TITLE,
    '[email protected]' EMAIL_ADDRESS,
    HZ_PARTIES.URL,
    HZ_PARTIES.CATEGORY_CODE,
    HZ_PARTIES.SIC_CODE,
    HZ_PARTIES.PARTY_TYPE,
    HZ_ORGANIZATION_PROFILES.OOB_IND,
    HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_IND,
    HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_TYPE,
    HZ_ORGANIZATION_PROFILES.WOMAN_OWNED_IND,
    HZ_ORGANIZATION_PROFILES.DISADV_8A_IND,
    HZ_ORGANIZATION_PROFILES.SMALL_BUS_IND,
    HZ_ORGANIZATION_PROFILES.DB_RATING,
    HZ_ORGANIZATION_PROFILES.SIC_CODE_TYPE,
    HZ_ORGANIZATION_PROFILES.INTERNAL_FLAG,
    HZ_ORGANIZATION_PROFILES.BRANCH_FLAG,
    HZ_ORGANIZATION_PROFILES.CREDIT_SCORE,
    HZ_ORGANIZATION_PROFILES.STATUS,
    HZ_PARTIES.CUSTOMER_KEY,
    HZ_PARTIES.JGZZ_FISCAL_CODE,
    AP_SUPPLIERS.VENDOR_ID,
    AP_SUPPLIERS.VENDOR_NAME,
    AP_SUPPLIERS.VENDOR_NAME_ALT,
    AP_SUPPLIERS.SEGMENT1,
    AP_SUPPLIERS.ENABLED_FLAG,
    AP_SUPPLIERS.VENDOR_TYPE_LOOKUP_CODE,
    AP_SUPPLIERS.ONE_TIME_FLAG,
    AP_SUPPLIERS.PARENT_VENDOR_ID,
    AP_SUPPLIERS.ORGANIZATION_TYPE_LOOKUP_CODE,
    AP_SUPPLIERS.START_DATE_ACTIVE,
    AP_SUPPLIERS.END_DATE_ACTIVE,
    AP_SUPPLIERS.MINORITY_GROUP_LOOKUP_CODE,
    AP_SUPPLIERS.WOMEN_OWNED_FLAG,
    AP_SUPPLIERS.SMALL_BUSINESS_FLAG,
    HZ_CUST_ACCOUNTS.PARTY_ID
    FROM HZ_PARTIES,
    AP_SUPPLIERS,
    HZ_ORGANIZATION_PROFILES,
    HZ_CUST_ACCOUNTS,
    (SELECT DOM_REL.RELATIONSHIP_CODE RELATIONSHIP_CODE,
    DOM_ULT_DUNS.PARTY_ID PARTY_ID,
    DOM_ULT_DUNS.DUNS_NUMBER DOM_DUNS_NUMBER,
    DOM_REL.OBJECT_ID OBJECT_ID
    FROM HZ_PARTIES DOM_ULT_DUNS,
    HZ_RELATIONSHIPS DOM_REL
    WHERE(1 = 1)
    AND(DOM_REL.SUBJECT_ID = DOM_ULT_DUNS.PARTY_ID)
    AND(DOM_REL.OBJECT_TYPE = 'ORGANIZATION')
    AND(DOM_REL.SUBJECT_TYPE = 'ORGANIZATION')
    AND(DOM_REL.SUBJECT_TABLE_NAME = 'HZ_PARTIES')
    AND(DOM_REL.RELATIONSHIP_CODE IN('DOMESTIC_ULTIMATE_OF', 'GLOBAL_ULTIMATE_OF'))
    AND(DOM_REL.ACTUAL_CONTENT_SOURCE = 'DNB')
    AND(DOM_REL.RELATIONSHIP_TYPE = 'DNB_HIERARCHY')
    AND((DOM_REL.END_DATE IS NULL
    OR DOM_REL.END_DATE > SYSDATE
    DOM_DUNS
    WHERE(1 = 1)
    AND HZ_PARTIES.PARTY_TYPE = 'ORGANIZATION'
    AND HZ_PARTIES.PARTY_ID = AP_SUPPLIERS.PARTY_ID(+)
    AND HZ_ORGANIZATION_PROFILES.EFFECTIVE_END_DATE IS NULL
    AND HZ_ORGANIZATION_PROFILES.ACTUAL_CONTENT_SOURCE = 'SST'
    AND
    (HZ_ORGANIZATION_PROFILES.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
    HZ_PARTIES.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
    AP_SUPPLIERS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    OR
    HZ_CUST_ACCOUNTS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
    AND HZ_ORGANIZATION_PROFILES.PARTY_ID = HZ_PARTIES.PARTY_ID
    AND HZ_CUST_ACCOUNTS.PARTY_ID(+)=HZ_PARTIES.PARTY_ID
    AND DOM_DUNS.OBJECT_ID(+) = HZ_PARTIES.PARTY_ID
    Oracle Fatal Error].
    2012-05-10 10:43:51 : ERROR : (16808 | READER_1_1_1) : (IS | BIA_IS) : node01_bidev.localhost : BLKR_16004 : ERROR: Prepare failed.
    2012-05-10 10:43:51 : INFO : (16808 | WRITER_1_*_1) : (IS | BIA_IS) : node01_bidev.localhost : WRT_8333 : Rolling back all the targets due to fatal session error.
    2012-05-10 10:43:51 : INFO : (16808 | WRITER_1_*_1) : (IS | BIA_IS) : node01_bidev.localhost : WRT_8325 : Final rollback executed for the target [W_ORG_DS] at end of load
    2012-05-10 10:43:51 : INFO : (16808 | WRITER_1_*_1) : (IS | BIA_IS) : node01_bidev.localhost : WRT_8035 : Load complete time: Thu May 10 10:43:51 2012
    LOAD SUMMARY
    ============
    WRT_8036 Target: W_PARTY_ORG_DS (Instance Name: [W_ORG_DS])
    WRT_8044 No data loaded for this target
    I have already checked table source (HZ_PARTIES,AP_SUPPLIERS,HZ_ORGANIZATION_PROFILES,HZ_CUST_ACCOUNTS) and table target (W_PARTY_ORG_DS). All source table and target table are exist. But when I ran execution plan for Financial Analytics, I got failed on task SDE_ORA_PartyOrganizationDimension_Customer_Full
    Did anyone ever get this issue?
    Regards,
    Joni

    Have you tried running the sql against your source? I ran this against one of our EBS instances and it runs fine.
    If it runs OK I would next check what connection the Informatica workflow is using. Check the full session and workflow logs to make sure its connecting to the correct database.

  • Effect of RLS policy (VPD) on execution plan of a query

    Hi
    I have been working on tuning of few queries. A RLS policy is defined on most of the tables which appends an extra where condition (something like AREA_CODE=1). I am not able to understand the effect of this extra where clause on the execution plan of the query. In the execution plan there is no mention of the clause added by VPD. In 10046 trace it does show the policy function being executed but nothing after that.
    Can someone shed some light on the issue that has VPD any effect on the execution plan of the query ? Also would it matter whether the column on which VPD is applied, was indexed or non-indexed ?
    Regards,
    Amardeep Sidhu

    Amardeep Sidhu wrote:
    I have been working on tuning of few queries. A RLS policy is defined on most of the tables which appends an extra where condition (something like AREA_CODE=1). I am not able to understand the effect of this extra where clause on the execution plan of the query. In the execution plan there is no mention of the clause added by VPD. In 10046 trace it does show the policy function being executed but nothing after that.
    VPD is supposed to be invisible - which is why you get minimal information about security predicates in the standard trace file. However, if you reference a table with a security preidcate in your query, the table is effectively replaced by an inline view of the form: "select * from original_table where {security_predicate}", and the result is then optimised. So the effects of the security predicate is just the same as you writing the predicate into the query.
    Apart from your use of v$sql_plan to show the change in plan and the new predicates, you can see the effects of the predicates by setting event 10730 with 10046. In current versions of Oracle this causes the substitute view being printed in the trace file.
    Bear in mind that security predicates can be very complex - including subqueries - so the effect isn't just that of including the selectivity of "another simple predicate".
    Can someone shed some light on the issue that has VPD any effect on the execution plan of the query ? Also would it matter whether the column on which VPD is applied, was indexed or non-indexed ?
    Think of the effect of changing the SQL by hand - and how you would need to optimise the resultant query. Sometimes you do need to modify your indexing to help the security predicates, sometimes it won't make enough difference to matter.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • DAC Execution plan for financial analytics keeps running (OBIA 7.9.4)

    Hi Gurus,
    I have problem when tried to run full load on financial analytics execution plan. I used OBIA 7.9.4, Informatica 8.6.1 and DAC 10.1.3.4.1.patch.20100901.0520. This runs on Windows Server 2008 Service Pack 2 with 6 GB of memory. I set $$INITIAL_EXTRACT_DATE='01/01/2011' so it should pull data greater than $$INITIAL_EXTRACT_DATE, which I believed not more than 3 years data and should be not more than 2 days for loading this data. But execution plan keeps running and not yet completed even after more than 2 days. I have already checked for DAC execution plan log, But nothing I can found from the log.
    Here is the log file:
    12  INFO  Thu Jun 27 13:52:12 SGT 2013  DAC Version: Dac Build AN 10.1.3.4.1.patch.20100901.0520
    13  INFO  Thu Jun 27 13:52:12 SGT 2013  The System properties are: java.runtime.name Java(TM) SE Runtime Environment
    sun.boot.library.path C:\orahome\10gR3_1\jdk\jre\bin
    java.vm.version 10.0-b23
    java.vm.vendor Sun Microsystems Inc.
    java.vendor.url http://java.sun.com/
    path.separator ;
    ETL_EXECUTION_MODE ETL_SERVER
    java.vm.name Java HotSpot(TM) Server VM
    file.encoding.pkg sun.io
    sun.java.launcher SUN_STANDARD
    user.country US
    sun.os.patch.level Service Pack 2
    java.vm.specification.name Java Virtual Machine Specification
    user.dir C:\orahome\10gR3_1\bifoundation\dac
    java.runtime.version 1.6.0_07-b06
    java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs C:\orahome\10gR3_1\jdk\jre\lib\endorsed
    os.arch x86
    java.io.tmpdir C:\Users\ADMINI~1\AppData\Local\Temp\2\
    line.separator
    java.vm.specification.vendor Sun Microsystems Inc.
    user.variant
    os.name Windows Server 2008
    REPOSITORY_STAMP 4E8A758D24E553DBB74B325E89718660
    sun.jnu.encoding Cp1252
    java.library.path C:\orahome\10gR3_1\jdk\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Informatica\PowerCenter8.6.1\server\bin;C:\OracleBI\server\Bin;C:\OracleBI\web\bin;C:\OracleBI\web\catalogmanager;C:\OracleBI\SQLAnywhere;C:\Program Files (x86)\Java\jdk1.5.0_22\bin;C:\app\oracle\product\11.2.0\dbhome_1\bin;C:\Program Files\HP\NCU;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\OmniBack\bin\;C:\Windows\System32\WindowsPowerShell\v1.0\
    java.specification.name Java Platform API Specification
    java.class.version 50.0
    sun.management.compiler HotSpot Tiered Compilers
    os.version 6.0
    user.home C:\Users\Administrator
    user.timezone Asia/Singapore
    java.awt.printerjob sun.awt.windows.WPrinterJob
    file.encoding Cp1252
    java.specification.version 1.6
    java.class.path .\lib\msbase.jar;.\lib\mssqlserver.jar;.\lib\msutil.jar;.\lib\sqljdbc.jar;.\lib\ojdbc6.jar;.\lib\ojdbc5.jar;.\lib\ojdbc14.jar;.\lib\db2java.zip;.\lib\terajdbc4.jar;.\lib\log4j.jar;.\lib\teradata.jar;.\lib\tdgssjava.jar;.\lib\tdgssconfig.jar;.\DAWSystem.jar;.;
    user.name Administrator
    java.vm.specification.version 1.0
    java.home C:\orahome\10gR3_1\jdk\jre
    sun.arch.data.model 32
    user.language en
    java.specification.vendor Sun Microsystems Inc.
    awt.toolkit sun.awt.windows.WToolkit
    java.vm.info mixed mode
    java.version 1.6.0_07
    java.ext.dirs C:\orahome\10gR3_1\jdk\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    sun.boot.class.path C:\orahome\10gR3_1\jdk\jre\lib\resources.jar;C:\orahome\10gR3_1\jdk\jre\lib\rt.jar;C:\orahome\10gR3_1\jdk\jre\lib\sunrsasign.jar;C:\orahome\10gR3_1\jdk\jre\lib\jsse.jar;C:\orahome\10gR3_1\jdk\jre\lib\jce.jar;C:\orahome\10gR3_1\jdk\jre\lib\charsets.jar;C:\orahome\10gR3_1\jdk\jre\classes
    java.vendor Sun Microsystems Inc.
    file.separator \
    java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding UnicodeLittle
    sun.cpu.endian little
    sun.desktop windows
    sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    14  SEVERE  Thu Jun 27 13:52:12 SGT 2013
    START OF ETL
    15  SEVERE  Thu Jun 27 13:52:36 SGT 2013  Unable to evaluate method getNamedSourceIdentifier for class com.siebel.analytics.etl.etltask.InformaticaTask
    16  SEVERE  Thu Jun 27 13:52:36 SGT 2013  Unable to evaluate method getNamedSource for class com.siebel.analytics.etl.etltask.InformaticaTask
    17  SEVERE  Thu Jun 27 13:52:36 SGT 2013  Unable to evaluate method getNamedSourceIdentifier for class com.siebel.analytics.etl.etltask.PauseTask
    18  SEVERE  Thu Jun 27 13:52:36 SGT 2013  Unable to evaluate method getNamedSource for class com.siebel.analytics.etl.etltask.PauseTask
    19  SEVERE  Thu Jun 27 13:52:40 SGT 2013  Unable to evaluate method getNamedSourceIdentifier for class com.siebel.analytics.etl.etltask.TaskPrecedingActionScriptTask
    20  SEVERE  Thu Jun 27 13:52:40 SGT 2013  Unable to evaluate method getNamedSource for class com.siebel.analytics.etl.etltask.TaskPrecedingActionScriptTask
    21  SEVERE  Thu Jun 27 13:52:46 SGT 2013  Starting ETL Process.
    22  SEVERE  Thu Jun 27 13:52:47 SGT 2013  Informatica Status Poll Interval new value : 20000(milli-seconds)
    24  SEVERE  Thu Jun 27 13:52:52 SGT 2013  C:\orahome\10gR3_1\bifoundation\dac\Informatica\parameters\input\FLAT FILE specified is not a currently existing directory
    25  SEVERE  Thu Jun 27 13:52:52 SGT 2013  Request to start workflow : 'SILOS:SIL_InsertRowInRunTable' has completed with error code 0
    26  SEVERE  Thu Jun 27 13:53:12 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SILOS.SIL_InsertRowInRunTable.txt SIL_InsertRowInRunTable
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    27  SEVERE  Thu Jun 27 13:53:13 SGT 2013  Number of running sessions : 13
    28  SEVERE  Thu Jun 27 13:53:13 SGT 2013  Number of running sessions : 12
    29  SEVERE  Thu Jun 27 13:53:14 SGT 2013  Number of running sessions : 11
    30  SEVERE  Thu Jun 27 13:53:15 SGT 2013  Number of running sessions : 10
    32  SEVERE  Thu Jun 27 13:53:18 SGT 2013  C:\orahome\10gR3_1\bifoundation\dac\Informatica\parameters\input\ORACLE specified is not a currently existing directory
    33  SEVERE  Thu Jun 27 13:53:18 SGT 2013  C:\orahome\10gR3_1\bifoundation\dac\Informatica\parameters\input\Oracle specified is not a currently existing directory
    34  SEVERE  Thu Jun 27 13:53:18 SGT 2013  C:\orahome\10gR3_1\bifoundation\dac\Informatica\parameters\input\oracle specified is not a currently existing directory
    35  SEVERE  Thu Jun 27 13:53:18 SGT 2013  C:\orahome\10gR3_1\bifoundation\dac\Informatica\parameters\input\ORACLE (THIN) specified is not a currently existing directory
    36  SEVERE  Thu Jun 27 13:53:19 SGT 2013  Request to start workflow : 'SILOS:SIL_CurrencyTypes' has completed with error code 0
    37  SEVERE  Thu Jun 27 13:53:19 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_ValueSetHier_Extract_Full' has completed with error code 0
    38  SEVERE  Thu Jun 27 13:53:19 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_GLAccount_SegmentConfig_Extract' has completed with error code 0
    39  SEVERE  Thu Jun 27 13:53:19 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_LocalCurrency_Temporary' has completed with error code 0
    40  SEVERE  Thu Jun 27 13:53:19 SGT 2013  Request to start workflow : 'SILOS:SIL_Parameters_Update' has completed with error code 0
    41  SEVERE  Thu Jun 27 13:53:19 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_GLAccountDimension_FinSubCodes' has completed with error code 0
    42  SEVERE  Thu Jun 27 13:53:19 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_ValueSet_Extract' has completed with error code 0
    43  SEVERE  Thu Jun 27 13:53:19 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GLSegmentDimension_Full' has completed with error code 0
    44  SEVERE  Thu Jun 27 13:53:19 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_InternalOrganizationDimension_BalanceSegmentValue_LegalEntity' has completed with error code 0
    45  SEVERE  Thu Jun 27 13:53:39 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SILOS.SIL_CurrencyTypes.txt SIL_CurrencyTypes
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    46  SEVERE  Thu Jun 27 13:53:39 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_ValueSetHier_Extract_Full.txt SDE_ORA_Stage_ValueSetHier_Extract_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    47  SEVERE  Thu Jun 27 13:53:40 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_GLAccount_SegmentConfig_Extract.txt SDE_ORA_Stage_GLAccount_SegmentConfig_Extract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    48  SEVERE  Thu Jun 27 13:53:40 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_LocalCurrency_Temporary.txt SDE_ORA_LocalCurrency_Temporary
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    49  SEVERE  Thu Jun 27 13:53:40 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SILOS.SIL_Parameters_Update.txt SIL_Parameters_Update
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    50  SEVERE  Thu Jun 27 13:53:40 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_GLAccountDimension_FinSubCodes.txt SDE_ORA_Stage_GLAccountDimension_FinSubCodes
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    51  SEVERE  Thu Jun 27 13:53:40 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_ValueSet_Extract.txt SDE_ORA_Stage_ValueSet_Extract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    52  SEVERE  Thu Jun 27 13:53:40 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GLSegmentDimension_Full.txt SDE_ORA_GLSegmentDimension_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    53  SEVERE  Thu Jun 27 13:53:40 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_InternalOrganizationDimension_BalanceSegmentValue_LegalEntity.txt SDE_ORA_InternalOrganizationDimension_BalanceSegmentValue_LegalEntity
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    54  SEVERE  Thu Jun 27 13:53:40 SGT 2013  Number of running sessions : 10
    55  SEVERE  Thu Jun 27 13:53:40 SGT 2013  Number of running sessions : 10
    56  SEVERE  Thu Jun 27 13:53:40 SGT 2013  Number of running sessions : 11
    57  SEVERE  Thu Jun 27 13:53:40 SGT 2013  Number of running sessions : 11
    58  SEVERE  Thu Jun 27 13:53:40 SGT 2013  Number of running sessions : 11
    59  SEVERE  Thu Jun 27 13:53:41 SGT 2013  Number of running sessions : 11
    60  SEVERE  Thu Jun 27 13:53:41 SGT 2013  Number of running sessions : 11
    61  SEVERE  Thu Jun 27 13:53:41 SGT 2013  Number of running sessions : 11
    62  SEVERE  Thu Jun 27 13:53:41 SGT 2013  Number of running sessions : 11
    63  SEVERE  Thu Jun 27 13:53:42 SGT 2013  Number of running sessions : 10
    64  SEVERE  Thu Jun 27 13:53:42 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GLBalanceFact_Full' has completed with error code 0
    65  SEVERE  Thu Jun 27 13:53:46 SGT 2013  Request to start workflow : 'SILOS:SIL_Stage_GroupAccountNumberDimension_FinStatementItem' has completed with error code 0
    66  SEVERE  Thu Jun 27 13:53:46 SGT 2013  Request to start workflow : 'SILOS:SIL_GlobalCurrencyGeneral_Update' has completed with error code 0
    67  SEVERE  Thu Jun 27 13:53:46 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_GroupAccountNumberDimension' has completed with error code 0
    68  SEVERE  Thu Jun 27 13:53:46 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_ARSubType_Extract' has completed with error code 0
    69  SEVERE  Thu Jun 27 13:53:46 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_GLRevenueTypeExtract' has completed with error code 0
    70  SEVERE  Thu Jun 27 13:53:46 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_ValueSetHier_Flatten' has completed with error code 0
    71  SEVERE  Thu Jun 27 13:53:47 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_ExchangeRateGeneral_Full' has completed with error code 0
    72  SEVERE  Thu Jun 27 13:53:47 SGT 2013  Request to start workflow : 'SILOS:SIL_ListOfValuesGeneral_Unspecified' has completed with error code 0
    73  SEVERE  Thu Jun 27 13:54:06 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SILOS.SIL_Stage_GroupAccountNumberDimension_FinStatementItem.txt SIL_Stage_GroupAccountNumberDimension_FinStatementItem
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    74  SEVERE  Thu Jun 27 13:54:07 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SILOS.SIL_GlobalCurrencyGeneral_Update.txt SIL_GlobalCurrencyGeneral_Update
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    75  SEVERE  Thu Jun 27 13:54:07 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_GroupAccountNumberDimension.txt SDE_ORA_Stage_GroupAccountNumberDimension
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    76  SEVERE  Thu Jun 27 13:54:07 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_GLRevenueTypeExtract.txt SDE_ORA_Stage_TransactionTypeDimension_GLRevenueTypeExtract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    77  SEVERE  Thu Jun 27 13:54:07 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_ARSubType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_ARSubType_Extract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    78  SEVERE  Thu Jun 27 13:54:07 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\DataWarehouse.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_ValueSetHier_Flatten.txt SDE_ORA_Stage_ValueSetHier_Flatten
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    79  SEVERE  Thu Jun 27 13:54:07 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_ExchangeRateGeneral_Full.txt SDE_ORA_ExchangeRateGeneral_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    80  SEVERE  Thu Jun 27 13:54:07 SGT 2013  Number of running sessions : 11
    81  SEVERE  Thu Jun 27 13:54:07 SGT 2013  Number of running sessions : 10
    82  SEVERE  Thu Jun 27 13:54:07 SGT 2013  Number of running sessions : 10
    83  SEVERE  Thu Jun 27 13:54:07 SGT 2013  Number of running sessions : 10
    84  SEVERE  Thu Jun 27 13:54:08 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SILOS.SIL_ListOfValuesGeneral_Unspecified.txt SIL_ListOfValuesGeneral_Unspecified
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    85  SEVERE  Thu Jun 27 13:54:08 SGT 2013  Number of running sessions : 10
    86  SEVERE  Thu Jun 27 13:54:08 SGT 2013  Number of running sessions : 10
    87  SEVERE  Thu Jun 27 13:54:08 SGT 2013  Number of running sessions : 10
    88  SEVERE  Thu Jun 27 13:54:09 SGT 2013  Number of running sessions : 10
    89  SEVERE  Thu Jun 27 13:54:12 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GLJournals_Full' has completed with error code 0
    90  SEVERE  Thu Jun 27 13:54:13 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_APTransactionFact_Payment_Full' has completed with error code 0
    91  SEVERE  Thu Jun 27 13:54:13 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_APType_Extract' has completed with error code 0
    92  SEVERE  Thu Jun 27 13:54:13 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_APTransactionFact_PaymentSchedule_Full' has completed with error code 0
    93  SEVERE  Thu Jun 27 13:54:13 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_APTransactionFact_Distributions_Full' has completed with error code 0
    94  SEVERE  Thu Jun 27 13:54:13 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_GLRevenueSubType_Extract' has completed with error code 0
    95  SEVERE  Thu Jun 27 13:54:13 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_APSubType_Extract' has completed with error code 0
    96  SEVERE  Thu Jun 27 13:54:14 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_GLCOGSSubType_Extract' has completed with error code 0
    97  SEVERE  Thu Jun 27 13:54:15 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_ValueSetHier_DeriveRange' has completed with error code 0
    98  SEVERE  Thu Jun 27 13:54:33 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_APTransactionFact_Payment_Full.txt SDE_ORA_APTransactionFact_Payment_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    99  SEVERE  Thu Jun 27 13:54:33 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_APType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_APType_Extract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    100  SEVERE  Thu Jun 27 13:54:33 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_APTransactionFact_PaymentSchedule_Full.txt SDE_ORA_APTransactionFact_PaymentSchedule_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    101  SEVERE  Thu Jun 27 13:54:33 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_APTransactionFact_Distributions_Full.txt SDE_ORA_APTransactionFact_Distributions_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    102  SEVERE  Thu Jun 27 13:54:34 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_GLRevenueSubType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_GLRevenueSubType_Extract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    103  SEVERE  Thu Jun 27 13:54:34 SGT 2013  Number of running sessions : 12
    104  SEVERE  Thu Jun 27 13:54:34 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_APSubType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_APSubType_Extract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    105  SEVERE  Thu Jun 27 13:54:34 SGT 2013  Number of running sessions : 11
    106  SEVERE  Thu Jun 27 13:54:34 SGT 2013  Number of running sessions : 10
    107  SEVERE  Thu Jun 27 13:54:34 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_GLCOGSSubType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_GLCOGSSubType_Extract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    108  SEVERE  Thu Jun 27 13:54:34 SGT 2013  Number of running sessions : 11
    109  SEVERE  Thu Jun 27 13:54:34 SGT 2013  Number of running sessions : 10
    110  SEVERE  Thu Jun 27 13:54:34 SGT 2013  Number of running sessions : 10
    111  SEVERE  Thu Jun 27 13:54:35 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\DataWarehouse.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_ValueSetHier_DeriveRange.txt SDE_ORA_Stage_ValueSetHier_DeriveRange
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    112  SEVERE  Thu Jun 27 13:54:36 SGT 2013  Number of running sessions : 10
    113  SEVERE  Thu Jun 27 13:54:36 SGT 2013  Number of running sessions : 9
    114  SEVERE  Thu Jun 27 13:54:36 SGT 2013  Number of running sessions : 8
    115  SEVERE  Thu Jun 27 13:54:40 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_GLCOGSType_Extract' has completed with error code 0
    116  SEVERE  Thu Jun 27 13:54:40 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionTypeDimension_ExpenditureCategory' has completed with error code 0
    117  SEVERE  Thu Jun 27 13:54:40 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_InternalOrganizationDimensionHierarchy_HROrgsTemporary_LatestVersion' has completed with error code 0
    118  SEVERE  Thu Jun 27 13:54:40 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_ARType_Extract' has completed with error code 0
    119  SEVERE  Thu Jun 27 13:54:40 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GL_AP_LinkageInformation_Extract_Full' has completed with error code 0
    120  SEVERE  Thu Jun 27 13:54:41 SGT 2013  Request to start workflow : 'SILOS:SIL_TimeOfDayDimension' has completed with error code 0
    121  SEVERE  Thu Jun 27 13:55:00 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_GLCOGSType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_GLCOGSType_Extract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    122  SEVERE  Thu Jun 27 13:55:00 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_TransactionTypeDimension_ExpenditureCategory.txt SDE_ORA_TransactionTypeDimension_ExpenditureCategory
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    123  SEVERE  Thu Jun 27 13:55:00 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_ARType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_ARType_Extract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    124  SEVERE  Thu Jun 27 13:55:00 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_InternalOrganizationDimensionHierarchy_HROrgsTemporary_LatestVersion.txt SDE_ORA_InternalOrganizationDimensionHierarchy_HROrgsTemporary_LatestVersion
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    125  SEVERE  Thu Jun 27 13:55:00 SGT 2013  Number of running sessions : 7
    126  SEVERE  Thu Jun 27 13:55:00 SGT 2013  Number of running sessions : 6
    127  SEVERE  Thu Jun 27 13:55:01 SGT 2013  Number of running sessions : 6
    128  SEVERE  Thu Jun 27 13:55:01 SGT 2013  Number of running sessions : 10
    129  SEVERE  Thu Jun 27 13:55:01 SGT 2013  Number of running sessions : 9
    130  SEVERE  Thu Jun 27 13:55:01 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SILOS.SIL_TimeOfDayDimension.txt SIL_TimeOfDayDimension
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    131  SEVERE  Thu Jun 27 13:55:02 SGT 2013  Number of running sessions : 9
    132  SEVERE  Thu Jun 27 13:55:06 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionTypeDimension_GLRevenueDerive' has completed with error code 0
    133  SEVERE  Thu Jun 27 13:55:06 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionTypeDimension_APDerive' has completed with error code 0
    134  SEVERE  Thu Jun 27 13:55:06 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionTypeDimension_GLOther' has completed with error code 0
    135  SEVERE  Thu Jun 27 13:55:06 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_ARSubType_ExtractApplication' has completed with error code 0
    136  SEVERE  Thu Jun 27 13:55:06 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionTypeDimension_GLCOGSDerive' has completed with error code 0
    137  SEVERE  Thu Jun 27 13:55:08 SGT 2013  Request to start workflow : 'SILOS:SIL_HourOfDayDimension' has completed with error code 0
    138  SEVERE  Thu Jun 27 13:55:21 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GL_AP_LinkageInformation_Extract_Full.txt SDE_ORA_GL_AP_LinkageInformation_Extract_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    139  SEVERE  Thu Jun 27 13:55:21 SGT 2013  Number of running sessions : 9
    140  SEVERE  Thu Jun 27 13:55:27 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GL_PO_LinkageInformation_Extract_Full' has completed with error code 0
    141  SEVERE  Thu Jun 27 13:55:27 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_ARSubType_ExtractApplication.txt SDE_ORA_Stage_TransactionTypeDimension_ARSubType_ExtractApplication
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    142  SEVERE  Thu Jun 27 13:55:27 SGT 2013  Number of running sessions : 8
    143  SEVERE  Thu Jun 27 13:55:28 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\DataWarehouse.DataWarehouse.SILOS.SIL_HourOfDayDimension.txt SIL_HourOfDayDimension
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    144  SEVERE  Thu Jun 27 13:55:29 SGT 2013  Number of running sessions : 7
    145  SEVERE  Thu Jun 27 13:55:47 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GL_PO_LinkageInformation_Extract_Full.txt SDE_ORA_GL_PO_LinkageInformation_Extract_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    146  SEVERE  Thu Jun 27 13:55:47 SGT 2013  Number of running sessions : 7
    147  SEVERE  Thu Jun 27 13:55:53 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GL_AR_REV_LinkageInformation_Extract_Full' has completed with error code 0
    148  SEVERE  Thu Jun 27 13:55:53 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GLJournals_Full.txt SDE_ORA_GLJournals_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    149  SEVERE  Thu Jun 27 13:56:00 SGT 2013
    ANOMALY INFO::: DataWarehouse:SELECT COUNT(*) FROM W_ORA_GLRF_DERV_F_TMP
    ORA-00942: table or view does not exist
    MESSAGE:::ORA-00942: table or view does not exist
    EXCEPTION CLASS::: java.sql.SQLSyntaxErrorException
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
    oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
    oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
    oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
    oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
    oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)
    oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:853)
    oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
    oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1469)
    oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:389)
    com.siebel.etl.database.cancellable.CancellableStatement.executeQuery(CancellableStatement.java:69)
    com.siebel.etl.database.DBUtils.executeQuery(DBUtils.java:150)
    com.siebel.etl.database.WeakDBUtils.executeQuery(WeakDBUtils.java:242)
    com.siebel.analytics.etl.etltask.CountTableTask.doExecute(CountTableTask.java:99)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:411)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:307)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:214)
    com.siebel.etl.engine.core.Session.getTargetTableRowCounts(Session.java:3375)
    com.siebel.etl.engine.core.Session.run(Session.java:3251)
    java.lang.Thread.run(Thread.java:619)
    150  SEVERE  Thu Jun 27 13:56:00 SGT 2013
    ANOMALY INFO::: Error while executing : COUNT TABLE:W_ORA_GLRF_DERV_F_TMP
    MESSAGE:::com.siebel.etl.database.IllegalSQLQueryException: DataWarehouse:SELECT COUNT(*) FROM W_ORA_GLRF_DERV_F_TMP
    ORA-00942: table or view does not exist
    EXCEPTION CLASS::: java.lang.Exception
    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:450)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:307)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:214)
    com.siebel.etl.engine.core.Session.getTargetTableRowCounts(Session.java:3375)
    com.siebel.etl.engine.core.Session.run(Session.java:3251)
    java.lang.Thread.run(Thread.java:619)
    ::: CAUSE :::
    MESSAGE:::DataWarehouse:SELECT COUNT(*) FROM W_ORA_GLRF_DERV_F_TMP
    ORA-00942: table or view does not exist
    EXCEPTION CLASS::: com.siebel.etl.database.IllegalSQLQueryException
    com.siebel.etl.database.DBUtils.executeQuery(DBUtils.java:160)
    com.siebel.etl.database.WeakDBUtils.executeQuery(WeakDBUtils.java:242)
    com.siebel.analytics.etl.etltask.CountTableTask.doExecute(CountTableTask.java:99)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:411)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:307)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:214)
    com.siebel.etl.engine.core.Session.getTargetTableRowCounts(Session.java:3375)
    com.siebel.etl.engine.core.Session.run(Session.java:3251)
    java.lang.Thread.run(Thread.java:619)
    ::: CAUSE :::
    MESSAGE:::ORA-00942: table or view does not exist
    EXCEPTION CLASS::: java.sql.SQLSyntaxErrorException
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
    oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
    oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
    oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
    oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
    oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)
    oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:853)
    oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
    oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1469)
    oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:389)
    com.siebel.etl.database.cancellable.CancellableStatement.executeQuery(CancellableStatement.java:69)
    com.siebel.etl.database.DBUtils.executeQuery(DBUtils.java:150)
    com.siebel.etl.database.WeakDBUtils.executeQuery(WeakDBUtils.java:242)
    com.siebel.analytics.etl.etltask.CountTableTask.doExecute(CountTableTask.java:99)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:411)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:307)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:214)
    com.siebel.etl.engine.core.Session.getTargetTableRowCounts(Session.java:3375)
    com.siebel.etl.engine.core.Session.run(Session.java:3251)
    java.lang.Thread.run(Thread.java:619)
    151  SEVERE  Thu Jun 27 13:56:12 SGT 2013  Number of running sessions : 10
    152  SEVERE  Thu Jun 27 13:56:12 SGT 2013  Number of running sessions : 10
    153  SEVERE  Thu Jun 27 13:56:13 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GL_AR_REV_LinkageInformation_Extract_Full.txt SDE_ORA_GL_AR_REV_LinkageInformation_Extract_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    154  SEVERE  Thu Jun 27 13:56:13 SGT 2013  Number of running sessions : 10
    155  SEVERE  Thu Jun 27 13:56:17 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_APTermsDimension_Full' has completed with error code 0
    156  SEVERE  Thu Jun 27 13:56:18 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_PartyContactStaging_Full' has completed with error code 0
    157  SEVERE  Thu Jun 27 13:56:18 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_MovementTypeDimension' has completed with error code 0
    158  SEVERE  Thu Jun 27 13:56:18 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionSourceDimension_AP_LKP_Extract_Full' has completed with error code 0
    159  SEVERE  Thu Jun 27 13:56:19 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionSourceDimension_AP_CC_Extract' has completed with error code 0
    160  SEVERE  Thu Jun 27 13:56:38 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_APTermsDimension_Full.txt SDE_ORA_APTermsDimension_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    161  SEVERE  Thu Jun 27 13:56:38 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_PartyContactStaging_Full.txt SDE_ORA_PartyContactStaging_Full
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    162  SEVERE  Thu Jun 27 13:56:38 SGT 2013  Number of running sessions : 10
    163  SEVERE  Thu Jun 27 13:56:38 SGT 2013  Number of running sessions : 9
    164  SEVERE  Thu Jun 27 13:56:39 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_TransactionSourceDimension_AP_CC_Extract.txt SDE_ORA_TransactionSourceDimension_AP_CC_Extract
    Status Desc : Succeeded
    WorkFlowMessage : Workflow executed successfully.
    Error Message : Successfully completed.
    ErrorCode : 0
    165  SEVERE  Thu Jun 27 13:56:39 SGT 2013  Number of running sessions : 8
    166  SEVERE  Thu Jun 27 13:56:44 SGT 2013  Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GL_COGS_LinkageInformation_Extract_Full' has completed with error code 0
    167  SEVERE  Thu Jun 27 13:57:04 SGT 2013  pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor  -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GL_COGS_LinkageInformation_Extract_Full.txt SDE_ORA_GL_COGS_LinkageInformation_Extract_Full
    Status Desc : Succeeded
    After certain tasks I found Informatica workflow did not run. In my case after 190 of 403 tasks but sometime 183 of 403 tasks so it is intermittent.
    This sample tasks that is still running.
    SDE_ORA_EmployeeDimension
    SDE_ORA_GeoCountryDimension
    SDE_ORA_MovementTypeDimension
    SDE_ORA_Project
    SDE_ORA_StatusDimension_ProjectStatus
    SDE_ORA_TransactionSourceDimension_AP_LKP_Extract
    SDE_ORA_TransactionTypeDimension_APDerive
    SDE_ORA_TransactionTypeDimension_GLCOGSDerive
    In Informatica Monitor I found this
    The Integration Service INT_AFDROBI is alive. Ping time is 0 ms.
    The Integration Service INT_AFDROBI is alive. Ping time is 0 ms.
    The Integration Service INT_AFDROBI is alive. Ping time is 0 ms.
    The Integration Service INT_AFDROBI is alive. Ping time is 0 ms.
    Is it mean something?
    I have tried to bounce the server bounce the dac server and start ETL but problem still happen.
    Did I miss something on DAC or Informatica configuration?
    Thanks
    Joni

    Hi Naga,
    NagarajuCool Jul 8, 2013 6:49 AM (in response to JonHi Naga
    1)Check once Relational connections of workflow manager.
    Same with tns name
    2)Name should be same in workflow manager,ODBC and DAC client.
    in DAC I set same with SID -->connection test successful
    3)Have you mentioned custom properties in informatica integration service
    overrideMpltVarwithMapVar  Yes
    4)stop infa services and copy pmcmd  file from server to client and start sevrices.
    Done
    5)And check once all DAC configuration once.
    Done
    After applied above setting DAC Execution Plan for Financial Analytics still take long time. Anything I should try?
    Thanks,
    Joni
    Branch
    Report Abuse
    Like (0)
    Reply

  • Error running Execution plan for 'Project Analytics in PeopleSoft 9.0 '

    Hi ,
    I am running execution plan for Projects Peoplesoft 9.0 (BI Apps version 7.9.6)
    The issue is the file type data source went thru the database (data warehouse)
    the tasks that were completed SUCCESS were from the File source only from (SrcFiles).
    error as below.
    ANOMALY INFO::: Error while executing : INFORMATICA TASK:SDE_PSFT_90_Adaptor:SDE_PSFT_ExchangeRateDimension_Full:(Source : FULL Target : FULL)
    MESSAGE:::
    Irrecoverable Error
    Error while contacting Informatica server for getting workflow status for SDE_PSFT_ExchangeRateDimension_Full
    Error Code = 36331:Unknown reason for error code 36331
    Pmcmd output :
    one more info,if this helps
    values defined in the Parameters of the execution plan.
    1     DATASOURCE     ,DBConnection_OLAP     is 'DataWarehouse'
    1 DATASOURCE     ,DBConnection_OLTP     is 'PSFT_9_0_FINSCM'
    1     DATASOURCE     ,FlatFileConnection     is 'PSFT_9_0_FlatFile'
    The 'Relational Connection' In Informatica Repository Manager is currently pointing to only 'PSFT_9_0_FINSCM'
    & 'DataWarehouse'
    Please let me know what is wrong?
    Regards,
    JK

    Hi ,
    I created the PSFT connection in 'Applicaiton connection' of Repository manager.
    Also the Informatica server's tnsnames.ora should have entry for the source( PSFT database) and that of the datawarehouse.
    thanks,
    JK

  • Multiple Executions Plans for the same SQL statement

    Dear experts,
    awrsqrpt.sql is showing multiple executions plans for a single SQL statement. How is it possible that one SQL statement will have multiple Executions Plans within the same AWR report.
    Below is the awrsqrpt's output for your reference.
    WORKLOAD REPOSITORY SQL Report
    Snapshot Period Summary
    DB Name         DB Id    Instance     Inst Num Release     RAC Host
    TESTDB          2157605839 TESTDB1               1 10.2.0.3.0  YES testhost1
                  Snap Id      Snap Time      Sessions Curs/Sess
    Begin Snap:     32541 11-Oct-08 21:00:13       248     141.1
      End Snap:     32542 11-Oct-08 21:15:06       245     143.4
       Elapsed:               14.88 (mins)
       DB Time:               12.18 (mins)
    SQL Summary                            DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
                    Elapsed
       SQL Id      Time (ms)
    51szt7b736bmg     25,131
    Module: SQL*Plus
    UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(ACCT_DR_BAL,
    0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND TEST_ACC_NB = ACCT_ACC_NB(+)) WHERE
    TEST_BATCH_DT = (:B1 )
    SQL ID: 51szt7b736bmg                  DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> 1st Capture and Last Capture Snap IDs
       refer to Snapshot IDs witin the snapshot range
    -> UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(AC...
        Plan Hash           Total Elapsed                 1st Capture   Last Capture
    #   Value                    Time(ms)    Executions       Snap ID        Snap ID
    1   2960830398                 25,131             1         32542          32542
    2   3834848140                      0             0         32542          32542
    Plan 1(PHV: 2960830398)
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                            25,131       25,130.7     3.4
    CPU Time (ms)                                23,270       23,270.2     3.9
    Executions                                        1            N/A     N/A
    Buffer Gets                               2,626,166    2,626,166.0    14.6
    Disk Reads                                      305          305.0     0.3
    Parse Calls                                       1            1.0     0.0
    Rows                                        371,735      371,735.0     N/A
    User I/O Wait Time (ms)                         564            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
    Execution Plan
    | Id  | Operation                    | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |                 |       |       |  1110 (100)|          |
    |   1 |  UPDATE                      | TEST            |       |       |            |          |
    |   2 |   TABLE ACCESS FULL          | TEST            |   116K|  2740K|  1110   (2)| 00:00:14 |
    |   3 |   TABLE ACCESS BY INDEX ROWID| ACCT            |     1 |    26 |     5   (0)| 00:00:01 |
    |   4 |    INDEX RANGE SCAN          | ACCT_DT_ACC_IDX |     1 |       |     4   (0)| 00:00:01 |
    Plan 2(PHV: 3834848140)
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                                 0            N/A     0.0
    CPU Time (ms)                                     0            N/A     0.0
    Executions                                        0            N/A     N/A
    Buffer Gets                                       0            N/A     0.0
    Disk Reads                                        0            N/A     0.0
    Parse Calls                                       0            N/A     0.0
    Rows                                              0            N/A     N/A
    User I/O Wait Time (ms)                           0            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
    Execution Plan
    | Id  | Operation                    | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |              |       |       |     2 (100)|          |
    |   1 |  UPDATE                      | TEST         |       |       |            |          |
    |   2 |   TABLE ACCESS BY INDEX ROWID| TEST         |     1 |    28 |     2   (0)| 00:00:01 |
    |   3 |    INDEX RANGE SCAN          | TEST_DT_IND  |     1 |       |     1   (0)| 00:00:01 |
    |   4 |   TABLE ACCESS BY INDEX ROWID| ACCT         |     1 |    26 |     4   (0)| 00:00:01 |
    |   5 |    INDEX RANGE SCAN          | INDX_ACCT_DT |     1 |       |     3   (0)| 00:00:01 |
    Full SQL Text
    SQL ID       SQL Text
    51szt7b736bm UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL, 0) +
                  NVL(ACCT_DR_BAL, 0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND PB
                 RN_ACC_NB = ACCT_ACC_NB(+)) WHERE TEST_BATCH_DT = (:B1 )Your input is highly appreciated.
    Thanks for taking your time in answering my question.
    Regards

    Oracle Lover3 wrote:
    Dear experts,
    awrsqrpt.sql is showing multiple executions plans for a single SQL statement. How is it possible that one SQL statement will have multiple Executions Plans within the same AWR report.If you're using bind variables and you've histograms on your columns which can be created by default in 10g due to the "SIZE AUTO" default "method_opt" parameter of DBMS_STATS.GATHER__STATS it is quite normal that you get different execution plans for the same SQL statement. Depending on the values passed when the statement is hard parsed (this feature is called "bind variable peeking" and enabled by default since 9i) an execution plan is determined and re-used for all further executions of the same "shared" SQL statement.
    If now your statement ages out of the shared pool or is invalidated due to some DDL or statistics gathering activity it will be re-parsed and again the values passed in that particular moment will determine the execution plan. If you have skewed data distribution and a histogram in place that reflects that skewness you might get different execution plans depending on the actual values used.
    Since this "flip-flop" behaviour can sometimes be counter-productive if you're unlucky and the values used to hard parse the statement leading to a plan that is unsuitable for the majority of values used afterwards, 11g introduced the "adaptive" cursor sharing that attempts to detect such a situation and can automatically re-evaluate the execution plan of the statement.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Differenet Explain Plan for Same Query

    DB Version : 11.2.0.3
    OS Version : AIX 6
    I have two Queries ( The Difference between Them Only 940 and 584 ) When I Generate Explain Plan Different Output Why ? Why CPU time is Different Each Time
    First Query Statement  :
    INSERT INTO TempSearchResult (t_aid,
                                  t_umidl,
                                  t_umidh,
                                  X_CREA_DATE_TIME_MESG)
       SELECT z.aid,
              z.mesg_s_umidl,
              z.mesg_s_umidh,
              z.mesg_crea_date_time
         FROM (  SELECT m.aid,
                        m.mesg_s_umidl,
                        m.mesg_s_umidh,
                        m.mesg_crea_date_time
                   FROM RSMESG_ESIDE m
                  WHERE 1 = 1
                        AND m.mesg_crea_date_time BETWEEN TO_DATE (
                                                             '20120131 10:00:00',
                                                             'YYYYMMDD HH24:MI:SS')
                                                      AND TO_DATE (
                                                             '20120131 13:00:00',
                                                             'YYYYMMDD HH24:MI:SS')
                        AND m.mesg_frmt_name = 'Swift'
                        AND m.mesg_sender_x1 = 'SOGEFRPPXXX'
                        AND m.mesg_nature = 'FINANCIAL_MSG'
                        AND m.mesg_type LIKE '950'
               ORDER BY mesg_crea_date_time) z
        WHERE ROWNUM <= 5000
    Explain Plan for First Query :
    PLAN_TABLE_OUTPUT
    Plan hash value: 3901722890
    | Id  | Operation                                 | Name              | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | INSERT STATEMENT                          |                   |  2866 |   134K|   197   (3)| 00:00:03 |       |       |
    |   1 |  LOAD TABLE CONVENTIONAL                  | TEMPSEARCHRESULT  |       |       |            |          |       |       |
    |*  2 |   COUNT STOPKEY                           |                   |       |       |            |          |       |       |
    |   3 |    VIEW                                   |                   |  2866 |   134K|   197   (3)| 00:00:03 |       |       |
    |*  4 |     SORT ORDER BY STOPKEY                 |                   |  2866 |   333K|   197   (3)| 00:00:03 |       |       |
    |   5 |      NESTED LOOPS                         |                   |  2866 |   333K|   196   (2)| 00:00:03 |       |       |
    PLAN_TABLE_OUTPUT
    |   6 |       NESTED LOOPS                        |                   |  1419 |   148K|   196   (2)| 00:00:03 |       |       |
    |*  7 |        HASH JOIN                          |                   |  1419 |   141K|   196   (2)| 00:00:03 |       |       |
    |   8 |         NESTED LOOPS                      |                   |    91 |  1911 |     2   (0)| 00:00:01 |       |       |
    |   9 |          TABLE ACCESS BY INDEX ROWID      | SUSER             |     1 |    10 |     1   (0)| 00:00:01 |       |       |
    |* 10 |           INDEX UNIQUE SCAN               | IX_SUSER          |     1 |       |     0   (0)| 00:00:01 |       |       |
    |* 11 |          INDEX FULL SCAN                  | PK_SUNITUSERGROUP |    91 |  1001 |     1   (0)| 00:00:01 |       |       |
    |  12 |         PARTITION RANGE SINGLE            |                   |  1450 |   114K|   193   (2)| 00:00:03 |     2 |     2 |
    |* 13 |          TABLE ACCESS BY LOCAL INDEX ROWID| RMESG             |  1450 |   114K|   193   (2)| 00:00:03 |     2 |     2 |
    |* 14 |           INDEX SKIP SCAN                 | IX_RMESG          |   415 |       |    14  (15)| 00:00:01 |     2 |     2 |
    |* 15 |        INDEX UNIQUE SCAN                  | PK_SMSGUSERGROUP  |     1 |     5 |     0   (0)| 00:00:01 |       |       |
    |* 16 |       INDEX UNIQUE SCAN                   | PK_SBICUSERGROUP  |     2 |    24 |     0   (0)| 00:00:01 |       |       |
    PLAN_TABLE_OUTPUT
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       2 - filter(ROWNUM<=5000)
       4 - filter(ROWNUM<=5000)
       7 - access("X_INST0_UNIT_NAME"="UNIT")
      10 - access("SUSER"."USERNAME"="SIDE"."GETMYUSER"())
      11 - access("SUSER"."GROUPID"="SUNITUSERGROUP"."GROUPID")
           filter("SUSER"."GROUPID"="SUNITUSERGROUP"."GROUPID")
    PLAN_TABLE_OUTPUT
      13 - filter("RMESG"."MESG_SENDER_X1"='SOGEFRPPXXX' AND "RMESG"."MESG_NATURE"='FINANCIAL_MSG' AND
                  "RMESG"."MESG_FRMT_NAME"='Swift')
      14 - access("RMESG"."MESG_CREA_DATE_TIME">=TO_DATE(' 2012-01-31 10:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
                  "RMESG"."MESG_TYPE"='950' AND "RMESG"."MESG_CREA_DATE_TIME"<=TO_DATE(' 2012-01-31 13:00:00', 'syyyy-mm-dd hh24:mi:ss'))
           filter("RMESG"."MESG_TYPE"='950')
      15 - access("X_CATEGORY"="CATEGORY" AND "SUSER"."GROUPID"="SMSGUSERGROUP"."GROUPID")
      16 - access("X_OWN_LT"="BICCODE" AND "SUSER"."GROUPID"="SBICUSERGROUP"."GROUPID")
    40 rows selected.
    Second query
    INSERT INTO TempSearchResult (t_aid,
                                  t_umidl,
                                  t_umidh,
                                  X_CREA_DATE_TIME_MESG)
       SELECT z.aid,
              z.mesg_s_umidl,
              z.mesg_s_umidh,
              z.mesg_crea_date_time
         FROM (  SELECT  m.aid,
                        m.mesg_s_umidl,
                        m.mesg_s_umidh,
                        m.mesg_crea_date_time
                   FROM RSMESG_ESIDE m
                  WHERE 1 = 1
                        AND m.mesg_crea_date_time BETWEEN TO_DATE (
                                                             '20120117 10:00:00',
                                                             'YYYYMMDD HH24:MI:SS')
                                                      AND TO_DATE (
                                                             '20120117 13:00:00',
                                                             'YYYYMMDD HH24:MI:SS')
                        AND m.mesg_frmt_name = 'Swift'
                        AND m.mesg_sender_x1 = 'SOGEFRPPGSS'
                        AND m.mesg_nature = 'FINANCIAL_MSG'
                        AND m.mesg_type LIKE '548'
               ORDER BY mesg_crea_date_time) z
        WHERE ROWNUM <= 5000
    Explain Plan For Second Query :
    PLAN_TABLE_OUTPUT
    Plan hash value: 4106071428
    | Id  | Operation                                  | Name              | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | INSERT STATEMENT                           |                   |  1073 | 51504 |       |  2622   (1)| 00:00:32 |       |       |
    |   1 |  LOAD TABLE CONVENTIONAL                   | TEMPSEARCHRESULT  |       |       |       |            |          |       |       |
    |*  2 |   COUNT STOPKEY                            |                   |       |       |       |            |          |       |       |
    |   3 |    VIEW                                    |                   |  1073 | 51504 |       |  2622   (1)| 00:00:32 |       |       |
    |*  4 |     SORT ORDER BY STOPKEY                  |                   |  1073 |   124K|       |  2622   (1)| 00:00:32 |       |       |
    |   5 |      NESTED LOOPS                          |                   |  1073 |   124K|       |  2621   (1)| 00:00:32 |       |       |
    PLAN_TABLE_OUTPUT
    |   6 |       NESTED LOOPS                         |                   |   531 | 56817 |       |  2621   (1)| 00:00:32 |       |       |
    |   7 |        NESTED LOOPS                        |                   |   531 | 54162 |       |  2621   (1)| 00:00:32 |       |       |
    |   8 |         NESTED LOOPS                       |                   |   543 | 49413 |       |  2621   (1)| 00:00:32 |       |       |
    |   9 |          TABLE ACCESS BY INDEX ROWID       | SUSER             |     1 |    10 |       |     1   (0)| 00:00:01 |       |       |
    |* 10 |           INDEX UNIQUE SCAN                | IX_SUSER          |     1 |       |       |     0   (0)| 00:00:01 |       |       |
    |  11 |          PARTITION RANGE SINGLE            |                   |   543 | 43983 |       |  2621   (1)| 00:00:32 |     2 |     2 |
    |* 12 |           TABLE ACCESS BY LOCAL INDEX ROWID| RMESG             |   543 | 43983 |       |  2621   (1)| 00:00:32 |     2 |     2 |
    |  13 |            BITMAP CONVERSION TO ROWIDS     |                   |       |       |       |            |          |       |       |
    |  14 |             BITMAP AND                     |                   |       |       |       |            |          |       |       |
    |  15 |              BITMAP CONVERSION FROM ROWIDS |                   |       |       |       |            |          |       |       |
    |* 16 |               INDEX RANGE SCAN             | IX_SENDER         | 25070 |       |       |   894   (1)| 00:00:11 |     2 |     2 |
    PLAN_TABLE_OUTPUT
    |  17 |              BITMAP CONVERSION FROM ROWIDS |                   |       |       |       |            |          |       |       |
    |  18 |               SORT ORDER BY                |                   |       |       |   408K|            |          |       |       |
    |* 19 |                INDEX RANGE SCAN            | IX_RMESG          | 25070 |       |       |  1405   (1)| 00:00:17 |     2 |     2 |
    |* 20 |         INDEX UNIQUE SCAN                  | PK_SUNITUSERGROUP |     1 |    11 |       |     0   (0)| 00:00:01 |       |       |
    |* 21 |        INDEX UNIQUE SCAN                   | PK_SMSGUSERGROUP  |     1 |     5 |       |     0   (0)| 00:00:01 |       |       |
    |* 22 |       INDEX UNIQUE SCAN                    | PK_SBICUSERGROUP  |     2 |    24 |       |     0   (0)| 00:00:01 |       |       |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       2 - filter(ROWNUM<=5000)
       4 - filter(ROWNUM<=5000)
      10 - access("SUSER"."USERNAME"="SIDE"."GETMYUSER"())
      12 - filter("RMESG"."MESG_NATURE"='FINANCIAL_MSG' AND "RMESG"."MESG_FRMT_NAME"='Swift')
      16 - access("RMESG"."MESG_SENDER_X1"='SOGEFRPPGSS')
      19 - access("RMESG"."MESG_CREA_DATE_TIME">=TO_DATE(' 2012-01-17 10:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
                  "RMESG"."MESG_TYPE"='548' AND "RMESG"."MESG_CREA_DATE_TIME"<=TO_DATE(' 2012-01-17 13:00:00', 'syyyy-mm-dd hh24:mi:ss'))
           filter("RMESG"."MESG_TYPE"='548' AND "RMESG"."MESG_CREA_DATE_TIME"<=TO_DATE(' 2012-01-17 13:00:00', 'syyyy-mm-dd
                  hh24:mi:ss') AND "RMESG"."MESG_CREA_DATE_TIME">=TO_DATE(' 2012-01-17 10:00:00', 'syyyy-mm-dd hh24:mi:ss'))
      20 - access("X_INST0_UNIT_NAME"="UNIT" AND "SUSER"."GROUPID"="SUNITUSERGROUP"."GROUPID")
      21 - access("X_CATEGORY"="CATEGORY" AND "SUSER"."GROUPID"="SMSGUSERGROUP"."GROUPID")
    PLAN_TABLE_OUTPUT
      22 - access("X_OWN_LT"="BICCODE" AND "SUSER"."GROUPID"="SBICUSERGROUP"."GROUPID")
    45 rows selected.
    Table Structure TEMPSEARCHRESULT
    CREATE GLOBAL TEMPORARY TABLE TEMPSEARCHRESULT
      T_AID                  NUMBER(3),
      T_UMIDL                NUMBER(10),
      T_UMIDH                NUMBER(10),
      X_CREA_DATE_TIME_MESG  DATE
    ON COMMIT PRESERVE ROWS
    NOCACHE;
    CREATE INDEX SIDE.TEMP_SEARCH_INDEX ON SIDE.TEMPSEARCHRESULT
    (T_AID, T_UMIDL, T_UMIDH, X_CREA_DATE_TIME_MESG);

    Again Thank you For your amazing Answer.
    For indexes it's a balance. Check this query which is Simple
    Select * from RMESGI generated Explain Plan for it to see effect of indexes .
    PLAN_TABLE_OUTPUT
    Plan hash value: 1686435785
    | Id  | Operation           | Name  | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT    |       |    11M|  8920M|   376K  (1)| 01:15:20 |      |        |
    |   1 |  PARTITION RANGE ALL|       |    11M|  8920M|   376K  (1)| 01:15:20 |    1 |     12 |
    |   2 |   TABLE ACCESS FULL | RMESG |    11M|  8920M|   376K  (1)| 01:15:20 |    1 |     12 |
    ---------------------------------------------------------------------------------------------1:15:20 For table access and Full Scan Also , I generate new Indexes on the table like the following
    CREATE TABLE RMESG(
            aid NUMBER(3) NOT NULL,
            mesg_s_umidl NUMBER(10) NOT NULL,
            mesg_s_umidh NUMBER(10) NOT NULL,
            mesg_validation_requested CHAR(18) NOT NULL,
            mesg_validation_passed CHAR(18) NOT NULL,
            mesg_class CHAR(16) NOT NULL,
            mesg_is_text_readonly NUMBER(1) NOT NULL,
            mesg_is_delete_inhibited NUMBER(1) NOT NULL,
            mesg_is_text_modified NUMBER(1) NOT NULL,
            mesg_is_partial NUMBER(1) NOT NULL,
            mesg_crea_mpfn_name CHAR(24) NOT NULL,
            mesg_crea_rp_name CHAR(24) NOT NULL,
            mesg_crea_oper_nickname CHAR(151) NOT NULL,
            mesg_crea_date_time DATE NOT NULL,
            mesg_mod_oper_nickname CHAR(151) NOT NULL,
            mesg_mod_date_time DATE NOT NULL,
            mesg_frmt_name VARCHAR2(17) NOT NULL,
            mesg_nature CHAR(14) NOT NULL,
            mesg_sender_x1 CHAR(11) NOT NULL,
            mesg_sender_corr_type VARCHAR2(24) NOT NULL,
            mesg_uumid VARCHAR2(50) NOT NULL,
            mesg_uumid_suffix NUMBER(10) NOT NULL,
            x_own_lt CHAR(8) NOT NULL,
            x_inst0_unit_name VARCHAR2(32) default 'NONE' NOT NULL,
            x_category CHAR(1) NOT NULL,
            archived NUMBER(1) NOT NULL,
            restored NUMBER(1) NOT NULL,
            mesg_related_s_umid CHAR(16) NULL,
            mesg_status CHAR(12) NULL,
            mesg_crea_appl_serv_name CHAR(24) NULL,
            mesg_verf_oper_nickname CHAR(151) NULL,
            mesg_data_last NUMBER(10) NULL,
            mesg_token NUMBER(10) NULL,
            mesg_batch_reference VARCHAR2(46) NULL,
            mesg_cas_sender_reference VARCHAR2(40) NULL,
            mesg_cas_target_rp_name VARCHAR2(20) NULL,
            mesg_ccy_amount VARCHAR2(501) NULL,
            mesg_copy_service_id VARCHAR2(4) NULL,
            mesg_data_keyword1 VARCHAR2(80) NULL,
            mesg_data_keyword2 VARCHAR2(80) NULL,
            mesg_data_keyword3 VARCHAR2(80) NULL,
            mesg_delv_overdue_warn_req NUMBER(1) NULL,
            mesg_fin_ccy_amount VARCHAR2(24) NULL,
            mesg_fin_value_date CHAR(6) NULL,
            mesg_is_live NUMBER(1) NULL,
            mesg_is_retrieved NUMBER(1) NULL,
            mesg_mesg_user_group VARCHAR2(24) NULL,
            mesg_network_appl_ind CHAR(3) NULL,
            mesg_network_delv_notif_req NUMBER(1) NULL,
            mesg_network_obso_period NUMBER(10) NULL,
            mesg_network_priority CHAR(12) NULL,
            mesg_possible_dup_creation VARCHAR2(8) NULL,
            mesg_receiver_alia_name VARCHAR2(32) NULL,
            mesg_receiver_swift_address CHAR(12) NULL,
            mesg_recovery_accept_info VARCHAR2(80) NULL,
            mesg_rel_trn_ref VARCHAR2(80) NULL,
            mesg_release_info VARCHAR2(32) NULL,
            mesg_security_iapp_name VARCHAR2(80) NULL,
            mesg_security_required NUMBER(1) NULL,
            mesg_sender_x2 VARCHAR2(21) NULL,
            mesg_sender_x3 VARCHAR2(21) NULL,
            mesg_sender_x4 VARCHAR2(21) NULL,
            mesg_sender_branch_info VARCHAR2(71) NULL,
            mesg_sender_city_name VARCHAR2(36) NULL,
            mesg_sender_ctry_code VARCHAR2(3) NULL,
            mesg_sender_ctry_name VARCHAR2(71) NULL,
            mesg_sender_institution_name VARCHAR2(106) NULL,
            mesg_sender_location VARCHAR2(106) NULL,
            mesg_sender_swift_address CHAR(12) NULL,
            mesg_sub_format VARCHAR2(6) NULL,
            mesg_syntax_table_ver VARCHAR2(8) NULL,
            mesg_template_name VARCHAR2(32) NULL,
            mesg_trn_ref VARCHAR2(16) NULL,
            mesg_type CHAR(3) NULL,
            mesg_user_issued_as_pde NUMBER(1) NULL,
            mesg_user_priority_code CHAR(4) NULL,
            mesg_user_reference_text VARCHAR2(30) NULL,
            mesg_zz41_is_possible_dup NUMBER(1) NULL,
            x_fin_ccy CHAR(3) NULL,
            x_fin_amount NUMBER(21,4) NULL,
            x_fin_value_date DATE NULL,
            x_fin_ocmt_ccy CHAR(3) NULL,
            x_fin_ocmt_amount NUMBER(21,4) NULL,
            x_receiver_x1 CHAR(11) NULL,
            x_receiver_x2 VARCHAR2(21) NULL,
            x_receiver_x3 VARCHAR2(21) NULL,
            x_receiver_x4 VARCHAR2(21) NULL,
            last_update DATE NULL,
            set_id NUMBER(10) NULL,
            mesg_requestor_dn VARCHAR2(101) NULL,
            mesg_service VARCHAR2(31) NULL,
            mesg_request_type VARCHAR2(31) NULL,
            mesg_identifier VARCHAR2(31) NULL,
            mesg_xml_query_ref1 VARCHAR2(101) NULL,
            mesg_xml_query_ref2 VARCHAR2(101) NULL,
            mesg_xml_query_ref3 VARCHAR2(101) NULL,
            mesg_appl_sender_reference VARCHAR2(51) NULL,
            mesg_payload_type VARCHAR2(31) NULL,
            mesg_sign_digest_reference VARCHAR2(41) NULL,
            mesg_sign_digest_value VARCHAR2(51) NULL,
            mesg_use_pki_signature NUMBER(1) NULL
    PARTITION BY RANGE(MESG_CREA_DATE_TIME) (
        PARTITION SIDE_MIN VALUES LESS THAN (TO_DATE(20000101, 'YYYYMMDD')) TABLESPACE TBS_SIDEDB_DA_01);
    CREATE UNIQUE INDEX SIDE.IX_PK_RMESG on SIDE.RMESG (AID, MESG_S_UMIDH, MESG_S_UMIDL, MESG_CREA_DATE_TIME) LOCAL;
    ALTER TABLE SIDE.RMESG ADD CONSTRAINT IX_PK_RMESG PRIMARY KEY (AID, MESG_S_UMIDH, MESG_S_UMIDL, MESG_CREA_DATE_TIME) USING INDEX SIDE.IX_PK_RMESG;
    CREATE INDEX SIDE.ix_rmesg_cassender ON SIDE.rmesg (MESG_CAS_SENDER_REFERENCE) LOCAL;
    CREATE INDEX SIDE.ix_rmesg_creationdate ON SIDE.rmesg (MESG_CREA_DATE_TIME) LOCAL;
    CREATE INDEX SIDE.ix_rmesg_trnref ON SIDE.rmesg (MESG_TRN_REF) LOCAL;
    CREATE INDEX SIDE.ix_rmesg_uumid ON SIDE.rmesg (MESG_UUMID, MESG_UUMID_SUFFIX) LOCAL;
    CREATE INDEX SIDE.IX_UNIT_NAME_RMESG on RMESG(mesg_crea_date_time,X_INST0_UNIT_NAME) LOCAL;
    CREATE INDEX SIDE.IX_RMESG on RMESG(mesg_crea_date_time ,mesg_type,x_fin_ccy) LOCAL;
    CREATE INDEX SIDE.IX_NAME_FORMAT_TYPE_RMESG on RMESG(mesg_frmt_name,mesg_sub_format,mesg_type,mesg_crea_date_time ) LOCAL;same Explain Plan Same Result .
    I always remember TOM Quote "full scans are not evil, indexes are not good"
    Which Mean Something Wrong Goes with Indexes , the partition depend on MESG_CREA_DATE_TIME Column I create Index for this column but same explain plan Appear every time. With Same Time.
    Thank you
    Osama

  • Different execution plans for the same SQL query

    Good afternoon,
    My customer is sending an SQL query that goes slower after some time.
    He has verified the exection plan, and this seems to change after some time.
    At first (when the database has just been restarted), it looks like this:
    Rows Row Source Operation
    3 TABLE ACCESS BY GLOBAL INDEX ROWID <TABLE1> PARTITION: 1 1
    22 NESTED LOOPS
    3 VIEW
    3 MINUS
    14215 SORT UNIQUE
    14215 NESTED LOOPS
    14215 TABLE ACCESS FULL <TABLE1> PARTITION: 1 1
    14215 TABLE ACCESS BY GLOBAL INDEX ROWID <TABLE2> PARTITION: 1 1
    14215 INDEX UNIQUE SCAN <INDEX2> (object id 26024)
    14212 SORT UNIQUE
    14212 REMOTE
    18 INDEX RANGE SCAN <INDEX1> (object id 25911)
    After a while, this becomes:
    Rows Row Source Operation
    8 NESTED LOOPS
    14218 TABLE ACCESS FULL <TABLE1> PARTITION: 1 1
    8 VIEW
    113744 MINUS
    202151524 SORT UNIQUE
    14218 NESTED LOOPS
    14218 TABLE ACCESS FULL <TABLE1> PARTITION: 1 1
    14218 TABLE ACCESS BY GLOBAL INDEX ROWID <TABLE2> PARTITION: 1 1
    14218 INDEX UNIQUE SCAN <INDEX_2> (object id 26024)
    202037780 SORT UNIQUE
    14210 REMOTE
    At regular intervals a "coalesce" of the <INDEX2> is scheduled.
    Do you have any idea what might cause this different plans? (it's heavily impacting performance, because the second execution plan takes 5 times more time)
    Thanks
    Dominique
    Edited by: scampsd on May 17, 2011 1:42 PM

    scampsd wrote:
    Good afternoon,
    My customer is sending an SQL query that goes slower after some time.
    He has verified the exection plan, and this seems to change after some time.
    At first (when the database has just been restarted), it looks like this:
    At regular intervals a "coalesce" of the <INDEX2> is scheduled.
    Do you have any idea what might cause this different plans? (it's heavily impacting performance, because the second execution plan takes 5 times more time)Something on your system is changing. Unfortunately if finding out what were easy you would have done it already
    You have isolated a couple of things. What happends of you disable the index maintenance?
    It is odd that performance as you described it degrands merely because of time the database has been up

Maybe you are looking for

  • ERROR: Excel 97, LabVIEW 7.1 and Windows XP

    Hi, I began this discussion on another forum but I was mistaken in forum. http://forums.ni.com/ni/board/message?board.id=4170&message.id=4919#M4919 I cannot continue my development.  Christophe S. sent VIs to me which work but I do not manage to open

  • How do I get my Mac OS 10.7 macbook pro connected to my already-functioning Brother HL-5370DW printer?

    We recently purchased both a new Brother HL-5370DW (wireless) printer and a 15 inch macbook pro with OS X v.10.7.  I got the printer set up using the CD-ROM's setup assistant, my older mac and our time capsule and it works great from there - no probl

  • 6110 All-in-one sometimes will not print multiple copies

    I have had this problem for sometime now. I searched the forum and found the Mopier solution for laserjets, but the 6110 does not have this setting.  The same question regarding the 6110 went unanswered in the only post I found for it. I am using the

  • Draw with pixel aspect ratio

    I use pencil tool, brush size 1 pixel. When pixel aspect ratio less then 1, pen draws a double pixels. Does anyone have solutions to it?

  • System Status field in QA33 transaction

    Hai Friends, In QA33 transaction i am giving date,plant and inspection lot numbers as 89 and i execute. i am getting a list. From this list i want to take the last column"System Status". Please tell me the table name where i can fetch. In my program