Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Auszug
hiddentrue

Identify and stop an Oracle process with permanent CPU load: show active sessions, kill the session and remove the root cause.

globe with meridians Language: Deutsch · English

hammer and wrench Stop a high-CPU Oracle process

When an Oracle background process pins the CPU: detect it, kill the session and prevent it from returning.

Status
colourPurple
titleHow-to
Status
colourBlue
titleOperations
Status
colourGreen
titleUpdated: Jul 2026
Status
colourGrey
titleapplies to Nuclos 4.2026.x

Panel
bgColor#F4F5F7

On this page

Inhalt
maxLevel2
minLevel2
Hinweis
titleContext

These steps come from maintaining the old development VM and are very Oracle-specific. Use with care on production systems.

1. Show active processes

Codeblock
languagesql
SELECT s.username, s.sid, s.osuser, t.sql_id, sql_text
FROM v$sqltext_with_newlines t, v$session s
WHERE t.address = s.sql_address AND t.hash_value = s.sql_hash_value
  AND s.status = 'ACTIVE' AND s.username <> 'SYSTEM';

2. Get session data

Codeblock
languagesql
SELECT inst_id, sid, serial# FROM gv$session WHERE sid = 133;

3. Kill the session

Codeblock
languagesql
ALTER SYSTEM KILL SESSION '133,9,@1';

To prevent recurrence, remove the root cause (e.g. a problematic materialized view).

Related pages

file cabinet Oracle SQLPlus tools (DE)


More SQLPlus queries.

Open →