免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1508 | 回复: 6
打印 上一主题 下一主题

rman的脚本的问题,catalog [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-17 12:45 |只看该作者 |倒序浏览
环境描述:
需要备份的服务器,hp9000的,hpux11i,数据库是oracle8.1.7
catalog服务器,dell2850,windows003,数据库是oracle8.1.7

现在我已经在catalog服务上创建了备份脚本
b0
创建全备份脚本:
create script b0 {
allocate channel c1 type disk;
backup incremental level 0
foemat '/oradata2/%d_%s_%p'
filesperset 3
(database include current controlfile);
sql "alter system archive log current";
}

b1
创建增量备份脚本:
create script b1 {
allocate channel c1 type disk;
backup incremental level 1
foemat '/oradata2/%d_%s_%p'
filesperset 3
(database include current controlfile);
sql "alter system archive log current";
}

但是我不知道该如何做计划任务,或者crontab,让该脚本自动运行,请教大虾们了,先谢了。

论坛徽章:
0
2 [报告]
发表于 2005-11-19 18:47 |只看该作者
ding

论坛徽章:
0
3 [报告]
发表于 2005-11-20 09:46 |只看该作者
再次请求帮助!

论坛徽章:
0
4 [报告]
发表于 2005-11-20 10:03 |只看该作者
write a shell script like the follwoing and run it as a cron job

rman target / <<END
crosscheck archivelog all;
delete expired archivelog all;
yes
END

or schedule the backup job in OEM

论坛徽章:
0
5 [报告]
发表于 2005-11-20 18:18 |只看该作者
man crontab看一下

论坛徽章:
0
6 [报告]
发表于 2005-11-21 10:07 |只看该作者
crontab的使用小弟还是可以的,脚本的编写还要试试,谢谢大虾们了!

论坛徽章:
0
7 [报告]
发表于 2005-11-21 14:54 |只看该作者
真是十分感谢,已经全部搞定了,哈哈!谢谢各位了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP