Before I take my hot backup, I have a script that logs on to the server and removes all the old backup files in the backup directory.
NOTE: The script logs onto the sever as ROOT
rm -r /backups/*
rm -r /backups/PRDDB/prddb_control_file_copy
After all the backup is done, I have a script that makes copies of the control file. The first copy of the control file copy command works,
but the second gives me an error like I have below:
alter database backup controlfile to trace;
alter database backup controlfile to '/backups/PRDDB/prddb_control_file_copy'
ORA-1580 signalled during: alter database backup controlfile to '/backups/PRD...
Does any one know why this error occurs even though it's removed before the back starts?
Are u sure u remove the files, there should be another error accompanying this.
reuse option after file name.
Since you issued a rm -r /backups/* command it would have deleted the subdirectory. You are trying to create the controlfile backup in /backups/PRDDB/. First create subdirectory PRDDB and then issue the command.
Click Here to Expand Forum to Full Width