Linux Operating System (MOSC)

MOSC Banner

Oracle service and oracle auto start not working - 11.2.0.4 on Linux 7.1

edited Jun 4, 2015 10:00AM in Linux Operating System (MOSC) 2 commentsAnswered

Hello everyone

We are running 11.2.0.4 on RHEL Linux 7.1 (Maipo)

We are trying to setup oracle to auto start / shutdown on boot

Here is what we did

Step # 1. Created /etc/init.d/dbora.. here are the contents of it

#!/bin/sh

# chkconfig: 345 99 10

# description: Oracle auto start-stop script.

#

# Set ORA_OWNER to the user id of the owner of the

# Oracle database software.

ORA_OWNER=oracle

case "$1" in

   'start')

      # Start the Oracle databases:

      # The following command assumes that the oracle login

      # will not prompt the user for any values

      # Remove "&" if you don't want startup as a background process.

      su $ORA_OWNER -c "/home/oracle/admin/scripts/startup.sh >> /home/oracle/scripts/startup_shutdown.log 2>&1" &

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center