Performance View V$OSSTAT

I am trying to understand the busy_time column in the v$osstat view.
I took a before and snap of this view.
VALUE STAT_NAME
64 NUM_CPUS
7776667365 IDLE_TIME
357220150 BUSY_TIME
159550984 USER_TIME
197669166 SYS_TIME
0 IOWAIT_TIME
121468398 AVG_IDLE_TIME
5539550 AVG_BUSY_TIME
2451063 AVG_USER_TIME
3046655 AVG_SYS_TIME
0 AVG_IOWAIT_TIME
11140800 OS_CPU_WAIT_TIME
0 RSRC_MGR_CPU_WAIT_TIME
5.10546875 LOAD
8 NUM_CPU_CORES
1 NUM_CPU_SOCKETS
6.8585E+10 PHYSICAL_MEMORY_BYTES
1.6960E+10 VM_IN_BYTES
8192 VM_OUT_BYTES
49152 TCP_SEND_SIZE_DEFAULT
1048576 TCP_SEND_SIZE_MAX
49152 TCP_RECEIVE_SIZE_DEFAULT
1048576 TCP_RECEIVE_SIZE_MAX
After :
VALUE STAT_NAME
64 NUM_CPUS
7814976860 IDLE_TIME
360357230 BUSY_TIME
160430595 USER_TIME
199926635 SYS_TIME
0 IOWAIT_TIME
122066763 AVG_IDLE_TIME
5588356 AVG_BUSY_TIME
2464596 AVG_USER_TIME
3081702 AVG_SYS_TIME
0 AVG_IOWAIT_TIME
11206700 OS_CPU_WAIT_TIME
0 RSRC_MGR_CPU_WAIT_TIME
5.21484375 LOAD
8 NUM_CPU_CORES
1 NUM_CPU_SOCKETS
6.8585E+10 PHYSICAL_MEMORY_BYTES
1.7078E+10 VM_IN_BYTES
8192 VM_OUT_BYTES
49152 TCP_SEND_SIZE_DEFAULT
1048576 TCP_SEND_SIZE_MAX
49152 TCP_RECEIVE_SIZE_DEFAULT
1048576 TCP_RECEIVE_SIZE_MAX
I had elapsed time of 5Mins
I now attempted to calculate the system CPU Utilization over this period.
I am using hyperthreading which gives me 64 CPUs
My calculation is:
substract After busy_time - Before busy_time
36035723 - 357220150 = 3137080 hundredeths of a sec
available CPU time 64 * 5*60 = 19200 secs
now I am trying to calculate CPU Utilization
U=R/C 31370.80/19200 = 1.63 or 163%.
Is this possible or is my calculation incorrect ?
Thank you in adavnce
u

Jonathan,
Nice sanity check.
Elapsed time between the capture start and stop times, based on the BUSY_TIME and IDLE_TIME statistics:
SELECT
  ( (360357230 - 357220150) + (7814976860 - 7776667365) ) / 100 / 64 / 60 MINUTES
FROM
  DUAL;
   MINUTES
107.933789The OP stated that the elapsed time was roughly 5 minutes, so the statistics are inconsistent.
The OS_CPU_WAIT_TIME statistic seems to indicate that processes spent almost 11 minutes in this 5 minute time period waiting to be scheduled to run - that seems to be inconsistent with the 7.6% average CPU utilization, unless the OS nice utility were used, or the processes were caged to a small number of CPUs, or a reporting bug was encountered.
SELECT
  (11206700 - 11140800) / 100 / 60 OS_CPU_WAIT_TIME_MINUTES
FROM
  DUAL;
OS_CPU_WAIT_TIME_MINUTES
              10.9833333Using just the USER_TIME and SYS_TIME statistics, if the elapsed time was 5 minutes, the server's CPUs would have to be 163.4% busy:
SELECT
  ( (160430595 - 159550984) + (199926635 - 197669166) ) / 100 / 64 / 300 * 100 AVG_CPU_BUSY_PER
FROM
  DUAL;
AVG_CPU_BUSY_PER
      163.389583The OP might want to verify that the actual elapsed time between the statistics is 5 minutes. After verifying that, the OP might want to check out the following Metalink (MOS) articles:
Bug 7430365: INCORRECT VALUES FOR USER_TIME IN V$OSSTAT (3.79 hours per CPU per elapsed hour)
Bug 3574504: INCORRECT STATISTICS IN V$OSSTAT IN HP-UX
Bug 5933195: NUM_CPUS VALUE IN V$OSSTAT IS WRONG
Bug 5639749: CPU_COUNT NOT SHOWN PROPERLY FROM THE DATABASE
Bug 10427553: HOW DOES V$OSSTAT GET IT'S INFORMATION ON AIX
Bug 9228541: CPU TIME REPORTED INCORRECTLY IN V$SYSMETRIC_HISTORY (3.75 hours per CPU per elapsed hour)
Doc ID 889396.1: Very large value for OS_CPU_WAIT_TIME FROM V$OSSTAT / AWR Report
Bug 7447648: OS_CPU_WAIT_TIME VALUE FROM V$OSSTAT IS INCORRECT
Charles Hooper
Co-author of "Expert Oracle Practices: Oracle Database Administration from the Oak Table"
http://hoopercharles.wordpress.com/
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.

Similar Messages

  • WMI Performance counters not shown in SCOM Performance view

    Hi,
    We're unable to see %CPU usage, avg cpu queue length and many other WMI counters on a Performance View for one of our servers.
    - The agent is displayed as healthy.
    - We are getting data from counters generated by script.
    - WMI counters are shown as enabled.
    - We're able to see the counters locally on server manager, on performance counters.
    - we have run lodctr /R, without success.
    - no alerts on the scom agent or server.
    - no overrides for these counters exist.
    So definitely it looks like the WMI infrastructure is working ok but somehow data is not being sent to the server. Any hints on debugging this issue?
    Thanks in advance

    Ops Manager, Ops DW, or both?  If performance collection is ENABLED for this server, and it's a W2K8 box, and you can see the perf in perf monitor on the server, then you should look to see if other performance is missing.  If there are no performance
    counters being collected, then you can do a few things, but before doing that, do some spot checking.
    Is this rule enabled?  Did someone override disable it?  If enabled, and no overrides, then create a view (my views or whatever that custom workspace is) targetting the generic class of "said" target for the collection rule.  Do you see any
    computers listed?  How many computers are listed?  Jot that down.  Go to discovered inventory in the monitoring pane, and change scope to the targeted class for the collection rule.  Count what is returned, do the number of servers returned
    match?
    If you have the same number of green healthy objects in both the custom view and the discovered inventory scope, then you are good, if there are a few missing, you need to troubleshoot those agents.
    If you are missing all of them, you probably have a problem with your RMS/SQL, which means you have to start traces on SQL and or at the very least look at the ops manager event log on the rms.
    So, back to the "missing a few" scenario.  You could start to do logging, etc, but instead of that, reinstall the agent on one of the machines not showing up in both views.  Wait a few hours.  Check the views again, and keep an eye on the
    ops manager event log on that sick agent.  Increase the size of the log file, if you have too, so you don't over right events.
    After a few hours if it's not showing up, you can either start down the path of enabling tracing on the agent (there are kbs on how to turn this on, and the logs are not hard to go through), or you can uninstall the agent.  Run cleanmom on the box.
     Reinstall the agent.
    I would perform the repair, clean mom, before I troubleshoot the agent, but that's just me.  Keep in mind, any data that is collected and or queued will be lost when you do the clean mom.  But since you have no data as it is, no real loss.
    While the agent is showing up in the console, and before you start down the previous steps, I would verify that you have events collected as well (another query) and stop a service on the box that is supposed to be monitored, see if it triggers and alert
    and a state change.  Also peek at the RMS ops manager event log, you might have some SQL problems.
    Good luck.
    Regards, Blake Email: mengotto<at>hotmail.com Blog: http://discussitnow.wordpress.com/ If my response was helpful, please mark it as so, if it answered your question, then please also mark it accordingly. Thank you.

  • Dynamic Performance View question

    So, Oracle maintains dynamic performance tables. Views are created off of them, and then public synonyms are created off of those views and they begin with V$. Very good. But something doesn't make sense to me.
    V$DATAFILE is a synonym that references a view named V_$DATAFILE:
    SQL> select dbms_metadata.get_ddl('SYNONYM', 'V$DATAFILE', 'PUBLIC') from dual;
    DBMS_METADATA.GET_DDL('SYNONYM','V$DATAFILE','PUBLIC')
    CREATE OR REPLACE PUBLIC SYNONYM "V$DATAFILE" FOR "SYS"."V_$DATAFILE"
    SQL> select object_type from dba_objects where object_name='V_$DATAFILE';
    OBJECT_TYPE
    VIEW
    But the definition of the view references the.... synonym itself?
    SQL> select dbms_metadata.get_ddl('VIEW', 'V_$DATAFILE', 'SYS') from dual;
    DBMS_METADATA.GET_DDL('VIEW','V_$DATAFILE','SYS')
    CREATE OR REPLACE FORCE VIEW "SYS"."V_$DATAFILE" ("FILE#", "CREATION_CHANGE#",
    "CREATION_TIME", "TS#", "RFILE#", "STATUS", "ENABLED", "CHECKPOINT_CHANGE#", "C
    HECKPOINT_TIME", "UNRECOVERABLE_CHANGE#", "UNRECOVERABLE_TIME", "LAST_CHANGE#",
    "LAST_TIME", "OFFLINE_CHANGE#", "ONLINE_CHANGE#", "ONLINE_TIME", "BYTES", "BLOCK
    S", "CREATE_BYTES", "BLOCK_SIZE", "NAME", "PLUGGED_IN", "BLOCK1_OFFSET", "AUX_NA
    ME", "FIRST_NONLOGGED_SCN", "FIRST_NONLOGGED_TIME", "FOREIGN_DBID", "FOREIGN_CRE
    ATION_CHANGE#", "FOREIGN_CREATION_TIME", "PLUGGED_READONLY", "PLUGIN_CHANGE#", "
    PLUGIN_RESETLOGS_CHANGE#", "PLUGIN_RESETLOGS_TIME") AS
    select "FILE#","CREATION_CHANGE#","CREATION_TIME","TS#","RFILE#","STATUS","ENA
    BLED","CHECKPOINT_CHANGE#","CHECKPOINT_TIME","UNRECOVERABLE_CHANGE#","UNRECOVERA
    BLE_TIME","LAST_CHANGE#","LAST_TIME","OFFLINE_CHANGE#","ONLINE_CHANGE#","ONLINE_
    TIME","BYTES","BLOCKS","CREATE_BYTES","BLOCK_SIZE","NAME","PLUGGED_IN","BLOCK1_O
    FFSET","AUX_NAME","FIRST_NONLOGGED_SCN","FIRST_NONLOGGED_TIME","FOREIGN_DBID","F
    OREIGN_CREATION_CHANGE#","FOREIGN_CREATION_TIME","PLUGGED_READONLY","PLUGIN_CHAN
    GE#","PLUGIN_RESETLOGS_CHANGE#","PLUGIN_RESETLOGS_TIME" from v$datafile
    So the view definition references a synonym, and the synonym references the same view... seems circular. Is this Oracle Corp's way of telling me to bugger off? I just wanted to look up the name of the dynamic performance table out of curiosity.

    DBjanitor_old wrote:
    So, Oracle maintains dynamic performance tables. Views are created off of them, and then public synonyms are created off of those views and they begin with V$. Very good. But something doesn't make sense to me.
    The synonyms is owned by PUBLIC, not by SYS - so when SYS references v$XXX they access the underlying object, when anyone else references v$XXX they access the synomym, which points to the view owned by SYS, and the view accesses the underlying object owned by SYS.
    The point of this is that SYS is the only schema allowed to use the code that interprets the dynamic performance views properly, so any end user that wants to access them has to go through an object owned by sys, which then accesses them with the privileges of sys (i.e. the equivalent of authid owner). The apparent loop in the chain simply means that SYS, SYSTEM, DBSNMP etc. can all use the same queries to access the dynamic performance views, but only one of them is accessing the special code directly.
    See what happens if you try to grant access to the raw objects to non-SYS schemas (logged on as SYS)
    SQL> grant select on v$session to test_user;
    grant select on v$session to test_user
    ERROR at line 1:
    ORA-02030: can only select from fixed tables/viewsReagrds
    Jonathan Lewis

  • One performance view for two classes, possible?

    Hi there,
    My system is still running 2007 R2. I am writing a MP now which contains two classes. There are few performance collection rules targeting those two classes. I want to create one performance view to display performance data for BOTH classes. Is it possible?
    I already created an instance group and added both classes as member of the group. By using the group, I can created one alert view to display alerts from either class. Can I use the same trick for the performance view? Thanks!

    In addition, we also can add a dashboard view with two columns for the two classes, and add performance widget for each column.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Daily and monthly performance view

    Hi,
    I have problem with the built in performance view of SCVMM 2012 R2 U4.
    The environment consist of 5 hyper-v hosts in a cluster configuration.
    Problem:
    Four of the five hosts does not show network and storage performance counters.
    One host show the storage and network performance counters.
    This is only in SCVMM GUI. From the powershell I can see the performance counters and history of all the hosts.
    The aggregated value of e.g. used memory is not correct in the GUI.
    The performance counters of the hosts are working correctly. SCVMM have access to the servers as well and can read all the counters since it's working from the command line. This has to do something with this SQL database. I need to reset the collected performance
    data or rebuild the performance tables and stored procedures some how.
    This is driving me crazy. Any help is appreciated!

    Hi Polaris,
    Instead of hard coding the HRS as 8 in PCR please try to read the hours from Info type 0007. Sample PCR is as below.
    where EG-1 is intern
    Z105-Time type
    For permanent employee complete calculation will be based on the IT0008.
    Please explain with an example if you still have any queries.
    Hope this helps:)
    Regards
    Rakesh KM

  • Performance View with data from Custom Rule

    Hello again everybody,
    so we created a vbscript which measures time needed for a specific process inside a program.
    Now we made a rule for getting this data inside SCOM. Alerting and Health-Monitoring works fine.
    For example, we made "if TimeNeeded>5" critical Health state, works like a charm.
    But now, we want to view the data (the script runs every 30 seconds) inside a Performance view.
    - We checked if the rule works as intended. Check
    - Set the rule to "Performance Collection". Check
    - Set the right target group. Check
    - Override for specific target. Check
    - Created a perf.monitor "collected by specific rules" (added our rule) with right targeting. Check
    But the performance-view keeps unpopulated.
    What now?

    I exported the MP as XML file but the rule is not in there, only references.
    But thats not the point anyway, the rule is working.
    The only thing missing is to grab the data the script returns (via oAPI propertybag) and show it in a view. Thats all
    Maybe the question was not clear enough:
    Our script returns a value every 30 seconds, for example 6, then 4, then 8, then 10 and so on...
    All we want now is to show these values in a Performance-View.
    Graphical example:
    10|                            X
    08|                     X
    06|         X
    04|               X                              X
    02|                                    X
    00|
    I guess you now know what I mean.
    This Article
    corelan.be/index.php/2008/04/16/using-customnon-performance-counter-data-to-build-graphs-in-operations-manager-2007
    is EXACTLY what I want and what I did.
    But my Performance-View refuses to show
    ANYTHING...
    Whats the problem?

  • Customize columns in performance view legends

    When we create performance view, it has two panes. Top pane contains the chart or graph and bottom pane contains the legends. The legends have column like show, color, Path, Target, Rule etc. I have couple of questions regarding legends pane:
    1. Can we customize the legends columns name. For example can we hide or rename the column?
    2. Can we change the position of columns?

    Here is the link of the sample performance view
    https://drive.google.com/file/d/0B-35XfjYNlwqWjNMUUFYZXpSN2c/edit?usp=sharing

  • How old historical data can be available for SCOM performance views to show up in graphs?

    I have created performance rule based on performance counter and created a performance view on the target of the rule. It shows me the graph of how performance counter value changed over the period of time.
    In SCOM console there is an option in performance views, to choose start date-time and end date-time for the performance graph. It allows me to select a range of say few years.
    However going by the Microsoft documentation, it appears that performance data is stored in OperationsManagerDW database only for limited period.
    I have a feature requirement where we need to have performance views or reports or some means where for compliance purpose we should be able to show older data as well.
    So my query is exactly how much historical data(up to how old) is actually available for performance views? Is there any specific information or MS documentation available where I can get this information (duration of historical data in specific number of days
    or years or so.) I need to decide based on this if I can use performance views or I need to go for some kind of reports like SSRS reports instead.

    Hi,
    Additionally, I would like to share the following article with you. Hope it helps.
    Understanding and modifying Data Warehouse retention and grooming
    http://blogs.technet.com/b/kevinholman/archive/2010/01/05/understanding-and-modifying-data-warehouse-retention-and-grooming.aspx
    Niki Han
    TechNet Community Support

  • SCOM web console - Performance View Time Range

    Hi, 
    I am trying to change the default time range from 24hrs to 48hrs. I have searched for solution, however, all of them are same as this, and it didn't work for me.
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/bae50efb-7de3-4e60-bb07-13019fb3f432/web-console-performance-view?forum=operationsmanagergeneral
    Has this solution worked for anyone using SCOM 2012 SP1? I made the change to 48hrs, after a iisreset, it is still showing 24hrs.
    Any ideas?
    Thanks.

    I want to know which web.config file , you are modify.
    There are two web.config
    1) c:\program files\Microsoft System Center 2012 R2\Operations Manager\WebConsole\webhost: not working by adding <add key="PerformanceHourBefre" value="48" />
    2) c:\program files\Microsoft System Center 2012 R2\Operations Manager\WebConsole\MonitoringView: it is working by adding <add key="PerformanceHourBefre" value="48" />
    Roger

  • Bad performance view on views

    we have two views with equal key fields which perform very good (order less than 1 second).
    Both views give extra fields from data sets.
    I want to combine those extra fields in one record with equal key values. Because some key combinations can miss in either one of both sets, I make an extra view with a union only on the keyfields of both views and use this view as driver for the combination, so I join both original views open with this driver. When I now query the resultview the performance is bad (order 3.5 minutes).
    (This is independent of the number of result records)
    Explain plan shows no full table scans.
    Any suggestions to improve this construction??

    I have split the two parts of the union query, and analysed both parts separately, see below.
    The subviews perform as follows:
    c_contr_opb_CD with restriction on contract_no 7 rows in 0:02 seconds
    without restrictions 2216 records in 3:34 minutes
    c_contr_opb_B with restriction on contract_no 5 rows in 0:01 seconds
    without restrictions 1567 records in 0:05 minutes
    (in both views are 1332 records with common keys)
    When I make the view over an open join of both views and I use the
    c_contr_opb_B as driver then it performs with and without restriction
    on contract_no the same, suggesting it performs the 'group by'-clause in
    the view c_contr_opb_CD before applying the restriction.
    When, on the other hand I use the view c_contr_opb_CD as driver it seems to
    apply the restriction before the 'group by'-clause in the view.
    Is there a way to always apply the restriction berore the 'group by' clause
    select tB.Contract_no
    , tB.agc
    , tB.salesgroup
    , tB.B_pricing
    , tB.B_No_of_elements
    , tB.B_m3_elements
    , tB.C_complete
    , tCD.C_pricing
    , tCD.C_No_of_elements
    , tCD.C_m3_elements
    , tCD.D_pricing
    , tCD.D_No_of_elements
    , tCD.D_m3_elements
    from c_contr_opb_CD tCD
    , c_contr_opb_B tB
    where (tCD.Contract_no(+) = tB.Contract_no
    and tCD.agc(+) = tB.agc
    and tCD.salesgroup(+) = tB.salesgroup)
    and tB.contract_no=lpad('20042002',20);
    query in 3:40 minutes, result 5 records
    Options Object Operation
    SELECT STATEMENT
    OUTER MERGE JOIN
    JOIN SORT
    C_CONTR_OPB_B VIEW
    GROUP BY SORT
    VIEW
    UNION-ALL
    NESTED LOOPS
    UNIQUE SCAN PK_CMHD INDEX
    BY INDEX ROWID CMMT TABLE ACCESS
    RANGE SCAN PK_CMMT INDEX
    NESTED LOOPS
    UNIQUE SCAN PK_CMHD INDEX
    BY INDEX ROWID CMSV TABLE ACCESS
    RANGE SCAN PK_CMSV INDEX
    JOIN SORT
    C_CONTR_OPB_CD VIEW
    GROUP BY SORT
    VIEW
    UNION-ALL
    NESTED LOOPS
    RANGE SCAN X_SHP_CM INDEX
    BY INDEX ROWID CMMT TABLE ACCESS
    RANGE SCAN PK_CMMT INDEX
    NESTED LOOPS
    RANGE SCAN X_SHP_CM INDEX
    BY INDEX ROWID CMSV TABLE ACCESS
    RANGE SCAN PK_CMSV INDEX
    28 rows selected.
    select tCD.Contract_no
    , tCD.agc
    , tCD.salesgroup
    , tB.B_pricing
    , tB.B_No_of_elements
    , tB.B_m3_elements
    , tB.C_complete
    , tCD.C_pricing
    , tCD.C_No_of_elements
    , tCD.C_m3_elements
    , tCD.D_pricing
    , tCD.D_No_of_elements
    , tCD.D_m3_elements
    from c_contr_opb_B tB
    , c_contr_opb_CD tCD
    where (tB.Contract_no(+) = tCD.Contract_no
    and tB.agc(+) = tCD.agc
    and tB.salesgroup(+) = tCD.salesgroup)
    and tCD.contract_no=lpad('20042002',20);
    query in 0:05 minutes, result 7 rows
    Options Object Operation
    SELECT STATEMENT
    OUTER MERGE JOIN
    JOIN SORT
    C_CONTR_OPB_CD VIEW
    GROUP BY SORT
    VIEW
    UNION-ALL
    NESTED LOOPS
    UNIQUE SCAN PK_CMHD INDEX
    BY INDEX ROWID CMMT TABLE ACCESS
    RANGE SCAN PK_CMMT INDEX
    NESTED LOOPS
    UNIQUE SCAN PK_CMHD INDEX
    BY INDEX ROWID CMSV TABLE ACCESS
    RANGE SCAN PK_CMSV INDEX
    JOIN SORT
    C_CONTR_OPB_B VIEW
    GROUP BY SORT
    VIEW
    UNION-ALL
    NESTED LOOPS
    RANGE SCAN X_SHP_CM INDEX
    BY INDEX ROWID CMMT TABLE ACCESS
    RANGE SCAN PK_CMMT INDEX
    NESTED LOOPS
    RANGE SCAN X_SHP_CM INDEX
    BY INDEX ROWID CMSV TABLE ACCESS
    RANGE SCAN PK_CMSV INDEX
    create or replace view c_contr_opb_B as
    select     Contract_no
         ,     agc
         ,     salesgroup
         ,     min(C_complete)          C_complete
         ,     sum(B_pricing)          B_pricing
         ,     sum(B_No_of_elements)     B_No_of_elements
         ,     sum(B_m3_elements)     B_m3_elements
         from (     select     h.cm_num               Contract_no
              ,     ms.agc
              ,     ms.sales_group               salesgroup
              ,     decode(ms.closed_reason,'C001','*',' ')     C_complete
              ,     ms.unit_price*ms.ord_qty     B_pricing
              ,      decode(ms.agc,'PROJ',fnc_struct_m3(ms.ccn,ms.structure_id,ms.structure_rev)
                        ,0)*ms.ord_qty          B_m3_elements
              ,     ms.ord_qty                B_No_of_elements
              from     cmmt     ms
              ,     cmhd     h
              where     ms.ccn          = h.ccn
              and     ms.cm_num     = h.cm_num
              and     ms.price_bucket     = 'B'
              and     ms.closed_reason in ('C001',' ')
              and     h.ccn          = 'SPAN'
              UNION ALL
              select     h.cm_num               Contract_no
              ,     ms.agc
              ,     ms.sales_group               salesgroup
              ,     decode(ms.closed_reason,'C001','*',' ')     C_complete
              ,     ms.unit_price*ms.ord_qty     B_pricing
              ,      0                    B_m3_elememts
              ,     ms.ord_qty                B_No_of_elements
              from     cmsv     ms
              ,     cmhd     h
              where     ms.ccn          = h.ccn
              and     ms.cm_num     = h.cm_num
              and     ms.price_bucket     = 'B'
              and     ms.closed_reason in ('C001',' ')
              and     h.ccn          = 'SPAN'
         ) group by Contract_no
         ,     agc
         ,     salesgroup
    create or replace view c_contr_opb_CD as
    select     Contract_no
         ,     agc
         ,     salesgroup
         ,     sum(C_pricing)          C_pricing
         ,     sum(C_No_of_elements)     C_No_of_elements
         ,     sum(C_m3_elements)     C_m3_elements
         ,     sum(D_pricing)          D_pricing
         ,     sum(D_No_of_elements)     D_No_of_elements
         ,     sum(D_m3_elements)     D_m3_elements
         from (     select     h.cm_num               Contract_no
              ,     ms.agc
              ,     ms.sales_group               salesgroup
              ,     ms.unit_price*ms.ord_qty     C_pricing
              ,     ms.ord_qty                C_No_of_elements
              ,      decode(ms.agc,'PROJ',fnc_item_m3(ms.ccn,ms.item,ms.revision),0)
                        *ms.ord_qty          C_m3_elements
              ,     ms.unit_price*ms.ord_qty     D_pricing
              ,     decode(ms.agc,'PROJ',fnc_item_aantal_D(ms.ccn,ms.item,ms.revision),0)
                                       D_No_of_elements
              ,      decode(ms.agc,'PROJ',fnc_item_m3_D(ms.ccn,ms.item,ms.revision),0)
                   * decode(ms.agc,'PROJ',fnc_item_aantal_D(ms.ccn,ms.item,ms.revision),0)
                                       D_m3_elements
              from     cmmt     ms
              ,     cmhd     h
              where     ms.ccn          = h.ccn
              and     ms.cm_num     = h.cm_num
              and     ms.price_bucket     = 'C'
              and     ms.closed_reason in ('F001','F003',' ')
              and     h.ccn          = 'SPAN'
              UNION ALL
              select     h.cm_num               Contract_no
              ,     ms.agc
              ,     ms.sales_group               salesgroup
              ,     ms.unit_price*ms.ord_qty     C_pricing
              ,     ms.ord_qty                C_No_of_elements
              ,      0                    C_m3_elememts
              ,     ms.unit_price*ms.ord_qty     D_pricing
              ,     0                    D_No_of_elements
              ,      0                    D_m3_elements
              from     cmsv     ms
              ,     cmhd     h
              where     ms.ccn          = h.ccn
              and     ms.cm_num     = h.cm_num
              and     ms.price_bucket     = 'C'
              and     ms.closed_reason in ('F001','F003',' ')
              and     h.ccn          = 'SPAN'
         ) group by Contract_no
         ,     agc
         ,     salesgroup

  • Better Performance ; View or derived table

    Hi,
    I need to know which one will perform better.
    Approach I:
    Create view view_table1 as select field1,field2,field3 from table1 where field_ind = 'Y';
    Select A.field1,B.field3
    from table1 A,
    view_table1 B
    where
    a.field1 = b.field1
    and a.field2 = b.field2;
    Approach II:
    Select A.field1,B.field3
    from table1 A,
    (select field1,field2,field3 from table1 where field_ind = 'Y') B
    where
    a.field1 = b.field1
    and a.field2 = b.field2;
    Thanks,
    Vishu

    The two are identical - a view is just stored sql, it will get substituted.

  • Data Warehouse - Synchronization Performance view not available/working

    Hi!
    How can I populate this view. I have no Performance counters to choose from. see attached picture. Come to think of it, I have a lot of empty views and reports - why is that?
    Best regards
    Rune Haugen

    Hi,
    The performance collection rules are disabled by default. You just need to turn them on.
    For more information, please review the link below:
    Dell Management Packs in System Center Operations Manager 2007 R2
    http://serverfault.com/questions/150251/dell-management-packs-in-system-center-operations-manager-2007-r2
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Does the After Effects Camera perform View Frustum Culling?

    I've looked all over for a post about this and I can't find any answer. I am curious as to whether the camera in After Effects culls layers outside of it's view frustum, like this: http://www.lighthouse3d.com/tutorials/view-frustum-culling/. I ask because if it does do view frustum culling then it is pointless going through my project and trimming my layers to be the exact length that they are within the camera's field of view to speed up performance and render time. I am currently working on a project where my camera pans slowly across many photographs and I spend my time trimming the layers when they are not visible by the camera which I believe saves time on rendering and processing, however, it takes me a long time to do manually. I know that every game engine does this to save resources, it would be a shame if after effects didnt do it. But does anyone actually know?
    Cheers,
    Felix

    There is nothing to cull because AE's layers are not geometry-based. They are buffers that are transformed and mangled with effects, which is, for the most part, a completely different thing. AE is smart enough to not load layers outside the comp window into memory and it can also detect layers with 0% opacity and not load them just as it respects of course the layer visibility, but there is no further optimization like slicing layers into tiles and hiding the invisible ones or whatever.
    Mylenium

  • Performance views v$ vs. v_$

    Hi,
    in a database we have the performace views v_$ and to every view we have a public synonym v$. That's what I understand so far.
    But does anybody knows why? What is the sense of the public synonyms?
    Best regards

    yes as you can read here:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/datadict.htm#i4370
    >
    SYS owns the dynamic performance tables; their names all begin with V_$. Views are created on these tables, and then public synonyms are created for the views. The synonym names begin with V$. For example, the V$DATAFILE view contains information about the database's datafiles, and the V$FIXED_TABLE view contains information about all of the dynamic performance tables and views in the database.

  • Which performance view ddl locate?

    SQL> create table houyichong(hello varchar2(100));
    SQL> insert into houyichong values('hello oracle');
    SQL> commit;
    SQL> select sql_text from v$sqlarea where sql_text like '%houyichong%';
    SQL_TEXT
    insert into houyichong values('hello oracle')
    select sql_text from v$sqlarea where sql_text like '%houyichong%'
    not find dd:l create table houyichong(hello varchar2(100));
    why?and where i can find the ddl just executed?

    938261 wrote:
    SQL> create table houyichong(hello varchar2(100));
    SQL> insert into houyichong values('hello oracle');
    SQL> commit;
    SQL> select sql_text from v$sqlarea where sql_text like '%houyichong%';
    SQL_TEXT
    insert into houyichong values('hello oracle')
    select sql_text from v$sqlarea where sql_text like '%houyichong%'
    not find dd:l create table houyichong(hello varchar2(100));
    why?and where i can find the ddl just executed?TABLE_NAME defaults to be UPPERCASE?

Maybe you are looking for

  • BI switching to new ECC 6.0 box from R/3 4.7 box, question on delta init?

    Hi all, Our BI has been already upgraded to 7.0. Currently connected to R/3 4.7. Now a new box is made with ECC 6.0 and Oracle 8 which is a mirror copy of the r/3 4.7.Once the new box is ready the BI 7.0 connection will be switched from R/3 4.7 to th

  • I can no longer play audio on my iPhone in headphones mode after getting a phone call

    I took a phone call the other day while playing audio from my iPhone on on Aux cord in my car, and when the phone call ended audio stopped working. It works when I play it in speaker mode, but if i plug headphones into the iPhone it no longer works.

  • Balance Adjustment

    Hi All I have a doubt, please let me know whether this is possible in SAP FICO. During the year end, i have carried forward the balance of a balance sheet a/c to the next year but now i have come across an adjustment for that a/c. What should I do? 

  • EIGRP in a NBMA hub and spoke configuration ?

    Hi, Is there a way to configure EIGRP for a Frame Relay NBMA network using a hub and spoke topology ? I'm curious that I cannot find any config examples for this, whereas with OSPF in this environment there are plenty of examples. I'm wondering if EI

  • Multi Page - Multi Layout  - Vertical panels per Page- Effect

    Hi I need to create a report which is having 4 pages - In the layout itself I need to design such way , first full page will be text -second page and third page will be with repeating frame . Fourth page will be with text. Example in Emp Table for ea