ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 备份数据库,备份成功完成,但最后总会报错

备份数据库,备份成功完成,但最后总会报错

原创 Linux操作系统 作者:zerocool8888888 时间:2008-06-19 01:23:47 0 删除 编辑

〖环境(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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2008-04-10

  • 博文量
    73
  • 访问量
    932593