- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Top resource consuming queries in Oracle
Operating System - HP-UX
1820390
Members
3407
Online
109623
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2002 12:14 AM
тАО03-08-2002 12:14 AM
Top resource consuming queries in Oracle
Hello gurus,
I need some help from Oracle experts.
I want to identify the top resource consuming SQL queries running in the database using SQL.
Is it possible? If so how?
Any help is highly appreciated in this regard.
Oracle version is : 8i
bye,
Raghu.
I need some help from Oracle experts.
I want to identify the top resource consuming SQL queries running in the database using SQL.
Is it possible? If so how?
Any help is highly appreciated in this regard.
Oracle version is : 8i
bye,
Raghu.
Unix is not for those who donot love Unix!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2002 03:20 AM
тАО03-08-2002 03:20 AM
Re: Top resource consuming queries in Oracle
I suggest taking a look at Oracle Enterprise Manager's tuning pack which has some excellent tools for diagnosing this sort of thing.
Otherwise, the following query can give a good idea of what the sessions are doing and how much cpu they have consumed:
select ss.sid,se.command,ss.value cpu ,se.username,se.program
from v$sesstat ss, v$session se
where ss.statistic# in
(select statistic#
from v$statname
where name = 'CPU used by this session')
and se.sid=ss.sid
and ss.sid>6
order by ss.sid
The V$SQLAREA view can also be a good place to look as it keeps statistics on the queries such as the number of rows processed and the number of disk reads.
Regards,
Steve
Otherwise, the following query can give a good idea of what the sessions are doing and how much cpu they have consumed:
select ss.sid,se.command,ss.value cpu ,se.username,se.program
from v$sesstat ss, v$session se
where ss.statistic# in
(select statistic#
from v$statname
where name = 'CPU used by this session')
and se.sid=ss.sid
and ss.sid>6
order by ss.sid
The V$SQLAREA view can also be a good place to look as it keeps statistics on the queries such as the number of rows processed and the number of disk reads.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2002 07:42 AM
тАО03-08-2002 07:42 AM
Re: Top resource consuming queries in Oracle
The tuning pack with Enterprise manager has Oracle SQL analyze. You can show the top n sql statements using a variety of criteria such as disk reads per execution, cpu use per execution etc. This will certainly identify statements using the most resources. It will also tell you how many executions for each statement. The statements that are executed many times give the best opportunities. The hard part is to know where those statements come from and which ones you can do anything about. If you are running oracle apps, much of your sql is not tunable. If you can identify your company's custom code - that can be tuned. It would be useful to first use a tool like Glance to determine your primary resource bottleneck, so that you can apply your efforts there for maximum effect.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP