- 196.8K All Categories
- 2.2K Data
- 238 Big Data Appliance
- 1.9K Data Science
- 450.2K Databases
- 221.7K General Database Discussions
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 544 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.8K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.5K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 154 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 436 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Delayed execution of dbms_job.submit in Oracle 12c
Database Version: 184.108.40.206.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.