- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle performance issue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО10-27-2003 07:45 PM
тАО10-27-2003 07:45 PM
I have HP-UX 11.11 machine with oracle 8.1.6 installed.
When I checked the cpu usage with top, one process was very high cpu usage and it seems this process is a bottleneck.
oracle 28834 1 19 11:07:16 ? 0:00 oracleORACLE_SID (DESCRIPTION=(LOCAL=yes)(ADDRESS=(PROTOCOL=BEQ))
It seems this process is launched when user is connected.
I saw only one process and this process was using cpu almost 100% but only one cpu because this is only one process.
Our machine has 4 cpus and it looks like other cpu power is wasted.
No oracle background process was busy at all.
Is there any way to launch multiple processes per user or reduce cpu usage of this process like changing parameters?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 07:50 PM
тАО10-27-2003 07:50 PM
Re: Oracle performance issue
Seems that the SQL query for this process needs to be checked.
From system side, you can control max process, system wide processes.
KErnel para. nproc
maxuprc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 07:53 PM
тАО10-27-2003 07:53 PM
Re: Oracle performance issue
If we find these processes running for long periods we simply kill them.
You can use PRM (Process Resource Manager) to limit cpu usage per process/app - this allows you to set a limit for user processes so if they do runaway like this they wont consume all available cpu on the server, but this is a purchaseable product.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 08:34 PM
тАО10-27-2003 08:34 PM
Re: Oracle performance issue
-
Running this SQL statement should enable you locate the user doing the query, program, etc...
--------------------------------------------
select b.sid SID,b.serial# "Serial#", c.spid "srvPID", b.osuser, b.username
, b.status, b.client_info from v$session b, v$process c where b.paddr = c.addr
and c.sPID = '&SPID'
--------------------------------------------
e.g. As an input to the above SQL, the SPID, as in your case above, would be 28834
-
It would be preferable that you tune your application first...
-
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 02:15 AM
тАО10-28-2003 02:15 AM
SolutionIn order to use more than 1 cpu for oracle slave processing from a single user query you will need: "Oracle Parallel Query"(formerly Oracle Parallel Query Option or PQO) allows one to break-up a given SQL statement so that its parts can run simultaneously on different processors
in a multi-processor machine. Typical operations that can run in parallel are: full table scans, sorts, sub-queries, data loading etc.
Parallel Query can improve performance of certain types of operations dramatically and is commonly used in Decision Support and Data Warehousing applications.
Google for "Oracle Parallel Query" and /or " +oracle +degree".
I concur with the others that you first need to undertand what the heavy query is doing.
Get a trace, use statspack, whatever tickles you best.
Personally i tend to use little scripts like the one below.
Good luck,
Hein.
[change the 1000000 to a number fitting with your usage. Maybe look for cpu_time]
set pages 9999
select buffer_gets, executions, cpu_time
from v$sql where BUFFER_GETS >1000000
order by BUFFER_GETS;
or when I need the full text...
select t.sql_text
from v$sql s, v$sqltext t
where BUFFER_GETS > 1000000
and t.hash_value = s.hash_value
order by t.hash_value, piece;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 02:38 AM
тАО10-28-2003 02:38 AM
Re: Oracle performance issue
A good read, and I know the guy, he's brilliant.
http://www2.itrc.hp.com/service/cki/search.do?category=c0&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&searchString=UPERFKBAN00000726&search.y=8&search.x=28&mode=id&admit=-1335382922+1067355421585+28353475&searchCrit=allwords
Introduction to Performance Tuning
DocId: UPERFKBAN00000726 Updated: 20031008
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 05:12 AM
тАО10-28-2003 05:12 AM
Re: Oracle performance issue
As yogeeraj pointed out, first look into sql and see if you could tune it. But if they are number crunching sqls(from batch jobs) or well tuned, then look into parallel execution where you can make use of available 4cpus to execute the query much quicker. If not familiar with parallel execution, then look into parallel_automatic_tuning parameter.
-
Stan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 05:15 AM
тАО10-28-2003 05:15 AM
Re: Oracle performance issue
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 07:17 PM
тАО10-28-2003 07:17 PM
Re: Oracle performance issue
I think the solution of this is parallel query.
I tested parallel query and it spreaded on several cpus but didn't improve the performance. I don't know why but I'll check what SQL is causing this problem anyway.