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 :: postgresql create table default value timestamp 
Sql :: insert column after column mysql 
Sql :: oracle see column type 
Sql :: select all fields in soql 
Sql :: oracle get table schema 
Sql :: get role postgres 
Sql :: wait delay in sql server 
Sql :: mysql find tables with name 
Sql :: finding last created table mysql 
Sql :: mysql force query to use index 
Sql :: get tables in database sql 
Sql :: oracle enable job 
Sql :: neo4j display all nodes and relationships 
Sql :: Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates. Input Format The STATION table is described as follows: 
Sql :: update password postgres user 
Sql :: install mysql on mac 
Sql :: find string in stored procedure sql server 
Sql :: how to check username in mysql command line 
Sql :: wordpress change url in database 
Sql :: delete database mysql 
Sql :: sql skip the first row 
Sql :: create schema sql server 
Sql :: add column table sql default value 
Sql :: search for tables with name postgresql 
Sql :: sqlite insert row 
Sql :: python mysql select 
Sql :: oracle reset sequence 
Sql :: oracle list invalid password logon denied 
Sql :: sql sum if 
Sql :: zerar auto increment mysql 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =