Getting error backup controlfile to trace in RMAN script [message #193349] |
Fri, 15 September 2006 16:13 |
ksintrakool
Messages: 20 Registered: July 2006 Location: Las Vegas
|
Junior Member |
|
|
Hi All,
Does anyone know how I include the following command in RMAN script?
sql "alter database backup controlfile to ''$BACKUP_DEST/$ORACLE_SID_CF_backup_$FILE_TIMESTAMP.dbf''";
BACKUP_DEST, ORACLE_SID and FILE_TIMESTAMP are environment variables.
I keep getting error cannot create file $BACKUP_DEST/$ORACLE_SID_CF_backup_$FILE_TIMESTAMP.dbf
Thanks,
|
|
|
|
Re: Getting error backup controlfile to trace in RMAN script [message #193353 is a reply to message #193349] |
Fri, 15 September 2006 16:31 |
ksintrakool
Messages: 20 Registered: July 2006 Location: Las Vegas
|
Junior Member |
|
|
I use environment variables in RMAN scripts to tell RMAN where to backup. Since the 'sql' is in the RMAN script, this makes me forgot to think that it is actually in sql.
What I try to accomplice is creating a script to backup control file to different destinations, so I can use one script with many databases. Any idea?
Thanks,
|
|
|
|
|