1、使用sys用户,在sqlplus中,执行这样的命令
set long 2000
select dbms_metadata.get_ddl('TABLESPACE','表空间名称') FROM DUAL;
2、以users表空间为例
SQL> set long 2000;
SQL> select dbms_metadata.get_ddl('TABLESPACE','USERS') FROM DUAL;
DBMS_METADATA.GET_DDL('TABLESP
-----------------------------------------------------------------------
CREATE TABLESPACE "USERS" DATAFILE
'/u01/app/data/devdb/users01.dbf' SIZE 5242880
AUTOEXTEND ON NEXT 1310720 MAXSIZE 32767M
LOGGING ONLINE PERMANENT BLOCKSIZE 8192
EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT
NOCOMPRESS SEGMENT SPACE MANAGEMENT AUTO
ALTER DATABASE DATAFILE
'/u01/app/data/devdb/users01.dbf' RESIZE 4904714240
转载于:https://blog.51cto.com/zhangjingke/1710358