备份数据库,备份成功完成,但最后总会报错
上一篇 /
下一篇 2008-06-19 01:23:47
/ 个人分类:《Oracle数据库精讲与疑难解析》
〖环境(Environment)〗
OS:Solaris 9
DB:oracle10G
〖现象(Symptom)〗
备份数据库,备份成功,但最后总是报错,具体过程如下:
RMAN>run
2> {
3> allocate channel ch1 type disk;
4> backup database;
5> };
。。。
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found ";": expecting one of: "allocate,alter,beginline,catalog,change,connect,create,crosscheck,c
onfigure,debug,delete,drop,exit,endinline,host,{,library,list,mount,open,print,register,release,replace,report,ren
ormalize,reset,resync,rman,rpct?"
RMAN-01007: at line 0 column 2 file: standard input
〖原理(Cause) 〗
以前,我也经常遇到这个问题,一直很郁闷。其实,这个问题很简单,就是备份脚本(第五行)的后面多了一个分号(;)。
〖方法(Action) 〗
去掉脚本最后一行的分号。
导入论坛
引用链接
收藏
分享给好友
推荐到圈子
管理
举报
TAG: