请问我的超简单rman备份脚本运行 为何老报一个错

wdslhr 2008-03-13 10:49:46
#!/bin/sh
export ORACLE_SID=test1 ;
export PATH=/u01/app/oracle/product/9.2.0.4/bin:$PATH;
rman target / <<EOF
run{
configure default device type to disk;
configure device type disk parallelism 2;
set limit channel 1 kbytes 1800000;
set limit channel 2 kbytes 1800000;
configure channel 1 device type disk format '/u01/app/oracle/oradata/test1/bakup/bakup1/backup_%U';
configure channel 2 device type disk format '/u01/app/oracle/oradata/test1/bakup/bakup2/backup_%U';
configure controlfile autobackup on;
configure controlfile autobackup format for device type disk to '/u01/app/oracle/oradata/test1/bakup/bakup1/ctl_%F';
backup database plus archivelog delete input;
}
EOF


错误如下:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "integer": expecting one of: "channel_id, double-quoted-string, identifier, single-quoted-string"
RMAN-01007: at line 4 column 19 file: standard input

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "}": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, spool, startup, shutdown, send, show, test, upgrade, validate"
RMAN-01007: at line 1 column 1 file: standard input
...全文
979 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
knowledge_Is_Life 2008-05-01
  • 打赏
  • 举报
回复
lz要干嘛?
iihero 2008-03-23
  • 打赏
  • 举报
回复
2楼的说的有道理,可以先试试。
ruihuahan 2008-03-23
  • 打赏
  • 举报
回复
建议把 RMAN 脚本保存成单独的 .rcv 脚本,然后在 RMAN 命令行中使用 @ 参数调用。
认真读书 2008-03-20
  • 打赏
  • 举报
回复
也学习下
bjt_ 2008-03-13
  • 打赏
  • 举报
回复
学习下
doer_ljy 2008-03-13
  • 打赏
  • 举报
回复
channel是数字的话应该没有问题吧?
是否是顺序问题?
Petergepeter 2008-03-13
  • 打赏
  • 举报
回复
configure channel t1 device type disk format '/u01/app/oracle/oradata/test1/bakup/bakup1/backup_%U';
configure channel t2 device type disk format '/u01/app/oracle/oradata/test1/bakup/bakup2/backup_%U';
set limit channel t1 kbytes 1800000;
set limit channel t2 kbytes 1800000;
加上字母,调整顺序。

17,382

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧