〖环境(Environment)〗
OS:Solaris 9
DB:oracle 10G
〖现象(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) 〗
去掉脚本最后一行的分号。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13804621/viewspace-351809/ ,如需转载,请注明出处,否则将追究法律责任。