Skip to content

Commit 788e3ae

Browse files
authored
Merge pull request #141 from Rendanic/prautostart2
oraswdb-install: Fixed autostart for 11.2 databases
2 parents 00dbe27 + bf5595c commit 788e3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/oraswdb-install/files/manage_oracle_rdbms_procs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function stop_database() {
143143
ORA_STOPMODE=${3}
144144
echo "########################################"
145145
# check for pmon
146-
ps -C ora_pmon_${ORACLE_SID} > /dev/null 2>&1
146+
ps ax | grep "[0-9] ora_pmon_${ORACLE_SID}$" > /dev/null 2>&1
147147
if [ ${?} -ne 0 ] ; then
148148
echo "Instance "${ORACLE_SID}" not running"
149149
return

0 commit comments

Comments
 (0)