Skip to content

Instantly share code, notes, and snippets.

@aoflima
Created July 18, 2017 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aoflima/30f7f03efc0fc7947ba80d44dc0c57f9 to your computer and use it in GitHub Desktop.
Save aoflima/30f7f03efc0fc7947ba80d44dc0c57f9 to your computer and use it in GitHub Desktop.
ORA-00257: archiver error – FRA Clean Up emergency
JDEPROD@xxxx-/cloudfs/DBA/scripts$ cat delete_arch_logs.sh
export ORACLE_SID=JDEPROD
export ORAENV_ASK=NO
. oraenv
$ORACLE_HOME/bin/rman target / << EOF
run
{
crosscheck backup;
crosscheck archivelog all;
delete noprompt expired backup;
delete noprompt expired archivelog all;
}
exit
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment