- 382.3K All Categories
- 2.1K Data
- 209 Big Data Appliance
- 1.9K Data Science
- 448K Databases
- 221K General Database Discussions
- 25 Multilingual Engine
- 520 MySQL Community Space
- 467 NoSQL Database
- 7.8K Oracle Database Express Edition (XE)
- 2.9K ORDS, SODA & JSON in the Database
- 492 SQLcl
- 3.9K SQL Developer Data Modeler
- 186.2K SQL & PL/SQL
- 21K SQL Developer
- 293.3K Development
- 7 Developer Projects
- 128 Programming Languages
- 290K Development Tools
- 95 DevOps
- 3K QA/Testing
- 645.5K Java
- 24 Java Learning Subscription
- 36.9K Database Connectivity
- 150 Java Community Process
- 104 Java 25
- 22.1K Java APIs
- 137.9K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 16 Java Essentials
- 144 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 198 Java User Groups
- 267 LiveLabs
- 36 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.8K Other Languages
- 2.3K Chinese
- 166 Deutsche Oracle Community
- 1.2K Español
- 1.9K Japanese
- 230 Portuguese
Delayed execution of dbms_job.submit in Oracle 12c
Database Version: 22.214.171.124.0
Recently the database was migrated from 9i to 12c.
We have the below problem with respect to dbms_job.
I know if we use dbms_scheduler we will overcome these problems, but unfortunately there are more than 500 forms which uses dbms_job to submit the jobs. so we can't change the working code.
DECLARE l_job NUMBER; BEGIN DBMS_JOB.SUBMIT(l_job,'BEGIN arunjobtest; END;',sysdate); dbms_output.put_line('l_job '||l_job); commit; END;
When we submit the job using above script, job runs only after 20 seconds or so.(Sometimes 20 seconds, sometimes 15 seconds).
Similarly I can see the job in dba_running_jobs only after 20 seconds. In 9i database we didn't had this problem. Whenever we submit a job it runs immediately without any delay and dba_running_jobs used to populate immediately after submission. We use dba_running_jobs to monitor jobs via Oracle forms.
Please find the below values at the time of running jobs.
select value from v$parameter where name='sessions';--480
select count(*) from v$session ;--106
job_queue_processes integer 1000
Also i'm wondering whether any hidden parameter to be set for running the jobs immediately.
When i use below code, i'm able to see the jobs immediately in the dba_running_jobs and jobs are running immediately. As dbms_job.run is not asynchronous, I don't want to use the below code.
DECLARE l_job NUMBER; BEGIN DBMS_JOB.SUBMIT(l_job,'BEGIN arunjobtest; END;',sysdate); dbms_output.put_line('l_job '||l_job); commit; dbms_job.run(l_job); commit; END;
Kindly request you to help in this regards.