SELECT 'create tablespace '||name||' datafile ''+DATA/test/datafile/'||name||'.dbf'' size 1g autoextend on next 1g maxsize unlimited;' FROM v$tablespace;