#!/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 inputRMAN-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
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 inputRMAN-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
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;
加上字母,调整顺序。
是否是顺序问题?