113
113
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #
114
114
# ##################################
115
115
116
- # Marker file for the healthcheck
117
- rm -f /tmp/.oracle_database_started
118
-
119
116
# Check whether container has enough memory
120
117
if [[ -f /sys/fs/cgroup/cgroup.controllers ]]; then
121
118
memory=$( cat /sys/fs/cgroup/memory.max)
283
280
" $ORACLE_BASE " /" $CREATE_DB_FILE " $ORACLE_SID " $ORACLE_PDB " " $ORACLE_PWD " || exit 1;
284
281
285
282
# 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
287
284
# Create a checkpoint file if database is successfully created
288
285
# Populate the checkpoint file with the current date to avoid timing issue when using NFS persistence in multi-replica mode
289
286
echo " $( date -Iseconds) " > " $ORACLE_BASE " /oradata/.${ORACLE_SID} " ${CHECKPOINT_FILE_EXTN} "
306
303
fi ;
307
304
308
305
# 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 "
310
307
status=$?
311
308
312
309
# Check whether database is up and running
@@ -321,8 +318,8 @@ if [ $status -eq 0 ]; then
321
318
# Execute custom provided startup scripts
322
319
" $ORACLE_BASE " /" $USER_SCRIPTS_FILE " " $ORACLE_BASE " /scripts/startup
323
320
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 "
326
323
else
327
324
echo " #####################################"
328
325
echo " ########### E R R O R ###############"
0 commit comments