【发布时间】:2015-05-23 05:04:54
【问题描述】:
我试图将备份位置动态传递给 rman 脚本,如下所示。但它因语法错误而失败。有没有办法将“/backup/folder/folder/”传递给rman脚本?如果我只传递没有“/”的字符串,它可以工作,但使用“/”它会失败。
rman @${rmanbasepath}rman_replication_from_backups.rcv USING ${dbname} ${backupdir}
backup.rcv
CONNECT AUXILIARY /
run {
allocate auxiliary channel a1 device type disk;
allocate auxiliary channel a2 device type disk;
allocate auxiliary channel a3 device type disk;
allocate auxiliary channel a4 device type disk;
DUPLICATE TARGET DATABASE TO &1
BACKUP LOCATION '&2'
NOFILENAMECHECK;
}
EXIT;
【问题讨论】: