Oracle数据库备份与恢复
-----------------------数据库导出----------------------------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:\database.dmp full=y ignore=y
3、将导出文件中某个表导入数据库
imp userName/userPassword file=d:\database.dmp tables=(studentInfo)
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。