How to clear failed execution Plans?

Hello world

This should be an easy thing, but I can't seem to find a way to do it.

I created a custom implementation plan and added each financial area in the plan. Then I generated settings, you click on build and then he ran. Failed to run.

I noticed that there is a pre-configured with "R12 Financials_Oracle" execution plan and decided that I wanted to really run was Financials_Oracle R12 and not my personal plan. So I clicked on build for R12 Financials_Oracle plan of execution, and once it is finished, I clicked 'Run Now'. When you click Run now he told me that my custom implementation plan was completed with a failed State and until she is done correctly, no other plan could be run. I really don't want my custom plan completes successfully. I want to run the other plan instead.

How to remove/delete on my failure run data so I can start a new execution plan?

Thanks for the help!

-Joe

In DACS under the window RUN, do the following:
-Go to the tab "Run in progress".
-Highlight the execution plan has failed.
-Click right and selected 'Brand.' as completed
-Enter the number/text in the box.

Then:

-In the toolbar at the top of the page, select--> management ETL tools--> reset Data Sources
-Enter the number/text in the boox.

Now you are ready to start the new execution plan.

I hope this helps.

-Austin

Tags: Business Intelligence

Similar Questions

  • How to capture the execution plan for a query

    Hi all

    Can someone help me please to find the command to capture the execution plan for a query.

    Execution plan for select * from EMP where < condition >

    Is getting executed successfully, but I need to get the appropriate for the same execution plan.

    Thank you

    Read the Doc

  • How to change the execution plan

    I've simplified queries in order to clarify the issue.
    The Boolean condition (true or false) is a criterion which has been initialized or not.
    In one case, if it is true, I want to get all the ID of the table.
    If not, I want to get only the corresponding line (pk_id = 1)

    Select pk_id
    s table
    where (1 = 0) or EXISTS (select 1 from table ss where ss.pk_id = s.pk_id and ss.pk_id = 1);

    In my case, a comprehensive analysis that's happened in any case. (TRUE or FALSE)

    If I remove the Boolean condition, oracle optimizer transforms the query and it uses a single INDEX scan.
    Select pk_id
    s table
    where EXISTS (select 1 from table ss where ss.pk_id = s.pk_id and ss.pk_id = 1);

    I have performed this request in other databases, but it works well on my system.

    Hello

    If's table' and 'table ss' are the same, see another answer. If they are different (which I assume), then the query reads:

    retrieve all PK_IDs from mytable if the constant condition is true, or recover the only one with a value of 1 if it exists in the table mytable AND if there is also in the other myothertable of the table.

    Then I would move the condition pk_id = 1 outside EXISTS (and I put it also on the inside to make the life of the optimizer):

    SELECT pk_id

    S MYTABLE

    WHERE 1 = 0

    OR s.pk_id = 1

    AND EXISTS (SELECT NULL

    OF myothertable ss

    WHERE ss.pk_id = 1

    )

    ;

    Note: 'AND' is evaluated before 'OR' as ' * ' is evaluated before '+', so no parentheses not necessary: has or b AND c equals an OR (b AND c) operation as a + b * c means a + (b * c).

    Best regards

    Bruno Vroman.

  • Execution Plan change

    Hello world

    I have this recommendation in Enterprise Manager, I would like to implement the first recommendation where there is a best execution plan that comes with the benefit of 99.7%. Its easy to implement using Enterprise manager by clicking just. But I would like to know how I can change execution plan using sqlplus. And if I want to return to the original plan, how can I do? Thank you in advance for your precious time really appreciate it.

    recommendation.png

    Yes, you can restore it-here, you will...

    http://docs.Oracle.com/CD/B28359_01/server.111/b28274/sql_tune.htm#CHDIDBBG

  • How can I see the plan of execution/explain Prev

    Hi Master,

    Y'day my application works very well. But today query times. I want to see the execution plan of y'day to compare the current execution plan. How can I see? Where it will store?

    Please advise... !!

    Concerning

    AR

    Hi 874273, here's a way, using DBA_HIST_SQL_PROFILE: (http://docs.oracle.com/cd/B19306_01/server.102/b14237/statviews_3179.htm#REFRN23443)

    SELECT p.id,
           RPAD(' ', p.depth)||p.operation||' '||p.options operation,
           p.object_name name,
           ROUND(p.bytes/1024, 0) kbytes,
           p.cpu_cost, p.io_cost,
           p.temp_space,
           p.cardinality, p.cost,
           TO_CHAR(TRUNC(p.time/3600),'FM9900')||':'||
           TO_CHAR(TRUNC(MOD(p.time,3600)/60),'FM00')||':'||
           TO_CHAR(MOD(p.time,60),'FM00') time,
           p.timestamp
    FROM   dba_hist_sql_plan p
    WHERE  p.sql_id = '99a6nwhm3hjju'
    ORDER BY p.plan_hash_value, p.id
    

    You should know the sql_id (available from v$ sql, v$ sqlares. dba_hist_sqltext...)

    See you soon,.

    The Canada Gazette

  • How to understand the implementation of the plan in oracle I mean if I see two implementation plans for a single sql_id plans 2 How to determine the best execution plan? Links and answers are much appreciated. Thank you

    How to understand the implementation of the plan in oracle I mean if I see two implementation plans for a single sql_id plans 2 How to determine the best execution plan? Links and answers are much appreciated. Thank you

    How to understand the implementation of the plan in oracle I mean if I see two implementation plans for a single sql_id plans 2 How to determine the best execution plan? Links and answers are much appreciated. Thank you

    After two execution plans that have the same sql_id, so we can see what you're talking about.

    See "Oracle Explain Explain Plan optimizer" by Maria Colgan of the Oracle optimizer group

    http://www.Oracle.com/technetwork/database/bi-Datawarehousing/TWP-explain-the-explain-plan-052011-393674.PDF

    Examine the various aspects of a selectivity to parallel execution plan

    performance and understand what information you should be brilliant

    the plan can be overwhelming even for the most experienced DBA. This document

    offers a detailed explanation on each of the aspects of the execution plan and a

    Overview of what caused the CBO to make the decision, he did.

  • Execution plan failed with no task has failed

    Hi all

    I'm OBIEE11g - BIapps 7.9.6.3 - Informatica 9 environment.
    I had the execution plan of the status failed with no details of the task in this status. All tasks are completed or stopped status and I am unable to find the problem.

    Here is the log of the ETL:


    ++ 67 SEVERE Thu Sep 13 17:48:31 CEST 2012 ++

    ++--------------------------------------------++

    ++ ETL START ++

    ++--------------------------------------------++
    ++ 68 SEVERE game + Sep 13 17:48:59 CEST 2012 from ETL process. +
    + 69 SEVERE Thu Sep 13 17:49:04 CEST 2012 +.

    FAULT INFO: Could NOT WRITE TO THE OUTPUT LOG FILE: IT IS LOCKED /BIapps/home/obi/app/obi/product/11.2.0/client_1/bifoundation/dac//log/SIL_InsertRowInRunTable_SESSIONS.log
    MESSAGE:::/BIapps/home/Obi/app/Obi/product/11.2.0/Client_1/bifoundation/DAC/log/SIL_InsertRowInRunTable_SESSIONS.log (Permission denied)
    EXCEPTION CLASS: java.io.FileNotFoundException

    java.io.FileOutputStream.open (Native Method)
    java.io.FileOutputStream. < init > (FileOutputStream.java:179)
    java.io.FileOutputStream. < init > (FileOutputStream.java:70)
    com.siebel.etl.functional.ExternalProcessExecutor.waitFor(ExternalProcessExecutor.java:249)
    com.siebel.etl.functional.ExternalProcessExecutor.fire(ExternalProcessExecutor.java:144)
    com.siebel.etl.functional.ExternalProcessExecutor.execute(ExternalProcessExecutor.java:121)
    com.siebel.etl.engine.core.AttachToInformaticaProcess.getSessionInformation(AttachToInformaticaProcess.java:427)
    com.siebel.etl.engine.core.AttachToInformaticaProcess.getSessionsSet(AttachToInformaticaProcess.java:753)
    com.siebel.etl.engine.core.AttachToInformaticaProcess.prepareLocalParameterFile(AttachToInformaticaProcess.java:776)
    com.siebel.etl.engine.core.AttachToInformaticaProcess.executeWorkFlow(AttachToInformaticaProcess.java:499)
    com.siebel.analytics.etl.etltask.InformaticaTask.doExecute(InformaticaTask.java:159)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:410)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:306)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:213)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:585)
    com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)
    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
    java.util.concurrent.FutureTask.run(FutureTask.java:138)
    java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)
    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
    java.util.concurrent.FutureTask.run(FutureTask.java:138)
    java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:885)
    java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:907)
    java.lang.Thread.run(Thread.java:619)
    + 70 SEVERE Thu Sep 13 17:49:04 CEST 2012 in WRITING to: /BIapps/home/obi/app/obi/product/11.2.0/client_1/bifoundation/dac//log/SIL_InsertRowInRunTable_SESSIONS.log_1+
    + 71 SEVERE Thu Sep 13 17:49:04 CEST 2012 file output stream is null. +
    filenameORA_R1213_Flatfile.DataWarehouse.SILOS.SIL_InsertRowInRunTable.txt dir

    Content of +/BIapps/Informatica/9.0.1/Server/infa_shared/SrcFiles +.

    + [SILOS. SIL_InsertRowInRunTable] +.
    + $$ ANALYSIS_END = 12:59:00 + 01/01/2011
    + $$ ANALYSIS_END_WID = 20110101 +.
    + $$ ANALYSIS_START = 01:00:00 + 31/12/1979
    + $$ ANALYSIS_START_WID = 19791231 +.
    + $$ COST_TIME_GRAIN = QUARTER +.
    + $$ CURRENT_DATE = 09/13/2012 +.


    It's confusing because it is said that the SIL_InsertRowInRunTable_SESSIONS.log_1 file could not be written, but it is updated at the same time plan exec with no error message.

    Please send any suggestions,

    Thank you all

    Can you confirm that the DAC user has read/write access to the directory of the log file (/ BIapps/home/obi/app/obi/product/11.2.0/client_1/bifoundation/dac/log/SIL_InsertRowInRunTable_SESSIONS.log)? This is on Linux? Can you try to do a CHMOD-r 777 on the parent directory if the user OS DAC does not have access?

    So useful, mark it as good or useful.

  • How can I create custom DAC execution plan

    Hello

    I need to create custom DAC execution plan to load data into tables. in fact schema we build with 2 custom tables Sun, 8 tables OOTB (fact and Sun). So I need to copy the OOTB existing execution plan, delete unwanted tables, stains ect and rebuild. But I do not know the exact process to do could you please provide step by step details?

    We use 10.1.3.4.1 OBIEE, BI Apps 7.9.6.1 and customer DAC is on windows XP.

    Grateful for your help!

    Thank you
    Jay.

    Visit this link...

    DAC-> Execute-> implementation plans-> click New and add your domains, settings, etc. see this link which details

    http://download.Oracle.com/docs/CD/E12104_01/books/DAC/DADesignETL16.html

  • How to clear every 4 months accumulated failures updates in the history update file

    Had remedied the problem update 80070005 and other codes I have accumulated 4 months of updates failed in the history file to update, I would like to know how to clear all these FROM THE FILE failiers.

    BARRY.

    This Fixit running in aggressive mode clears the update history. http://support.Microsoft.com/kb/971058

    You can still see the updates are installed by clicking on the link for the installed updates.

  • How can I see the plan private enforcement.

    Hi Master,

    Y'day my application works very well. But today query times. I want to see the execution plan of y'day to compare the current execution plan. How can I get? Where it will store?

    Please advise... !!

    Concerning

    AR

    You can query V$ SQL table get, get the SQL_ID of your query.

    Let's say you're SQL_ID = 30h4bvv184064

    then pass it to sql: select * from table (DBMS_XPLAN. DISPLAY_cursor ('30h4bvv184064'));

  • OEM12c: in execution plans, no more links to tables (OEM10g has them)

    in the Plan for SQL, version details tab OEM 10g has hyperlinks to the objects mentioned in the implementation plan.

    OEM10g Plan has hyperlinks.jpg

    It seems not to be the case more in OEM12c:

    OEM12c no more hyperlink to table.jpg

    Does anyone know how to activate the ability to directly open the details page of the objects listed in the execution plans?

    Hello

    This feature has been valuable, but unfortunately has not been set up at EM12c.  If you want to access the Cloud control, once connected to the database, the best way is to click on the schema, database objects and then go to the correct data type to search for the object in question.  If you are looking for information on the object in the execution plan, then the best way to see it is via SQL Monitor if the process has not aged.  If it has, then use SQL statements search, (under the menu Performance/SQL for the database that you are connected) and then do a search for cache, CWA and other, you know you want to watch for the SQLID in question.

    I hope this helps!

    Kevin Pot' wine-Gorman

  • Newbie. SELECT with Clause: bad execution plan.

    Hello

    1)

    SQL> WITH CTATEL AS
      2  (SELECT A.CTA_FACTURAC, A.NUM_TELEFONO
      3  FROM PFA_CONTABON A, PGA_CTAFACTU B, PGA_ABONOS C
      4  WHERE B.CTA_FACTURAC=A.CTA_FACTURAC
      5  AND C.NUM_TELEFONO=A.NUM_TELEFONO)
      6  SELECT 71, A.CTA_FACTURAC, B.NUM_TELEFONO, A.COD_CONFACTU, SYSDATE, 0, A.TOT_IMPORTE*166.386, A.TOT_IMPORTE, 'E'
      7  FROM SOL_FICHERO a, CTATEL b
      8  WHERE ID_SOLICITUD=71
      9  AND A.CTA_FACTURAC=B.CTA_FACTURAC
     10  AND (A.NUM_TELEFONO IS NULL OR (A.NUM_TELEFONO <> '0' AND B.NUM_TELEFONO IS NOT NULL AND A.NUM_TELEFONO=B.NUM_TELEFONO))
     11  AND A.COD_CONFACTU IS NOT NULL AND  EXISTS (SELECT 1 FROM PGSM_CONFACTU WHERE COD_CONFACTU=A.COD_CONFACTU);
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 711563975
    
    ---------------------------------------------------------------------------------------------------
    | Id  | Operation                       | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                |                 |     1 |    64 |     6   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS                   |                 |     1 |    64 |     6   (0)| 00:00:01 |
    |   2 |   NESTED LOOPS                  |                 |     1 |    54 |     5   (0)| 00:00:01 |
    |   3 |    NESTED LOOPS                 |                 |     1 |    45 |     4   (0)| 00:00:01 |
    |   4 |     NESTED LOOPS SEMI           |                 |     1 |    26 |     2   (0)| 00:00:01 |
    |*  5 |      TABLE ACCESS BY INDEX ROWID| SOL_FICHERO     |     2 |    44 |     2   (0)| 00:00:01 |
    |*  6 |       INDEX RANGE SCAN          | SOL_FICHERO_I01 |     6 |       |     1   (0)| 00:00:01 |
    |*  7 |      INDEX UNIQUE SCAN          | PK_CONFACTU     |  5820 | 23280 |     0   (0)| 00:00:01 |
    |*  8 |     INDEX RANGE SCAN            | PK_CONTABON     |     1 |    19 |     2   (0)| 00:00:01 |
    |*  9 |    INDEX UNIQUE SCAN            | PK_CTAFACTU     |     1 |     9 |     1   (0)| 00:00:01 |
    |* 10 |   INDEX UNIQUE SCAN             | PK_ABONOS       |     1 |    10 |     1   (0)| 00:00:01 |
    ---------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       5 - filter("A"."COD_CONFACTU" IS NOT NULL)
       6 - access("ID_SOLICITUD"=71)
       7 - access("COD_CONFACTU"="A"."COD_CONFACTU")
       8 - access("A"."CTA_FACTURAC"="A"."CTA_FACTURAC")
           filter("A"."NUM_TELEFONO" IS NULL OR "A"."NUM_TELEFONO"="A"."NUM_TELEFONO" AND
                  "A"."NUM_TELEFONO"<>'0')
       9 - access("B"."CTA_FACTURAC"="A"."CTA_FACTURAC")
      10 - access("C"."NUM_TELEFONO"="A"."NUM_TELEFONO")
    
    
    

    2)

    SQL> WITH CTATEL AS
      2  (SELECT A.CTA_FACTURAC, A.NUM_TELEFONO
      3  FROM PFA_CONTABON A, PGA_CTAFACTU B, PGA_ABONOS C
      4  WHERE B.CTA_FACTURAC=A.CTA_FACTURAC
      5  AND C.NUM_TELEFONO=A.NUM_TELEFONO)
      6  SELECT 71, A.CTA_FACTURAC, NULL, A.COD_CONFACTU, SYSDATE, 0, A.TOT_IMPORTE*166.386, A.TOT_IMPORTE, 'E'
      7  FROM SOL_FICHERO a
      8  WHERE ID_SOLICITUD=71
      9  AND A.NUM_TELEFONO IS NOT NULL AND A.NUM_TELEFONO='0'
     10  AND EXISTS (SELECT 1 FROM CTATEL b WHERE A.CTA_FACTURAC=B.CTA_FACTURAC)
     11  AND A.COD_CONFACTU IS NOT NULL AND  EXISTS (SELECT 1 FROM PGSM_CONFACTU WHERE COD_CONFACTU=A.COD_CONFACTU);
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 3992598922
    
    -------------------------------------------------------------------------------------------------
    | Id  | Operation                     | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    -------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT              |                 |     1 |    26 |     7   (0)| 00:00:01 |
    |*  1 |  FILTER                       |                 |       |       |            |          |
    |   2 |   NESTED LOOPS SEMI           |                 |     1 |    26 |     2   (0)| 00:00:01 |
    |*  3 |    TABLE ACCESS BY INDEX ROWID| SOL_FICHERO     |     1 |    22 |     2   (0)| 00:00:01 |
    |*  4 |     INDEX RANGE SCAN          | SOL_FICHERO_I01 |     6 |       |     1   (0)| 00:00:01 |
    |*  5 |    INDEX UNIQUE SCAN          | PK_CONFACTU     |  5820 | 23280 |     0   (0)| 00:00:01 |
    |   6 |   NESTED LOOPS                |                 |     1 |    38 |     5   (0)| 00:00:01 |
    |   7 |    NESTED LOOPS               |                 |     1 |    28 |     4   (0)| 00:00:01 |
    |*  8 |     INDEX UNIQUE SCAN         | PK_CTAFACTU     |     1 |     9 |     2   (0)| 00:00:01 |
    |*  9 |     INDEX RANGE SCAN          | PK_CONTABON     |     1 |    19 |     2   (0)| 00:00:01 |
    |* 10 |    INDEX UNIQUE SCAN          | PK_ABONOS       |     1 |    10 |     1   (0)| 00:00:01 |
    -------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter( EXISTS (SELECT /*+ */ 0 FROM "FACTMS"."PGA_ABONOS_1"
                  "C","FACTMS"."PGA_CTAFACTU" "B","FACTMS"."PFA_CONTABON_1" "A" WHERE
                  "B"."CTA_FACTURAC"="A"."CTA_FACTURAC" AND "A"."CTA_FACTURAC"=:B1 AND
                  "B"."CTA_FACTURAC"=:B2 AND "C"."NUM_TELEFONO"="A"."NUM_TELEFONO"))
       3 - filter("A"."COD_CONFACTU" IS NOT NULL AND "A"."NUM_TELEFONO" IS NOT NULL AND
                  "A"."NUM_TELEFONO"='0')
       4 - access("ID_SOLICITUD"=71)
       5 - access("COD_CONFACTU"="A"."COD_CONFACTU")
       8 - access("B"."CTA_FACTURAC"=:B1)
       9 - access("B"."CTA_FACTURAC"="A"."CTA_FACTURAC")
           filter("A"."CTA_FACTURAC"=:B1)
      10 - access("C"."NUM_TELEFONO"="A"."NUM_TELEFONO")
    

    3)

      1  WITH CTATEL AS
      2  (SELECT A.CTA_FACTURAC, A.NUM_TELEFONO
      3  FROM PFA_CONTABON A, PGA_CTAFACTU B, PGA_ABONOS C
      4  WHERE B.CTA_FACTURAC=A.CTA_FACTURAC
      5  AND C.NUM_TELEFONO=A.NUM_TELEFONO)
      6  SELECT 71, A.CTA_FACTURAC, B.NUM_TELEFONO, A.COD_CONFACTU, SYSDATE, 0, A.TOT_IMPORTE*166.386, A.TOT_IMPORTE, 'E'
      7  FROM SOL_FICHERO a, CTATEL b
      8  WHERE ID_SOLICITUD=71
      9  AND A.CTA_FACTURAC=B.CTA_FACTURAC
     10  AND (A.NUM_TELEFONO IS NULL OR (A.NUM_TELEFONO <> '0' AND B.NUM_TELEFONO IS NOT NULL AND A.NUM_TELEFONO=B.NUM_TELEFONO))
     11  AND A.COD_CONFACTU IS NOT NULL AND  EXISTS (SELECT 1 FROM PGSM_CONFACTU WHERE COD_CONFACTU=A.COD_CONFACTU)
     12  UNION ALL
     13  SELECT 71, A.CTA_FACTURAC, NULL, A.COD_CONFACTU, SYSDATE, 0, A.TOT_IMPORTE*166.386, A.TOT_IMPORTE, 'E'
     14  FROM SOL_FICHERO a
     15  WHERE ID_SOLICITUD=71
     16  AND A.NUM_TELEFONO IS NOT NULL AND A.NUM_TELEFONO='0'
     17  AND EXISTS (SELECT 1 FROM CTATEL b WHERE A.CTA_FACTURAC=B.CTA_FACTURAC)
     18* AND A.COD_CONFACTU IS NOT NULL AND  EXISTS (SELECT 1 FROM PGSM_CONFACTU WHERE COD_CONFACTU=A.COD_CONFACTU)
    
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 3945970136
    
    -----------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                       | Name                        | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    -----------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                |                             |  3351 |   127K|       |   776  (53)| 00:00:10 |
    |   1 |  TEMP TABLE TRANSFORMATION      |                             |       |       |       |            |          |
    |   2 |   LOAD AS SELECT                |                             |       |       |       |            |          |
    |*  3 |    HASH JOIN                    |                             |   323K|    11M|    12M| 66832   (4)| 00:13:22 |
    |*  4 |     HASH JOIN                   |                             |   338K|  9254K|  4176K| 39353   (3)| 00:07:53 |
    |   5 |      INDEX FAST FULL SCAN       | PK_CTAFACTU                 |   203K|  1788K|       |   190   (4)| 00:00:03 |
    |   6 |      INDEX FAST FULL SCAN       | PK_CONTABON                 |    16M|   300M|       | 13975   (4)| 00:02:48 |
    |   7 |     INDEX FAST FULL SCAN        | PK_ABONOS                   |    15M|   150M|       |  9766   (5)| 00:01:58 |
    |   8 |   UNION-ALL                     |                             |       |       |       |            |          |
    |*  9 |    HASH JOIN                    |                             |  3350 |   127K|       |   388   (5)| 00:00:05 |
    |  10 |     NESTED LOOPS SEMI           |                             |     1 |    26 |       |     2   (0)| 00:00:01 |
    |* 11 |      TABLE ACCESS BY INDEX ROWID| SOL_FICHERO                 |     2 |    44 |       |     2   (0)| 00:00:01 |
    |* 12 |       INDEX RANGE SCAN          | SOL_FICHERO_I01             |     6 |       |       |     1   (0)| 00:00:01 |
    |* 13 |      INDEX UNIQUE SCAN          | PK_CONFACTU                 |  5820 | 23280 |       |     0   (0)| 00:00:01 |
    |  14 |     VIEW                        |                             |   323K|  4112K|       |   379   (4)| 00:00:05 |
    |  15 |      TABLE ACCESS FULL          | SYS_TEMP_0FD9D6621_1BE166BB |   323K|  6009K|       |   379   (4)| 00:00:05 |
    |* 16 |    HASH JOIN SEMI               |                             |     1 |    33 |       |   388   (5)| 00:00:05 |
    |  17 |     NESTED LOOPS SEMI           |                             |     1 |    26 |       |     2   (0)| 00:00:01 |
    |* 18 |      TABLE ACCESS BY INDEX ROWID| SOL_FICHERO                 |     1 |    22 |       |     2   (0)| 00:00:01 |
    |* 19 |       INDEX RANGE SCAN          | SOL_FICHERO_I01             |     6 |       |       |     1   (0)| 00:00:01 |
    |* 20 |      INDEX UNIQUE SCAN          | PK_CONFACTU                 |  5820 | 23280 |       |     0   (0)| 00:00:01 |
    |  21 |     VIEW                        |                             |   323K|  2214K|       |   379   (4)| 00:00:05 |
    |  22 |      TABLE ACCESS FULL          | SYS_TEMP_0FD9D6621_1BE166BB |   323K|  6009K|       |   379   (4)| 00:00:05 |
    -----------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       3 - access("C"."NUM_TELEFONO"="A"."NUM_TELEFONO")
       4 - access("B"."CTA_FACTURAC"="A"."CTA_FACTURAC")
       9 - access("A"."CTA_FACTURAC"="B"."CTA_FACTURAC")
           filter("A"."NUM_TELEFONO" IS NULL OR "A"."NUM_TELEFONO"="B"."NUM_TELEFONO" AND "A"."NUM_TELEFONO"<>'0')
      11 - filter("A"."COD_CONFACTU" IS NOT NULL)
      12 - access("ID_SOLICITUD"=71)
      13 - access("COD_CONFACTU"="A"."COD_CONFACTU")
      16 - access("A"."CTA_FACTURAC"="B"."CTA_FACTURAC")
      18 - filter("A"."COD_CONFACTU" IS NOT NULL AND "A"."NUM_TELEFONO" IS NOT NULL AND "A"."NUM_TELEFONO"='0')
      19 - access("ID_SOLICITUD"=71)
      20 - access("COD_CONFACTU"="A"."COD_CONFACTU")
    

    I use this WITH clausule in the query above:

    operating system

    WITH CTATEL AS 
    (SELECT A.CTA_FACTURAC, A.NUM_TELEFONO 
    FROM PFA_CONTABON A, PGA_CTAFACTU B, PGA_ABONOS C 
    WHERE B.CTA_FACTURAC=A.CTA_FACTURAC 
    AND C.NUM_TELEFONO=A.NUM_TELEFONO) 
    

    Why 3) plan is so bad? (In any case, it's like "UNION ALL" of 1) and 2).

    Thanks in advance,

    Jose Luis

    We do not know if one of them is 'bad' plans.

    In fact, there is no such thing as a bad plan, one or several inaccurate estimates.

    To determine whether a plan is 'bad', you really see who believes are inaccurate - and which means the time of execution of the execution plans and runtime enforcement measures.

    Please take a look at the notice in the following thread:

    HOW to: Validate a query of SQL statement tuning - model showing

    What happens in the third SQL, is that because you referenced the subquery WITH twice, Oracle decides to materialise it in a temporary table for the reason that it is cheaper that to do the same thing one subquery normally twice - a reasonable approach.

    It is probably more likely that the third query estimates are more accurate than the other two.

  • Star_transformation not shoiwng in the execution plan

    Hello

    We have a data warehouse and processing star not no projection in the execution plan.

    STAR_TRANSFORMATION_ENABLED at the database level.

    With the help of 11.2.0.3 on AIX

    The fact table has index bitmap and fks to keys on tables dimesnion dimesnion.

    Example query
    select *
    from media m, retailer_transaction rt
    , retailer r
    where m.dimension_key = rt.plant_issue_id
    and rt.outlet_id = r.dimension_key
    and prod_num = 600
    Anthing we are ' % s '?

    Found how interrogate more selective cause said to use star_transformation

    added and plis_handled_year = 2013
    and out_num 123423

    Why is this good?

    Is there a rule such as only highly selective queries will use transformation star?

    Thank you

    Published by: user5716448 on February 15, 2013 04:10

    Transformation of Star I it'sactually one expensive thing to do. So, the optimizer plans an ABC on this subject. This quote comes from a piece on the blog of optimizer Oracle [url https://blogs.oracle.com/optimizer/entry/star_transformation]:

    "The transformation is performed based on cost - when the cost of the transformed plan is lower than that of the unprocessed plan. If dimension filters do not significantly reduce the amount of data to be extracted from the fact table, and then a full table scan is more effective. »

    Cheers, APC

  • How to clear forecasts already generated Demantra

    Hi all

    We are new demantra organization of the user. Recently after Go-live we decided to not to generate forecasts for a bunch of items. As a result, we turned off the indicator 'not' forecast and restart the engine. However, our horizon is 102 weeks. Thus, in previous weeks of engine, we had planned already apply to these shipments of 100 weeks.

    Now, after turning off this flag and re-run the engine, demantra does not generate new forecast for them. But the old forecasts remain in the system. How to clear these forecasts?

    Any help will be appreciated.

    Thank you

    Roger

    Hello

    You have two options here:
    1 consider to change the flag 'Make zero forecast', forcing the engine generates a forecast of ZERO for these old/inactive/disabled. You will need to also get rid of substitutions of forecasts of manual that you have in other series to completely reduce the final forecast to ZERO.

    2 see parameter 'ResetForeVals' in the system settings > engine > tab Shell shape business. You can set this parameter to the value "Yes" or "All". Remember that a setting of 'All' will affect the engine time, mainly the time engine would take to clean the column FORE_X before generating a new forecast.

    Thank you
    REDA

  • Get the SQL execution plan that is currently running in 9i

    Hello

    Apologies for the magnitude of this issue, but I was wondering if someone could help me to the more accurate/efficient way to get a piece of running Oracle 9i SQL execution plan.

    in 10g and 11g of course dbms_xplan.display_cursor (sql_id) can be used.

    How can this be achieved in 9i, currently I am just get the SQL_TEXT and then executing a plan to explain ("EXPLAIN PLAN for.") - I think that this is not neccesserally the same plan to explain that will be used for the sql code that runs if

    Any help would be appreciated.

    Thank you

    The plan exists after analysis difficult.
    Statistics of actual execution will require a completed.
    That is why sql followed in real time is so great in 11g.
    In 9i, difficult.

Maybe you are looking for