tode配合oracle进行数据库的导入导出
工具/原料
tode oracle 10.2 +
方法/步骤
1
1.通过tode创建或者克隆新的数据库用户
2
2.导出目标表准备。空表无法导出表结构,这里可以通过执行select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 //生成修改segment值sql
3
导出目标用户test所有数据库相关信息 exp test/test@orcl file=d:\427.dat or 427.dmp
4
导入目标用户new所有数据库相关信息 Imp new/new@orcl file=d:\427.dat full =y ignore=y
注意事项
1
这里使用了tode工具
2
oracle服务必须安装成功方可使用