Operating System - HP-UX
1752803 Members
5595 Online
108789 Solutions
New Discussion юеВ

Re: problem with oracle processes taking all cpu

 
SOLVED
Go to solution
Uffe Gavnholt_1
Honored Contributor

problem with oracle processes taking all cpu

Hi All,

I'm having problems with a HP-UX server running oracle db for openview.

When OpenView is startet processes called oracleopenview take all available CPU, stalling the system.

Do anyone have some tips to get me started on investigating the cause of this?

Best regards

Uffe Gavnholt
3 REPLIES 3
Eric Antunes
Honored Contributor
Solution

Re: problem with oracle processes taking all cpu

Hi Uffe,

Use the following query to know what is the Oracle process doing:

select distinct s.sid, s.serial#, s.process client_pid, p.spid server_pid, p.pid oracle_pid
, nvl( s.action, nvl( s.username, substr( s.program, instr( s.program, '(') ))) username_or_action
, s.schemaname, s.osuser, s.status, s.lockwait, s.program, s.machine
, si.consistent_gets, si.physical_reads, q.module, q.sql_text
, s.row_wait_obj#, s.row_wait_file#, s.row_wait_block#, s.row_wait_row#
, round( ss.value) , sn.name
from v$sess_io si, v$session s, v$process p, v$sql q, v$sesstat ss, v$statname sn
where si.sid (+) = s.sid
and p.addr (+) = s.paddr
and q.hash_value = s.sql_hash_value
and q.address = s.sql_address
and ss.sid = s.sid
and nvl( ss.value, 0) != :p_0
and sn.statistic# (+) = ss.statistic#
-- Non-idle:
and sn.name not like '%'||:p_time||'%'
and sn.name not like '%'||:p_sent||'%'
and sn.name not like '%'||:p_pinned||'%'
and sn.name not like '%'||:p_sql||'%'
/*** Filter: ***/
and sn.name like '%CPU%'
/***************/
order by round( ss.value) desc

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
Uffe Gavnholt_1
Honored Contributor

Re: problem with oracle processes taking all cpu

Hi Eric, I owe you a beer

:)
Eric Antunes
Honored Contributor

Re: problem with oracle processes taking all cpu

Hi Uffe,

You are welcome to ship me some Tuborg's :-)

Eric
Each and every day is a good day to learn.