Skip to content

Instantly share code, notes, and snippets.

@sravanrox
Created September 13, 2016 23:11
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 sravanrox/c59bc723dad939501a227b0d9d399707 to your computer and use it in GitHub Desktop.
Save sravanrox/c59bc723dad939501a227b0d9d399707 to your computer and use it in GitHub Desktop.
To be used with ASM archive log backup script
#!/bin/bash
ORACLE_SID=+ASM1
ORACLE_HOME=/u01/app/11.2.0.4/grid
ASMCMD="/u01/app/11.2.0.4/grid/bin/asmcmd"
export ORACLE_SID
export ORACLE_HOME
$ASMCMD << EOF
du +reco_dg/pdwh/archivelog
exit
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment