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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Mixing DDL & PL/SQL

Re: Mixing DDL & PL/SQL

From: Tarby777 <nick_williamson_at_mentorg.com>
Date: 26 Sep 2005 03:48:53 -0700
Message-ID: <1127731733.365990.92940@f14g2000cwb.googlegroups.com>


I played around some more, and this works for me:

declare create_it varchar2(8);

begin
  create_it := 'yes';
  if upper(create_it)='YES' then
  execute immediate
  'CREATE TABLESPACE "test" LOGGING SEGMENT SPACE MANAGEMENT MANUAL    DATAFILE ''C:\ORACLE\ORADATA\TESTBED\test.dbf'' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 1500M';
  end if;
end;

Regards,
Nick Received on Mon Sep 26 2005 - 05:48:53 CDT

Original text of this message

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