troubleshooting Question

Dbms_job.change procedure

Avatar of Sid Khanna
Sid Khanna asked on
Oracle Database
16 Comments1 Solution2199 ViewsLast Modified:
Hi ,

I am having trouble scheduling a job to run on the 1st of every quarter even if 1st of the month is Saturday.
Here is what I am working with:

BEGIN
DBMS_JOB.CHANGE
(20,
null,
null,
trunc(NEXT_DAY(ADD_MONTHS(TRUNC(SYSDATE , '''Q'''),3)-1,'SATURDAY'))+(06/24)+(00/1440)
);
commit;
end;
/

ERROR at line 9:
ORA-01899: bad precision specifier
ORA-06512: at line 2

Your help is greatly appreciated.

Sid
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 16 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 16 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros