RMAN - delete expired archivelog [message #265087] |
Wed, 05 September 2007 07:00 |
orant1
Messages: 28 Registered: June 2005
|
Junior Member |
|
|
Hello,
My shell script looks like this :
. $HOME/.profile
export ORACLE_SID=<your SID>
rman target sys/password nocatalog << EOF
crosscheck archivelog all;
delete expired archivelog all;
Yes
..
..
How should I create script if sometimes ask me 'Do you really want to delete ... (YES is needed)' and sometimes there is nothing to delete (YES is not needed)?
Thanks
|
|
|
|
Re: RMAN - delete expired archivelog [message #265135 is a reply to message #265087] |
Wed, 05 September 2007 08:55 |
orant1
Messages: 28 Registered: June 2005
|
Junior Member |
|
|
I think that "nopromt" is not a solution.
If there is nothink to delete this command is redundant and I get error in log "RMAN-01008: the bad identifier was: Y".
This command should only be used in case if there is something to delete, because only in that case ask me 'Do you really want to delete...!
|
|
|
|
|