登录
root登录之后切换到oracle用户上:输入
su oracle
导出
将用户user用户表导入到/tmp下
exp user/password@orcl file=/tmp/20180115.dmp owner=user
将用户user用户的表table1,table2导入到
/tmp下
exp user/password@orcl file=/tmp/20180115.dmp tables=(table1,table2)
将用户user用户的表table1中的字段filed1以"a"开头的数据导出
exp user/passwor@orcl filed=/tmp/20180115.dmp tables=(table1) query=/" where filed1 like 'a%'/"
导入
将/temp/20180115.dmp文件导入到user下
imp user/passwor@orcl filed=/tmp/20180115.dmp ignore=y full=y