Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: help dynamically adding a 'datafile' to a script
begin
execute immediate 'create tablespace myTablespace datafile ' || '&cPath'
|| ' mytablespace.dbf' size 5m;
end;
/
<ryan.gaffuri_at_cox.net>
Sent by: oracle-l-bounce_at_freelists.org
02/20/2004 09:30 AM
Please respond to oracle-l
To: oracle-l_at_freelists.org cc: Subject: help dynamically adding a 'datafile' to a script
I am trying to do the following and I cant get it to take(I would prefer not to use dynamic sql and write my create tablespace scripts to a second file).
Prompt Please enter a datafile path
Accept cPath
create tablespace myTablespace datafile '&cPath ||mytablespace.dbf' size 5m;
I've tried lots of methods including bind variables and appending before the create tablespace statement. Any way to do this?
![]() |
![]() |