Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Executing DDL from trigger

Re: Executing DDL from trigger

From: <Chaim.Katz_at_Completions.Bombardier.com>
Date: Wed, 24 May 2000 12:56:36 -0400
Message-Id: <10507.106549@fatcity.com>


How about creating a job (in the job queue) to execute the 'create user procedure' and having your trigger, trigger the execution of the job in the queue.
  You can do this, by creating a job with the next date attribute as a date way in the future and the job's interval set to a very long time. Your trigger will use dbms_job.change to change the next_date to sysdate and the job will execute.
 This will work because dbms_job.change doesn't do a commit. When you commit the insert, the job queue will see the new schedule and execute the procedure. Chaim Received on Wed May 24 2000 - 11:56:36 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US