SlideShare a Scribd company logo
1 of 3
11g R2 (11.2.0.2) -- Script to Auto Start/Shutdown databases during reboots.
I have a standalone 11 R2 (11.2.0.2) non-ASM database. The following is my script which can auto start/stop database and listener during

system reboots. Please note that script reads /etc/oratab file to check which database to start. During startups, any database entry which has

the "Y" at the end in the /etc/oratab file, will be started and anything which ends with "N", will be skipped.



Step 1:

Login as root and create a file called /etc/init.d/oracle. Add the following lines in the script.



#!/bin/bash



#######################################################################

#

# Run-level Startup script for the Oracle Instance and Listener

#

# chkconfig: 345 98 34

# description: Startup/Shutdown script for 11g Oracle instances

#

#######################################################################



#######################################################################

#

# Note:

# cp $ORACLE_HOME/bin/dbstart $ORACLE_HOME/bin/dbstart.orig

# Make the following changes in $ORACLE_HOME/bin/dbstart

#

# Line#80 has the following:

# ORACLE_HOME_LISTNER=$1

#

# Replace it with the following two lines:

# export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1

# ORACLE_HOME_LISTNER=$ORACLE_HOME

#

# cp $ORACLE_HOME/bin/dbshut $ORACLE_HOME/bin/dbshut.orig

# Make the following changes in $ORACLE_HOME/bin/dbshut

#

# Line#50 has the following:

# ORACLE_HOME_LISTNER=$1

#

# Replace it with the following two lines:

# export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1

# ORACLE_HOME_LISTNER=$ORACLE_HOME
#

# save the file and proceed with the steps below

#

#######################################################################



#######################################################################

#Instructions to start start isntances manually

#

# To Start --> /etc/init.d/oracle start

# To Stop --> /etc/init.d/oracle stop

# To restrart --> /etc/init.d/oracle restart

#

#######################################################################



ORA_HM="/u01/app/oracle/product/11.2.0/db_1"

ORA_OWNR="oracle"

# if the executables do not exist -- display error

if [ ! -f $ORA_HM/bin/dbstart -o ! -d $ORA_HM ]

then

echo "Oracle startup: cannot start"

exit 1

fi



# depending on parameter -- startup, shutdown, restart

# of the instance and listener or usage display



case "$1" in

start)

# starting Oracle instances

echo -n "starting Oracle Instances"

su - $ORA_OWNR -c $ORA_HM/bin/dbstart

touch /var/lock/subsys/oracle

ps -ef |grep pmon |grep -v grep

ps -ef |grep lsnr |grep -v grep

echo "OK"

;;

stop)



# Oracle listener and instance shutdown

su - $ORA_OWNR -c $ORA_HM/bin/dbshut

rm -f /var/lock/subsys/oracle
ps -ef |grep pmon |grep -v grep

ps -ef |grep lsnr |grep -v grep

echo "OK"

;;



reload|restart)

$0 stop

$0 start

ps -ef |grep pmon |grep -v grep

ps -ef |grep lsnr |grep -v grep

echo "OK"

;;

*)

echo "Usage: $0 start|stop|restart|reload"

exit 1

esac

exit 0

clear

###################### END of SCRIPT ##############################




Step-2:

Change the permission of the script

chmod 750 /etc/init.d/oracle



Step-3:

Execute the following so that runlevel 3,4 & 5 will execute the script during system reboots.

chkconfig --level 345 oracle on



Step-4

Execute the script and verify everything is working as expected. Alternatively, you candownload the script directory from here.




Additionally you can turn on and turn on with the following.

[root@bl-mm-db-dev ~]# /sbin/chkconfig oracle off

[root@bl-mm-db-dev ~]# /sbin/chkconfig --levels 345 oracle on

More Related Content

What's hot

2010/7/31 LTの虎@LL Tiger
2010/7/31 LTの虎@LL Tiger2010/7/31 LTの虎@LL Tiger
2010/7/31 LTの虎@LL TigerAkihiro Okuno
 
plackdo, plack-like web interface on perl6
plackdo, plack-like web interface on perl6plackdo, plack-like web interface on perl6
plackdo, plack-like web interface on perl6Nobuo Danjou
 
HOW TO DEAL WITH BLOCKING CODE WITHIN ASYNCIO EVENT LOOP
HOW TO DEAL WITH BLOCKING CODE WITHIN ASYNCIO EVENT LOOPHOW TO DEAL WITH BLOCKING CODE WITHIN ASYNCIO EVENT LOOP
HOW TO DEAL WITH BLOCKING CODE WITHIN ASYNCIO EVENT LOOPMykola Novik
 
톰캣 #05-배치
톰캣 #05-배치톰캣 #05-배치
톰캣 #05-배치GyuSeok Lee
 
Building and Testing Puppet with Docker
Building and Testing Puppet with DockerBuilding and Testing Puppet with Docker
Building and Testing Puppet with Dockercarlaasouza
 
Debugging in Clojure: Finding Light in the Darkness using Emacs and Cursive
Debugging in Clojure: Finding Light in the Darkness using Emacs and CursiveDebugging in Clojure: Finding Light in the Darkness using Emacs and Cursive
Debugging in Clojure: Finding Light in the Darkness using Emacs and CursiveAhmad Ragab
 
Spark手把手:[e2-spk-s02]
Spark手把手:[e2-spk-s02]Spark手把手:[e2-spk-s02]
Spark手把手:[e2-spk-s02]Erhwen Kuo
 
PythonShutdownWindows
PythonShutdownWindowsPythonShutdownWindows
PythonShutdownWindowsMatt R
 
Spark手把手:[e2-spk-s03]
Spark手把手:[e2-spk-s03]Spark手把手:[e2-spk-s03]
Spark手把手:[e2-spk-s03]Erhwen Kuo
 
Yurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of Elixir
Yurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of ElixirYurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of Elixir
Yurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of ElixirElixir Club
 
Migrating to Openshift - Reyhan Fabianto
Migrating to Openshift - Reyhan FabiantoMigrating to Openshift - Reyhan Fabianto
Migrating to Openshift - Reyhan FabiantoDevOpsDaysJKT
 
Publishing a Perl6 Module
Publishing a Perl6 ModulePublishing a Perl6 Module
Publishing a Perl6 Moduleast_j
 
Voxxed Days Vilnius 2015 - Having fun with Javassist
Voxxed Days Vilnius 2015 - Having fun with JavassistVoxxed Days Vilnius 2015 - Having fun with Javassist
Voxxed Days Vilnius 2015 - Having fun with JavassistAnton Arhipov
 
Programming JVM Bytecode
Programming JVM BytecodeProgramming JVM Bytecode
Programming JVM BytecodeJoe Kutner
 
Symfony Under the Hood
Symfony Under the HoodSymfony Under the Hood
Symfony Under the HoodeZ Systems
 
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with DistilleryYaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with DistilleryElixir Club
 

What's hot (20)

2010/7/31 LTの虎@LL Tiger
2010/7/31 LTの虎@LL Tiger2010/7/31 LTの虎@LL Tiger
2010/7/31 LTの虎@LL Tiger
 
plackdo, plack-like web interface on perl6
plackdo, plack-like web interface on perl6plackdo, plack-like web interface on perl6
plackdo, plack-like web interface on perl6
 
restart.txt
restart.txtrestart.txt
restart.txt
 
HOW TO DEAL WITH BLOCKING CODE WITHIN ASYNCIO EVENT LOOP
HOW TO DEAL WITH BLOCKING CODE WITHIN ASYNCIO EVENT LOOPHOW TO DEAL WITH BLOCKING CODE WITHIN ASYNCIO EVENT LOOP
HOW TO DEAL WITH BLOCKING CODE WITHIN ASYNCIO EVENT LOOP
 
Perl IO
Perl IOPerl IO
Perl IO
 
톰캣 #05-배치
톰캣 #05-배치톰캣 #05-배치
톰캣 #05-배치
 
Como instalar aeroo en open erp 6
Como instalar aeroo en open erp 6Como instalar aeroo en open erp 6
Como instalar aeroo en open erp 6
 
Building and Testing Puppet with Docker
Building and Testing Puppet with DockerBuilding and Testing Puppet with Docker
Building and Testing Puppet with Docker
 
Debugging in Clojure: Finding Light in the Darkness using Emacs and Cursive
Debugging in Clojure: Finding Light in the Darkness using Emacs and CursiveDebugging in Clojure: Finding Light in the Darkness using Emacs and Cursive
Debugging in Clojure: Finding Light in the Darkness using Emacs and Cursive
 
Spark手把手:[e2-spk-s02]
Spark手把手:[e2-spk-s02]Spark手把手:[e2-spk-s02]
Spark手把手:[e2-spk-s02]
 
PythonShutdownWindows
PythonShutdownWindowsPythonShutdownWindows
PythonShutdownWindows
 
Spark手把手:[e2-spk-s03]
Spark手把手:[e2-spk-s03]Spark手把手:[e2-spk-s03]
Spark手把手:[e2-spk-s03]
 
PHP 7
PHP 7PHP 7
PHP 7
 
Yurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of Elixir
Yurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of ElixirYurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of Elixir
Yurii Bodarev - OTP, Phoenix & Ecto: Three Pillars of Elixir
 
Migrating to Openshift - Reyhan Fabianto
Migrating to Openshift - Reyhan FabiantoMigrating to Openshift - Reyhan Fabianto
Migrating to Openshift - Reyhan Fabianto
 
Publishing a Perl6 Module
Publishing a Perl6 ModulePublishing a Perl6 Module
Publishing a Perl6 Module
 
Voxxed Days Vilnius 2015 - Having fun with Javassist
Voxxed Days Vilnius 2015 - Having fun with JavassistVoxxed Days Vilnius 2015 - Having fun with Javassist
Voxxed Days Vilnius 2015 - Having fun with Javassist
 
Programming JVM Bytecode
Programming JVM BytecodeProgramming JVM Bytecode
Programming JVM Bytecode
 
Symfony Under the Hood
Symfony Under the HoodSymfony Under the Hood
Symfony Under the Hood
 
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with DistilleryYaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
Yaroslav Martsynyuk - Deploying Elixir/Phoenix with Distillery
 

Viewers also liked

My web based lesson - The Story Behind the Guy Fawkes Mask
My web based lesson - The Story Behind the Guy Fawkes MaskMy web based lesson - The Story Behind the Guy Fawkes Mask
My web based lesson - The Story Behind the Guy Fawkes MaskDianaGMendes
 
@1. casa della palmera buenos aires todo cambia
@1. casa della palmera   buenos aires todo cambia@1. casa della palmera   buenos aires todo cambia
@1. casa della palmera buenos aires todo cambiaPaolo Costa
 
Elisa gonzález eje3_actividad3.doc
Elisa gonzález eje3_actividad3.docElisa gonzález eje3_actividad3.doc
Elisa gonzález eje3_actividad3.doclizglez76
 
@2. casa della palmera buenos aires musica andina
@2. casa della palmera   buenos aires musica andina@2. casa della palmera   buenos aires musica andina
@2. casa della palmera buenos aires musica andinaPaolo Costa
 
Module 3 lesson 1 mastery assignment 1
Module 3 lesson 1 mastery assignment 1Module 3 lesson 1 mastery assignment 1
Module 3 lesson 1 mastery assignment 1makaylacook
 
Suorituskyvyn Optimointi (CrossFit urheilussa)
Suorituskyvyn Optimointi (CrossFit urheilussa)Suorituskyvyn Optimointi (CrossFit urheilussa)
Suorituskyvyn Optimointi (CrossFit urheilussa)Olli Sovijärvi
 
UX team and what makes it great (for #uxce14)
UX team and what makes it great   (for #uxce14)UX team and what makes it great   (for #uxce14)
UX team and what makes it great (for #uxce14)Luděk Pikard
 
reflexion analitica educacion en colombia
reflexion analitica educacion en colombiareflexion analitica educacion en colombia
reflexion analitica educacion en colombiaManuel Cassiani
 
3 Behavior Design Gifts
3 Behavior Design Gifts3 Behavior Design Gifts
3 Behavior Design GiftsDavid Ngo
 
Criminología-Escuela Clásica
Criminología-Escuela ClásicaCriminología-Escuela Clásica
Criminología-Escuela ClásicaKristelPG
 

Viewers also liked (15)

Catalogo
CatalogoCatalogo
Catalogo
 
My web based lesson - The Story Behind the Guy Fawkes Mask
My web based lesson - The Story Behind the Guy Fawkes MaskMy web based lesson - The Story Behind the Guy Fawkes Mask
My web based lesson - The Story Behind the Guy Fawkes Mask
 
@1. casa della palmera buenos aires todo cambia
@1. casa della palmera   buenos aires todo cambia@1. casa della palmera   buenos aires todo cambia
@1. casa della palmera buenos aires todo cambia
 
Light sources
Light sourcesLight sources
Light sources
 
Museo interactivo con materiales
Museo interactivo con materialesMuseo interactivo con materiales
Museo interactivo con materiales
 
Elisa gonzález eje3_actividad3.doc
Elisa gonzález eje3_actividad3.docElisa gonzález eje3_actividad3.doc
Elisa gonzález eje3_actividad3.doc
 
@2. casa della palmera buenos aires musica andina
@2. casa della palmera   buenos aires musica andina@2. casa della palmera   buenos aires musica andina
@2. casa della palmera buenos aires musica andina
 
Cristina
CristinaCristina
Cristina
 
Module 3 lesson 1 mastery assignment 1
Module 3 lesson 1 mastery assignment 1Module 3 lesson 1 mastery assignment 1
Module 3 lesson 1 mastery assignment 1
 
Suorituskyvyn Optimointi (CrossFit urheilussa)
Suorituskyvyn Optimointi (CrossFit urheilussa)Suorituskyvyn Optimointi (CrossFit urheilussa)
Suorituskyvyn Optimointi (CrossFit urheilussa)
 
UX team and what makes it great (for #uxce14)
UX team and what makes it great   (for #uxce14)UX team and what makes it great   (for #uxce14)
UX team and what makes it great (for #uxce14)
 
Moeys approval 4-5
Moeys approval 4-5Moeys approval 4-5
Moeys approval 4-5
 
reflexion analitica educacion en colombia
reflexion analitica educacion en colombiareflexion analitica educacion en colombia
reflexion analitica educacion en colombia
 
3 Behavior Design Gifts
3 Behavior Design Gifts3 Behavior Design Gifts
3 Behavior Design Gifts
 
Criminología-Escuela Clásica
Criminología-Escuela ClásicaCriminología-Escuela Clásica
Criminología-Escuela Clásica
 

Similar to Auto start

Bioinformatics p4-io v2013-wim_vancriekinge
Bioinformatics p4-io v2013-wim_vancriekingeBioinformatics p4-io v2013-wim_vancriekinge
Bioinformatics p4-io v2013-wim_vancriekingeProf. Wim Van Criekinge
 
One Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12cOne Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12cJosh Turner
 
TESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GITESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GIMonowar Mukul
 
Hacking Oracle From Web Apps 1 9
Hacking Oracle From Web Apps 1 9Hacking Oracle From Web Apps 1 9
Hacking Oracle From Web Apps 1 9sumsid1234
 
Automatisation in development and testing - within budget
Automatisation in development and testing - within budgetAutomatisation in development and testing - within budget
Automatisation in development and testing - within budgetDavid Lukac
 
Building web framework with Rack
Building web framework with RackBuilding web framework with Rack
Building web framework with Racksickill
 
Multiple instances on linux
Multiple instances on linuxMultiple instances on linux
Multiple instances on linuxVasudeva Rao
 
Firewall
FirewallFirewall
Firewalldcs2004
 
NYPHP March 2009 Presentation
NYPHP March 2009 PresentationNYPHP March 2009 Presentation
NYPHP March 2009 Presentationbrian_dailey
 
Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c Osama Mustafa
 
OverviewIn this assignment you will write your own shell i.docx
OverviewIn this assignment you will write your own shell i.docxOverviewIn this assignment you will write your own shell i.docx
OverviewIn this assignment you will write your own shell i.docxalfred4lewis58146
 
Oracle applications r12.2.0 installation on linux
Oracle applications r12.2.0 installation on linuxOracle applications r12.2.0 installation on linux
Oracle applications r12.2.0 installation on linuxRavi Kumar Lanke
 
Software Development Automation With Scripting Languages
Software Development Automation With Scripting LanguagesSoftware Development Automation With Scripting Languages
Software Development Automation With Scripting LanguagesIonela
 
"I have a framework idea" - Repeat less, share more.
"I have a framework idea" - Repeat less, share more."I have a framework idea" - Repeat less, share more.
"I have a framework idea" - Repeat less, share more.Fabio Milano
 

Similar to Auto start (20)

Bioinformatics p4-io v2013-wim_vancriekinge
Bioinformatics p4-io v2013-wim_vancriekingeBioinformatics p4-io v2013-wim_vancriekinge
Bioinformatics p4-io v2013-wim_vancriekinge
 
Httpd.conf
Httpd.confHttpd.conf
Httpd.conf
 
One Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12cOne Click Provisioning With Enterprise Manager 12c
One Click Provisioning With Enterprise Manager 12c
 
Linux configer
Linux configerLinux configer
Linux configer
 
TESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GITESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GI
 
Introduction to Perl Programming
Introduction to Perl ProgrammingIntroduction to Perl Programming
Introduction to Perl Programming
 
Hacking Oracle From Web Apps 1 9
Hacking Oracle From Web Apps 1 9Hacking Oracle From Web Apps 1 9
Hacking Oracle From Web Apps 1 9
 
Automatisation in development and testing - within budget
Automatisation in development and testing - within budgetAutomatisation in development and testing - within budget
Automatisation in development and testing - within budget
 
Building web framework with Rack
Building web framework with RackBuilding web framework with Rack
Building web framework with Rack
 
Multiple instances on linux
Multiple instances on linuxMultiple instances on linux
Multiple instances on linux
 
Firewall
FirewallFirewall
Firewall
 
NYPHP March 2009 Presentation
NYPHP March 2009 PresentationNYPHP March 2009 Presentation
NYPHP March 2009 Presentation
 
Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c
 
OverviewIn this assignment you will write your own shell i.docx
OverviewIn this assignment you will write your own shell i.docxOverviewIn this assignment you will write your own shell i.docx
OverviewIn this assignment you will write your own shell i.docx
 
Os Selbak
Os SelbakOs Selbak
Os Selbak
 
Oracle applications r12.2.0 installation on linux
Oracle applications r12.2.0 installation on linuxOracle applications r12.2.0 installation on linux
Oracle applications r12.2.0 installation on linux
 
Bioinformatica 27-10-2011-p4-files
Bioinformatica 27-10-2011-p4-filesBioinformatica 27-10-2011-p4-files
Bioinformatica 27-10-2011-p4-files
 
Final Report - Spark
Final Report - SparkFinal Report - Spark
Final Report - Spark
 
Software Development Automation With Scripting Languages
Software Development Automation With Scripting LanguagesSoftware Development Automation With Scripting Languages
Software Development Automation With Scripting Languages
 
"I have a framework idea" - Repeat less, share more.
"I have a framework idea" - Repeat less, share more."I have a framework idea" - Repeat less, share more.
"I have a framework idea" - Repeat less, share more.
 

More from Hari Prasath

More from Hari Prasath (6)

12c arch
12c arch12c arch
12c arch
 
Gg steps
Gg stepsGg steps
Gg steps
 
Gg
GgGg
Gg
 
Awr report error
Awr report errorAwr report error
Awr report error
 
Awr
AwrAwr
Awr
 
Auto start
Auto startAuto start
Auto start
 

Auto start

  • 1. 11g R2 (11.2.0.2) -- Script to Auto Start/Shutdown databases during reboots. I have a standalone 11 R2 (11.2.0.2) non-ASM database. The following is my script which can auto start/stop database and listener during system reboots. Please note that script reads /etc/oratab file to check which database to start. During startups, any database entry which has the "Y" at the end in the /etc/oratab file, will be started and anything which ends with "N", will be skipped. Step 1: Login as root and create a file called /etc/init.d/oracle. Add the following lines in the script. #!/bin/bash ####################################################################### # # Run-level Startup script for the Oracle Instance and Listener # # chkconfig: 345 98 34 # description: Startup/Shutdown script for 11g Oracle instances # ####################################################################### ####################################################################### # # Note: # cp $ORACLE_HOME/bin/dbstart $ORACLE_HOME/bin/dbstart.orig # Make the following changes in $ORACLE_HOME/bin/dbstart # # Line#80 has the following: # ORACLE_HOME_LISTNER=$1 # # Replace it with the following two lines: # export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 # ORACLE_HOME_LISTNER=$ORACLE_HOME # # cp $ORACLE_HOME/bin/dbshut $ORACLE_HOME/bin/dbshut.orig # Make the following changes in $ORACLE_HOME/bin/dbshut # # Line#50 has the following: # ORACLE_HOME_LISTNER=$1 # # Replace it with the following two lines: # export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 # ORACLE_HOME_LISTNER=$ORACLE_HOME
  • 2. # # save the file and proceed with the steps below # ####################################################################### ####################################################################### #Instructions to start start isntances manually # # To Start --> /etc/init.d/oracle start # To Stop --> /etc/init.d/oracle stop # To restrart --> /etc/init.d/oracle restart # ####################################################################### ORA_HM="/u01/app/oracle/product/11.2.0/db_1" ORA_OWNR="oracle" # if the executables do not exist -- display error if [ ! -f $ORA_HM/bin/dbstart -o ! -d $ORA_HM ] then echo "Oracle startup: cannot start" exit 1 fi # depending on parameter -- startup, shutdown, restart # of the instance and listener or usage display case "$1" in start) # starting Oracle instances echo -n "starting Oracle Instances" su - $ORA_OWNR -c $ORA_HM/bin/dbstart touch /var/lock/subsys/oracle ps -ef |grep pmon |grep -v grep ps -ef |grep lsnr |grep -v grep echo "OK" ;; stop) # Oracle listener and instance shutdown su - $ORA_OWNR -c $ORA_HM/bin/dbshut rm -f /var/lock/subsys/oracle
  • 3. ps -ef |grep pmon |grep -v grep ps -ef |grep lsnr |grep -v grep echo "OK" ;; reload|restart) $0 stop $0 start ps -ef |grep pmon |grep -v grep ps -ef |grep lsnr |grep -v grep echo "OK" ;; *) echo "Usage: $0 start|stop|restart|reload" exit 1 esac exit 0 clear ###################### END of SCRIPT ############################## Step-2: Change the permission of the script chmod 750 /etc/init.d/oracle Step-3: Execute the following so that runlevel 3,4 & 5 will execute the script during system reboots. chkconfig --level 345 oracle on Step-4 Execute the script and verify everything is working as expected. Alternatively, you candownload the script directory from here. Additionally you can turn on and turn on with the following. [root@bl-mm-db-dev ~]# /sbin/chkconfig oracle off [root@bl-mm-db-dev ~]# /sbin/chkconfig --levels 345 oracle on