dbstart script
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: dbstart script

  1. #1
    Join Date
    Feb 2001
    Location
    alexandria
    Posts
    100

    Question

    my dbstart script starts manually now how do I create softlinks to make sure it starts each time the machine is rebooted by the way my version is LINUX
    thanks

  2. #2
    Join Date
    Feb 2001
    Location
    Paris, France
    Posts
    809
    you'll need to go in /etc ... look there for scripts in rc1.d, rc2.d and so on.
    some scripts have a name beginning with S (like start), and some others have a name beginning with K (like kill).
    these scripts start and stop what must be started and stopped according to the runlevel your box is actually using.

    you just have to add scripts in the right directories for your database to automatically startup and shutdown.

    my boxes run in runlevel 3 (who -r to know the runlevel you're in), so I have added 1 start script in runlevel 3 and 4 kill scripts in runlevels 0, 1, 2 and S
    (I called him S80oracle since 80 was free on my system, check yours so you do not have 2 scripts with the same number).

    # ls rc*/*ora*
    rc0.d/K80oracle
    rc1.d/K80oracle
    rc2.d/K80oracle
    rcS.d/K80oracle
    rc3.d/S80oracle


    here is my S80 script :

    ---------------------
    #!/bin/sh
    ORA_OWNER=oracle
    ORA_HOME=/export/home/oracle
    su $ORA_OWNER -c "$ORA_HOME/admin/admin_ora start" >/dev/null 2>&1
    exit 0
    ---------------------

    note : easy, isn't it ??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width