Search
 
SCRIPT & CODE EXAMPLE
 

SQL

dbms_scheduler drop_job

BEGIN
  dbms_scheduler.drop_job(job_name => 'MY_OWNER.MY_JOB');
END;
Comment

dbms_scheduler 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 :: rename table postgres 
Sql :: mysql history command 
Sql :: select password from user mysql 
Sql :: oracle sql first day of month 
Sql :: ubuntu stop mysql from starting on boot 
Sql :: postgresql convert text to float 
Sql :: import database in mysql command line xampp 
Sql :: postgres delete database 
Sql :: athena query timestamp greater than 
Sql :: file /etc/init.d/mysql not exists 
Sql :: MySql get fields of table 
Sql :: sql eliminare un record 
Sql :: oracle extract minute from date 
Sql :: drop db syntax 
Sql :: django sqlite database 
Sql :: postgresql create table with index 
Sql :: sqlite print all column names 
Sql :: sql reset auto increment 
Sql :: yii2 mysql ping 
Sql :: change default maximum runtime mariadb from phpmyadmin 
Sql :: foreign key oracle 
Sql :: add primary key to existing table sql 
Sql :: sql set no lmit 
Sql :: mysql insert generate serie 
Sql :: substr sql last character 
Sql :: how to get the ddl for datafile in oracle tablespace 
Sql :: ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 
Sql :: v$session not found in oracle 
Sql :: sql remove non numeric characters 
Sql :: get first 3 letter of department name in sql 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =