Time Series Format of Operating System Statistics - "Please Ignore"
Hi List,
On the AWR report we see the "Operating System Statistics" section.. since generating multiple AWR reports is daunting and takes a lot of time and I'm only interested on particular columns of dba_hist_osstat (where that particular section of AWR pulls the data)... I'd like to have an output like this:
SNAP_ID BUSY_TIME LOAD NUM_CPUS PHYSICAL_MEMORY_BYTES
244 6792 .23 1 169520
245 1603 .04 1 154464
246 28415 .05 1 5148
Problem is, the dba_hist_osstat values are stored as rows...
select * from dba_hist_osstat where snap_id = 244;
244 2607950532 1 0 NUM_CPUS 1
244 2607950532 1 1 IDLE_TIME 57153
244 2607950532 1 2 BUSY_TIME 5339
244 2607950532 1 3 USER_TIME 1189
244 2607950532 1 4 SYS_TIME 4077
244 2607950532 1 5 IOWAIT_TIME 2432
244 2607950532 1 6 NICE_TIME 0
244 2607950532 1 14 RSRC_MGR_CPU_WAIT_TIME 0
244 2607950532 1 15 LOAD 0.099609375
244 2607950532 1 1008 PHYSICAL_MEMORY_BYTES 300536
So I got this query to walk through all the SNAP_IDs with the following output. I'd just like to format particular columns like the one I mentioned (above) for the data to be more meaningful and to be easily loaded on excel for visualization. Well I can also do this on "Instance Activity Stats" (dba_hist_sysstat) and other stuff..
select
b.snap_id, substr(e.stat_name, 1, 35) as name,
(case when e.stat_name like 'NUM_CPU%' then e.value
when e.stat_name = 'LOAD' then e.value
when e.stat_name = 'PHYSICAL_MEMORY_BYTES' then e.value
else e.value - b.value
end) as value
from dba_hist_osstat b,
dba_hist_osstat e
where
b.stat_name = 'BUSY_TIME' and
b.dbid = 2607950532
and e.dbid = 2607950532
and b.instance_number = 1
and e.instance_number = 1
and e.snap_id = b.snap_id + 1
and b.stat_id = e.stat_id
order by snap_id, name asc
SNAP_ID NAME VALUE
244 BUSY_TIME 6792
245 BUSY_TIME 1603
246 BUSY_TIME 28415
BTW, try to generate AWR reports on a particular SNAP_IDs, the value you get from the query will be the same on the report...
- Karl Arao
karlarao.wordpress.com
Edited by: Karl Arao on Jan 31, 2010 12:07 PM
I got the final version of the script...
SELECT s0.snap_id,
TO_CHAR(s0.END_INTERVAL_TIME,'YYYY-Mon-DD HH24:MI:SS') snap_start,
TO_CHAR(s1.END_INTERVAL_TIME,'YYYY-Mon-DD HH24:MI:SS') snap_end,
round(EXTRACT(DAY FROM s1.END_INTERVAL_TIME - s0.END_INTERVAL_TIME) * 1440 + EXTRACT(HOUR FROM s1.END_INTERVAL_TIME - s0.END_INTERVAL_TIME) * 60 + EXTRACT(MINUTE FROM s1.END_INTERVAL_TIME - s0.END_INTERVAL_TIME) + EXTRACT(SECOND FROM s1.END_INTERVAL_TIME - s0.END_INTERVAL_TIME) / 60, 2) ela_min,
s1t1.value - s1t0.value AS busy_time,
s2t1.value AS load,
s3t1.value AS num_cpus,
s4t1.value AS physical_memory_bytes
FROM dba_hist_snapshot s0,
dba_hist_snapshot s1,
dba_hist_osstat s1t0,
dba_hist_osstat s1t1,
dba_hist_osstat s2t1,
dba_hist_osstat s3t1,
dba_hist_osstat s4t1
WHERE s0.dbid = 2607950532
AND s1t0.dbid = s0.dbid
AND s1t1.dbid = s0.dbid
AND s2t1.dbid = s0.dbid
AND s3t1.dbid = s0.dbid
AND s4t1.dbid = s0.dbid
AND s0.instance_number = 1
AND s1t0.instance_number = s0.instance_number
AND s1t1.instance_number = s0.instance_number
AND s2t1.instance_number = s0.instance_number
AND s3t1.instance_number = s0.instance_number
AND s4t1.instance_number = s0.instance_number
AND s1.snap_id = s0.snap_id + 1
AND s1t0.snap_id = s0.snap_id
AND s1t1.snap_id = s0.snap_id + 1
AND s2t1.snap_id = s0.snap_id + 1
AND s3t1.snap_id = s0.snap_id + 1
AND s4t1.snap_id = s0.snap_id + 1
AND s1t0.stat_name = 'BUSY_TIME'
AND s1t1.stat_name = s1t0.stat_name
AND s2t1.stat_name = 'LOAD'
AND s3t1.stat_name = 'NUM_CPUS'
AND s4t1.stat_name = 'PHYSICAL_MEMORY_BYTES'
ORDER BY snap_id ASC
SNAP_ID SNAP_START SNAP_END ELA_MIN BUSY_TIME LOAD NUM_CPUS PHYSICAL_MEMORY_BYTES
244 2010-Jan-14 12:38:36 2010-Jan-14 13:03:23 24.78 6792 .239257813 1 169520
245 2010-Jan-14 13:03:23 2010-Jan-14 13:10:38 7.25 1603 .049804688 1 154464
246 2010-Jan-14 13:10:38 2010-Jan-14 14:00:39 50.02 28415 .059570313 1 5148
247 2010-Jan-14 14:00:39 2010-Jan-14 15:00:42 60.04 8993 0 1 29292
248 2010-Jan-14 15:00:42 2010-Jan-15 23:56:37 1975.92 -46770 .049804688 1 311216
249 2010-Jan-15 23:56:37 2010-Jan-16 01:00:40 64.05 17722 .659179688 1 109880
250 2010-Jan-16 01:00:40 2010-Jan-16 02:00:42 60.03 7089 .229492188 1 43576
251 2010-Jan-16 02:00:42 2010-Jan-16 10:05:01 484.31 -23928 0 1 310720
252 2010-Jan-16 10:05:01 2010-Jan-16 11:01:02 56.03 8906 .099609375 1 186432
From the AWR...
Snap Id Snap Time Sessions Curs/Sess
Begin Snap: 244 14-Jan-10 12:38:36 25 1.8 <-- same from above output (start & end)
End Snap: 245 14-Jan-10 13:03:23 24 2.0
Elapsed: 24.78 (mins) <-- same from above output (4th col)
DB Time: 0.32 (mins)
... output snipped ...
Operating System Statistics DB/Inst: IVRS/ivrs Snaps: 244-245
Statistic Total
BUSY_TIME 6,792 <-- same from above output (5th col)
IDLE_TIME 141,649
IOWAIT_TIME 4,468
NICE_TIME 0
SYS_TIME 4,506
USER_TIME 2,115
LOAD 0
RSRC_MGR_CPU_WAIT_TIME 0
PHYSICAL_MEMORY_BYTES 169,520 <-- same from above output (last col)
NUM_CPUS 1
And comming from the original query.. all output is similar above..
select
b.snap_id, substr(e.stat_name, 1, 35) as name,
(case when e.stat_name like 'NUM_CPU%' then e.value
when e.stat_name = 'LOAD' then e.value
when e.stat_name = 'PHYSICAL_MEMORY_BYTES' then e.value
else e.value - b.value
end) as value
from dba_hist_osstat b,
dba_hist_osstat e
where
b.stat_name = 'LOAD' and
b.dbid = 2607950532
and e.dbid = 2607950532
and b.instance_number = 1
and e.instance_number = 1
and e.snap_id = b.snap_id + 1
and b.stat_id = e.stat_id
order by snap_id, name asc
SNAP_ID NAME VALUE
244 LOAD .239257813
245 LOAD .049804688
246 LOAD .059570313
247 LOAD 0
248 LOAD .049804688
249 LOAD .659179688
250 LOAD .229492188
251 LOAD 0
252 LOAD .099609375
Hope this helps...
- Karl Arao
karlarao.wordpress.com
Similar Messages
-
Time Series Format of Operating System Statistics
On the AWR report we see the "Operating System Statistics" section.. since generating multiple AWR reports is daunting and takes a lot of time and I'm only interested on particular columns of dba_hist_osstat (where that particular section of AWR pulls the data)... I'd like to have an output like this:
SNAP_ID BUSY_TIME LOAD NUM_CPUS PHYSICAL_MEMORY_BYTES
244 6792 .23 1 169520
245 1603 .04 1 154464
246 28415 .05 1 5148
Problem is, the dba_hist_osstat values are stored as rows...
select * from dba_hist_osstat where snap_id = 244;
244 2607950532 1 0 NUM_CPUS 1
244 2607950532 1 1 IDLE_TIME 57153
244 2607950532 1 2 BUSY_TIME 5339
244 2607950532 1 3 USER_TIME 1189
244 2607950532 1 4 SYS_TIME 4077
244 2607950532 1 5 IOWAIT_TIME 2432
244 2607950532 1 6 NICE_TIME 0
244 2607950532 1 14 RSRC_MGR_CPU_WAIT_TIME 0
244 2607950532 1 15 LOAD 0.099609375
244 2607950532 1 1008 PHYSICAL_MEMORY_BYTES 300536
So I got this query to walk through all the SNAP_IDs with the following output. I'd just like to format particular columns like the one I mentioned (above) for the data to be more meaningful and to be easily loaded on excel for visualization. Well I can also do this on "Instance Activity Stats" (dba_hist_sysstat) and other stuff..
select
b.snap_id, substr(e.stat_name, 1, 35) as name,
(case when e.stat_name like 'NUM_CPU%' then e.value
when e.stat_name = 'LOAD' then e.value
when e.stat_name = 'PHYSICAL_MEMORY_BYTES' then e.value
else e.value - b.value
end) as value
from dba_hist_osstat b,
dba_hist_osstat e
where
b.stat_name = 'BUSY_TIME' and
b.dbid = 2607950532
and e.dbid = 2607950532
and b.instance_number = 1
and e.instance_number = 1
and e.snap_id = b.snap_id + 1
and b.stat_id = e.stat_id
order by snap_id, name asc
SNAP_ID NAME VALUE
244 BUSY_TIME 6792
245 BUSY_TIME 1603
246 BUSY_TIME 28415
BTW, try to generate AWR reports on a particular SNAP_IDs, the value you get from the query will be the same on the report...
- Karl Arao
karlarao.wordpress.comHi Jonathan,
Thanks for the input, I'll explore rewriting the query using those functions. But for now it serves the purpose of knowing/characterizing the workload, and also having a clear view of the capacity, requirement, and utilization without the hassle of generating AWR reports on each snap_id...
This will also be useful for visualization and predictive analysis..
BTW, I've used the following tables:
- dba_hist_snapshot
- dba_hist_osstat
- dba_hist_sys_time_model
- dba_hist_sysstat
AWR CPU and IO Workload Report
Total Total Total
Snap C CPU Oracle OS Oracle RMAN OS
Snap Dur P Time DB DB Bg RMAN CPU Busy OS CPU Physical IOPs IOPs IOPs IO r IO w Redo Sess Exec CPU CPU CPU
ID (m) U (s) Time CPU CPU CPU (s) Time Load (s) Memory r w redo (mb)/s (mb)/s (mb)/s Start /s % % %
345 10.01 1 600.60 18.33 6.99 4.78 0.00 11.77 7467.00 0.30 74.67 71300.00 2.691 1.494 0.152 0.302 0.045 0.010 26 2.169 2 0 12
344 10.04 1 602.40 67.32 46.23 4.89 0.00 51.12 10755.00 0.79 107.55 66852.00 11.954 1.582 0.226 0.173 0.020 0.005 24 4.724 8 0 18
343 10.02 1 601.20 40.74 15.31 5.29 0.00 20.60 8188.00 0.80 81.88 79724.00 7.683 1.143 0.546 0.137 0.015 0.005 24 7.991 3 0 14
342 10.01 1 600.60 12.21 6.95 4.60 0.00 11.55 7283.00 0.15 72.83 83972.00 1.122 0.749 0.143 0.012 0.009 0.003 24 7.051 2 0 12
341 10.01 1 600.60 3.49 1.30 3.71 0.00 5.00 6107.00 0.79 61.07 86716.00 0.336 0.666 0.225 0.004 0.007 0.003 24 2.511 1 0 10
340 10.01 1 600.60 2.01 1.34 4.21 0.00 5.55 6495.00 0.15 64.95 88028.00 0.341 0.909 0.155 0.003 0.010 0.003 24 2.130 1 0 11
339 9.05 1 543.00 167.66 72.09 4.67 0.00 76.76 12248.00 0.39 122.48 88668.00 120.223 1.024 0.302 13.920 0.015 0.006 30 5.532 14 0 23
338 10.05 1 603.00 1324.58 435.67 11.64 0.00 447.31 46982.00 4.29 469.82 50048.00 659.343 9.504 3.736 73.372 0.322 0.025 31 95.922 74 0 78
337 10.14 1 608.40 2140.32 296.60 29.13 0.00 325.73 39908.00 4.45 399.08 111276.00 332.237 16.039 4.277 28.269 0.328 0.028 30 118.437 54 0 66
336 10.12 1 607.20 1861.91 141.92 29.59 0.00 171.51 22773.00 3.20 227.73 27880.00 100.339 9.433 4.298 10.210 0.166 0.029 31 110.417 28 0 38
335 10.06 1 603.60 1871.36 142.33 30.50 0.00 172.84 24254.00 3.51 242.54 3400.00 107.760 37.863 16.120 3.183 0.479 0.110 24 457.200 29 0 40
334 10.01 1 600.60 1.68 0.96 2.92 0.00 3.88 2515.00 0.44 25.15 23912.00 0.012 0.664 0.152 0.000 0.008 0.002 24 2.592 1 0 4
333 10.01 1 600.60 1.52 0.96 2.98 0.00 3.95 1068.00 0.00 10.68 67312.00 0.010 0.773 0.145 0.000 0.011 0.003 24 1.935 1 0 2
332 10.01 1 600.60 5.02 4.70 2.97 0.00 7.67 1606.00 0.08 16.06 68600.00 0.018 0.661 0.155 0.000 0.008 0.003 24 3.362 1 0 3- Karl Arao
karlarao.wordpress.com -
i have a problem with installing PS13 as I get an error message "This installer does not support installation on a 64-Bit Windows operating system. Please download the 64-Bit version of Photoshop Elements." how do i do this
Try downloading the trial. It ought to detect that you have a 64-bit system.
You aren't using Vista, are you? PSE 13 requires at least win 7 and I think a few folks with vista have gotten a similar error message on trying to install it. -
Unable to install photoshop elements 13 on new computer (Windows 8.1 OS). Error message is: This installer does not support installation on a 64-Bit windows operating system. Please download the 64-Bit version of photoshop elements. How do I do this?
You can download the trial version of the software thru the page linked below and then use your current serial number to activate it.
Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html -
i am unable to install photoshop elements13 due to an error. it shows no error code but does say - This installer does not support installation on a 64-Bit Windows operating system. Please download the 64-Bit version of Photoshop Elements.
download the 64bit installer,
Downloads available:
Suites and Programs: CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
Acrobat: XI, X | 9,8 | 9 standard
Premiere Elements: 13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
Photoshop Elements: 13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
Lightroom: 5.7| 5 | 4 | 3
Captivate: 8 | 7 | 6 | 5
Contribute: CS5 | CS4, CS3
Download and installation help for Adobe links
Download and installation help for Prodesigntools links are listed on most linked pages. They are critical; especially steps 1, 2 and 3. If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'. -
i want to know the operating system statistics like operating system name with version,memory,Number of CPU's etc.. from SQL * plus.
Is there any view avaliable to get this information.My database version is 9.2.0.5.0.
Thankx in Advance..Hi,
you can use SELECT * FROM SYS.AUX_STATS$ to select the CBO System statistics, but there won't be anything about sqlplus version, number of CPUs, Memory etc etc.
Use the OS funktions to do that - that's what there are for.
Dim -
what to do?
anorman9
What version of Premiere Elements and on what computer operating system?
Can we assume Premiere Elements 13 on Windows 7, 8, or 8.1 64 bit and that you are dealing with purchased installation files instead of tryout?
In either case, it might be easier for you to consider the download of the Premiere Elements 13 tryout from the following web site, where it might be easier to pin point the files that you need for your specific computer environment, that is, 32 bit installation files for 32 bit operating system and 64 bit installation files for 64 bit operating system. . If you are dealing with purchased software and serial number, during installation of the tryout files you insert your purchased serial number into these installation files. And, remember, you need 2 files for the process...one with a .exe file extension and one with a .7z file extension
So, please review and consider the following
http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html
To avoid an Access Denied message, please follow carefully the web site's "Note: Very Important Instructions".
Please let us know if any questions or need clarification.
Thank you.
ATR -
How do I get features to show up in General Settings like iCloud and FaceTime and Location services to show up for Siri?
SADLY not as i downloaded an upgrad to my original PAGES/
i have in the meantim had to open www.icloud. then from there import the file that i am working on and then check on ipad if it uploaded/ yes it did.
but what a waste of time as it doesn not save any changes done automatically back in the cloud....
i am now downloading the new LION and hope that it will fix the problem
i cant find any other way. I was lead to believe that you wrote, it saved automatically, on to the cloud, you then opened anohter device in anotother country even, and the new file was there, waiting, in its latest version.......
and the same magic was supposed to happen in reverse.
It doesn't/
if i have to open a browser, go to www.icloud....why on earth did they not just leave us an icon to drop it in in that case?
I hope the new lion will help resolve the isssue/
any other ideas> keep em coming...thank you so much. -
Does time machine back up operating system as well as files?
i was told that if i did a time machine back up then i could boot from it and even restore it onto a mac with no os. is this true? if so how do i do it?
Yes, it's true. But a Time Machine backup in Snow Leopard is not bootable. It must be reinstalled from an installer DVD.
Only Time Machine backups made using Mountain Lion can be booted from the backup drive itself. In Mountain Lion Time Machine actually puts a copy of the Recovery HD onto the Time Machine backup drive. -
I need help with downloading photoshop elements 13
Moved to Photoshop Elements Forum http://forums.adobe.com/community/photoshop_elements
Select a topic, then click I STILL NEED HELP to activate Photoshop Elements Online chat
-http://helpx.adobe.com/contact.html?product=photoshop-elements or
http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-installation-photoshop-elements- premiere.html -
I forgot to mention that there is a grey screen on startup also a flashing folder with a question mark. I have tried the solutions offered on these forum pages. I cannot get past the disk utility screen.
Regarding the DVD in the optical drive:
Credit Kappy.
kevsgroove wrote:
I forgot to mention that there is a grey screen on startup also a flashing folder with a question mark. I have tried the solutions offered on these forum pages. I cannot get past the disk utility screen.
The MBP cannot find the OSX, and either the HDD or connector has failed. If you can get the installation DVD to work, start the installation process and when the menu bar appears on the display, select 'Utilities'. From the drop down menu, select Disk Utility>First Aid and run 'Verify' and 'Repair'. If unsuccessful, a new HDD is in your future.
If you cannot get the DVD to function, then a trip to an Apple store is your best option.
Ciao. -
Hi All,
We are trying to execute coded UI scripts without Visual Studio installed. We are using “Visual Studio Test Agent 2010” for executing coded UI scripts without VS2010 in Windows 7, it is working fine. Also we verified executing the same script with VS2010
Premium, it works fine as well.
Here the challenge we are facing is with the Test execution time.
When we run the coded UI script with IE11-Windows 7 OS-Visual Studio 2010 Premium it takes
3min 36sec to complete the execution whereas with IE11-Windows 7 OS-Visual Studio Test Agent 2010 it takes
6min 40sec for the same script to execute (which is almost double the time it takes while executing using VS2010).
My question is what may be the reason for this difference? and how we can reduce the test execution time when running from Test Agent 2010?
Kindly let us know what is the best practice to execute the coded UI scripts with least test execution time in Windows 7 Operating system using Visual Studio Test Agent 2010 without VS2010
installed.
Looking forward for your positive response.
Thanks in advance..!!Tina-Shi, Thanks for the information.
As you mentioned, we tried to execute the coded UI test using Mstest.exe in command on VS2010 Premium and checked on the execution
time, there was a slight difference.
Please find below execution time.
Using Mstest.exe in command on VS2010 Premium/Win7 – 3.47 minutes
Using VS2010 Premium/Win7 – 3.53 minutes
Using Test Agent/Win7 – 7.3 minutes
Also, I closed all the other processes in Task manager before starting up the execution.
Still , I am facing the same Issue. Could you please suggest any other way to reduce the scripting time of coded UI script execution
through Test agent 2010.
Looking forward for your earliest response. -
Laptop states ' please install an operating system on your hard disk
Unable to log into my laptop as there is a system error and it advised that i must visit this site
Hello , Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums, I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More. I understand that you are having an issue with logging into your notebook, and wanted to assist you! From the information provided in your title, it seems that you may have to do a System Recovery and reinstall the Operating System. Please review the following documents to assist you with this:HP PCs - Error Messages Display on a Blue Screen during Startup or Boot (Windows 10, 8, 7)HP PCs - Performing an HP system recovery (Windows 8) Please let me know if this information was helpful by clicking the thumbs up below.
Have a great day! -
Time Capsule and operating system backup
I recently purchased a MacBook Pro and the timecapsule for backups. My question is does the Time Capsule backup the operating system as well as files. I understood that it did but when I did my first backup it only took an hour. I have many songs and lots of photos on my hard drive.
I worry that it didn't complete the backup.
Any thoughts or sugestions?Yes. Time Machine, which is the software that the Time Capsule hardware uses, should backup everything.
Allan -
Report taking more time to format in PDF
Dear All
I have developed report in oracle reports bulider 10g. while running it from report builder data is coming very fast.
But, If it is running from parameter form it is taking too much time to format report in PDF.
Please suggest any configuration or setting if anybody is having Idea.
ThanksHi,
Please rebuild the statistics of the ODS.
Also check the various options available below:
ODS Performance
-Vikram
Maybe you are looking for
-
Strange timestamp-format in Dynamic Configuration
Hi all, In the Dynamic Configuration Section I can retrieve the name and timestamp of the inputfile I use. But the timestamp is in a format I don't quite understand. For instance, the last changedate of the inputfile is 24-06-2008, 10:58. In the Dyna
-
Playlists with folders - doesn't work
Brandnew iPod 30 GB, 5.5 Do have playlists with folders on iTunes 7.0.2. Folders don't appear on the iPod. Only the files in the folders. So i get a long long list of playlists on the iPod. Instead of a list with several folders in it for better over
-
Subtotal in Financial Reporting 9.3.1
Hi, Can I, with Financial Reporting 9.3.1, group a range of data and sum these values? For example, I have a dimension, "Area", with a member "Region" and below "Region 1", "Region 2" -. Every Region has children and in same case one or more children
-
Dear all, I have transported request from QA to Prod , but its still running ... Kindly advise
-
[SOLVED]Systemd and Crashplan service failed.
Hello, Crashplan service won't start. systemctl status crashplan.service crashplan.service - CrashPlan Backup Engine Loaded: loaded (/usr/lib/systemd/system/crashplan.service; enabled) Active: failed (Result: exit-code) since Wed, 17 Oct 2012 11:21:3