六、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#_.Ka0gc#@(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_+t p)S;G
su - oracle -c "exp system/manager full=y inctype=cumulative file=/oracle/export/db_cumu$rq.dmp"
4Gi.Uc-xp.ej A0jt&r/~051Testing软件测试网q8H _Y n
增量备份的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当然这个时间表可以根据不同的需求来改变的,这只是一个例子。

TAG: Oracle

 

评分:0

我来说两句

Open Toolbar