mikeyb10supra Posted June 2, 2010 Share Posted June 2, 2010 Guys I have a series of tables in a script I have created and need to run them all as one script rather than all individually ie once one table has been created begin creating the next and so on until it is finished. Is this something I can do with triggers? Cheers Mike Quote Link to comment Share on other sites More sharing options...
johnny g Posted June 2, 2010 Share Posted June 2, 2010 Would it be easier to use DBMS_JOB or DBMS_SCHEDULER? Quote Link to comment Share on other sites More sharing options...
mikeyb10supra Posted June 2, 2010 Author Share Posted June 2, 2010 Are they built in function within sql developer? Quote Link to comment Share on other sites More sharing options...
johnny g Posted June 2, 2010 Share Posted June 2, 2010 They are within Oracle 10g onwards (well, DBMS_JOB was superceeded by DBMS_SCHEDULER) but I don't use SQL Developer. Try something like this: begin dbms_scheduler.create_job( job_name => 'DEMO_JOB_SCHEDULE' ,job_type => 'PLSQL_BLOCK' ,job_action => 'begin package.procedure(''param_value''); end; ' ,start_date => '01/01/2006 02:00 AM' ,repeat_interval => 'FREQ=DAILY' ,enabled => TRUE ,comments => 'Demo for job schedule.'); end; from the SQL Developer console (if it has one). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.