How to clear out failed Execution Plans?

Hi everyone,
This should be an easy thing but I can't seem to figure out how to do it.
I created a custom execution plan and added every Financial Subject Area into the plan. Then I generated the parameters, clicked build and then ran it. The run failed.
I noticed that there was a pre-configured execution plan with "Financials_Oracle R12" and decided that what I really wanted to run was Financials_Oracle R12 and not my custom plan. So I clicked build for Financials_Oracle R12 execution plan and once that finished, I clicked "Run Now". Upon clicking run now it told me that my custom execution plan had finished with a failed status and until it completed successfully, no other plans could be ran. I really don't want my custom plan to complete successfully. I want to run the other plan instead.
How do I delete/clear out my failed run data so I can start a new execution plan?
Thanks for the help!
-Joe

In DAC under the EXECUTE window do the following:
- Navigate to the 'Current Run' tab.
- Highlight the failed execution plan.
- Right click and seleted 'Mark as completed.'
- Enter the numbers/text in the box.
Then:
- In the top toolbar select Tools --> ETL Management --> Reset Data Sources
- Enter the numbers/text in the boox.
Now you're ready to start the new execution plan.
Hope this helps.
- Austin

Similar Messages

  • DAC: Clearing Failed Execution Plans and BAW Tables

    Hi all,
    Thank you for taking the time to review this post.
    Background
    Oracle BI Applications 7.9.6 Financial Analytics
    OLTP Source: E-Business Suite 11.5.10
    Steps Taken
    1. In DAC I have create a New Source Container based on Oracle 11.5.10
    2. I have updated the parameters in the Source System parameters
    3. Then I created a new Execution Plan as a copy of the Financials_Oracle 11.5.10 record and checked Full Load Always
    4. Added new Financials Subject Areas so that they have the new Source System
    5. Updated the Parameters tab with the new Source System and Generated the Parameters
    6. Build a new Execution Plan - Fails
    Confirmation for Rerun
    I want to confirm that the correct steps to Rerun an Execution Plan are as follows. I want to ensure that the OLTP (BAW) tables are truncated. I am experiencing duplicates in the W_GL_SEGMENTS_D (and DS) table even though there are no duplicates on the EBS.
    In DAC under the EXECUTE window do the following:
    - Navigate to the 'Current Run' tab.
    - Highlight the failed execution plan.
    - Right click and seleted 'Mark as completed.'
    - Enter the numbers/text in the box.
    Then:
    - In the top toolbar select Tools --> ETL Management --> Reset Data Sources
    - Enter the numbers/text in the boox.
    Your assistance is greatly appreciated.
    Kind Regards,
    Gary.

    Hi HTH,
    I can confirm that I do not have duplicates on the EBS side.
    I got the SQL Statement by:
    1. Open Mapping SDE_ORA_GL_SegmentDimension in the SDE_ORA11510_Adaptor.
    2. Review the SQL Statement in the Source Qualifier SQ_FND_FLEX_VALUES
    3. Run this SQL command against my EBS 11.5.10 source OLTP and the duplicates that are appearing in the W_GL_SEGMENT_DS table to not exist.
    SELECT
    FND_FLEX_VALUE_SETS.FLEX_VALUE_SET_ID,
    FND_FLEX_VALUE_SETS.FLEX_VALUE_SET_NAME,
    FND_FLEX_VALUES.FLEX_VALUE,
    MAX(FND_FLEX_VALUES_TL.DESCRIPTION),
    MAX(FND_FLEX_VALUES.LAST_UPDATE_DATE),
    MAX(FND_FLEX_VALUES.LAST_UPDATED_BY),
    MAX(FND_FLEX_VALUES.CREATION_DATE),
    MAX(FND_FLEX_VALUES.CREATED_BY),
    MAX(FND_FLEX_VALUES.START_DATE_ACTIVE),
    MAX(FND_FLEX_VALUES.END_DATE_ACTIVE),
    FND_FLEX_VALUE_SETS.LAST_UPDATE_DATE LAST_UPDATE_DATE1
    FROM
    FND_FLEX_VALUES, FND_FLEX_VALUE_SETS, FND_FLEX_VALUES_TL
    WHERE
    FND_FLEX_VALUES.FLEX_VALUE_SET_ID = FND_FLEX_VALUE_SETS.FLEX_VALUE_SET_ID AND FND_FLEX_VALUES.FLEX_VALUE_ID = FND_FLEX_VALUES_TL.FLEX_VALUE_ID AND
    FND_FLEX_VALUES_TL.LANGUAGE = 'US' AND
    (FND_FLEX_VALUES.LAST_UPDATE_DATE > TO_DATE('$$LAST_EXTRACT_DATE', 'MM/DD/YYYY HH24:MI:SS') OR
    FND_FLEX_VALUE_SETS.LAST_UPDATE_DATE > TO_DATE('$$LAST_EXTRACT_DATE', 'MM/DD/YYYY HH24:MI:SS'))
    GROUP BY
    FND_FLEX_VALUE_SETS.FLEX_VALUE_SET_ID,
    FND_FLEX_VALUE_SETS.FLEX_VALUE_SET_NAME,
    FND_FLEX_VALUES.FLEX_VALUE,
    FND_FLEX_VALUE_SETS.LAST_UPDATE_DATEHowever, one thing that I noticed was that I wanted to validate what the value of parameter $$LAST_EXTRACT_DATE is being populated with.
    My investigation took me along the following route:
    Checked what was set up in the DAC (+Dac Build AN 10.1.3.4.1.20090415.0146, Build date: April 15 2009+):
    1. Design View -> Source System Parameters -> $$LAST_EXTRACT_DATE = Runtime Variable =@DAC_SOURCE_PRUNED_REFRESH_TIMESTAMP (+Haven't been able to track this Variable down!)+
    2. Setup View -> DAC System Properties -> InformaticaParameterFileLocation -> $INFA_HOME/server/infa_shared/SrcFiles
    Reviewing one of the log files for my failing Task:
    $INFA_HOME/server/infa_shared/SrcFiles/ORA_11_5_10.DWRLY_OLAP.SDE_ORA11510_Adaptor.SDE_ORA_GLSegmentDimension_Full.txt
    I noticed that several variables near the bottom (including $$LAST_EXTRACT_DATE) have not been populated. This variable gets populated at Runtime but is there a log file that shows the value that gets populated? I would also have expected that there would have been a Subsitution Variable in the place of a Static Value.
    [SDE_ORA11510_Adaptor.SDE_ORA_GLSegmentDimension_Full]
    $$ANALYSIS_END=01/01/2011 12:59:00
    $$ANALYSIS_END_WID=20110101
    $$ANALYSIS_START=12/31/1979 01:00:00
    $$ANALYSIS_START_WID=19791231
    $$COST_TIME_GRAIN=QUARTER
    $$CURRENT_DATE=03/17/2010
    $$CURRENT_DATE_IN_SQL_FORMAT=TO_DATE('2010-03-17', 'YYYY-MM-DD')
    $$CURRENT_DATE_WID=20100317
    $$DATASOURCE_NUM_ID=4
    $$DEFAULT_LOC_RATE_TYPE=Corporate
    $$DFLT_LANG=US
    $$ETL_PROC_WID=21147868
    $$FILTER_BY_SET_OF_BOOKS_ID='N'
    $$FILTER_BY_SET_OF_BOOKS_TYPE='N'
    $$GBL_CALENDAR_ID=WPG_Calendar~Month
    $$GBL_DATASOURCE_NUM_ID=4
    $$GLOBAL1_CURR_CODE=AUD
    $$GLOBAL1_RATE_TYPE=Corporate
    $$GLOBAL2_CURR_CODE=GBP
    $$GLOBAL2_RATE_TYPE=Corporate
    $$GLOBAL3_CURR_CODE=MYR
    $$GLOBAL3_RATE_TYPE=Corporate
    $$HI_DATE=TO_DATE('3714-01-01 00:00:00', 'YYYY-MM-DD HH24:MI:SS')
    $$HI_DT=01/01/3714 12:00:00
    $$HR_ABSNC_EXTRACT_DATE=TO_DATE('1980-01-01 08:19:00', 'YYYY-MM-DD HH24:MI:SS')
    $$HR_WRKFC_ADJ_SERVICE_DATE='N'
    $$HR_WRKFC_EXTRACT_DATE=01/01/1970
    $$HR_WRKFC_SNAPSHOT_DT=TO_DATE('2004-01-01 00:00:00', 'YYYY-MM-DD HH24:MI:SS')
    $$HR_WRKFC_SNAPSHOT_TO_WID=20100317
    $$Hint1=
    $$Hint_Tera_Post_Cast=
    $$Hint_Tera_Pre_Cast=
    $$INITIAL_EXTRACT_DATE=06/27/2009
    $$INVPROD_CAT_SET_ID=27
    $$INV_PROD_CAT_SET_ID10=
    $$INV_PROD_CAT_SET_ID1=27
    $$INV_PROD_CAT_SET_ID2=
    $$INV_PROD_CAT_SET_ID3=
    $$INV_PROD_CAT_SET_ID4=
    $$INV_PROD_CAT_SET_ID5=
    $$INV_PROD_CAT_SET_ID6=
    $$INV_PROD_CAT_SET_ID7=
    $$INV_PROD_CAT_SET_ID8=
    $$INV_PROD_CAT_SET_ID9=
    $$LANGUAGE=
    $$LANGUAGE_CODE=E
    $$LAST_EXTRACT_DATE=
    $$LAST_EXTRACT_DATE_IN_SQL_FORMAT=
    $$LAST_TARGET_EXTRACT_DATE_IN_SQL_FORMAT=
    $$LOAD_DT=TO_DATE('2010-03-17 19:27:10', 'YYYY-MM-DD HH24:MI:SS')
    $$LOW_DATE=TO_DATE('1899-01-01 00:00:00', 'YYYY-MM-DD HH24:MI:SS')
    $$LOW_DT=01/01/1899 00:00:00
    $$MASTER_CODE_NOT_FOUND=
    $$ORA_HI_DATE=TO_DATE('4712-12-31 00:00:00', 'YYYY-MM-DD HH24:MI:SS')
    $$PROD_CAT_SET_ID10=
    $$PROD_CAT_SET_ID1=2
    $$PROD_CAT_SET_ID2=
    $$PROD_CAT_SET_ID3=
    $$PROD_CAT_SET_ID4=
    $$PROD_CAT_SET_ID5=
    $$PROD_CAT_SET_ID6=
    $$PROD_CAT_SET_ID7=
    $$PROD_CAT_SET_ID8=
    $$PROD_CAT_SET_ID9=
    $$PROD_CAT_SET_ID=2
    $$SET_OF_BOOKS_ID_LIST=1
    $$SET_OF_BOOKS_TYPE_LIST='NONE'
    $$SOURCE_CODE_NOT_SUPPLIED=
    $$TENANT_ID=DEFAULT
    $$WH_DATASOURCE_NUM_ID=999
    $DBConnection_OLAP=DWRLY_OLAP
    $DBConnection_OLTP=ORA_11_5_10
    $PMSessionLogFile=ORA_11_5_10.DWRLY_OLAP.SDE_ORA11510_Adaptor.SDE_ORA_GLSegmentDimension_Full.logThe following snippet was discovered in the DAC logs for the failed Task (Log file: SDE_ORA_GLSegmentDimension_Full_DETAIL.log):
    First error code [7004]
    First error message: [TE_7004 Transformation Parse Warning [FLEX_VALUE_SET_ID || '~' || FLEX_VALUE]; transformation continues...]Finally I can confirm that there was a Task Truncate Table W_GL_LINKAGE_INFORMATION_GS that was successfully executed in Task SDE_ORA_GL_LinkageInformation_Extract.
    Any further guidance greatly appreciated.
    Kind Regards,
    Gary.

  • How to clear out Launchpad in Mavericks?

    Does anyone know how to clear out and remove all the app icons from Launchpad in Mavericks?
    Used to be able to use this code in terminal to clear it out:
    sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps; DELETE from groups WHERE title<>''; DELETE from items WHERE rowid>2;"; killall Dock
    But it doesn't work anymore in Mavericks. Any ideas?
    I don't want to actually delete anything, just remove all the icons from Launchpad because I never use Launchpad and it's annoying.
    Thanks

    hipdeejay wrote:
    I've done that. But you press the Launchpad key and all the icons pop up.
    So you simply want a blank sceen to pop up?
    Don't press the Launchpad key.
    Or turn the Launchpad key off.
    System prefs > Keyboard - Shortcuts.
    Select Launchpad & Dock and uncheck Launchpad.

  • How i can find the execution plan

    how i can find the execution plan for a quesry , and how i can compare two execution plan

    Mohan,
    Just create a table as follows
    CREATE TABLE T1 (STATEMENT_ID VARCHAR2(30),TIMESTAMP DATE,OPERATION VARCHAR2(30),
              OPTIONS VARCHAR2(30),OBJECT_NAME VARCHAR2(30),COST NUMBER(38),
              ID NUMBER(38),PARENT_ID NUMBER(38), OBJECT_NODE VARCHAR2(128),
              OBJECT_OWNER VARCHAR2(30),OBJECT_INSTANCE NUMBER(38),OBJECT_TYPE VARCHAR2(30),
              OPTIMIZER VARCHAR2(255),SEARCH_COLUMNS NUMBER,POSITION NUMBER(38),
              PARTITION_START VARCHAR2(255),PARTITION_STOP VARCHAR2(255),PARTITION_ID NUMBER(38),
              CARDINALITY NUMBER(38),BYTES NUMBER(38),OTHER_TAG VARCHAR2(255),
              OTHER LONG,REMARKS VARCHAR2(80),DISTRIBUTION VARCHAR2(30)
    Now use the sql statements as
    > EXPLAIN PLAN INTO T1 FOR (SELECT * FROM EMP);
    > Select * from T1
    this should do the job . . .
    Regards,
    K.T. Gandhi Karuna

  • How to find out the execution time of a sql inside a function

    Hi All,
    I am writing one function. There is only one IN parameter. In that parameter, i will pass one SQL select statement. And I want the function to return the exact execution time of that SQL statement.
    CREATE OR REPLACE FUNCTION function_name (p_sql IN VARCHAR2)
    RETURN NUMBER
    IS
    exec_time NUMBER;
    BEGIN
    --Calculate the execution time for the incoming sql statement.
    RETURN exec_time;
    END function_name;
    /

    Please note that wrapping query in a "SELECT COUNT(*) FROM (<query>)" doesn't necessarily reflect the execution time of the stand-alone query because the optimizer is smart and might choose a completely different execution plan for that query.
    A simple test case shows the potential difference of work performed by the database:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Session altered.
    SQL>
    SQL> drop table count_test purge;
    Table dropped.
    Elapsed: 00:00:00.17
    SQL>
    SQL> create table count_test as select * from all_objects;
    Table created.
    Elapsed: 00:00:02.56
    SQL>
    SQL> alter table count_test add constraint pk_count_test primary key (object_id)
    Table altered.
    Elapsed: 00:00:00.04
    SQL>
    SQL> exec dbms_stats.gather_table_stats(ownname=>null, tabname=>'COUNT_TEST')
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.29
    SQL>
    SQL> set autotrace traceonly
    SQL>
    SQL> select * from count_test;
    5326 rows selected.
    Elapsed: 00:00:00.10
    Execution Plan
    Plan hash value: 3690877688
    | Id  | Operation         | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |            |  5326 |   431K|    23   (5)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| COUNT_TEST |  5326 |   431K|    23   (5)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
            419  consistent gets
              0  physical reads
              0  redo size
         242637  bytes sent via SQL*Net to client
           4285  bytes received via SQL*Net from client
            357  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
           5326  rows processed
    SQL>
    SQL> select count(*) from (select * from count_test);
    Elapsed: 00:00:00.00
    Execution Plan
    Plan hash value: 572193338
    | Id  | Operation             | Name          | Rows  | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT      |               |     1 |     5   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE       |               |     1 |            |          |
    |   2 |   INDEX FAST FULL SCAN| PK_COUNT_TEST |  5326 |     5   (0)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
             16  consistent gets
              0  physical reads
              0  redo size
            412  bytes sent via SQL*Net to client
            380  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL>As you can see the number of blocks processed (consistent gets) is quite different. You need to actually fetch all records, e.g. using a PL/SQL block on the server to find out how long it takes to process the query, but that's not that easy if you want to have an arbitrary query string as input.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle:
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • How to cache out the parse plan up front?

    Hi,
    Basically I have 2 questions:
    (1) When you run a query the first time ,it usually takes longer time because Oracle will parse it to get execution plan first. But afterwards, because of caching , it runs faster. How do I set up so that this step can be skipped when user runs first time?
    In other words, any standard method to get the query execution plan planed out first and cache it in the Oracle.
    (2) Is this cache per session? Can I keep it always in the cache and not cycled out? Also if per session, can I possibly make it per database wise?
    Thanks in advance!
    Acton

    1) Perhaps, perhaps not. There are too many variables that can influence execution time. Usually (not always), the parse phase consumes very little of the reponse time. However, I have seen this phase be the #1 contributor to poor response time. If you trace the query, execute it repeatedly, you will be able to see the differences in response time for each phase using tkprof.
    You can reuse an execution plan if there is an identical statement in the shared_pool (with certain exceptions if cursor_sharing is set or you are using stored outlines). If the statement does not exist in the shared_pool, it must be 'hard' parsed. Let's assume that neither cursor_sharing nor stored outlines are in use. There is NO way to get around parsing, you must parse to get an execution plan.
    Oracle has put a lot of work into making the parse phase efficient. One component of this is how they manage the shared pool. While a large shared pool sounds like you would be able to improve performance by caching all the execution plans, it is usually a bad idea. Let frequently used plans stay in the pool, let one-time or seldom used plans age out. Too many cached statements mean that the session has to search through a lot of 'similar' statements to finally say "Nope, not there, let's parse this statement".
    2) You can always keep something in the cache by pinning it. Again, this is not always a good idea (though there are exceptions). Statements and plans are always cached in the shared pool, which are available to all sessions.
    Justin - did you mean that the first execution runs slower because the data is NOT cached?
    Regards,
    Dan Fink

  • 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;
    /

  • How to clear out foreign divested entities at Parent Currency when have CFCTA?

    We have stopped loading some entities which we divested in the prior fiscal year (2013).  Now, in the current fiscal year (2014), the Retained Earning rollforward logic is carrying forward the prior year P12 ending balance.  We can manually adjust out the figures in Enitity Currency in P1 of current year (July 2014) and clear out the ending RE balance, but we still have RE remaining at Parent Currency due to roll forward logic.  Our journals in HFM always reverse in the next period, so it seems that we will need to forever more book an adjustment in Parent Curr Adjs to clear out the RE and the Cumulative Foreign Currency Translation amount.  Has anyone had a similar issue?  How did you remove all Retained Earnings at the Parent Currency levels when you got rid of a company? Thank you.

    Just about every application I've seen has always had some form of rule allowing for historical translation overrides for the equity section.  Some do it by allowing you to adjust the rate the equity is translated at, others do it by allowing you to enter the PC amount you want in EC in a seperate account (Dollar Overrides seems to be a common term) but either way, you'll need that functionality to accomplish this.
    Basically your rules are causing the problem(prior year USD copying across to current year USD), so your rules will need to be the solution.

  • How to clear out old WWV_FLOW_FILES

    I'm updating an application that does a file upload into wwv_flow_files and then puts the data into a collection which is maintained thru a series of forms.
    The application has DELETE_ALL_COLLECTIONS to handle the clearing out of the collection and our Purge Sessions is set at a day.
    The problem I see is the application doesn't have a delete for the on the WWV_Flow_Files table for the data loaded.
    How can I delete the old data, or do I have to now delete the data from WWV_FLOW_FILE_OBJECTS$ for the ID's I know should be deleted?
    Does the Admintrator tool have a purge on WWV_Flow_Files like the Purge Sessions?
    Thanks
    Edited by: spuchc on Jan 18, 2012 4:25 PM

    How do I securely delete data from the machine?

  • How do i see query EXECUTION PLAN

    Dear Experts ,
    I'm using Toad, PL/SQL developer and working on very big query but its response is very slow could u please guide any one HOW I SEE EXECUTION PLAN of query to optimize further.
    Faheem Latif
    NetSol Technologies Limited Pakistan.
    www.netsoltek.com, www.leasesoft.biz

    Dear ,
    Thank's for reply but it is showing this error.
    "ORA-02404: specified plan table not found"
    Faheem Latif
    NetSol Technologies Limited Pakistan.
    www.netsoltek.com, www.leasesoft.biz

  • How to get the SQL Execution Plan from complex Extractors ?

    Hi
    I am looking for a way to get  the
    SQL Execution Plan(s!) 
    from
    Complex Extractors like 0CO_OM_CCA_9 ?
    Anybody has got a suggestion ?
    How to get this in SM50 ?
    ThanXs
    Martin

    Identifying the query is the hard part. If you can identify it(based on table access or some such parameter, getting the execution plan is easy in ST04 .

  • Ownership change, how to clear out for new owner?

    I need to know how to properly clear out everything on my kids Hp touchpads before they sell them?  What's the best way?

    Hi,
    The best way is bring it back to factory settings that means the machine will be set back to the day you opening the box. Please try:
    Open the launcher,
    Go to the Settings tab,
    To  Device Info,
    Touch  Reset Options,
    Tehn select Full Erase or Secure Full Erase (takes longer but more powerful erasing).
    Regards.
    click the launcher up arrow
    Click on the Settings tab
    Click Device Info
    Click Reset Options
    Click Full Erase or Secure Full Erase (takes longer but more powerful erasing)- See more at: http://datadele.com/question/how-do-you-factory-reset-hp-touchpad#sthash.uZqO1qNm.dpuf
    click the launcher up arrow
    Click on the Settings tab
    Click Device Info
    Click Reset Options
    Click Full Erase or Secure Full Erase (takes longer but more powerful erasing)- See more at: http://datadele.com/question/how-do-you-factory-reset-hp-touchpad#sthash.uZqO1qNm.dpuf
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Trying to figure out how to clear out the spool area for my HP printer on my 2009 IMac?

    HP advised that I should clear out the spool area for my printer.  How do I do this?

    Hi patricia m.
    I'm sorry to hear that you are encountering difficulties in clearing the spool area for your printer. It is rather "windows-centric" language as Mike indicated.  I believe that HP Support would have been referring to resetting your printing system and I have included a document on how to do that.
    If you find after resetting your printing system that issue hasn't been corrected, please post some additional information and I would enjoy helping you resolve things.  I would need to know what model/product number of HP Printer you have, the version of Mac you are running, how the printer is connected (wireless, USB) and the issue you have encountered.
    Macintosh: Resetting the Printing System in Mac OS X
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c01371980
    Happytohelp01
    I work on behalf of HP

  • How to clear out personal info a preform a recovery

    I just bought a new HP laptop but want to clear out personal info and do a recovery to original settings.  I do not have restore disks and don't want to wait to order some nor pay for them.  My computer is a  HP Pavillion dv681 with vista operating system

    You will need five DVDs. Do not use no-name generic DVDs!  I use Verbatim DVD+R disks and have never had issues making a working recovery disk set. Creating recovery media requires the use of the power adapter. It must not be done while on battery power alone.
     List of DVD bland media rated by quality.
    While booted into Windows click on the start orb and select HP. You should see HP Recovery Manager and HP Recovery media creation. Now select the HP Recovery media creation. Click on it and follow the prompts. This may take  about an hour to complete with DVDs. 
    Newer notebooks allow the use of USB flash drives ( also known as thumbdrives) for recovery media. Your notebook requires a 16 GB thumbdrive to do this. This method is superior to use of DVD disks for a couple of reasons.  USB thumbdrives are far more durable and allow for incredibly fast recovery times. A USB flashdisk recovery thumbdrive will last five years or more depending on the quality of the thumbdrive. Buy a high quality one such as Sandisk, Corsair or OCZ. USB 2.0 is the standard. 
    Using the downloadable UBS recoveryflash disk creation utility.
    Best regards,
    erico 
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • How do I create custom execution plan in DAC

    Hi,
    I need to create custom execution plan in DAC to load data into set of tables. actually schema we are building having 2 custom dim tables, 8 OOTB tables (Fact and Dim). So I need to copy existing OOTB execution plan, remove unwanted tables, tasks ect and rebuild. But I don't know exact process to do that Could you please provide step by step details?
    We are using OBIEE 10.1.3.4.1, BI Apps 7.9.6.1 and DAC client is on windows XP.
    Appreciate your help!
    Thanks
    Jay.

    Hi,
    I created new container which is a copy of Siebel 8.1.1 and then created new subject area, in tables child tab added one fact table and then clicked on assemble and clicked on save button. I got the message saying it is successfully assembled. I did checked tasks, and related dim tables cant see any for this new subject area. and another strage thing is I navigated to execution plans and again clicked on design tab now I cant see new subject area. when I try to add it again it is saying subject area with that name already available but I cant see it there. I did this twice but not able to fix the problem.
    Appreciate your help!
    Thanks
    Jay.

Maybe you are looking for

  • Screen problems on Macbook air 2008

    Closed lid on pencil near hinge and screen stopped working on 2008 macbook air

  • Restoring IPhone in Recovery mode

    I'm trying to restore my iphone because it said I can not receive or make any calls and I need to restore it because it's in recovery mode (no idea on what that means). So iI began the process of restoring it. It "extracts software" but then the ipho

  • Certain websites not working. Tried a bunch of solutions

    Hello all, I have recently bought a MBP15" late 2013 (running mavericks) and have some issues on the networking side. More specifically some sites (facebook, youtube,google) will not load or load incompletely while other sites ( vimeo, wikipedia, app

  • I pay the money but I can not get the credit

    What means

  • Write Back feature in 11g environment

    Hi, I am trying to implement write back feature in 11g environment. i have configured RPD as mentioned below- in physical layer- non cacheable, in BMM- enable write back checkbox, in Presentation layer read/write property for field, in report i have