113113# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #
114114# ##################################
115115
116- # Marker file for the healthcheck
117- rm -f /tmp/.oracle_database_started
118-
119116# Check whether container has enough memory
120117if [[ -f /sys/fs/cgroup/cgroup.controllers ]]; then
121118 memory=$( cat /sys/fs/cgroup/memory.max)
283280 " $ORACLE_BASE " /" $CREATE_DB_FILE " $ORACLE_SID " $ORACLE_PDB " " $ORACLE_PWD " || exit 1;
284281
285282 # Check whether database is successfully created
286- if BYPASS_STARTED_MARKER =true " $ORACLE_BASE " /" $CHECK_DB_FILE " ; then
283+ if IGNORE_DB_STARTED_MARKER =true " $ORACLE_BASE " /" $CHECK_DB_FILE " ; then
287284 # Create a checkpoint file if database is successfully created
288285 # Populate the checkpoint file with the current date to avoid timing issue when using NFS persistence in multi-replica mode
289286 echo " $( date -Iseconds) " > " $ORACLE_BASE " /oradata/.${ORACLE_SID} " ${CHECKPOINT_FILE_EXTN} "
306303fi ;
307304
308305# Check whether database is up and running
309- BYPASS_STARTED_MARKER =true " $ORACLE_BASE " /" $CHECK_DB_FILE "
306+ IGNORE_DB_STARTED_MARKER =true " $ORACLE_BASE " /" $CHECK_DB_FILE "
310307status=$?
311308
312309# Check whether database is up and running
@@ -321,8 +318,8 @@ if [ $status -eq 0 ]; then
321318 # Execute custom provided startup scripts
322319 " $ORACLE_BASE " /" $USER_SCRIPTS_FILE " " $ORACLE_BASE " /scripts/startup
323320
324- # Marker file for the healthcheck
325- touch /tmp/.oracle_database_started
321+ # Create marker file for the healthcheck
322+ touch " $DB_STARTED_MARKER_FILE "
326323else
327324 echo " #####################################"
328325 echo " ########### E R R O R ###############"
0 commit comments