ORACLE数据库备份
更新:HHH   时间:2023-1-7


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进行数据库备份:

导出:


导入:

返回关系型数据库教程...