免费注册 查看新帖 |

Chinaunix

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

[备份软件] 【求助】oracle817 的nocatalog rman备份问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-07-06 12:40 |只看该作者 |倒序浏览
环境:solaris9 for x86+oracle817+Legato NetWorker nmo3.5
前提:Legato文件备份正常;
我想做一个nocatalog的备份测试;
脚本已经做好;名字为online_db
我手工用rman做备份是ok的;
su - oracle
$>;rman nocatalog
rman>;@online_db
一切正常;

online_bd内容如下:
connect target sys/sys@data14;
run{
allocate channel t1 type 'SBT_TAPE'
parms 'ENV=(NSR_SERVER=test2,NSR_CLIENT=sol9x,NSR_DATA_VOLUME_POOL=delteq)'; allocate channel t2 type 'SBT_TAPE'
parms 'ENV=(NSR_SERVER=test2,NSR_CLIENT=sol9x,NSR_DATA_VOLUME_POOL=delteq)';

backup full filesperset 4
format 'test_%s_%p_%u'
(database include current controlfile);

sql 'alter system switch logfile';

release channel t1;
release channel t2;
}

不知道如何修改该教本,才能正常完成 NetWorker的schedule备份?
谢谢DX指教了!!

论坛徽章:
0
2 [报告]
发表于 2003-07-06 12:52 |只看该作者

【求助】oracle817 的nocatalog rman备份问题

要自动备份,在cleint中的save sets写上你的脚本就可以了。然后通过group来控制。

还有就是通过crontab 来做

论坛徽章:
0
3 [报告]
发表于 2003-07-06 13:00 |只看该作者

【求助】oracle817 的nocatalog rman备份问题

谢谢!
在cleint中的save sets写上你的脚本,这个我知道的,
问题是这样:
我手工用rman备份到磁带上没问题;
可是在networker里面手工启动该group却报告错误!!
我怀疑是这个教本有问题;;
该教本在oracle9i中备份没有问题,
是否oracle8i和oracle9i的rman语法上有些区别??
谢谢了,,

论坛徽章:
0
4 [报告]
发表于 2003-07-06 13:07 |只看该作者

【求助】oracle817 的nocatalog rman备份问题

我仔细想了想,区别应该如下:
在oracle9i中:
输入rman后面不用跟nocatalog
可是在8i中必须要有nocatalog这个参数!!
这就是区别!!
可是我如何修改教本呢??
DX快来指教啊,,,

论坛徽章:
0
5 [报告]
发表于 2003-07-06 13:10 |只看该作者

【求助】oracle817 的nocatalog rman备份问题

07/06/03 12:25:42 nsrd: runq: NSR group delteq exited with return code 1.
07/06/03 12:26:11 nsrd: write completion notice: Writing to volume AUR040 complete
07/06/03 13:03:18 nsrd: savegroup info: starting oracle_db (with 1 client(s))
07/06/03 13:04:08 savegrp: sol9x:/oracle/rman/online_db will retry 1 more time(s)
07/06/03 13:04:33 savegrp: sol9x:/oracle/rman/online_db will retry 0 more time(s)
07/06/03 13:04:36 nsrd: test2:index:sol9x saving to pool 'delteq' (AUR040)
07/06/03 13:04:49 nsrd: test2:index:sol9x done saving to pool 'delteq' (AUR040) 313 KB
07/06/03 13:04:59 nsrd: test2:bootstrap saving to pool 'delteq' (AUR040)
07/06/03 13:05:00 nsrmmdbd: media db is saving its data.  This may take a while.
07/06/03 13:05:00 nsrmmdbd: media db is open for business.
07/06/03 13:05:02 nsrd: test2:bootstrap done saving to pool 'delteq' (AUR040) 93 KB
07/06/03 13:05:23 nsrd: savegroup alert: oracle_db completed, total 1 client(s), 0 Hostname(s) Unresolved, 1 Failed, 0 Succeeded. (sol9x Failed)
* sol9x:/oracle/rman/online_db RMAN>; 07/06/03 13:04:10 NetWorker: Error: process 2068 running command "/oracle/app/oracle8/product/817/bin/rman" completed with an error code of 1.
* sol9x:/oracle/rman/online_db nsrnmostart returned status of 1
* sol9x:/oracle/rman/online_db /usr/sbin/nsrnmo.sh exiting.
* sol9x:/oracle/rman/online_db 1 retry attempted
* sol9x:/oracle/rman/online_db RMAN>; 07/06/03 13:04:36 NetWorker: Error: process 2085 running command "/oracle/app/oracle8/product/817/bin/rman" completed with an error code of 1.
* sol9x:/oracle/rman/online_db nsrnmostart returned status of 1
* sol9x:/oracle/rman/online_db /usr/sbin/nsrnmo.sh exiting.
07/06/03 13:05:23 nsrd: runq: NSR group oracle_db exited with return code 1.
07/06/03 13:05:50 nsrd: write completion notice: Writing to volume AUR040 complete

论坛徽章:
0
6 [报告]
发表于 2003-07-06 13:13 |只看该作者

【求助】oracle817 的nocatalog rman备份问题

上面是legato NetWorker的有关日志
请哪位DX帮着解决这个问题,,
谢谢了!!

论坛徽章:
0
7 [报告]
发表于 2003-07-06 14:48 |只看该作者

【求助】oracle817 的nocatalog rman备份问题

8I/9I是有一些区别的。但是你的脚本是没有问题。

你修改了nsrnmo里面相应的环境变量的东西???

论坛徽章:
0
8 [报告]
发表于 2003-07-06 15:02 |只看该作者

【求助】oracle817 的nocatalog rman备份问题

已经修改过了,,
nsrnmo.sh的内容如下:
ORACLE_HOME=/oracle/app/oracle8/product/817

PATH=/usr/local/sbin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/local/bin

NSR_RMAN_ARGUMENTS="nocatalog msglog '/nsr/applogs/msglog.log' append"

NSR_SB_DEBUG_FILE=/nsr/applogs/nsrnmostart.log

只修改了如上内容,,
应该没问题啊,,,

论坛徽章:
0
9 [报告]
发表于 2003-07-06 15:37 |只看该作者

【求助】oracle817 的nocatalog rman备份问题

你在手工执行你开始的脚本的时候,有相应的ORACLE的环境变量。

你用L做备份是使用的ROOT的东西。

你现在脚本中写上oracle相应的环境变量,在写上

run{
allocate channel t1 type 'SBT_TAPE'
parms 'ENV=(NSR_SERVER=test2,NSR_CLIENT=sol9x,NSR_DATA_VOLUME_POOL=delteq)'; allocate channel t2 type 'SBT_TAPE'
parms 'ENV=(NSR_SERVER=test2,NSR_CLIENT=sol9x,NSR_DATA_VOLUME_POOL=delteq)';

backup full filesperset 4
format 'test_%s_%p_%u'
(database include current controlfile);

sql 'alter system switch logfile';

release channel t1;
release channel t2;
}

试试

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
10 [报告]
发表于 2003-07-06 16:18 |只看该作者

【求助】oracle817 的nocatalog rman备份问题

你现在脚本中写上oracle相应的环境变量

显然你的PATH没有oracle的东西
另外rman脚本是不是错误(schedule的)。看看applogs里的
你的nmo的版本又是多少?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP