Categoria: Oracle Error Messages

Come risolvere ORA-04021: timeout occurred while waiting to lock object

La compilazione di un oggetto può dare il seguente errore selects.sid, s.serial#, p.spid,s.username,s.osuser,s.program,s.terminal,s.module, s.action, p.tracefile, s.type, s.logon_time, s.state, s.wait_time, s.seconds_in_wait, s.service_namefromv$session s,v$process pwhere s.paddr = p.addr ;Quire the process to find the session that still runningselecta.object,a.type,b.sid,b.serial#,s.inst_id,b.username,b.osuser,b.program,s.status, s.sql_exec_startfrom v$access a, v$session b, gv$session swhere a.sid = b.sidand a.owner = DECODE(UPPER(‘&1’), ‘ALL’, a.object, upper(‘&1’))and a.object = DECODE(UPPER(‘&2’), ‘ALL’, a.object, upper(‘&2’))and b.sid = s.sidand b.serial# = s.serial# AND s.status = ‘ACTIVE’order by a.object , sql_exec_start nulls last ;trova il processo sid (psid) : ps –ef | grep psidtrova ogni sotto processo :in questo caso non ci sono sotto processi.Areesta la sessione sul db...