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