|
楼主 |
发表于 2017-2-23 15:25:25
|
显示全部楼层
唐老师,这样写的
run{
duplicate target database to orcl
backup location '/u01/backup/rman'
nofilenamecheck
spfile
set
memory_max_target=2G
set
memory_target=2G
set
control_files='+DATA,'+FRA'
set
db_file_name_convert='+DATA','+DATA'
set
log_file_name_convert='+DATA','+DATA','+FRA','+FRA'
set
audit_file_dest='/u01/app/oracle/admin/orcl/adump'
set
db_create_file_dest=''
set
db_recovery_file_dest='+FRA';
}
但是执行的时候还是报错:
[oracle@test rman_scripts]$ rman auxiliary / cmdfile=/backup/rman_scripts/ecology.rcv
Recovery Manager: Release 11.2.0.4.0 - Production on Thu Feb 23 15:23:36 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to auxiliary database: ECOLOGY (not mounted)
RMAN> run{
2> duplicate target database to ecology
3> backup location '/u01/backup/rman'
4> nofilenamecheck
5> spfile
6> set
7> memory_max_target=2G
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "integer": expecting one of: "double-quoted-string, single-quoted-string"
RMAN-01007: at line 7 column 19 file: /backup/rman_scripts/ecology.rcv
|
|