ORACLE常用命令总结-ORACLE逻辑备份的SH文件
2010-03-29 13:16
471 查看
完全备份的SH文件:exp_comp.sh
rq=` date +"%m%d" `
su - oracle -c "exp system/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"
累计备份的SH文件:exp_cumu.sh
rq=` date +"%m%d" `
su - oracle -c "exp system/manager full=y inctype=cumulative file=/oracle/export/db_cumu$rq.dmp"
增量备份的SH文件: exp_incr.sh
rq=` date +"%m%d" `
su - oracle -c "exp system/manager full=y inctype=incremental file=/oracle/export/db_incr$rq.dmp"
root用户crontab文件
/var/spool/cron/crontabs/root增加以下内容
0 2 1 * * /oracle/exp_comp.sh
30 2 * * 0-5 /oracle/exp_incr.sh
45 2 * * 6 /oracle/exp_cumu.sh
当然这个时间表可以根据不同的需求来改变的,这只是一个例子。
rq=` date +"%m%d" `
su - oracle -c "exp system/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"
累计备份的SH文件:exp_cumu.sh
rq=` date +"%m%d" `
su - oracle -c "exp system/manager full=y inctype=cumulative file=/oracle/export/db_cumu$rq.dmp"
增量备份的SH文件: exp_incr.sh
rq=` date +"%m%d" `
su - oracle -c "exp system/manager full=y inctype=incremental file=/oracle/export/db_incr$rq.dmp"
root用户crontab文件
/var/spool/cron/crontabs/root增加以下内容
0 2 1 * * /oracle/exp_comp.sh
30 2 * * 0-5 /oracle/exp_incr.sh
45 2 * * 6 /oracle/exp_cumu.sh
当然这个时间表可以根据不同的需求来改变的,这只是一个例子。
相关文章推荐
- ORACLE入门之逻辑备份SH文件
- Oracle常用命令总结
- CentOS常用的文件操作命令总结
- oracle用控制文件旧备份恢复后数据库恢复总结
- Oracle sqlplus 常用命令总结
- Oracle sqlplus 常用命令总结
- Linux常用命令笔记---文件系统的备份、恢复、与监控
- Oracle的常用命令之备份和恢复数据库
- (总结)Oracle 11g常用管理命令(用户、表空间、权限)
- 分布式文件存储FastDFS(五)FastDFS常用命令总结
- Oracle备份常用命令
- ORACLE-常用基础命令总结
- Oracle10g数据库备份与恢复总结2--Oracle备份与恢复之逻辑备份--exp/imp
- ORACLE常用命令总结-SQL*PLUS使用
- Linux下常用文件操作命令总结
- Oracle sqlplus 常用命令总结
- [文件]Linux文本处理常用命令总结
- /proc文件系统与常用进程管理命令总结
- Linux常用命令总结——文件管理
- oracle学习总结----oracle常用命令