准备 create table test ( id number , name varchar2(20), primary key (id) ); insert into test(id,name)values(1,'aaa'); insert into test(id,name)values(2,'bbb'); insert into test(id,name)values(3,'ccc'); commit; select * from test; create table test2 as select * from test; select * from test2; --drop table test; --drop table test2; 导出数据 导出一张表 exp scott/tiger@orcl file=d:\test.dmp tables=test 导出多张表 exp scott/tiger@orcl file=d:\test2.dmp tables=test,test2 exp 用户名/密码@主机字符串 file=文件路径 tables=表1,表2 导入数据 导入一张表 imp scott/tiger@orcl file=d:\test.dmp tables=test 导入多张表 imp scott/tiger@orcl file=d:\test2.dmp tables=test,test2 imp 用户名/密码@主机字符串 file=文件路径 tables=表1,表2
Oracle数据导入、导出命令
猜你喜欢
转载自1194867672-qq-com.iteye.com/blog/1609202
今日推荐
周排行