Dbms_job.submit
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Dbms_job.submit

  1. #1
    Join Date
    May 2005
    Location
    Portugal
    Posts
    1

    Dbms_job.submit

    Hello,

    I'm trying to schedule a job but i'm having some problems.
    Could you help me please ?

    DECLARE
    JOB NUMBER;

    BEGIN

    SYS.DBMS_JOB.SUBMIT (JOB,'DBMS_STATS.GATHER_SCHEMA_STATS (ownname=>''PJMC_CART'',estimate_percent=>sys.dbms_stats.auto_sample_size,granularity=>''ALL'',method_opt=>''FOR ALL COLUMNS SIZE AUTO'',degree=>sys.DBMS_STATS.DEFAULT_DEGREE,options=>''GATHER AUTO'',cascade=>TRUE)',TRUNC(SYSDATE)+16/24 ,'TRUNC(SYSDATE+1)+4/24');

    COMMIT;
    END;



    Error: Encountered symbol "END" when expecting one of the following...

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Needs a semi-colon after "cascade=>TRUE)"
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  3. #3
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    This going to be another case study for oraclesponge.blobspot.com?
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width