Auto starting Oracle at boot time

I have installed Oracle 11gr2 on Oracle Enterprise Linux successfully. Now i want to make oracle available automatically at boot time. I mean whenever server is up Oracle starts automatically.

It is not happening. I have to run dbstart script to make oracle available.
In ubuntu, we create /etc/init.d/oracledb script file, and with the use of following commands, oracle starts at boot time
chmod a+x /etc/init.d/oracledb
update-rc.d oracledb defaults 99
What i need is, its parallel for OEL.

Similar Messages

  • How do I start slapd at boot time in leopard?

    Greeting,
      Forgive me if this is the wrong forum/community.
      I want to start slapd at boot time on my new leopard upgrade.  On tiger, it was as simple as having an LDAPSERVER=-YES- line in /etc/hostconfig.  That does not seem to work for leopard.  I can run slapd from the command line.  I needed to make changes to the slapd.conf tiger version and reload my database, but all is working fine.  I just have not been able to get the deamon to start at boot up.  It must be simple.  Any ideas?
      Thanks,
    --Linn

    Texas Mac Man,
      Thanks.  Slapd is the OpenLDAP daemon (server) delivered with MacOS, even Client.  No, starting at the user level is not what I need.  I can already do that in a terminal window with /usr/libexec/slapd, after I get su'ed to root.
      Think Unix, not iApps.  When the system boots up, there should be scripts available to start specific daemons.  I am looking for hints there.
    BDAqua,
      Thanks.  I had seen that first discussion before.  It deals with slapd failing when it tries to start on MacOS Server... where all these daemons indeed start at boot time.  I am just trying to figure out how to do in leopard what I successfully did in tiger, namely start /usr/libexec/slapd at boot time.
      And note, this is not an issue with slapd failing due to slapd.conf or database problems.  All works fine from the user lever start.
      Thanks,
    --Linn

  • How to prevent from starting oracle server every time i start windows?

    I have winXP professinonal, and i would like to know how to prevent from starting oracle server every time i start windows. Because it really slows starting the windows. Thanks

    The scripts above seems to work as intended with no errors and do indeed stop my five XE services. I created the second script to start them and they do indeed start and are listed as "Started" in the Services panel aferwards.
    My XE installation has the 5 services set up to start automatically.
    I was happy to find the script above because I did not know the starting order and using the XE shortcuts for "Stop Database" and "Start Database" just seemed to cause sqlplus to receive ORA-12514 "listener does not currently know of service..." after trying to use them to restart the database. Using the scripts above seems to leave me with a different error.
    I am pretty sure I eliminated my 9i listener and it is no longer listed in my Services panel or the registry.
    Restarting the laptop does start the services correctly, and now I am on to a more pressing JDBC error, so if I get a chance to use the script again, I will post my results. Thanks.

  • Strange error message when starting listener at boot time

    Hi I have SuSE 10 server and Oracle 10.2.0
    I followed the instruction on my how configure /etc/init.d/dbora to start
    the db instance and the listener at boot time
    The db instance starts fine;however, the listener doesnt start and gives the following strange message
    "cannot start using /ade/vikrkuma_new/oracle/bin/tnslnr"
    Does anyone has seen this and is there a workaround?
    It looks like to me the listener tries to locate the listener.ora but it fails
    I tried to force it by setting TNS_ADMIN in my /etc/init.d/dbora script but it still doesnt pick it up
    any clue?

    Hi,
    Check your oracle bin varible and oracle home varible. If possible can you force this?
    Cheers,
    Kamalesh JK

  • Auto start Oracle instance in linux

    Can I configure oracle to auto start an oracle instance in linux environment ?

    Here are the steps to enable the oracle service start automatically during the system boot
    Login as root in Linux box to execute the following steps
    1. the flag set to Y in /etc/oratab file with the respective instance
    2. Copy the oracle script in /etc/init.d folder
    3. change the permission < chmod 755 <script filename>
    4. add the service <chkconfig --add <script filename>
    5 Put the service auto on <chkconfig <script filename> on >
    6. To verify the oracle service startup automatic < service <script filename> stop > < service <script filename> start >
    Regards
    N Jandial

  • Auto start oracle in linux - error

    1. edited the "/etc/oratab" file setting flag to 'Y'.
    soni:/home/oracle/oracle/product/10.2.0/db_1:Y
    2 connect wih root user
    - created empty file (/etc/init.d/dbora)
    copied from (http://www.oracle-base.com/articles/linux/AutomatingDatabaseStartupAndShutdownOnLinux.php)
    #!/bin/sh
    # chkconfig: 345 99 10
    # description: Oracle auto start-stop script.
    # Change the value of ORACLE_HOME to specify the correct Oracle home
    # directory for your installation.
    ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1
    # Change the value of ORACLE to the login name of the
    # oracle owner at your site.
    4.
    chmod 750 /etc/init.d/dbora
    5.
    chkconfig --add dbora
    When I try this root user i get error
    # /etc/init.d/dbora start
    /etc/profile: line 51: syntax error near unexpected token `then'
    /etc/profile: line 51: `if[ \$USER= "oracle" ]; then'
    -bash: c: No such file or directory
    I restarted the database, but DB didnt start automatically...
    Edited by: The_Rock on Jun 10, 2010 9:47 PM

    The_Rock wrote:
    # /etc/init.d/dbora start
    /etc/profile: line 51: syntax error near unexpected token `then'
    /etc/profile: line 51: `if[ \$USER= "oracle" ]; then'
    -bash: c: No such file or directoryThe /etc/profile line 51 seems to be incorrect. No space between the "+if+" and the bracket condition.
    E.g.
    /home/billy> if[ \$USER = "oracle" ]; then echo true;else echo false;fi
    bash: syntax error near unexpected token `then'
    /home/billy> if [ \$USER = "oracle" ]; then echo true;else echo false;fi
    falseWhy do you use a leading slash for the +$USER+ variable? It changes it from a variable to a literal.
    /home/billy> echo $USER
    billy
    /home/billy> echo \$USER
    $USERLiteral "+$USER+" will never equal literal "+oracle+".

  • How to auto start XAMPP at boot?

    Placing:
    /opt/lampp/lampp start
    in the session will not work because it needs sudo priviliges. But I don't how to config it to auto start at boot on Arch Linux. Thanks

    Probably /etc/rc.local would be your best bet.

  • Auto starting applications on boot

    I'd love to have terminal auto start and position in the bottom left of the screen. What file should I edit to make this happen? And, what how can I specify where the applicaiton should appear?
    I looked for a rc.conf file, but could not find. Perhaps there is an easy way of doing this in the GUI.
    Which is the best approach?

    Run Terminal and set the window size and position you want, then use "Save As..." from the "File" menu to create a settings file. Add this file to the "Login Items" in "Accounts" System Preference.

  • Starting Oracle XE on linux by /etc/init.d/oracle-xe start

    Hello,
    I installed Oracle Database 10g Express Edition on a Linux Ubuntu 7.04 (feisty)
    following official installation instructions found here
    http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#BABCEAHD
    but I noticed a weird behavior.
    The installation process was ok.
    The configuration process (/etc/init.d/oracle-xe configure) was also ok.
    I set everything on default except for the “starting on boot” option I choose NO, because the instructions let me understand that I can start the service manually by the command:
    $ /etc/init.d/oracle-xe start
    The configuration process at the end also started the service well, so I could test my new oracle installation on my web browser following the url http://127.0.0.1:8080/apex
    Everything went fine... but...
    On the next boot I wanted to start my oracle so I typed
    sudo /etc/init.d/oracle-xe start
    but nothing happened and the server didn't go up.
    Looking into to script /etc/init.d/oracle-xe
    we can find this switch
    case "$1" in
    start)
         if test -f "$CONFIGURATION"
         then
              if test "$ORACLE_DBENABLED" != "true"
              then
                   exit 0
              fi
         else
         echo "Oracle Database 10g Express Edition is not configured. You must run
    '/etc/init.d/oracle-xe configure' as the root user to configure the database."
              exit 0
         fi
         start
    this means that if you chose NO (N) for the “starting on boot” option on the configuration process (NB this choice put false in the env variable ORACLE_DBENABLED) you can't start the dbms by this script.
    I try comment the few lines
         then
              #if test "$ORACLE_DBENABLED" != "true"
              #then
              #     exit 0
              #fi
         else
    and this time the server starts well.
    So I deduced that something was wrong with the script and the official installation instructions.

    Yes... Thank you.
    But I saw the problem could to be simple avoided using the options
    enable/disable for the script /etc/init.d/oracle-xe,
    If you choose not to start oracle at boot time, you can start it
    manually by the sequence
    /etc/init.d/oracle-xe enable
    /etc/init.d/oracle-xe start
    then when you want to stop it
    /etc/init.d/oracle-xe stop
    /etc/init.d/oracle-xe disable
    by this last command we don't make oracle restart
    at the next system boot.
    I think it would be a good thing to update the reference
    documentation at
    http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#BABCEAHD
    to explain this situation better.

  • Unable to start Oracle 10g instance on boot time (CentOS)

    Hi all,
    I am trying to automate oracle instance start-up on boot time. I have created /etc/oratab and /etc/init.d/dbora files. Also, all the links for run-levels 2,3,4 are set. My machine boots in run-level 3. While I can start the database manually, after the system has booted, I am not able to automate the instance start-up at boot time. Following is the error, I get:
    oracle: /oracle/bin/lsnrctl: error while loading shared libraries: libclntsh.so.9.0: cannot open shared object file: No such file or directory
    I know that normally this problem occurs due to LD_LIBRARY_PATH variable problem. So, I have set the following in /etc/init.d/dbora file.
    LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export LD_LIBRARY_PATH
    System-config (uname -a):
    Linux centos4-db-us-01 2.6.9-67.ELsmp #1 SMP Fri Nov 16 12:48:03 IST 2007 i686 i686 i386 GNU/Linux
    Any help on this issue is highly appreciated.
    Thanks,
    Varun.

    Here it is:
    <code>
    ORA_HOME=/oracle
    ORA_OWNER=oracle
    export ORA_HOME
    ORACLE_SID=wlctp01
    export ORACLE_SID
    ORACLE_HOME=/oracle
    export ORACLE_HOME
    LD_LIBRARY_PATH=/oracle/lib
    export LD_LIBRARY_PATH
    LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32
    export LD_LIBRARY_PATH_32
    PATH=$ORACLE_HOME/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
    export PATH
    LD_ASSUME_KERNEL=2.4.19
    export LD_ASSUME_KERNEL
    EDITOR=vi
    export EDITOR
    if [ ! -f $ORA_HOME/bin/dbstart ]
    then
    echo "Oracle startup: cannot start"
    exit
    fi
    case "$1" in
    'start')
    # Start the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
    echo "Starting oracle instance."
    su - $ORA_OWNER -c $ORA_HOME/bin/dbstart >> /var/log/oracle
    su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start" >> /var/log/oracle
    'stop')
    # Stop the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
    su - $ORA_OWNER -c $ORA_HOME/bin/dbshut >> /var/log/oracle
    su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop" >> /var/log/oracle
    esac
    </code>

  • SMF - start at boot time, but don't restart - possible?

    I'm setting up a software package that has a number of background processes.
    I've got SMF manifests created and imported for all of them, and they're working great for starting the processes at boot time, and doing the automatic restarts when one fails.
    Here's my problem. It turns out that the users of this software want to be able to use the software's integrated process control methods to stop some of their processes. With the current configuration, they use the software's method to stop one of it's processes, and SMF promptly restarts it.
    Is there a way to set up SMF managed software so that SMF starts it at boot time, but then doesn't care if stops later?
    Richard

    I'm not sure how it would be SMF "managed" in such a case. Obviously you want the management to be elsewhere.
    You could use the "legacy" startup scripts in /etc/rcX.d. That will start a process and forget about it, just like pre-Solaris 10. You don't use manifests or have any other benefits of SMF.
    If you do want SMF, I guess the question is how you want it to act..
    When the users stop the processes, do you want SMF to say enabled or disabled? SMF does not track enabled processes by periodic polling, it does it by tracking contracts. This means that starting a process outside of SMF does not allow SMF to track it.
    Darren

  • Process start at boot time..

    Hi All,
    I am developing a client application which needs to be start up at boot time and there is one more requirement that no body 
    should be able to delete this to provide it security.
    Please reply .
    Thanks

    Hi,
    Processes, are not able to start at boot-time as the "processes" is a OS based concept. The closest method you can do is replace the bootloader of Windows with your bootloader then load the Windows through your bootloader, and before loading the OS your
    Bootloader can perform any calculations or start files up as soon as Windows loads. This is the only way to start processes closest to Boot time. 
    In windows vista+ OS this technique would not work because Windows Vista+ has Session separation which by design separates processes into sessions and if you were to start it as soon as the OS starts the process would crash the entire OS as the process would
    not be able to fit in any session as it started before "Winlogon.exe"
    process. Therefore it is not really possible. 

  • How do I start service at boot?

    Hello,
      I am relatively new to arch, so I have played with it since .3 on and off but never as a server.  Right now I can start mysql, httpd and exim just fine, but they don't seem to be starting up at boot time.  How do I fix this?
    Thanks,
    mrjohnston

    Hi mrjohnston,
    You have to add an entry for each daemon in the DAEMONS array in the file /etc/rc.conf.  If you add "exim" (for example) to the DAEMONS line, the file /etc/rc.d/exim will be executed, and that should get it started at bootup.
    Cheers.

  • Auto start bi services on reboot

    Any suggestions on the best way to auto start the BI services like OC4J, SAW, SA, Scheduler using scripting when the server is reboot? Maybe include a delay between each and check each service is up.
    /apps/OracleBI/setup/
    nohup ./oc4j -start > nohup_oc4j_start.out &
    ./run-sa.sh start
    ./run-saw.sh start
    ./run-sch.sh start
    Thanks for the help!!

    Hi,
    Have a look at the following threads.
    Autostart of Services
    Re: Autostart of Services
    Auto Start Oracle Services didn't work
    Re: Auto Start Oracle Services didn't work
    Regards,
    Hussein

  • Automatically start oracle after reboot

    Is there a way to automatically start oracle after reboot? Our platform is Soaris 10 and Oracle 10.2.0.1.0

    (1) Don't forget to edit $ORACLE_HOME/bin/dbstart. (Note:337927.1)
    Original line:
    ORATAB=/etc/oratab
    Modified line:
    ORATAB=/var/opt/oracle/oratab
    (2) As per Note:336299.1 use:
    dbstart $ORACLE_HOME
    or
    dbstart /u01/app/oracle/product/10.2.0 (or whatever is your Oracle_Home)
    or you'll get: "ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener"
    HTH
    Enrique

Maybe you are looking for

  • XCOM: Enemy Unknown Steamversion not running due to driver issues

    Hello I had problems with the OpenGL rendering error message on Steam, but searched for solutions and removing a library (I sadly dont recall which exactly) I got rid of the error message. XCOM itself isnt working though, but atleast Fistful of Frags

  • Application error reads: the instruction at "0x7a0277a9" referenced memory at "0x7a0277a9" the memory could not be "read"

    The following error message appears when launching Firefox: Application error: the instruction at "0x7a0277a9" referenced memory at "0x7a0277a9" the memory could not be "read"

  • Error in ALE

    Scenarion : The IDOC should generate while saving the purchse order in ALE distribution. 1. Creating a TRFC port with RFC destination 2. Creating a partner profile for the vendor (LI). Vendor Name, Partner function, Orders & Ordchg message type, Assi

  • Creating flash video pages

    Everything I read says how easy it is to insert flash video with cs4.. just a few clicks and presto! So why cant I get it to work? I have read tutorials until my eyes are bleeding and the best I can get is a transparent flash player with no content..

  • How to add a display language to 8320

    Hi, I just got BB CUrve 8320 from T Mobile. Does any one know how can I add a display language to it in order to read different language in the email? I need to read chinese. Thanks,