———————–数据库导出—————————-
1、导出完整数据库
exp userName/userPassword file=d:\database.dmp full=y
2、导出数据库中某个用户的对象
exp userName/userPassword file=d:\database.dmp
3、导出数据库中的某些表
exp userName/userPassword file=d:\database.dmp tables=(studentInfo,teacherInfo)
4、导出数据库的表空间testSpace
exp userName/userPassword file=d:\database.dmp tablespaces=(testSpace)
————————数据导入——————————
1、将导出文件导出数据库
imp userName/userPassword file=d:\database.dmp full=y
2、忽略已存在表进行追加导入数据库
imp userName/userPassword file=d:\datoracle账号abase.dmp full=y ignore=y
3、将导出文件中某个表导入数据库
imp userName/userPassword file=d:\database.dmp tables=(studentInfo)