Kill the running job ora_j001 in oracle

Kill the running job ora_j001 in oracle on Windows,Unix,Linux

Some time in real environment we need to kill the oracle jobs running on background by oracle process. We need to kill the Oracle running jobs by finding out its process id running on OS.

Following are the steps help out to kill the running job by oracle scheduler:

1. Check the SID from the database:

select * from DBA_JOBS_RUNNING;

2. Get the sid and serial# for kill the session;

select p.spid, s.sid, s.serial#, s.username, s.status, s.last_call_et, p.program, p.terminal, logon_time, module, s.osuser from V$process p,V$session s where s.paddr = p.addr and s.sid = '249';

3. Kill the session:

alter system kill session 'sid,serial#' immediate;
OR
Kill the process from OS
kill -9
On window : open cmd.exe
orakill oracle_sid

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s