Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ fi;

# Check whether database is up and running
$ORACLE_BASE/$CHECK_DB_FILE
if [ $? -eq 0 ]; then
status=$?

if [ $status -eq 0 ]; then
echo "#########################"
echo "DATABASE IS READY TO USE!"
echo "#########################"
Expand All @@ -196,6 +198,13 @@ else
echo "#####################################"
fi;

# Exiting the script without waiting on the tail logs
if [ "$1" = "--nowait" ]; then
# Creating state-file for identifying container of the prebuiltdb extended image
touch "${ORACLE_BASE}/oradata/${ORACLE_SID}/.prebuiltdb"
exit $status;
fi

# Tail on alert log and wait (otherwise container will exit)
echo "The following output is now a tail of the alert.log:"
tail -f $ORACLE_BASE/diag/rdbms/*/*/trace/alert*.log &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ fi;

# Check whether database is up and running
$ORACLE_BASE/$CHECK_DB_FILE
if [ $? -eq 0 ]; then
status=$?

if [ $status -eq 0 ]; then
echo "#########################"
echo "DATABASE IS READY TO USE!"
echo "#########################"
Expand All @@ -196,6 +198,13 @@ else
echo "#####################################"
fi;

# Exiting the script without waiting on the tail logs
if [ "$1" = "--nowait" ]; then
# Creating state-file for identifying container of the prebuiltdb extended image
touch "${ORACLE_BASE}/oradata/${ORACLE_SID}/.prebuiltdb"
exit $status;
fi

# Tail on alert log and wait (otherwise container will exit)
echo "The following output is now a tail of the alert.log:"
tail -f $ORACLE_BASE/diag/rdbms/*/*/trace/alert*.log &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ fi;

# Exiting the script without waiting on the tail logs
if [ "$1" = "--nowait" ]; then
# Creating state-file for identifyig container of the prebuiltdb extended image
# Creating state-file for identifying container of the prebuiltdb extended image
touch "${ORACLE_BASE}/oradata/${ORACLE_SID}/.prebuiltdb"
exit $status;
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ fi;

# Exiting the script without waiting on the tail logs
if [ "$1" = "--nowait" ]; then
# Creating state-file for identifyig container of the prebuiltdb extended image
# Creating state-file for identifying container of the prebuiltdb extended image
touch "${ORACLE_BASE}/oradata/${ORACLE_SID}/.prebuiltdb"
exit $status;
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ fi;

# Exiting the script without waiting on the tail logs
if [ "$1" = "--nowait" ]; then
# Creating state-file for identifyig container of the prebuiltdb extended image
# Creating state-file for identifying container of the prebuiltdb extended image
touch "${ORACLE_BASE}/oradata/${ORACLE_SID}/.prebuiltdb"
exit $status;
fi
Expand Down