Tracing VM Optimizations

hello world,
hope you experienced guys could help me. sorry if my english is not perfect, but understandingly.
i like to demonstrate the "optimization techniques" like code inlining (at which point it is done etc.), Dynamic Deoptimization or other important stuff i dont know yet.
most knowledge i got from here:
http://java.sun.com/products/hotspot/docs/whitepaper/Java_Hotspot_v1.4.1/Java_HSpot_WP_v1.4.1_1002_4.html#compover
what else could i demonstrate?
there are some good examples here:
http://java.sun.com/docs/hotspot/PerformanceFAQ.html
what else? is there a good "codebase" with some examples?
and how could i demonstrate it?
i was thinking of something like a profiler or tracer. but i am not so experienced, so i am unsure wheter a event like "method entry" is fired based on the original source or on optimized code. for example if a method is inlined the "method entry event" is fired or not (based on original source code or optimized)?
hope u could help me,
would be perfect...
SunBurnedBanana

Can you clarify by what you mean by "demonstrate"?
Are you looking for VM notifcation that indicates that a technique was used?
Do you want to write a program that benefits from a particular optimization?
Or are you looking for programmatic notification along the lines of JVMTI?

Similar Messages

  • About LCA Trace

    Hello Experts,
        Can some one explain me what is LCA Trace?
    How and when it is generated and also a short note abt /SAPAPO/OM01 and /SAPAPO/OM01 transaction.
    Thanks in advance.
    Best Regards,
    Siva.

    Hello Siva,
    -> you asked on the MAXDB/liveCache forum about the LCA trace,
    & recommend to trace the problem in SCM - APO forum:
        Re: Is livecache used during ATP check?
    It's looking strange for me.
    -> In the LCA trace, which is written on the liveCache server in the liveCache Rundirectory, additional information will be written - tracing LCA Objects, if the trace level is changed, and this information will help the LCA developers<!!> to get clear on the LCA routine issue.
    The LCA developers or LCA development support will create the LCA trace in the customer system with agreement to the customer of the needed level, if it is necessarily for the further analysis of the LCA routine problems.
    -> Please create the ticket to the component 'BC-DB-LCA', if you have the LCA routine issues.
    -> Please also see the info at
          Re: /sapapo/om02 - LiveCache Tracing for Optimization Run problems
    Thank you and best regards, Natalia Khlopina

  • CBO: OWB Dimension Performance Isssue (DIMENSION_KEY=DIM_LEVEL_ID)

    Hi
    In my opinion the OWB Dimensions are very useful, but sometimes there are some Performance Issues.
    I am working with the OWB Dimensions quite a lot and with the big Dimensions ( > 100.000 rows) , i often get some Performance problems when OWB generates the code to Load (Merge Step) or Lookup these Dimensions.
    OWB Dimensions have a PK on DIMENSION_KEY and Level Surrogate IDs which are equal to the DIMENSION_KEY if the The Row is an Element of that Level (and not a Parent Hierarchic Element)
    I am hunting the Problem down to the Condition DIMENSION_KEY= (DETAIL_)LEVEL_SURROGATE_ID. The OWB does that to get only the Rows with (Detail-) Level Attributes.
    But it seems, that the CBO isn´t able to predicted the Cardinality right. The CBO always assume, that the Result Cardinality of that Condition is 1 row. So I assume that Conditon is the reason for the "bad" Execution Plans, the Execution Plan
    "NESTED LOOPS OUTER" With the Inline View with Cardinality = 1;
    Example:
    SELECT COUNT(*) FROM DIM_KONTO_TAB  WHERE DIMENSION_KEY= KONTO_ID;
    --2506194
    Explain Plan for:
    SELECT DIMENSION_KEY, KONTO_ID
    FROM DIM_KONTO_TAB where DIMENSION_KEY= KONTO_ID;
    +| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |+
    +| 0 | SELECT STATEMENT | | 1 | 12 | 12568 (3)| 00:00:01 | | |+
    +| 1 | PARTITION HASH ALL | | 1 | 12 | 12568 (3)| 00:00:01 | 1 | 8 |+
    +|* 2 | TABLE ACCESS STORAGE FULL| DIM_KONTO_TAB | 1 | 12 | 12568 (3)| 00:00:01 | 1 | 8 |+
    Predicate Information (identified by operation id):
    +2 - STORAGE("DIMENSION_KEY"="KONTO_ID")+
    filter("DIMENSION_KEY"="KONTO_ID")
    Or: For Loading an SCD2 Dimension:
    +|* 12 | FILTER | | | | | | Q1,01 | PCWC | |+
    +| 13 | NESTED LOOPS OUTER | | 328K| 3792M| 3968 (2)| 00:00:01 | Q1,01 | PCWP | |+
    +| 14 | PX BLOCK ITERATOR | | | | | | Q1,01 | PCWC | |+
    +| 15 | TABLE ACCESS STORAGE FULL | OWB$KONTO_STG_D35414 | 328K| 2136M| 27 (4)| 00:00:01 | Q1,01 | PCWP | |+
    +| 16 | VIEW | | 1 | 5294 | | | Q1,01 | PCWP | |+
    +|* 17 | TABLE ACCESS STORAGE FULL | DIM_KONTO_TAB | 1 | 247 | 489 (2)| 00:00:01 | Q1,01 | PCWP | |+
    I tried a lot:
    - statistiks are gathered often, with monitoring Informations and (Frequencey-)Histograms and the Conditions Colums
    - created extend Statistiks DBMS_STATS.CREATE_EXTENDED_STATS(USER, 'DIM_KONTO_TAB', '(DIMENSION_KEY, KONTO_ID)')
    - created combined idx one DIMENSION_KEY, LEVEL_SURROGATE_ID
    - red a lot
    - hinted the Querys in OWB ( but it seems the inline View is to complex to use a Hash Join)
    Next Step:
    -Tracing the Optimizer CBO Events.
    Does some one has an Idea how-to help the CBO to get the cardinality right?
    If you need more Information, please tell me.
    Thanks a lot.
    Moritz

    Hi Patrick,
    For a relational dimension, these values must be unique within the LEVEL. It is not required to be a numeric ID (although that follows the best practices of surrogate keys best).
    If you use the same sequence for the dimension you have insured that each entry in the entire dimension is unique. Which means that you can move your data as is into OLAP solutions. We will do this as well in the next major release.
    Hope that helps,
    Jean-Pierre

  • SQL Server 2008R2 SP2 Query optimizer memory leak ?

    It looks like we are facing a SQL Server 2008R2 queery optimizer memory leak.
    We have below version of SQL Server
    Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)
     Jun 28 2012 08:36:30
     Copyright (c) Microsoft Corporation
     Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    The instance is set MAximum memory tro 20 GB.
    After executing a huge query (2277 kB generated by IBM SPSS Clementine) with tons of CASE and a lot of AND/OR statements in the WHERE and CASE statements and muliple subqueries the server stops responding on Out of memory in the internal pool
    and the query optimizer has allocated all the memory.
    From Management Data Warehouse we can find that the query was executed at
    7.11.2014 22:40:57
    Then at 1:22:48 we recieve FAIL_PACE_ALLOCATION 1
    2014-11-08 01:22:48.70 spid75       Failed allocate pages: FAIL_PAGE_ALLOCATION 1
    And then tons of below errors
    2014-11-08 01:24:02.22 spid87      There is insufficient system memory in resource pool 'internal' to run this query.
    2014-11-08 01:24:02.22 Server      Error: 17300, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:02.22 Server      Error: 17300, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:02.30 Server      Error: 17312, Severity: 16, State: 1.
    2014-11-08 01:24:02.30 Server      SQL Server is terminating a system or background task Fulltext Host Controller Timer Task due to errors in starting up the task (setup state 1).
    2014-11-08 01:24:02.22 spid74      Error: 701, Severity: 17, State: 123.
    2014-11-08 01:24:02.22 spid74      There is insufficient system memory in resource pool 'internal' to run this query.
    2014-11-08 01:24:13.22 Server      Error: 17312, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:13.22 spid87      Error: 701, Severity: 17, State: 123.
    2014-11-08 01:24:13.22 spid87      There is insufficient system memory in resource pool 'internal' to run this query.
    2014-11-08 01:24:13.22 spid63      Error: 701, Severity: 17, State: 130.
    2014-11-08 01:24:13.22 spid63      There is insufficient system memory in resource pool 'internal' to run this query.
    2014-11-08 01:24:13.22 spid57      Error: 701, Severity: 17, State: 123.
    2014-11-08 01:24:13.22 spid57      There is insufficient system memory in resource pool 'internal' to run this query.
    2014-11-08 01:24:13.22 Server      Error: 17300, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:18.26 Server      Error: 17300, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:24.43 spid81      Error: 701, Severity: 17, State: 123.
    2014-11-08 01:24:24.43 spid81      There is insufficient system memory in resource pool 'internal' to run this query.
    2014-11-08 01:24:18.25 Server      Error: 18052, Severity: -1, State: 0. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:18.25 Server      BRKR TASK: Operating system error Exception 0x1 encountered.
    2014-11-08 01:24:30.11 Server      Error: 17300, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:30.11 Server      Error: 17300, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:35.18 spid57      Error: 701, Severity: 17, State: 131.
    2014-11-08 01:24:35.18 spid57      There is insufficient system memory in resource pool 'internal' to run this query.
    2014-11-08 01:24:35.18 spid71      Error: 701, Severity: 17, State: 193.
    2014-11-08 01:24:35.18 spid71      There is insufficient system memory in resource pool 'internal' to run this query.
    2014-11-08 01:24:35.18 Server      Error: 17312, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:35.41 Server      Error: 17312, Severity: 16, State: 1.
    2014-11-08 01:24:35.41 Server      SQL Server is terminating a system or background task SSB Task due to errors in starting up the task (setup state 1).
    2014-11-08 01:24:35.71 Server      Error: 17053, Severity: 16, State: 1.
    2014-11-08 01:24:35.71 Server      BRKR TASK: Operating system error Exception 0x1 encountered.
    2014-11-08 01:24:35.71 spid73      Error: 701, Severity: 17, State: 123.
    2014-11-08 01:24:35.71 spid73      There is insufficient system memory in resource pool 'internal' to run this query.
    2014-11-08 01:24:46.30 Server      Error: 17312, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:51.31 Server      Error: 17053, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:51.31 Server      Error: 17300, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    2014-11-08 01:24:51.31 Logon       Error: 18052, Severity: -1, State: 0. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.
    Last error message is half an hour after the inital Out of memory at 2014-11-08 01:52:54.03. Then the Instance is completely shut down
    From the memory information in the error log we can see that all the memory is consumed by the QUERY_OPTIMIZER
    Buffer Pool                                   Value
    Committed                                   2621440
    Target                                      2621440
    Database                                     130726
    Dirty                                          3682
    In IO                                            
    0
    Latched                                          
    1
    Free                                           
    346
    Stolen                                      2490368
    Reserved                                          0
    Visible                                     2621440
    Stolen Potential                                  0
    Limiting Factor                                  17
    Last OOM Factor                                   0
    Last OS Error                                     0
    Page Life Expectancy                             28
    2014-11-08 01:22:48.90 spid75     
    Process/System Counts                         Value
    Available Physical Memory                29361627136
    Available Virtual Memory                 8691842715648
    Available Paging File                    51593969664
    Working Set                               628932608
    Percent of Committed Memory in WS               100
    Page Faults                                48955000
    System physical memory high                       1
    System physical memory low                        0
    Process physical memory low                       1
    Process virtual memory low                        0
    MEMORYCLERK_SQLOPTIMIZER (node 1)                KB
    VM Reserved                                       0
    VM Committed                                      0
    Locked Pages Allocated                            0
    SM Reserved                                       0
    SM Committed                                      0
    SinglePage Allocator                       19419712
    MultiPage Allocator                             128
    Memory Manager                                   KB
    VM Reserved                               100960236
    VM Committed                                 277664
    Locked Pages Allocated                     21483904
    Reserved Memory                                1024
    Reserved Memory In Use                            0
    On the other side MDW reports that the MEMORYCLERK_SQLOPTIMIZER increases since the execution of the query up to the point of OUTOF MEMORY, but the Average value is 54.7 MB during that period as can be seen on attached graph.
    We have encountered this issue already two times (every time the critical query is executed).

    Hi,
    This does seems to me kind of memory Leak and actually it is from SQL Optimizer which leaked memory from buffer pool so much that it did not had any memory to be allocated for new page.
    MEMORYCLERK_SQLOPTIMIZER (node 1)                KB
    VM Reserved                                       0
    VM Committed                                      0
    Locked Pages Allocated                            0
    SM Reserved                                       0
    SM Committed                                      0
    SinglePage Allocator                       19419712
    MultiPage Allocator                             128
    Can you post complete DBCC MEMORYSTATUS output which was generated in errorlog. Is this the only message in errorlog or there are some more messages before and after it.
    select (SUM(single_pages_kb)*1024)/8192 as total_stolen_pages, type
    from sys.dm_os_memory_clerks
    group by typeorder by total_stolen_pages desc
    and
    select sum(pages_allocated_count * page_size_in_bytes)/1024,type from sys.dm_os_memory_objects
    group by type
    If you can post the output of above two queries with dbcc memorystaus output on some shared drive and share location with us here. I would try to find out what is leaking memory.
    You can very well apply SQL Server 2008 r2 SP3 and see if this issue subsides but I am not sure whether this is fixed or actually it is a bug.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Full Optimize Failing

    Hello,
    Was wondering if any experts can give any insite into how to fix our full optimize from failing. We have had a custom package running for a few years which one of the last steps it does a full optimize. About a week ago it started to fail on this step and when we try to manually optimize from the front end it fails as well. We are able to optimize from the backend however. There are no additional processing running during this time, can anyone give any suggestions on what may be causing the problem? Is there some temp file that needs to be cleaned? I tried to do a modify of the application and that has not worked. We are on version 7.0.
    Thanks in advance!
    Kevin

    Here are a few of the messgaes I see in that table around the time of me trying to optimize this morning. Not sure what these mean:
      ==============[System Error Tracing]==============  [System  Name] - ApplicationService  [Message Type] - ErrorMessage  [Job Name]     - OSoft.Services.Webservice.ApplicationService.ApplicationService.Query()  [DateTime]     - 7-27-2011 7-29-05 AM  [UserId]       -   [Exception]       DetailMsg  - {You are not authorized to perform this task.   Please contact your BPC administrator.}  ==============[System Error Tracing  End ]============== 
      ==============[System Error Tracing]==============  [System  Name] - ApplicationService  [Message Type] - ErrorMessage  [Job Name]     - OSoft.Services.Webservice.ApplicationService.ApplicationService.Query()  [DateTime]     - 7-27-2011 7-29-16 AM  [UserId]       -   [Exception]       DetailMsg  - {You are not authorized to perform this task.   Please contact your BPC administrator.}  ==============[System Error Tracing  End ]============== 
      ==============[System Error Tracing]==============  [System  Name] - DatabaseHandler  [Message Type] - ErrorMessage  [Job Name]     - CommitTran  [DateTime]     - 7-27-2011 7-37-54 AM  [UserId]       - User  [SqlException]       Type      - System.Data.SqlClient.SqlException      Errors    - System.Data.SqlClient.SqlErrorCollection      Class     - 10      LineNumber- 0      Message   - {Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.}      Number    - -2      Procedure - ConnectionRead (recv()).      Server    - BPCMS7P-OMF-03      State     - 0      Source    - .Net SqlClient Data Provider      TargetSite- Void OnError(System.Data.SqlClient.SqlException, System.Data.SqlClient.TdsParserState)      HelpLink  -   ==============[System Error Tracing  End ]============== 
      ==============[System Error Tracing]==============  [System  Name] - DatabaseHandler  [Message Type] - ErrorMessage  [Job Name]     - RollbackTran  [DateTime]     - 7-27-2011 7-37-55 AM  [UserId]       - User  [Exception]       DetailMsg  - {This SqlTransaction has completed; it is no longer usable.}  ==============[System Error Tracing  End ]============== 
      ==============[System Error Tracing]==============  [System  Name] - OSoftOptimizeManage  [Message Type] - ErrorMessage  [Job Name]     - OptimizeApplication()  [DateTime]     - 7-27-2011 7-37-55 AM  [UserId]       - mscorlib  [Exception]       DetailMsg  - {Exception has been thrown by the target of an invocation.}  ==============[System Error Tracing  End ]============== 
      ==============[System Error Tracing]==============  [System  Name] - ApplicationService  [Message Type] - ErrorMessage  [Job Name]     - OSoft.Services.Webservice.ApplicationService.ApplicationService.Query()  [DateTime]     - 7-27-2011 7-40-18 AM  [UserId]       -   [Exception]       DetailMsg  - {You are not authorized to perform this task.   Please contact your BPC administrator.}  ==============[System Error Tracing  End ]============== 
      ==============[System Error Tracing]==============  [System  Name] - ApplicationService  [Message Type] - ErrorMessage  [Job Name]     - OSoft.Services.Webservice.ApplicationService.ApplicationService.Query()  [DateTime]     - 7-27-2011 7-40-45 AM  [UserId]       -   [Exception]       DetailMsg  - {You are not authorized to perform this task.   Please contact your BPC administrator.}  ==============[System Error Tracing  End ]==============

  • Full Optimize

    Hi I can´t do a Full Optimize on one of our cubes. The Optimize takes 3 hours then I get the following error:
    Error message:Exception has been thrown by the target of an invocation.
    Error message:This SqlTransaction has completed; it is no longer usable.
    What can be wrong?

    I have found an error log in the outlookssoft log in Event Viewer that occurs everytime I start the full optimze for this application, the error log looks like this:
    Event Type:     Error
    Event Source:     OutlookSoft log
    Event Category:     None
    Event ID:     0
    Date:          10/11/2008
    Time:          10:16:40 AM
    User:          N/A
    Computer:     STAMW08
    Description:
    ==============[System Error Tracing]==============
    [System  Name] : OSoftCPM
    [Message Type] : ErrorMessage
    [Job Name]     : AuditMgrService/InitAudit
    [DateTime]     : 10/11/2008 10:16:40 AM
    [UserId]       :
    [SqlException]
        Type      : System.Data.SqlClient.SqlException
        Errors    : System.Data.SqlClient.SqlErrorCollection
        Class     : 16
        LineNumber: 1
        Message   : {There is already an index on table 'AuditDataRapport' named 'IX_AuditDataRapportBatchID'.}
        Number    : 1913
        Procedure :
        Server    : STAMW08
        State     : 2
        Source    : .Net SqlClient Data Provider
        TargetSite:
        HelpLink  :
    ==============[System Error Tracing  End ]==============

  • Set optimizer mode for someone else possible?

    I know that I can use the sys.dbms_system package to set tracing on for another session but cannot figure how to change their optimizer mode - if it's possible at all.
    I have tried this -
    exec sys.dbms_system.set_bool_param_in_session(20,176,'optimizer_mode=choose',TRUE);
    PL/SQL procedure successfully completed.
    SQL> show parameter opt
    NAME TYPE VALUE
    object_cache_optimal_size integer 102400
    optimizer_features_enable string 8.1.7
    optimizer_index_caching integer 0
    optimizer_index_cost_adj integer 100
    optimizer_max_permutations integer 80000
    optimizer_mode string RULE
    optimizer_percent_parallel integer 0
    Tried the 'set_int_param_in_session' but 'choose' is not an integer.
    Thanks in advance for any help.

    Hi,
    in design center, select "configure" in the context menu of a mapping. Under table operators, select a table and set the extraction hint.
    Regards,
    Carsten.

  • Using trace response time much faster than without tracing

    Oracle 10.2.0.3 64bit for windows 2003
    one very simple statement, "delete from taba where id=**"
    when run it without tracing, took about 2 mins
    when adding 10046 trace, the response time is less than 2 seconds
    repeated this dozens times, all the same problem.
    anyone has this problem before?
    appreciate your input.

    Do you have trigger for DELETE statement on this table ?yes, 4 of them behind it
    Do you have some dependent object like materialized view using this table ?no
    Is this a single instance database or RAC database ?single instance
    Do you have concurrent DML running on this table when runnnig this tests ?no
    below if the tkprof
    TKPROF: Release 10.2.0.3.0 - Production on Thu Jan 6 12:31:57 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Trace file: pacs_ora_5800.trc
    Sort options: default
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    error connecting to database using: rpt3/rpt3
    ORA-12560: TNS:protocol adapter error
    EXPLAIN PLAN option disabled.
    delete TABLEAs
    where
    id=:"SYS_B_0"
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.01          0          3         13           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.01          0          3         13           1
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 36 
    Rows     Row Source Operation
          1  DELETE  TABLEAS (cr=4 pr=0 pw=0 time=706 us)
          1   INDEX UNIQUE SCAN PK_TABLEA_ID (cr=3 pr=0 pw=0 time=39 us)(object id 23307)
    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        3.60          3.60
    INSERT INTO TMP_TABLEAS_TRIGGER
    VALUES
    (:B1 )
    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          1          7           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          1          7           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 1)
    SELECT DISTINCT ID
    FROM
    TMP_TABLEAS_TRIGGER
    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        2      0.00       0.00          0          3          0           1
    total        4      0.00       0.00          0          3          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 1)
    Rows     Row Source Operation
          1  HASH UNIQUE (cr=3 pr=0 pw=0 time=158 us)
          1   TABLE ACCESS FULL TMP_TABLEAS_TRIGGER (cr=3 pr=0 pw=0 time=37 us)
    UPDATE TABLEAS SET SUPERCEDES = 0
    WHERE
    ID IN (SELECT ID FROM TABLEAAA WHERE AAID IN(SELECT AAID FROM
      TABLEAAA WHERE ID=:B1 ) ) AND SUPERCEDES=:B1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.12       0.11          0      50411          2           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.12       0.11          0      50411          2           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 1)
    Rows     Row Source Operation
          0  UPDATE  TABLEAS (cr=50411 pr=0 pw=0 time=117980 us)
          1   NESTED LOOPS  (cr=50411 pr=0 pw=0 time=117906 us)
      16731    VIEW  VW_NSO_1 (cr=217 pr=0 pw=0 time=17208 us)
      16731     SORT UNIQUE (cr=217 pr=0 pw=0 time=17206 us)
      16731      TABLE ACCESS BY INDEX ROWID TABLEAAA (cr=217 pr=0 pw=0 time=33524 us)
      16733       NESTED LOOPS  (cr=71 pr=0 pw=0 time=58 us)
          1        INDEX RANGE SCAN PK_TABLEA_AA (cr=3 pr=0 pw=0 time=30 us)(object id 23313)
      16731        INDEX RANGE SCAN IDX_TABLEAAA_AA_ID (cr=68 pr=0 pw=0 time=44 us)(object id 23316)
          1    TABLE ACCESS BY INDEX ROWID TABLEAS (cr=50194 pr=0 pw=0 time=90408 us)
      16730     INDEX UNIQUE SCAN PK_TABLEA_ID (cr=33464 pr=0 pw=0 time=45248 us)(object id 23307)
    UPDATE TABLEAS SET SUPERCEDEDBY = 0
    WHERE
    ID IN (SELECT ID FROM TABLEAAA WHERE AAID IN(SELECT AAID FROM
      TABLEAAA WHERE ID=:B1 ) ) AND SUPERCEDEDBY=:B1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.10       0.11          0      50411          2           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.10       0.11          0      50411          2           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 1)
    Rows     Row Source Operation
          0  UPDATE  TABLEAS (cr=50411 pr=0 pw=0 time=117770 us)
          1   NESTED LOOPS  (cr=50411 pr=0 pw=0 time=117660 us)
      16731    VIEW  VW_NSO_1 (cr=217 pr=0 pw=0 time=17251 us)
      16731     SORT UNIQUE (cr=217 pr=0 pw=0 time=17250 us)
      16731      TABLE ACCESS BY INDEX ROWID TABLEAAA (cr=217 pr=0 pw=0 time=33528 us)
      16733       NESTED LOOPS  (cr=71 pr=0 pw=0 time=63 us)
          1        INDEX RANGE SCAN PK_TABLEA_AA (cr=3 pr=0 pw=0 time=38 us)(object id 23313)
      16731        INDEX RANGE SCAN IDX_TABLEAAA_AA_ID (cr=68 pr=0 pw=0 time=53 us)(object id 23316)
          1    TABLE ACCESS BY INDEX ROWID TABLEAS (cr=50194 pr=0 pw=0 time=90462 us)
      16730     INDEX UNIQUE SCAN PK_TABLEA_ID (cr=33464 pr=0 pw=0 time=45175 us)(object id 23307)
    DELETE FROM TABLEAAA
    WHERE
    ID = :B1
    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          3         10           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          3         10           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 1)
    Rows     Row Source Operation
          0  DELETE  TABLEAAA (cr=4 pr=0 pw=0 time=626 us)
          1   INDEX RANGE SCAN PK_TABLEA_AA (cr=3 pr=0 pw=0 time=39 us)(object id 23313)
    INSERT INTO TMP_TABLEAAA_RECORDS (AAID, STATUS,TABLEAID)
    VALUES
    (:B3 , :B2 ,:B1 )
    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          1          7           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          1          7           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 2)
    SELECT DISTINCT AAID, STATUS,TABLEAID
    FROM
    TMP_TABLEAAA_RECORDS
    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        2      0.00       0.00          0          3          0           1
    total        4      0.00       0.00          0          3          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 2)
    Rows     Row Source Operation
          1  HASH UNIQUE (cr=3 pr=0 pw=0 time=162 us)
          1   TABLE ACCESS FULL TMP_TABLEAAA_RECORDS (cr=3 pr=0 pw=0 time=35 us)
    SELECT COUNT(*)
    FROM
    TABLEAAA WHERE AAID = :B1
    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        1      0.01       0.00          0         68          0           1
    total        3      0.01       0.00          0         68          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 2)
    Rows     Row Source Operation
          1  SORT AGGREGATE (cr=68 pr=0 pw=0 time=2936 us)
      16730   INDEX RANGE SCAN IDX_TABLEAAA_AA_ID (cr=68 pr=0 pw=0 time=8 us)(object id 23316)
    UPDATE TABLEAS SET SUPERCEDES = 0
    WHERE
    ID IN (SELECT ID FROM TABLEAAA WHERE AAID IN(SELECT AAID FROM
      TABLEAAA WHERE AAID=:B2 ) ) AND SUPERCEDES=:B1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.29       0.29          0     121996          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.29       0.29          0     121996          0           0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 2)
    Rows     Row Source Operation
          0  UPDATE  TABLEAS (cr=121996 pr=0 pw=0 time=295237 us)
          0   HASH JOIN SEMI (cr=121996 pr=0 pw=0 time=295234 us)
          0    TABLE ACCESS FULL TABLEAS (cr=121996 pr=0 pw=0 time=295131 us)
          0    VIEW  VW_NSO_1 (cr=0 pr=0 pw=0 time=0 us)
          0     MERGE JOIN CARTESIAN (cr=0 pr=0 pw=0 time=0 us)
          0      TABLE ACCESS FULL TABLEAAA (cr=0 pr=0 pw=0 time=0 us)
          0      BUFFER SORT (cr=0 pr=0 pw=0 time=0 us)
          0       INDEX RANGE SCAN IDX_TABLEAAA_AA_ID (cr=0 pr=0 pw=0 time=0 us)(object id 23316)
    UPDATE TABLEAS SET SUPERCEDES = 0
    WHERE
    ID=:B1
    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          3          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          3          0           0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 2)
    Rows     Row Source Operation
          0  UPDATE  TABLEAS (cr=3 pr=0 pw=0 time=33 us)
          0   INDEX UNIQUE SCAN PK_TABLEA_ID (cr=3 pr=0 pw=0 time=30 us)(object id 23307)
    UPDATE TABLEAS SET SUPERCEDEDBY = 0
    WHERE
    ID IN (SELECT ID FROM TABLEAAA WHERE AAID IN(SELECT AAID FROM
      TABLEAAA WHERE AAID=:B2 ) ) AND SUPERCEDEDBY=:B1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.26       0.29          0     121996          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.26       0.29          0     121996          0           0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 2)
    Rows     Row Source Operation
          0  UPDATE  TABLEAS (cr=121996 pr=0 pw=0 time=290701 us)
          0   HASH JOIN SEMI (cr=121996 pr=0 pw=0 time=290697 us)
          0    TABLE ACCESS FULL TABLEAS (cr=121996 pr=0 pw=0 time=290563 us)
          0    VIEW  VW_NSO_1 (cr=0 pr=0 pw=0 time=0 us)
          0     MERGE JOIN CARTESIAN (cr=0 pr=0 pw=0 time=0 us)
          0      TABLE ACCESS FULL TABLEAAA (cr=0 pr=0 pw=0 time=0 us)
          0      BUFFER SORT (cr=0 pr=0 pw=0 time=0 us)
          0       INDEX RANGE SCAN IDX_TABLEAAA_AA_ID (cr=0 pr=0 pw=0 time=0 us)(object id 23316)
    UPDATE TABLEAS SET SUPERCEDEDBY = 0
    WHERE
    ID=:B1
    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          3          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          3          0           0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 2)
    Rows     Row Source Operation
          0  UPDATE  TABLEAS (cr=3 pr=0 pw=0 time=42 us)
          0   INDEX UNIQUE SCAN PK_TABLEA_ID (cr=3 pr=0 pw=0 time=40 us)(object id 23307)
    SELECT CLASSIFICATION
    FROM
    TABLEAS WHERE ID=:B1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        0      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          3          0           0
    total        2      0.00       0.00          0          3          0           0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36     (recursive depth: 2)
    rollback
    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          2         31           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          2         31           0
    Misses in library cache during parse: 0
    Parsing user id: 36 
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      log file sync                                   1        0.00          0.00
      SQL*Net message to client                       1        0.00          0.00
      SQL*Net message from client                     1       14.18         14.18
    alter session set events '10046 trace name context off'
    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        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           0
    Misses in library cache during parse: 0
    Parsing user id: 36 
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        3      0.00       0.00          0          0          0           0
    Execute      3      0.00       0.01          0          5         44           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        6      0.00       0.01          0          5         44           1
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       3        0.00          0.00
      SQL*Net message from client                     3       14.18         24.44
      log file sync                                   1        0.00          0.00
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse       12      0.00       0.00          0          0          0           0
    Execute     13      0.79       0.82          0     344825         28           5
    Fetch        6      0.01       0.00          0         77          0           3
    total       31      0.81       0.82          0     344902         28           8
    Misses in library cache during parse: 0
       16  user  SQL statements in session.
        0  internal SQL statements in session.
       16  SQL statements in session.
        0  statements EXPLAINed in this session.
    Trace file: pacs_ora_5800.trc
    Trace file compatibility: 10.01.00
    Sort options: default
           1  session in tracefile.
          16  user  SQL statements in trace file.
           0  internal SQL statements in trace file.
          16  SQL statements in trace file.
          16  unique SQL statements in trace file.
        1066  lines in trace file.
          18  elapsed seconds in trace file.Edited by: OracleExplorer on Jan 21, 2011 8:40 PM

  • How does XDB optimize XML Query?

    I found the query speed of XDB is much slower than Berkeley XML DB.
    How does XDB optimize XML Query?
    Are there any documents on this subject?
    And can XDB create indices on XMLType ( e.g. the index on element/attribute value and/or structure index)? if yes, how to do that?

    lezhou had a valid question and asked about:
    "I found the query speed of XDB is much slower than Berkeley XML DB"
    "How does XDB optimize XML Query?"
    These point to a "XML DB Concepts Guide", which does not yet exist.
    The procedures are explained, the methods are explained. If you enable event tracing as described in the XMLDB Developers Guide 10gR2, you will see statements in your trace file which will tell you more about the XML DB architecture (and therefor you can deduct performance impact) then the manual will reveal.
    An other example:
    The xdbconfig.xsd file is neatly explained - in regards of http-port-etc
    But not what the implecations are if you alter one of the other ones (the not explained parameters).
    If you know the architecture (GROUND LEVEL), you can give an correct answer to the initial question "I found the query speed of XDB is much slower than Berkeley XML DB. How does XDB optimize XML Query?"
    The balanced tree index is constructed the same way (on the same theory) in Oracle, DB2, but apparantly X is faster because in with the same buildup/architecture/databasestructure for both products, with the same data, with the same X --> value Y is beter constructed and delivers a better performance.
    apples = apples
    oracle xmldb = berkeley xmldb --> how can i test the o.apples=b.apples and that under these circumstances o.apples are faster ;-)
    THEREFOR:
    "I have to disagree a little bit...("It speaks about all these in detail").
    Still waiting for the XMLDB Concepts Guide / Administrators Guide / Performance Guide.

  • SNP Optimizer Read Error Error id : 600 and Error id : 812

    Hi All,
    I am rebuilding my SNP in a new SCM environment.  I have transfered my PDS's and WorkCenters/Capacity via the CIF.  These appear fine when I display and have performed the LC Check for the resouces using the TOOLS at  /n/sapapo/res01 tcode but all appeared green.  I am using standard Hierachies and think they are fine and assigned to the Planning area correctly. 
    When I press the "oprimizer" ...It runns until it gets to the "Loading Planning Data" then it fails with a "Error when Reading Planning Data" and "Optimizer: an internal error occured".  This error occurs very quick once it starts this process and complexity does not seem to matter. 
    When lookinjg at the Trace File of the log I see the below activity that seems to be the cause but I do not know what the errors mean or where to reference them? Has anyone else encountered this previousluy or know where can investigate this further.  Any help or directions on Error id : 600 and Error id : 812 would be great!
    Thanks in advance for all your assistance in this!  
    ===
    <i> 19.04.2011 19:04:39 core_msgmgr.cpp(440) 'MsgMgr' * Sending progress number 801 to OutputInterface from []
    <i> 19.04.2011 19:04:40 core_msgmgr.cpp(440) 'MsgMgr' * Sending progress number 802 to OutputInterface from []
    <i> 19.04.2011 19:04:41 snpopsvr_script.cpp(176) 'SuperVisor' Running in 700 data version mode...
    <i> 19.04.2011 19:04:41 snpopsvr_script.cpp(862) 'SuperVisor' Interpreted run time limitation as minimum run time (300 sec.), set run time limitation to 900 seconds.
    <i> 19.04.2011 19:04:41 core_msgmgr.cpp(440) 'MsgMgr' * Sending progress number 803 to OutputInterface from []
    <i> 19.04.2011 19:04:43 core_supervisor.cpp(728) 'SuperVisor' <M> Invoking module 'SNPRModelGenerator' [6]->init
    <i> 19.04.2011 19:04:43 core_supervisor.cpp(750) 'SuperVisor' <M> Returning from module 'SNPRModelGenerator' [6]->init = success [ctx size : 0]
    <i> 19.04.2011 19:04:43 core_supervisor.cpp(728) 'SuperVisor' <M> Invoking module 'SNPRModelGenerator' [6]->download
    <i> 19.04.2011 19:04:43 rfc_connection.cpp(599) 'MsgMgr' <rfc> calling function module /SAPAPO/MSDP_OPT_UPLOAD
    <e> 19.04.2011 19:04:53 snpopsvr_script.cpp(286) 'SuperVisor' <!> CORE EXCEPTION : 14 =
         RFC_RC (RFC_EXCEPTION) Exception raised
         RFC_ERROR_GROUP (RFC_ERROR_APPLICATION_EXCEPTION) The called function module raised an exception
         key=ERROR
         message=ERROR
         exception=ERROR
    <i> 19.04.2011 19:04:53 core_msgmgr.cpp(394) 'SuperVisor' <GUI MSG> Error id : 600 [class : <default>] - no params
    <i> 19.04.2011 19:04:55 core_msgmgr.cpp(394) 'SuperVisor' <GUI MSG> Error id : 812 [class : <default>] - no params
    <i> 19.04.2011 19:04:56 optsvr_main.cpp(1166) 'MsgMgr' Current check values:
    [CHECK_EQUAL]
    [CHECK_UPPERBOUND]
    nPEAK_MEMORY_linuxx86_64 = 79488
    [CHECK_LOWERBOUND]
    <i> 19.04.2011 19:04:56 optsvr_main.cpp(1209) 'MsgMgr' Performance values:
    bSuccess     false
    nCPU_TIME     0
    nPEAK_MEMORY     79488
    nREAL_TIME     17
    SNP BuildMode     Release
    SNP Runtime requested     900
    tracefile     optsvr_trace20110419_190439_2e12.log
    <i> 19.04.2011 19:04:56 optsvr_main.cpp(1235) 'MsgMgr' Performance Monitor values:
    nCPU_TIME     0
    nPEAK_MEMORY     79488
    nREAL_TIME     17
    <i> 19.04.2011 19:04:56 optsvr_dsr.cpp(96) 'MsgMgr' <writeDSRdata> tracing not active => no DSR written
    <i> 19.04.2011 19:04:56 optsvr_main.cpp(1256) 'SuperVisor'
    Finished->FAILED ...

    Thanks for the reply...
    I was able to manually enter and save an SNP planned order via the planning book. 
    I have failures where my Input material is UOM=TON and Output is UOM=TON and also where input is UOM=TON and output is UOM=KG. I am able to switch between these UOM's in the planning book and product view.
    When I have DEBUG2 on via OPT10 I see:
    Message Log:
    Input parameters
    Customizing Settings
    Active BAdI Implementations
    Step 1: Data read and model creation started at 16:36:35 on 04/22/2011
    Runtime 00:00:00 to measuring point Step_1_Start
    Runtime 00:00:01 to measuring point Initializations
    Runtime 00:00:00 to measuring point Arc_Read
    Runtime 00:00:01 to measuring point SNP_Planed_Order_Deletion
    Runtime 00:00:00 to measuring point Procurment_and_Transport_Order_Deletion
    Runtime 00:00:00 to measuring point Arcmat_Read
    Error occurred when reading data
    Trace File:
    <1> 22.04.2011 16:36:36 rfc_connection.cpp(631) 'MsgMgr' <rfc> RfcCall for /SAPAPO/MSDP_OPT_UPLOAD
    <1> 22.04.2011 16:36:36 rfc_connection.cpp(640) 'MsgMgr' <rfc> RfcReceive for /SAPAPO/MSDP_OPT_UPLOAD
    <2> 22.04.2011 16:36:38 core_linux_proc.cpp(40) 'MsgMgr' Mem measurement (KB): current=144108 peak=144108
    <2> 22.04.2011 16:36:40 core_linux_proc.cpp(40) 'MsgMgr' Mem measurement (KB): current=144108 peak=144108
    <2> 22.04.2011 16:36:42 core_linux_proc.cpp(40) 'MsgMgr' Mem measurement (KB): current=144108 peak=144108
    <e> 22.04.2011 16:36:43 snpopsvr_script.cpp(286) 'SuperVisor' <!> CORE EXCEPTION : 14 =
         RFC_RC (RFC_EXCEPTION) Exception raised
         RFC_ERROR_GROUP (RFC_ERROR_APPLICATION_EXCEPTION) The called function module raised an exception
         key=ERROR
         message=ERROR
         exception=ERROR
    <i> 22.04.2011 16:36:43 core_msgmgr.cpp(394) 'SuperVisor' <GUI MSG> Error id : 600 [class : <default>] - no params
    <i> 22.04.2011 16:36:43 core_msgmgr.cpp(394) 'SuperVisor' <GUI MSG> Error id : 812 [class : <default>] - no params
    <i> 22.04.2011 16:36:43 optsvr_main.cpp(1166) 'MsgMgr' Current check values:
    [CHECK_EQUAL]
    Thanks again!

  • How can I display step info in User Interface with Tracing Disabled?

    I'm trying to modify the CVI Operator Interface application to update the execute panel with some step information during the execution of the program. i.e. I want to display the measurement, high & low limits during the run WHEN TRACING IS DISABLED. (Doing this, when tracing is enabled is easy, all you do is access the step record that's been constructed (I can cope with that!))
    I've successfully implemented a User defined execution event to signal the User Interface application when the current step is a result (using TS_UIMsg_UserMessageBase etc. I'm posting a UI Message in the Process Model under the ProcessModelPostStep so that I will only display if its a result step.) I've added a user defined
    entry in the execute.c module execution event switch statement which will call a function in the exedisp.c module to update the display. However, I don't have a context to the step that I can use. (I can't use e.g. the exeRec record since this is only completed with the context if tracing is enabled.) I've got a handle to the correct panel to write the information to, but how do I get the context to the current step when tracing is disabled?
    Regards,
    Brian

    Hi,
    no problem - btw, if you wanted to acheive this in TS 1.x, you could always write to a local variable with the ActiveX reference for the step concerned, and then use the msg reference that you have in the OI within the UI Message handler, to dig through to the Execution ->Sequence File->Sequence->Locals, or Execution->Thread->SequenceContext (and you can get almost anywhere from that).
    Hope that helps
    S.
    // it takes almost no time to rate an answer

  • How can I optimize just the video on a project timeline?

    Hi everyone,
    I've been working on a 1 hour documentary using original non-optimized media, now that I'm approaching the final steps of the edit I would like to optimize all the video in the timeline, but NOT all the footage I have in the events.
    I did NOT optimized my media on import: all my events and project are made up of video non-converted, just imported. I did that because I didn't have enough storage to transcode to ProRes the whole 40 hours of footage.
    The folders now full of media in Final Cut Events are the "original media" ones.
    Now I'll add some title, subtitles and color-correction and I want to be a little more fast. Then I'll step in the "export" zone, and I know it is much better to export from optimized media than from original media, that's why I want a 'ProRes opimized media' project timeline.
    Thank you in advance to anyone with advices!

    Thank you Tom,
    at least I know there is no need I keep on wondering "WHY?"...
    This impossibility to transcote footage on timeline seem to me a big downside to this new version... I just have in mind all the options for managing media in FCP 7...
    Thank you again,
    always read your tips: veru useful!

  • G770 won't boot normally or in safe mode... I suspect it has something to do with the boot optimizer

    My Lenovo G770 will not boot in normal or safe mode.  I usually escape out of the boot optimizer.  Today I let it run and it went to the "starting windows" screen with a brief startup of the windows 7 animation...it freezes for a second, then a quick flash of the bsod, then to the "windows error recovery page" giving me the option of "starting windows normally" or "Launch Startup Repair (recommended)." 
    Starting Windows Normally eventually brings me back to the same place repeating what I just stated above paragraph.
    When I launch the Startup Repair it "Cannot repair this computer automatically".
    So I go to view advanced options for system recovery and support.
    It brings me to 5 options:
    Startup Repair (we already tried this above)
    System Restore (unfortunately I didn't create any restore points)
    System Image Recovery (unfortunately I haven't created an image to recover)
    Windows Memory Diagnostic (no problems found-done several times)
    Command Prompt (don't know what I can do here except for remove a bad/corrupted driver which may be the problem, but I don't know the driver name that is associated with the boot optimizer...can anyone tell me this?)
    I've tried booting to safe mode in all of its incarnations and I can't even do that..it repeats the same things as stated above...windows 7 animation briefly starts then locks up, flash of bsod, then the windows error recovery page.
    I've tried booting to last known good configuration (same thing occurs...brief startup of windows 7 animation, freeze, flash of bsod, then error recovery page.
    The only thing that has given me any kind of result was "disabling system restart on system failure."  When I do this, the BSOD doesn't flash briefly..it stays. and it gives me the error message page_fault_in_nonpaged_area.
    I'm at a loss as to what to do.  Not being able to boot into Safe Mode even is really frustrating.  Any advice from anyone?  can I remove the driver associated with the boot optimizer?  If so, what is the name of the driver and where (directory) is it located? 

    How did you resolve the issue?
    I have the exactly same issue.
    When I go System Image Recovery -->Select System Image-->Advanced->I can open all the drives [:Local Drive(C , LENOVO(D, Local Disk(E, Boot(X-where i think executable booting is here]. It comes with an Open prompt asking me to enter File Name with a File type: Setup Information.
    I don't know which setup information and where to find it on my Drives.
    Anyone know how to fix?
    I was trying to re-install Win 7 from DVD but it is not executing either.
    Can I boot with USB Ubuntu and Install Win 7 from there??? but how?
    Need help?

  • Column optimization in GUI_DOWNLOAD--Exce

    Hi Experts,
       I am writing an Excel file using GUI_DOWNLOAD function module. Is there any way to do column optimization in Excel file while downloading.
    Thanks and regards,
    Venkat

    Hi,
    There is a Complete & Very good documentation by SAP available on this URL. Please read this.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/204d1bb8-489d-2910-d0b5-cdddb3227820
    Hope your query get solved.
    Thanks and regards,
    Ramani N

  • Query optimization in Oracle 8i (tunning)

    Hi everyone,
    The following SQL statement use more than 15% of the CPU of the machine where it is executed. Please if somebody can help me to rewrite or hinting the query.
    This is the statement:
    SELECT
    /*+ INDEX(APD IDX_ABAPLANI_DET_SOL)  */ 
    apd.sinonimo,
    apd.sinonimo_planificacion,
    apd.cod_despensa,
    apd.estante_cod,
    apd.correlativo_solicitud,
    apd.prioridad,
    apd.correlativo_det_sol,
    apd.insumo_sinonimo,
    apd.cantidad_solicitada,
    apd.cantidad_despachada,
    apd.estado,
    apd.sinonimo_usuario,
    apd.sinonimo_observacion,
    ap.fecha_creacion,
    ap.centro_resultado,
    aud.nombre,
    aud.a_paterno,
    aud.rut,
    aud.username,
    cenres.cod_flex codigocr,
    insumo.cod_flex insumocod,
    cenres.des_flex despensa_descripcion,
    cenres.des_flex crdescripcion,
    insumo.des_flex insumodescripcion
    FROM
    aba_usuario_despachador aud,
    cenres,
    insumo,
    aba_planificacion_detalle apd,
    aba_planificacion ap
    WHERE ap.sinonimo = apd.sinonimo_planificacion
    AND aud.sinonimo = apd.sinonimo_usuario
    AND ap.centro_resultado = cenres.sinonimo
    AND insumo.sinonimo = apd.insumo_sinonimo
    AND apd.sinonimo_usuario = NVL (:b1, apd.sinonimo_usuario)
    AND apd.sinonimo_planificacion = NVL (:b2, apd.sinonimo_planificacion)
    AND apd.correlativo_solicitud = NVL (:b3, apd.correlativo_solicitud)
    AND apd.estante_cod = NVL (UPPER (:b4), apd.estante_cod)
    AND apd.cod_despensa = NVL (UPPER (:b5), apd.cod_despensa)
    AND apd.estado = NVL (:b6, apd.estado)
    AND ap.centro_resultado = NVL (:b7, ap.centro_resultado)
    AND TO_DATE (TO_CHAR (ap.fecha_creacion, 'dd/mm/yyyy'), 'dd/mm/yyyy')
    BETWEEN TO_DATE (NVL (:b8,TO_CHAR (ap.fecha_creacion, 'dd/mm/yyyy')),'dd/mm/yyyy')
    AND TO_DATE (NVL (:b9,TO_CHAR (ap.fecha_creacion, 'dd/mm/yyyy')),'dd/mm/yyyy')
    AND apd.estado NOT LIKE :b10
    ORDER BY apd.sinonimo;The version of the database is 8.1.7.4.0.
    Here is the output of EXPLAIN PLAN:
    Plan
    SELECT STATEMENT  CHOOSECost: 2,907  Bytes: 104,312  Cardinality: 472                                               
         32 SORT ORDER BY  Cost: 2,907  Bytes: 104,312  Cardinality: 472                                          
              31 CONCATENATION                                     
                   15 FILTER                                
                        14 NESTED LOOPS  Cost: 11  Bytes: 52,156  Cardinality: 236                           
                             11 NESTED LOOPS  Cost: 10  Bytes: 177  Cardinality: 1                      
                                  8 NESTED LOOPS  Cost: 9  Bytes: 133  Cardinality: 1                 
                                       5 NESTED LOOPS  Cost: 8  Bytes: 67  Cardinality: 1            
                                            2 TABLE ACCESS BY INDEX ROWID ADMABA.ABA_PLANIFICACION_DETALLE Cost: 7  Bytes: 52  Cardinality: 1       
                                                 1 INDEX FULL SCAN NON-UNIQUE ADMABA.IDX_ABAPLANI_DET_SOL Cost: 3  Cardinality: 1 
                                            4 TABLE ACCESS BY INDEX ROWID ADMABA.ABA_PLANIFICACION Cost: 1  Bytes: 15  Cardinality: 1       
                                                 3 INDEX UNIQUE SCAN UNIQUE ADMABA.PK_ABA_PLANIFICACION Cardinality: 1 
                                       7 TABLE ACCESS BY INDEX ROWID ADMABA.ABA_USUARIO_DESPACHADOR Cost: 1  Bytes: 3,498  Cardinality: 53            
                                            6 INDEX UNIQUE SCAN UNIQUE ADMABA.ABA_USUARIO_DESPACHADOR_PK Cardinality: 53       
                                  10 TABLE ACCESS BY INDEX ROWID OPS$NUCLEO.NUC_CODIGOS_FLEXIBLES Cost: 1  Bytes: 14,828  Cardinality: 337                 
                                       9 INDEX UNIQUE SCAN UNIQUE OPS$NUCLEO.NUC_CODFLEX_PK Cardinality: 337            
                             13 TABLE ACCESS BY INDEX ROWID OPS$NUCLEO.NUC_CODIGOS_FLEXIBLES Cost: 1  Bytes: 1.037.828  Cardinality: 23,587                      
                                  12 INDEX UNIQUE SCAN UNIQUE OPS$NUCLEO.NUC_CODFLEX_PK Cardinality: 23,587                 
                   30 FILTER                                
                        29 NESTED LOOPS  Cost: 11  Bytes: 52,156  Cardinality: 236                           
                             26 NESTED LOOPS  Cost: 10  Bytes: 177  Cardinality: 1                      
                                  23 NESTED LOOPS  Cost: 9  Bytes: 133  Cardinality: 1                 
                                       20 NESTED LOOPS  Cost: 8  Bytes: 67  Cardinality: 1            
                                            17 TABLE ACCESS BY INDEX ROWID ADMABA.ABA_PLANIFICACION_DETALLE Cost: 7  Bytes: 52  Cardinality: 1       
                                                 16 INDEX RANGE SCAN NON-UNIQUE ADMABA.IDX_ABAPLANI_DET_SOL Cost: 3  Cardinality: 1 
                                            19 TABLE ACCESS BY INDEX ROWID ADMABA.ABA_PLANIFICACION Cost: 1  Bytes: 15  Cardinality: 1       
                                                 18 INDEX UNIQUE SCAN UNIQUE ADMABA.PK_ABA_PLANIFICACION Cardinality: 1 
                                       22 TABLE ACCESS BY INDEX ROWID ADMABA.ABA_USUARIO_DESPACHADOR Cost: 1  Bytes: 3,498  Cardinality: 53            
                                            21 INDEX UNIQUE SCAN UNIQUE ADMABA.ABA_USUARIO_DESPACHADOR_PK Cardinality: 53       
                                  25 TABLE ACCESS BY INDEX ROWID OPS$NUCLEO.NUC_CODIGOS_FLEXIBLES Cost: 1  Bytes: 14,828  Cardinality: 337                 
                                       24 INDEX UNIQUE SCAN UNIQUE OPS$NUCLEO.NUC_CODFLEX_PK Cardinality: 337            
                             28 TABLE ACCESS BY INDEX ROWID OPS$NUCLEO.NUC_CODIGOS_FLEXIBLES Cost: 1  Bytes: 1.037.828  Cardinality: 23,587                      
                                  27 INDEX UNIQUE SCAN UNIQUE OPS$NUCLEO.NUC_CODFLEX_PK Cardinality: 23,587                 Thanks in advance!
    Edited by: user491853 on 21-ago-2012 15:29

    A few comments looking at your sql query:
    How much time the query is taking?
    How many rows are there in the tables?
    Make sure the stats are up-to-date.
    Please kindly follow the instructions provided by others as well.
    >
    The version of the database is 8.1.7.4.0
    >
    Suggestion: Upgrade your version. Oracle Cost Based Optimizer is more smarter now.Upgrading will make your life much more easier as there are so many enhancements.
    AND TO_DATE (TO_CHAR (ap.fecha_creacion, 'dd/mm/yyyy'), 'dd/mm/yyyy')
    BETWEEN TO_DATE (NVL (:b8,TO_CHAR (ap.fecha_creacion, 'dd/mm/yyyy')),'dd/mm/yyyy')
    AND TO_DATE (NVL (:b9,TO_CHAR (ap.fecha_creacion, 'dd/mm/yyyy')),'dd/mm/yyyy')Why are you using TO_DATE/TO_CHAR on a date column?
    AND ap.centro_resultado = NVL (:b7, ap.centro_resultado)the same can be rewritten as below:
    AND (ap.centro_resultado =:b7 and :b7 is not null) or :b7 is null This applies to other predicates you are using as well.
    The table used in the plan is not found in your sql query eg NUC_CODIGOS_FLEXIBLES.
    Regards
    Biju

Maybe you are looking for

  • How can I correct a typo in my email address when setting up a sync account?

    I was trying to create a "sync" account in Firefox for Android, and typoed when keying in the email address I wanted to use. I realized it at the page where it said that it was going to send me an email for me to confirm. But there's no way to correc

  • A day in the life of a collge intern

    I'm working alone on a project for a company that required that I learn java. Java in and of itself isn't that difficult to pick up. However, one problem that i've run into is that I'm trying to run video through a program that requires me to program

  • HELP!!! Computer Crashes, iTunes Problem...

    My hard drive on my computer had failed and everything on it was lost, including my library for iTunes. I had to have the hard drive replaced. The problem I am having is I want to add my songs from my iPod into the new iTunes library. When I connect

  • RESOLVED On Premises (intranet use only) Exchange Certificate Help (Please)!

    I apologize in advance for what may end up being a very silly issue. I have racked my brain and read and searched and I still can't seem to find the answer to my question. I have an in house Exchange server that is only accessible internally. We do n

  • Storing Objects in Request Scope

    Hello, I'm trying to pass an object in the request scope between a JSPDynPage and the associated JSP however the object is always null. If I store it in the session I am able to retrieve it. Could anyone assist in how to do this? My code is as follow