创建实验环境:
create user test identified by test default tablespace system 
temporary tablespace temporary;
grant dba,connect,resource to test;用刚建的test用户登陆sql/plus,创建实验数据
create table test(a varchar2(10),b varchar2(10));
insert test values('a1','b1');
insert test values('a2','b2');
insert test values('a3','b3');
commit;再用exp(如果你的数据版本是8i)备份数据库
exp test/test file=test.dmp;然后用imp导入刚才导出的备份文件
imp test/test full=y file=test.dmp log=test.log
最后用写字板将test.log文件打开里面就是test用户的脚本。