如何通过sql方式得到表空间,表等的ddl?

我从网上找到一些东西,可调试不过!
[23 byte] By [freebob-bob] at [2007-12-16]
# 1
alter user username default tablespace tablespacename
alter uer username quota 100m on tablespacename
wwl007-疑难杂症 at 2007-10-23 > top of Msdn China Tech,Oracle,开发...
# 2
select * from user_tables;
select * from user_tablespaces;
这些数据字典中,完全可以得到任何信息。
xynet-xynet at 2007-10-23 > top of Msdn China Tech,Oracle,开发...
# 3
do remember to analyze your table first ( by analyze commond) , then all the information will be appears in user_segments , user_tables , user_indexes , user_tablespaces , v$datafile etc