Urgt:How to identify TOP 5 SQL using more CPU time without using statspack
How to identify the TOP 5 SQL queries which are consuming more CPU time during the timespan of 24 hours for entire database. There are N number of users who have issued sql queries, out of which few users have disconnected and few user are still connected to the database(I need to consider all sessions). My database version is 9.0.1. I don't want to use statspack. Is there any way to identify TOP 5 SQL consuming more CPU time without affecting the performance of the database. Can any one help me on this? Its urgent!!. I don't want to use statspack becasue it degrades the performance and i cannot afford to run it for 24 hours.
You don't run statspack for 24 hours, that would infact be pointless...
Run statspack for say a 10 or 15 minute window during a particular "busy" period on your database. If you run it for longer then all the useful data will have been "averaged out". You want a snapshot in time, not an average over the day.
Similar Messages
-
How to identify TOP 5 SQL consuming more CPU time without using statspack
How to identify the TOP 5 SQL queries which are consuming more CPU time during the timespan of 24 hours for entire database. There are N number of users who have issued sql queries, out of which few users have disconnected and few user are still connected to the database(I need to consider all sessions). My database version is 9.0.1. I don't want to use statspack. Is there any way to identify TOP 5 SQL consuming more CPU time without affecting the performance of the database. Can any one help me on this? Its urgent!!.
My database version is 9.0.1. I don't want
to use statspack. Is there any way to identify TOP 5
SQL consuming more CPU time without affecting the
performance of the database. Can any one help me on
this? Its urgent!!.I cant understand why you dont want to use statspack. As it is very easy to use and very quick to identify bottlenecks. Try using statspack. Its really wonderful.
Particularly in your case statspack is the best.
Regards,
Sanju. -
How to Set Distinct SQL Clause on View Object without using Expert Mode.
Hi to all Actually i have a View Object usign 3 entities
if i use expert mode in my VO, it generate
QRSLT WHERE
instruction and force to include all columns on my dynamic where clause on select statement i can't include columns because get me duplicate rows
How i can include disctinct clause without usign expert mode or any other solution?
Note that in normal mode without expert mode QRSLT WHERE is not generate and all work fine
For example
select * ( select id , name from table) QRSLT WHERE loc = ..
if i use expert mode it generate QRSLT WHERE and if loc is not predicated colums get me and error :
( ORA-00904: invalid identifier )
in simple mode of View Object all work fine..
Any suggestion on It will be appreciate.....
TnxMy problem is that when use expert mode
it's change simple select statement for a select that use
select * from (select column....)
qrslt WHERE (column=somevalue)
this kind of select force me to include all where conditions of qrslt on my select columns and this get duplicate rows
thats beacuse i need include distinct without use expert mode
Anny Help on this? -
How to get top SQLs in a time period
HI, How can identify top SQL over a period of 1-month. Top SQL tab only displays top SQLs in last 24 hours in grid control.
NeerajAWR is your answer. Find the snapshots from Month old to current or what ever time you want and create a preserved snapshot set. and then create a report.
That will give you the top 10 sql with in that range.
AWR can be found under Adminstration tab.
Naren -
How to find top 10 SQL statments which are consuming more cpu time.
hi all,
Is there any command or script to monitor the top 10 sql statments which are consuming more cpu time.
I know by using AWR REPORT we can find it, i want the command or script to find the top cpu utilization sql statments.
Regards
Subhash.Subhash,
A quick and dirty Google search could have get you started with the following:
Thread: how to get top CPU consuming sql oracle 10g
Re: how to get top CPU consuming sql oracle 10g
Oracle SQL top sessions
http://www.dba-oracle.com/oracle10g_tuning/t_sql_top_sessions.htm
"How to Find top 10 expensive sql's", version 9.2.0
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:73325450402303
HTH,
Thierry -
How to find which query taking more cpu
Hi,
How to find which query taking more CPU
at a particular point of time .
Chhers,Take a look at Server Standard Reports. It has a few CPU usage oriented reports.
You can also track CPU usage by server-side tracing:
http://www.sqlusa.com/bestpractices/createtrace/
Glenn Berry's CPU usage query:
SELECT TOP(25) p.name AS [SP Name], qs.total_worker_time AS [TotalWorkerTime],
qs.total_worker_time/qs.execution_count AS [AvgWorkerTime], qs.execution_count,
ISNULL(qs.execution_count/DATEDIFF(Second, qs.cached_time, GETDATE()), 0) AS [Calls/Second],
qs.total_elapsed_time, qs.total_elapsed_time/qs.execution_count
AS [avg_elapsed_time], qs.cached_time
FROM sys.procedures AS p WITH (NOLOCK)
INNER JOIN sys.dm_exec_procedure_stats AS qs WITH (NOLOCK)
ON p.[object_id] = qs.[object_id]
WHERE qs.database_id = DB_ID()
ORDER BY qs.total_worker_time DESC OPTION (RECOMPILE);
LINK:
http://dba.stackexchange.com/questions/52216/sql-server-2008-high-cpu-historical-queries
Query optimization:
http://www.sqlusa.com/articles/query-optimization/
Kalman Toth Database & OLAP Architect
SELECT Video Tutorials 4 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
RMAN parameters - to use more CPU for Backup & Restore
Hi Friends,
I am using RMAN backup on 11g database on windows.
RMAN is taking almost 1 hr to restore the database and i could see the CPU usage is very less - less than 10% during restore.
so how can i make the RMAN backup and restore faster by using more CPU on windows.
Regards,
DB839396 wrote:
Hi Friends,
I am using RMAN backup on 11g database on windows.
RMAN is taking almost 1 hr to restore the database and i could see the CPU usage is very less - less than 10% during restore.
so how can i make the RMAN backup and restore faster by using more CPU on windows.Where is your bottleneck? ... On Storage? If yes, your CPU available are useless during backup/restore operation.
Even better, check the wait events in your database and you'll know why the backup / restore is not as expected.
See this example:
http://levipereira.wordpress.com/2012/08/09/what-is-slow-rman-or-media-management-library/
Regards,
Levi Pereira -
How can I use table headers only without using rows.
how can I use table headers only, without using rows and without leaving the space.
If anyone could say me how to paste the pic in this questions, I would have shown it.
The flow of view is in this way
{Table header(table on top of table)
column header1___|| column header2__ || column header3__ ||}
<b>Here is the blank space I am getting, How to avoid this space?this space is of one table row height</b>
{Contents column1 || Contents column2 || Contents column3 || (This is of other table below the uper table)}
I am using scroll for the content part of table only.
So I am using two tables.
I am using NW04.I did the possibles you explained, but couldn't get rid off the space.
Any other solutions?
I am keeping the header static and the content columns scrollable.
I have used two tables one to display header above and the other to display only the contents.
I have put the contents table in scroll container.
And the header table in transperent container.
Thanks and Regards,
Hanif Kukkalli -
I downloaded and paid for an app on my ipad, how can I get it free on my iphone without using itunes as my laytop is broken. I cannot seem to find the purchase tab in app store? I am logged in using the same ID
First, the app must be universal...designed for both iPhone/iPad:
Tap App Store.
Make sure you're signed in with the same Apple ID used for the original purchase.
Tap Updates.
Tap Purchased on the resulting screen.
Locate the app in your Purchased tab.
Tap the download icon.
The app will begin downloading and you'll be taken back to your home screen. -
How do I set up my new Macbook Pro without using the annoying Voiceover?
How do I set up my new MacBook Pro without using the annoying Voiceover? I cannot get it to work right; it seems to get stuck and repeats the same thing over and over. It is driving me nuts! Is there a way to begin the setup process without using the Voiceover system? I am a new convert from a PC and I thought a Mac was supposed to be "intuitive!"
Any help is appreciated.
Thanks.
PamelaThere is no good reason to register your Mac anyway.
You can opt out of the setup process and registration by pressing Command (Apple key) and the "Q" key.
The registration process requires you to divulge a lot of unnecessary information. -
How to restart the mac like the first time you use it?
how to restart the mac like the first time you use it?
Surefire way is by completely reinstalling the OS after erasing the Macintosh HD boot volume.
I think there's a way to coerce the Setup Assistant to run once again like on First Start, but requires erasing a couple of files in the drive. Don't know which ones right now. -
How can i send an sms to any mobile without using gsm modem or mobile using
how can i send an sms to any mobile without using gsm modem or mobile using oracle . note again. without using gsm mobile or modem. again note. i want to send sms 100% free sms. :) is it posible ?
Hi,
Check this one.
http://www.oracle.com/technology/products/ias/portal/point/sms/installation.html
regards,
Dipankar. -
How do i unlock my ipad2 (it is disabled) without using itunes
how do I unlock my ipad2 (it is disabled) without using itunes
You can't.
Take it to an Apple Store as an alternative. Be sure to carry proof that it is indeed yours and not pilfered from someone. -
How to invoke the app by touching the screen (without using the home button)
Kindly provide the solutions for the following issues
1. How to invoke the app by touching the screen (without using the home button)
2. Estimated lifespan running an iPad3 continuously 24x7
awaiting for your valuable response.
Thanks and regards,
Sathya.1. You can only invoke an app by touching its icon.
2. All depends on what your app does. -
Hi friends, How to send any data (even binary) through XI, without using
1) How to send any data (even binary) through XI, without using the Integration Repository .?
hi ganga,
Yes;
1. we can test adapters very easily and quickly without any IR development.
2. we can send any formatted data without having to convert it to XML and back again, e.g. file->XI->file.
3. we can send any document from 1 sender to multiple receivers using XI to guarantee delivery.
/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
the process integration layer of the NetWeaver define/reuse interface objects for the SAP Integration Repository. These objects include Business Scenarios, Business Processes, Message Interfaces, Message Types, Data Types, Message Mappings, and Interface Mappings. The application developer refers to these objects in defining the interactive flow between applications for the SAP Integration Directory.
regards,
nikhil
Maybe you are looking for
-
How can I transfer calendars from my iPhone to ical on my Macbook?
Hi, Does anyone know if there is a way to transfer calendars which appear in ical on my iPhone to ical on my Macbook? There doesn't seem to be an option for this in iTunes or iCal. I have a Macbook with 10.5.8 OSX, and I have icloud installed on my i
-
Financial Supplier Statement in Discoverer.
Dear All i have Supplier statement report with all Debits & credits in Oracle Discoverer. Now i need to find the Balance of Supplier. Please guide me how to find the Balance from Debits and Credits. Give me Formula. Regards
-
Hey... When I attempt to resize photos in Preview... sometimes it works, but more often it doesn't. I can try to save the image after the resize, or I've tried closing the image and forcing the Preview Save dlg box... either way... sometimes it works
-
Quicken 2007 crashes. EXC_BAD_ACCESS (SIGSEGV)
I am using Quicken 2007 (have been for many years). For some reason, suddently one of my quicken files crashes all the time at exit and appears to be corrupt. I have worked with Intuit support and have exhausted all their recommendations. I have rest
-
Hi All, in table control 6 records are coming. if i change the 5th,6th... row so how to get that position which i have changed. Ex.. SR. Matnr QTY. 1 NMSHH01001DENDESS