六、ORACLE逻辑备份的SH文件
上一篇 /
下一篇 2009-01-07 22:32:29
/ 个人分类:Oracle
- 文件版本: V1.0
- 开发商: 本站原创
- 文件来源: 本地
- 界面语言: 简体中文
- 授权方式: 免费
- 运行平台: Win9X/Win2000/WinXP
六、ORACLE逻辑备份的SH文件51Testing软件测试网8Bb`(s8S!j'iS/s
9q+|8].yY&X:L6`h0完全备份的SH文件:exp_comp.sh51Testing软件测试网S#?I
XoGS|I
51Testing软件测试网M#_.K a0gc#@(A3KX
rq=` date "%m%d" `
x}$M%]-n1t-{X051Testing软件测试网]$O/pNkTX5C s1v
su - oracle -c "exp system/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"51Testing软件测试网9s&kv"l.u v8^$Q
z
51Testing软件测试网+G@4H@}#p;~y
累计备份的SH文件:exp_cumu.sh
1{B_/q
Fryb"[0
4r^u0?t.d$wU
t0rq=` date "%m%d" `51Testing软件测试网&q1]+W-z}l[ Lu9T%i
51Testing软件测试网;k_+tp)S;G
su - oracle -c "exp system/manager full=y inctype=cumulative file=/oracle/export/db_cumu$rq.dmp"
4Gi.Uc-xp.ejA0jt&r/~051Testing软件测试网q8H
_Yn
增量备份的SH文件: exp_incr.sh51Testing软件测试网^)I4RozJ
r|/[.\FW-L^g3Q0rq=` date "%m%d" `
hV4O%dh0FAVZ{ t0
Vy
w%Kd.y.O0su - oracle -c "exp system/manager full=y inctype=incremental file=/oracle/export/db_incr$rq.dmp"51Testing软件测试网6Hr(drsy-cGY
51Testing软件测试网6GfW@D7Pg
root用户crontab文件
,N)s-BB|.U0/var/spool/cron/crontabs/root增加以下内容51Testing软件测试网?1CW#Xc+Aju
R BXP7^.S00 2 1 * * /oracle/exp_comp.sh
^e{ bf0
XF^:F"{S*S030 2 * * 0-5 /oracle/exp_incr.sh
X%]ya%Y051Testing软件测试网?S^-Q2T9|k9{y
45 2 * * 6 /oracle/exp_cumu.sh51Testing软件测试网9KM|9a(E:D
`-Ac B'S~n0当然这个时间表可以根据不同的需求来改变的,这只是一个例子。
相关阅读:
- ORACLE 经常使用的命令工具-第二章:表空间管理 (lgwmlx, 2009-1-07)
- ORACLE 经常使用的命令工具-第三章:表 (lgwmlx, 2009-1-07)
- ORACLE 经常使用的命令工具-第四章:索引 (lgwmlx, 2009-1-07)
- ORACLE 经常使用的命令工具-第五章:约束 (lgwmlx, 2009-1-07)
- ORACLE 经常使用的命令工具-第六章:LOAD数据 (lgwmlx, 2009-1-07)
- ORACLE 经常使用的命令工具-第七章:数据整理 (lgwmlx, 2009-1-07)
- 一、ORACLE的启动和关闭和设置listener (lgwmlx, 2009-1-07)
- 二、用户如何有效地利用数据字典 (lgwmlx, 2009-1-07)
- 三、查看数据库的SQL (lgwmlx, 2009-1-07)
- 五、SQL*PLUS使用 (lgwmlx, 2009-1-07)
收藏
举报
TAG:
Oracle