利用pl/sql软件的图形界面导入导出…
cmd命令行
导出:exp
a 表方式
exp GZGDJ/GZGDJ@127.0.0.1:1521/orcl file=D:/db.dmp log=D:/log.log tables=test
b 用户方式(根据用户导出,包括视图,存储过程等)
exp GZGDJ/GZGDJ@127.0.0.1:1521/orcl file=D:/db.dmp log=D:/log.log
c 全库方式:DBA角色的(sys,system)
exp GZGDJ/GZGDJ@127.0.0.1:1521/orcl file=D:/db.dmp log=D:/log.log full=y
导入:imp
a 表方式
imp GZGDJ/GZGDJ@127.0.0.1:1521/orcl file=D:/db.dmp log=D:/log.log tables=test fromuser=scott touser=hr commit=y ignore=y
b 用户方式(DBA角色)
imp GZGDJ/GZGDJ@127.0.0.1:1521/orcl file=D:/db.dmp log=D:/log.log fromuser=scott touser=hr commit=y ignore=y
c 全库方式
imp GZGDJ/GZGDJ@127.0.0.1:1521/orcl file=D:/db.dmp log=D:/log.log commit=y ignore=y destroy=y(如果有重复的表,直接覆盖)
向导模式
exp
imp