diff --git a/templates/rman_dps3_fullbackup.sh.j2 b/templates/rman_dps3_fullbackup.sh.j2 index 7dc52df6a0618a17260d5aa4651a1e7ade720adb..126897bef50b2c69cd0fbc007c6f5c727d276930 100644 --- a/templates/rman_dps3_fullbackup.sh.j2 +++ b/templates/rman_dps3_fullbackup.sh.j2 @@ -6,9 +6,10 @@ # ------------------------------------------------------------------------------------------------- # RMAN backup variables +export ORACLE_VER="19c" export ORACLE_BASE="/exlibris/app/oracle" -export ORACLE_HOME="/exlibris/app/oracle/product/12r1" -{% if ansible_hostname in 'oradev' %} +export ORACLE_HOME="/exlibris/app/oracle/product/${ORACLE_VER}" +{% if 'oradev' in ansible_hostname %} export ORACLE_SID="dps" {% else %} export ORACLE_SID="dps3" @@ -19,7 +20,7 @@ export NLS_CHARACTERSET=UTF8 export NLS_NCHAR_CHARACTERSET=UTF8 export NLS_LANG=American_America.UTF8 -export PATH="$PATH:/exlibris/app/oracle/product/12r1/bin" +export PATH="$PATH:/exlibris/app/oracle/product/${ORACLE_VER}/bin" # comamnd bindings RMAN_CMD="$ORACLE_HOME/bin/rman"