ORACLE数据库备份

来源:这里教程网 时间:2026-03-03 12:11:58 作者:

ORACLE数据库备份

三种模式:表备份,用户备份,完全备份。

两种方式:

DOS命令执行:

表备份:

导出:exp scott/tiger@orcle tables=emp,dept rows=y indexes=y commit=y file=c:/emp_exp_Date.dmp log=c:/emp_exp.log 导入:imp scott/tiger@orcle fromuser=scott touser=hu rows=y indexes=y commit=y file=c:/emp_imp_Date.dmp log=c:/emp_exp_imp.log

用户备份:

导出:exp scott/tiger@orcle owner=scott rows=y indexes=y file=c:/emp_exp_Date.dmp log=c:/emp_exp.log 导入:imp scott/tiger@orcle fromuser=scott touser=hu rows=y indexes=y commit=y file=c:/emp_imp_Date.dmp log=c:/emp_exp_imp.log

完全备份:

导出:exp scott/tiger@orcle full=y rows=y indexes=y file=c:/emp_exp_Date.dmp log=c:/emp_exp.log

导入:imp scott/tiger@orcle full=y rows=y indexes=y commit=y file=c:/emp_imp_Date.dmp log=c:/emp_exp_imp.log

通过PL/SQL进行数据库备份:

导出: 导入:

相关推荐