Skip to Main Content

Oracle Database Discussions

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!

Starting oracle database 18c automatically

user13168644Sep 25 2018 — edited Sep 25 2018

Hi,

I just installed oracle database enterprise edition on a Linux RHEL 7.5 . It is a stand alone server ( so no cdb / pdbs) .

1. I edited the /etc/oratab file and set the flag to 'Y'.

2. I created the file  /etc/init.d/dbora with the following content

#! /bin/sh

ORA_HOME=/u01/app/oracle/product/18.0.0/dbhome_1

ORA_OWNER=oracle

case "$1" in

'start')

    su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME" &

    touch /var/lock/subsys/dbora

    ;;

'stop')

    su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME" &

    rm -f /var/lock/subsys/dbora

    ;;

esac

3. I changed the group and the permission of the "dbora" file

# chgrp dba dbora

# chmod 750 dbora

4. I created the symbolic links to the dbora script in the appropriate run-level script directories, as follows:

# ln -s /etc/init.d/dbora /etc/rc.d/rc0.d/K01dbora

# ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/S99dbora

# ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/S99dbora

          When I restarted the server and tried to connect to oracle. I am getting "Connected to an idle instance" .  I am I missing anything ? All suggestions appreciated.

Thanks

This post has been answered by unknown-7404 on Sep 25 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2018
Added on Sep 25 2018
8 comments
3,436 views