Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Shutdown Script on Linux 7

User254377Apr 7 2016 — edited Apr 13 2016

We have EBS R12.2.5 with 12c database on Linux 7.1

I'm trying to write a script so that it shuts down application and DB automatically when the server is shutting down.

The startup script works fine but it seems like "shutdown -r now" terminates DB instantaneously. I confirmed that the shutdown script ran but the DB was down already when it try to run adstpall.sh.

I noticed that the shutdown in Linux 7 takes less than a few seconds. Is this normal? It seems like it kills or terminates all the processes instantaneously.

shutdown log from shutdown scrip

You are running adstpall.sh version 120.22.12020000.7
adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
USAGE: adstpall.sh <appsusername/appspassword> [-skipNM] [-skipAdmin] [-nothreading]
adstpall.sh <applications_username/applications_password> -secureapps [-skipNM] [-skipAdmin]
adstpall.sh -nodbchk [-skipNM] [-skipAdmin]
adstpall.sh -mode=allnodes
adstpall.sh: exiting with status 1
You are running addbctl.sh version 120.1
Shutting down database dev ...
SQL*Plus: Release 12.1.0.2.0 Production on Thu Apr 7 15:12:16 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected.
ORA-01092: ORACLE instance terminated. Disconnection forced
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
addbctl.sh: exiting with status 1
Logfile: /ebs/dev/u01/12.1.0/appsutil/log/xxx/addlnctl.txt
You are running addlnctl.sh version 120.4
Shutting down listener process dev ...
LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 07-APR-2016 15:12:16
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx)(PORT=1530)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
addlnctl.sh: exiting with status 1
addlnctl.sh: check the logfile /ebs/dev/u01/12.1.0/appsutil/log/xxx/addlnctl.txt for more information ...

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2016
Added on Apr 7 2016
17 comments
4,728 views