Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Using Oracl DDL-Statements in Procedures/Triggers on V. 7.3.2.2 and higher
In article <7sv6fo$knq$1_at_news.uk.ibm.com>,
"Stein Andersen" <stein.andersen_at_no.ibm.com> wrote:
> We are making an application where we want to be able to create
synonyms,
> tables and indexes
> on the fly from triggers and procedures. Does anybody know how this
may be
> done in an basic
> Oracle installation, or if there are any packages we may install to
give us
> this functionality.
> -------------
> Stein Andersen
>
Hi.
You can issue DDL statements from Oracle stored proc.
Look for DBMS_SQL package ( if you are working with
Oracle 7.x, 8.0 ). Use "native dynamic sql" with 8i.
You are not supposed to execute such commands from
triggers, because DDL statements implicitly COMMITs.
Michael.
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Sep 30 1999 - 15:39:36 CDT
![]() |
![]() |