--- Before & After ... Update & Reboot ---

Before-and-After-Update-Reboot.html

yum update; sync; sync; sync; date
sync; sync; sync; reboot

Look at many pre-check here SEC/Update-Reboot.html --- Check TC URL's  
RESTART autofs ... systemctl restart autofs ... service autofs restart
 

-----------------------------------------------------
Update size? Any issues?..call for help. New Kernel?
-----------------------------------------------------
yum check-update

----------------------------------------------------------------------------------------------------------
OEL6 or 7
-----------------------------------------------------
uname -r 

If OEL7 then systemctl is used (and often /etc/init.d RC scripts)
of OEL6 only /etc/init.d RC scripts

------------------------------------------------------
Paths that must automount.
------------------------------------------------------
ls -l /etc/auto.*

cat  /etc/auto.banner | egrep -v \# | awk '{print "echo \""$1"\";ls -l "$1}' | sh | more
cat  /etc/auto.banner | egrep -v \# | awk '{print "echo \""$1"\";  ls -l "$1}'  

cat  /etc/auto.hanfs | egrep -v \# | awk '{print "echo \""$1"\";ls -l "$1}'  | sh | more
cat  /etc/auto.hanfs | egrep -v \# | awk '{print "echo \""$1"\";ls -l "$1}' 

cat /etc/auto.firestone ## needs /firestone prefix  
ls -ld  /home/mriale/idcard
drwxr-xr-x 2 3615 dev 137 Aug  2  2017 /home/mriale/idcard


------------------------------------------------------
DB's running?
------------------------------------------------------
ps -ef | egrep pmon | egrep -v grep | awk '{print $8}'
ps -ef | egrep -i listen | egrep -v grep | awk '{print $8" "$9" "$10}'
ps -ef | egrep agent | egrep -v grep | awk '{print $8}'



------------------------------------------------------
what RC scripts might need to be started?
------------------------------------------------------
egrep -w appworx /etc/init.d/* |cut -d: -f1 |sort -u |awk '{print $1" start"}'
egrep -w badm    /etc/init.d/* |cut -d: -f1 |sort -u |awk '{print $1" start"}'
egrep -w banjob  /etc/init.d/* |cut -d: -f1 |sort -u |awk '{print $1" start"}'
egrep -w jenkins /etc/init.d/* |cut -d: -f1 |sort -u |awk '{print $1" start"}'
egrep -w oni     /etc/init.d/* |cut -d: -f1 |sort -u |awk '{print $1" start"}'
egrep -w oracle  /etc/init.d/* |cut -d: -f1 |sort -u |awk '{print $1" start"}'
egrep -w rabbit  /etc/init.d/* |cut -d: -f1 |sort -u |awk '{print $1" start"}'
egrep -w tomcat  /etc/init.d/* |cut -d: -f1 |sort -u |awk '{print $1" start"}'

If an RC script (systemd should manage ownership) will be used to stop|start...
Confirm that there is a su oracle in the script.
egrep oracle /etc/init.d/rc-scriptname

sudo su - oracle -c /etc/init.d/rc-scriptname

chkconfig --list
chkconfig --list  | awk '{print $7" "$1}' | egrep -v off

systemctl | egrep 'appworx|badm|banjob|jenkins|oni|oracle|rabbit|tomcat
systemctl | egrep 'appworx|badm|banjob|jenkins|oni|oracle|rabbit|tomcat' | cut -c1-90


systemctl | egrep 'appworx|badm|banjob|jenkins|oni|oracle|rabbit|tomcat' | cut -c1-90 | egrep -v 'session|smart|stat|user|lvm'  | sort -u | awk '{print "systemctl status "$1}'  > /var/tmp/check-systemctl
vi /var/tmp/check-systemctl
sh /var/tmp/check-systemctl | egrep '.service|Active:' | egrep -v 'Loaded|CGroup'



systemctl | egrep 'appworx|badm|banjob|jenkins|oni|oracle|rabbit|tomcat' | cut -c1-90 | egrep -v 'session|smart|stat|user|lvm'  | sort -u | awk '{print "systemctl status "$1}' 


-------------------------------------------------------
What else is running, that will indicate a service?
-------------------------------------------------------
ps -ef | egrep root       | egrep -v grep | egrep -v \\[
ps -ef | egrep -v root    | egrep -v grep | egrep -v \\[
ps -ef | egrep cron       | egrep -v grep 
ps -ef | egrep badm       | egrep -v grep 
ps -ef | egrep oracle     | egrep -v grep 
ps -ef | egrep tomcat     | egrep -v grep 
ps -ef | egrep jenkins    | egrep -v grep 
ps -ef | egrep appworx    | egrep -v grep 

ps -ef | egrep 'appworx|badm|banjob|jenkins|oni|oracle|rabbit|tomcat' |  egrep -v grep
ps -ef | egrep 'appworx|badm|banjob|jenkins|oni|oracle|rabbit|tomcat' |  egrep -v grep |cut -c1-60

            
------------------------------------------------------
Do these scripts exist? 
------------------------------------------------------
find  /u0[1-9]/*  -name   start_stop.shl -print

find  /u0[1-9]/*  -name   idmt_cron.shl -print

find  /u0[1-9]/*  -name   dbstart       -print

------------------------------------------------------
In Oracle crontd, wait for it to runb
------------------------------------------------------
crontab -u oracle -l | egrep 'start_stop.shl|dbstart|cron'
crontab -u oracle -l 

------------------------------------------------------
Is it polling??
------------------------------------------------------
ps -ef | egrep start_stop.shl | egrep -v grep

ps -ef | egrep idmt_cron.shl  | egrep -v grep

ps -ef | egrep dbstart | egrep -v grep


ls -1 /etc/rc*/* | egrep 'oracle|gcstartup|tomcat' | egrep ^S | sort -u |egrep -v unlock
ps -ef |egrep 'oracle|appworx|jenkins|tomcat|rabbit' |egrep -v grep |awk '{print $1" "$8" "$9" "$10}' |sort -u
 
ps -ef |egrep 'oracle|appworx|jenkins|tomcat|rabbit' |egrep -v grep |awk '{print $1" "$8" "$9" "$10}' |sort -u; printf "\n\n\n\n"; ps -ef |egrep tomcat |egrep -v grep
---
egrep oracle /etc/init.d/* |cut -d: -f1 |sort -u |awk '{print $1}'
---
cd /etc/init.d; egrep oracle * |cut -d: -f1 |sort -u |awk '{print $1}'
---
systemctl | awk '{print $1}' |egrep oracle
---
systemctl | egrep 'appworx|badm|banjob|jenkins|oni|oracle|rabbit|tomcat
systemctl | egrep 'appworx|badm|banjob|jenkins|oni|oracle|rabbit|tomcat' | cut -c1-90
 
ps -ef |egrep 'pmon' | egrep -v grep | egrep -v grep |awk '{print $8}'
 
ps -ef |egrep -v 'root|gdm|avahi|chrony|colord|rpc|rtkit|smmsp|polkitd|libstor|dbus' |egrep -v 'grep|UID' |awk '{print $1" "$8" "$9" "$10}' |sort -u
ps -ef |egrep oracle |awk '{print $1" "$8" "$9" "$10}' |sort -u |egrep -v 'sshd|grep'
 
 
ps -ef |egrep 'oracle|appworx|jenkins|tomcat|rabbit' |egrep -v grep |awk '{print $1" "$8" "$9" "$10}' |sort -u ; ps -ef |egrep tomcat |egrep -v grep |wc -l>
ps -ef |egrep -i 'oracle|appworx|jenkins|tomcat|weblogic' |egrep -v grep |wc -l
ps -ef |egrep -i 'oracle|appworx|jenkins|tomcat|weblogic' |egrep -v grep |awk '{print $1" "$8" "$9" "$10}' |sort -u > /work/pre-reboot; cat /work/pre-reboot
ps -ef |egrep -v 'root|gdm' |egrep -v 'grep|UID' |awk '{print $1" "$8" "$9" "$10}' |sort -u > /work/pre-reboot-2; cat /work/pre-reboot-2
ps -ef |egrep pmon >/work/db-names; cat /work/db-names
ps -ef |egrep 'banjob|appworx' |grep -v grep
ps -ef |egrep 'jenkins|oracle' |awk '{print $1" "$8" "$9" "$10" "$11" "$12}'
ps -ef |egrep -v 'root|gdm|avahi|chrony|colord|rpc|rtkit|smmsp' |egrep -v 'grep|UID' |awk '{print $1" "$8" "$9" "$10}' |sort -u
Check if the server is on this page... Check Server Here

If all regulare methods fail to restart oracle...

su - oracle

[UNDEF]-oracle:~$ oenv <database name>
SECRET=/u01/app/badm/admin/banprod/etc/banprod.secret
ORACLE_HOME = /u01/app/oracle/product/12.1.0/db_1
 ORACLE_SID = banprod
 BANNER_SID = banprod
       USER = oracle
[banprod]-oracle:~$ sqlplus '/as sysdba'*

SQL*Plus: Release 12.1.0.2.0 Production on Tue Sep 8 07:27:28 2020

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Connected to an idle instance.

SQL>startup
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.

Total System Global Area 1.5032E+10 bytes
Fixed Size                  4514736 bytes
Variable Size            8891927632 bytes
Database Buffers         6106906624 bytes
Redo Buffers               29036544 bytes
Database mounted.
Database opened.

Valid HTML 4.01!

Made with Bluefish HTML editor