Created
April 8, 2014 12:19
-
-
Save uilian/10116157 to your computer and use it in GitHub Desktop.
Oracle - extract DDL for all tablespaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select dbms_metadata.get_ddl('TABLESPACE','TD_DBCLARIDATA_AUTO') from dual; | |
set head off echo off | |
select 'select dbms_metadata.get_ddl(''TABLESPACE'',''' | |
|| tablespace_name || ''') from dual;' from dba_tablespaces; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment