justfortooltest 发表于 2014-4-18 21:58:15

使用rman是遇到了一个奇怪的错误

问题:
在使用run 批处理时, 输完run { 后    回车第二行继续输入 ,当 输入一个分号 回车时就自动执行了,不知是咋回事。{:soso_e132:} {:soso_e118:}

RMAN> run{
2> sdfsdf sdfsdf;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, copy, convert, crosscheck, configure, duplicate, debug, delete, execute, endinline, flashback, host, mount, open, plsql, recover, release, replicate, report, restore, resync, set, setlimit, sql, switch, startup, shutdown, send, show, transport, validate"
RMAN-01008: the bad identifier was: sdfsdf
RMAN-01007: at line 2 column 1 file: standard input

RMAN> run{
2> sdfsdf;


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, copy, convert, crosscheck, configure, duplicate, debug, delete, execute, endinline, flashback, host, mount, open, plsql, recover, release, replicate, report, restore, resync, set, setlimit, sql, switch, startup, shutdown, send, show, transport, validate"
RMAN-01008: the bad identifier was: sdfsdf
RMAN-01007: at line 2 column 1 file: standard input

Hyperxnoia 发表于 2014-4-20 12:49:56

這不是什麼奇怪的錯誤,是你不遵守規範。run中的內容並不是可以隨便填寫的,雖然隨便填寫也無大礙:lol。
看給出的英文提示就知道了,你沒有輸入有效的rman命令
expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, copy, convert, crosscheck, configure, duplicate, debug, delete, execute, endinline, flashback, host, mount, open, plsql, recover, release, replicate, report, restore, resync, set, setlimit, sql, switch, startup, shutdown, send, show, transport, validate"
页: [1]
查看完整版本: 使用rman是遇到了一个奇怪的错误