Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle stop job

-- To simply stop job without killing session:
BEGIN
    DBMS_SCHEDULER.STOP_JOB(JOB_NAME => 'scheme.job_name', FORCE => TRUE);
END;
-- Killing job's session: first get Job session IDs
SELECT jr.JOB, s.USERNAME, s.SID, s.SERIAL#, p.SPID, s.LOCKWAIT, s.LOGON_TIME
FROM DBA_JOBS_RUNNING jr, V$SESSION s, V$PROCESS p
WHERE jr.SID = s.SID AND s.PADDR = p.ADDR
ORDER BY jr.JOB;
-- Kill session with IDs and wait for rollback if any...
ALTER SYSTEM KILL SESSION 'SID,SERIAL#' IMMEDIATE;
Comment

PREVIOUS NEXT
Code Example
Sql :: how to rename table in sql 
Sql :: postgresql search all tables for column name 
Sql :: mysql remove unique constraint 
Sql :: start mysql server 
Sql :: status mysql 
Sql :: postgres change column type string to integer 
Sql :: adding a default constraint to an existing column in sql 
Sql :: add super privilege mysql 
Sql :: oracle compile whole schema 
Sql :: how to update an attribute in MySQL 
Sql :: install mysqldump ubuntu 
Sql :: find column name in database 
Sql :: update mysql centos 
Sql :: install mysql powershell 
Sql :: mysql date diff in seconds 
Sql :: postgresql format date dd/mm/yyyy 
Sql :: sqlite show columns in table 
Sql :: postgres remove foreign key constraint 
Sql :: dao function to check if database contains value 
Sql :: copy from folders in sql server 
Sql :: setVal pgsql 
Sql :: how to check even or odd in sql 
Sql :: apex select list ORA-20999 
Sql :: moodle query first user access 
Sql :: list index mysql cli 
Sql :: sql sort column by date 
Sql :: oracle alter table add not null constraint 
Sql :: select from array in psql 
Sql :: clear screen command in psql 
Sql :: get first 3 letters name in sql 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =