Automatic stop/start of databases on solaris 10

I've followed the documentation in terms of creating the dbora script and linking it but unfortunately, my db isn't coming back up on reboot.
Anyone has seen this?
My unix administrator is saying there is no log file to review on solaris 10 on reboot. Is there a log somewhere i can check?
Thx.

Thanks for the reply.
This is what I did:
1. Edit the /var/opt/oracle/oratab file for Solaris and /etc/oratab file for
HP and Linux.
Database entries in the oratab file appears in the following format:
ORACLE_SID:ORACLE_HOME:Y
In the preceding command, Y or N specifies whether you want the dbstart
and dbshut scripts to start up and shut down the database. For each database
that you want to start up, find the ORACLE_SID entry identified by the sid in
the first field. Change the last field for each to Y.
For Oracle Real Application Clusters installation, this entry appears in the
following format:
DB_NAME:ORACLE_HOME:Y
In the preceding command, DB_NAME is the cluster database name. Y or N
specifies whether you want the dbstart and dbshut scripts to start up and
shut down the database.
2. In the /etc/init.d directory, create a dbora script similar to the following, if
it does not already exist. Be sure to give the full path of the dbstart utility.
#!/bin/sh
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.
ORA_HOME=/u01/app/oracle/product/9.2.0.1.0
ORA_OWNER=oracle
if [! -f $ORA_HOME/bin/dbstart]
See Also: init command in your UNIX system documentation
for more information on system startup and shutdown procedures.
Configuration Tasks to Perform as the root User
4-6 Installation Guide
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
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &
’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 &
esac
3. Create symbolic links to the dbora script in the appropriate run-level script
directories, as follows:
# ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
# ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora

Similar Messages

  • How to start Oracle database in solaris Machine

    I installed Oracle database in my solaris machine. Everything went fine .. I was able to install it and test the database if it's working or not.
    Something happened that made me shut down and restart the solaris machine, the problem is that Oracle is not running, so I have to start it manually, and I'm not sure how to do that ... Is there a way to start Oracle automatically once the solaris machine is started ...
    I'm using the SSH Secure Shell Client to configure and install everything into the solaris machine ..

    Here is the work around for starting oracle instance automatically.
    1) logon the system as root user.
    2) under /etc/init.d/ directory, create a file name oraclestart(name the file to what you feel comfortable). eg: /etc/init.d/oraclestart.
    with the following content:
    #!/bin/sh
    # Created by Henry Nguyen
    # Date 10/11/2005
    # Script to automatic start and stop oracle instances on server
    ORACLE_HOME=/export/home/oracle/product/9.2.0.1.0 (diffrent on your system)
    if [ ! -f $ORACLE_HOME/bin/dbstart || ! -f $ORACLE_HOME/bin/dbshut ]; then
    echo missing oracle start/stop script
    exit 1
    fi
    case "$1" in
    'start')
    su - oracle -c '$ORACLE_HOME/bin/dbstart'
    su - oracle -c '$ORACLE_HOME/bin/lsnrctl start'
    'stop')
    su - oracle -c '$ORACLE_HOME/bin/lsnrctl stop'
    su - oracle -c '$ORACLE_HOME/bin/dbshut'
    esac
    3) create 2 soft link as following:
    ln -s /etc/init.d/oraclestart /etc/rc2.d/S99oraclestart
    ln -s /etc/init.d/oraclestart /etc/rc0.d/K10oraclestart
    Note the S99 and K10: that are Solaris priorities to when start and stop an oracle instance and those letter must be capitalized.
    Hope this will help you

  • Script to automate stop/start listener on aix

    Hello everyone,
    We have a database on oracle 8i on aix platform and we have a scheduled restart on the db everyday. But we have been facing problem with the db restart and it gets hanged.
    As a solution, i wanted to develop a shell script that will stop the listener first before the db shut down.
    Can anyone help me please?

    If I remember correctly, example scripts to automate db and listener startup and shutdown are in the oracle 8i installation guide for your platform.
    The following should work:
    vi /etc/init.d/oracle
    ORACLE_HOME=your path to oracle home directory
    case "$1" in
        'start') 
             su - oracle -c "$ORACLE_HOME/bin/lsnrctl start"
             su - oracle -c "$ORACLE_HOME/bin/dbstart"
        'stop')  
             su - oracle -c "$ORACLE_HOME/bin/dbshut"
             su - oracle -c "$ORACLE_HOME/bin/lsnrctl stop"
    esacThen set execute privileges on the above file:
    chmod 750 oracle
    Next add the appropriate symbolic links:
    ln -s /etc/init.d/oracle /etc/rc.d/rc3.d/K01oracle
    ln -s /etc/init.d/oracle /etc/rc.d/rc3.d/S99oracle
    ln -s /etc/init.d/oracle /etc/rc.d/rc5.d/K01oracle
    ln -s /etc/init.d/oracle /etc/rc.d/rc5.d/S99oracle
    The oracle dbstart and dbshut scripts rely on entries in */etc/oratab*, so make sure you have a "Y" in the file for yes to autostart and auto shutdown.

  • Starting of database and listener automatically while starting server

    how to start the listener and database automatically while starting RH-LINUX server itself?
    thanks for advance
    Mohan

    Hello Mohan,
    following is the code of my shell, which i use for starting, stopping, restarting teh oracle and listener service, except your oracle home location and oracle user i do not think you need to change any thing..also i assume that you some basic knowledge of shell programming.
    put this /etc/rc.d/init.d, then add this service by chkconfig -- add oracle (if oracle is the file name in whcih this shell exists).
    it will run for 3,4,5 of runlevels with priority as 20, 80
    thanx in advance..subodh
    #!/bin/sh
    # Description: This Scripts starts stops Oracle database and listner
    # chkconfig: - 345 20 80
    ORACLE_OWNR='oracle'
    ORACLE_LOCN='/oracle/product/10.1.0/bin'
    echo "Check whethere the file exists or not"
    if [ ! -f '$ORACLE_LOCN/lsnrctl' -o ! -d $ORACLE_LOCN ]; then
    echo "Unable to Start the Oracle Service"
    fi
    case "$1" in
    start)
    echo "Starting up Oracle Database and Listener Service"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/dbstart"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/lsnrctl start"
    touch /var/log/oracle
    stop)
    echo "Stoping Oracle Database and Listener Service"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/dbshut"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/lsnrctl stop"
    touch /var/log/oracle
    restart|reload)
    echo "Restarting Oracle Database and Listener Service"
    $0 stop
    $0 start
    echo "Usuage Oracle start|stop|restart|reload"
    exit 1
    esac
    exit 0

  • How may I automatically stop and start Mail services at a set time please

    Hi folks. I was wondering if anyone could tell me how to automatically stop and start Mail services (or any other services) at a set time please in Leopard Server? Is there a script someone has created which might help?
    Cheers, David ( a realy newbie when it comes to administering OS X server)

    launchd works through a series of XML documents that define tasks to run, either at launch, on a time schedule, in response to network events, etc.
    So you'll need to create two .plists - one to start the mail server and one to stop it. They should be saved in /Library/LaunchDaemons. I'd suggest something like:
    /Library/LaunchDaemons/local.postfix.stop.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.stop</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>stop</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>1</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    and /Library/LaunchDaemons/local.postfix.start.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.start</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>start</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>4</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    You'll need to either use launchctl load /Library/LaunchDaemons/local.postfix.stop (or start) to load the tasks, or reboot your server.
    I'm curious, though, as to why you want to do this. Mail is typically one of the services that people want to run 24/7 so they don't miss out on any emails (even though SMTP can tolerate this). Why do you want to shut yours down?

  • How to start and stop the BI Services in Solaris 10

    Hello All,
    Can anyone guide me on how to start and stop the BI Services in Solaris 10. In windows there are options set in Start->Programs->Middleware_Home->Start/Stop BI Services.
    Primarily after doing changes to the scheduler configuration, I need to restart the services to get it implemented? If yes how can I do it?
    Any help will be appreciated
    Thank you
    Ash
    Edited by: 902739 on Jan 11, 2012 12:17 PM

    Please help me by showing action plan for stop sap , offline backup and then start sap.
    i am little bit confuse How to start and stop SAP on cluster for offline backup
    Below are the systems name with host name , please explain me in sequence
    Systems name                                   Hostname
    # Hope SAP ERP Prod DB Primary       gsgbbux860
    # Hope SAP ERP Prod DB Standby      gsgbbux861
    # Hope SAP ERP Prod Cluster              gsgbbux862
    # Hope SAP ERP App 1                       gsgbbux864
    # Hope SAP ERP App 2                       gsgbbux865
    Thanks in advance
    Zaheer

  • Automatic start of Database

    May I know, how to start my own database when i start the system.
    Like, how it happens in the default database with oracle software.

    When u install oracle on ur machine, then the services that are
    needed to start the database, automatically start when the
    server starts, this is called bootstraping the instance.

  • How to stop and start RAC Database

    Hi,
    Can anybody tell me How to stop and start RAC Database.
    Pls give me the exact procedure for OS - IBM Aix 5.3.
    Rajkumar

    Burleson,
    It so appears, as from the numerous times you have been published incorrect, untested information, and non-working scripts, you are not an Oracle guru,
    but only a self-proclaimed one.
    It also appears nothing on your 'CV' can be easily verified.
    You state you are an 'adjunct professor emeritus', however anyone who was kicked out after a few months can call himself a 'professor emeritus'.
    Looking at the enormous amount insults and slander you have posted directed to me and others on this forum, showing a highly unprofessional attitude toward your peers,violating this forums rules of conduct, don't you think you deserved to be banned completely?
    After all, you are always promoting your own publications here, which is also in violation of the rules for this forum.
    What makes you think that "Sybrand" is a man's name? How many male Sybrand's do you know? I don't know any, not one.
    That's your problem. I'm as much as male, as you are a fat, ugly, self-proclaimed Oracle-guru, which you are clearly not, you are only a fraud, and this glares from all of your publications.,
    Sybrand Bakker
    Senior Oracle DBA

  • How to start/stop  oracle 9i databases in aix

    please provide me details steps of start/stop oracle 9i database in aix . we have four nodes .So i would like to know the steps of shutting down database including all nodes & also starting up and any prerequisite?
    Edited by: apusumit on Jun 10, 2011 5:32 AM
    Edited by: apusumit on Jun 10, 2011 5:35 AM
    Edited by: apusumit on Jun 18, 2011 7:01 AM

    apusumit wrote:
    please provide me details steps of start/stop oracle 9i database . we have four nodes .So i would like to know the steps of shutting down database including all nodes & also starting up and any prerequisite?
    Edited by: apusumit on Jun 10, 2011 5:32 AMrefer the link:-
    http://www.puschitz.com/InstallingOracle9iRAC.shtml#StartingAndStoppingOracle9iClusterManager
    also,
    please post the question in
    Forum Home » Grid Computing » Real Application Clusters
    Good Luck.

  • Automatically start the database

    I could not automatically start the database recently. My OS is windows XP. I set all the OracleServiceSID to be automatic in the windows service and the ora_sid_autostart to be true in the registry. It automatically started before. I have not changed anything except that the network encryption was added recently. Can anybody give me a hint? Thank you very much for your help.
    Xiaoyun

    Thank you for your reply. I can still manually start the database. The only thing uncommon from the alert log is
    Thu Jul 10 16:36:58 2003
    Beginning crash recovery of 1 threads
    Thu Jul 10 16:36:58 2003
    Started first pass scan
    Thu Jul 10 16:36:58 2003
    Completed first pass scan
    3685 redo blocks read, 65 data blocks need recovery
    Thu Jul 10 16:36:58 2003
    Started recovery at
    Thread 1: logseq 302, block 145778, scn 0.0
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 302 Reading mem 0
    Mem# 0 errs 0: C:\ORACLE\ORADATA\SID\REDO01.LOG
    Thu Jul 10 16:36:59 2003
    Ended recovery at
    Thread 1: logseq 302, block 149463, scn 0.75826787
    65 data blocks read, 65 data blocks written, 3685 redo blocks read
    Crash recovery completed successfully
    Thu Jul 10 16:37:00 2003
    Do I have to do the recovery? Thank you for your help.

  • How to let SOA Suite automatically start Oracle Database services if necess

    It occurs from time to time that I forget to start Oracle database services
    before I start Soa Suite. Can I somehow let SOa Suite startup script check in advance
    if Oracle database services need to be started (and start them automatically if necessary)?
    Peter

    Hi,
    This is a familiar issue. I've come up with the following solutions.
    1) On my linux machine, I start the database (EE) and soa suite at boot time using /etc/oratab.
    2) On my windows machine, I start the database (XE) at boot time, as a service that automatically starts. The soa suite is started manually. I could start the suite automatically as a service also, but because it takes up so much memory and I do not always want to run the suite, I prefer to start manually. In any way, the database is started automatically before the soa suite.
    Hope this will help you.
    Kind regards,
    H

  • I can not stop or start the Database logged with sidadm

    Hello !!
    I migrated ECC6 SAP / MaxDB 7.6.00.35 Windows 2003 Server to Windows 2008 Server. But now when I perform a login with sidadm, can not stop or start the database in dbmcli.
    Just with Administrator can stop or start the database.
    Error After  db_offline :
    Err -24994, ERR_RTE: Runtime enviroment error 1, could not create comm. Shared memory [5]
    sdbverify ok :
    SAP Utilities 7.6.00.35 64 bit in d:/sapdb/
    check files... ok
    check dependencies... ok
    package data is consistent
    DB Analyzer 7.6.00.35 64 bit in d:/sapdb/pr
    check files... ok
    check dependencies... ok
    package data is consistent
    db_enum
    OK
    P01     D:\sapdb\P01\db                         7.6.00.35       fast    running
    P01     D:\sapdb\P01\db                         7.6.00.35       quick   offline
    P01     D:\sapdb\P01\db                         7.6.00.35       slow    offline
    P01     D:\sapdb\P01\db                         7.6.00.35       test    offline
    Anyone have any ideas or know of any problem with windows 2008?
    tks

    Hello,
    -> Please check, if the solution of  SAP Note No. 688028 will help you with reported issue
    -> I also recommend to update the MAXDB, the version is quite old and there many fixes done in the new release patches of 7.6.
    Regards, Natalia Khlopina

  • Stop/start logical standby db

    Version 10203 on AIX
    Have to stop/start logical standby db, new to data guard, Please confirm these are the steps to do that
    on primary db
    SQL > alter system switch logfile ;
    SQL > alter system archive log current ; ( to make sure current transactions come thru)
    check tail of alert log of standby to make sure these redologs shipped & mined
    standby db
    SQL> ALTER DATABASE STOP LOGICAL STANDBY APPLY; (stop SQL Apply)
    SQL> shutdown immediate;
    Lsnrctl stop listener_corp_remrpt-haprimary db
    SQL > shutdown immediate ;
    Lsnrctl stop listener_corp_remprd-ha
    Dont shutdown abort for any case, if both dbs are going down, first stop SQL apply on standby, take primary down and then take standby down)
    Startup
    primary
    SQL>startup;
    Lsnrctl start listener_corp_remprd-ha
    Standby
    SQL > startup
    SQL > alter database start logical standby apply immediate ;
    Lsnrctl start listener_corp_remrpt-ha

    Hi
    As you posted ,you are using Real Time Sql apply,So,it is LGWR who transfer changes to standby site.It is very safe to follow these steps for new user.
    1.Stop logical standby apply(Standby Database).
    2.Shutdown Primary Database.
    3.Shutdown logical standby Database.
    At startup
    1.Start Logical Standby Database.
    2.Start Primary Database.
    3.Start logical standby apply.
    At the case when primary database is taking long time to shutdown processed ,You can also use
    shutdown abort,but before doing abort be sure you have stop logical standby apply.When your primary database started,it automatically perform instance recovery.Primary site have to resolve gap in this case.
    At the case when you must have to perform shutdown abort at primary database,you can do it.By doing it you will not loose anything.Primary database has to resolve gap and it will take time to be consistent with primary site.
    Tinku

  • Automatic stratup of oracle at Unix Solaris reboot

    I want to start automatically oracle when I reboot sun solaris. I did follwoing.
    1-I modifed the /var/opt/oracle/oratab and my entries are set Y
    2-In /etc/init.d I created dbora script.
    3-I made follwoing links
    # ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
    # ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
    After that when I rboot the sun box, it did not started oracle automatically. I run the dbstart script from unix, and i got error something about missing init.ora file. My oracle is 9.2.0. I browsed to $ORACLE_HOME/dbs directory and listed its contents. I found that there was spfileSID.ora file. I copied the spfileSID.ora to initSID.ora. Now I tried to run dbstart script from unix, I got ORA-01031: insufficient privileges error. I switched the user from root to oracle and run dbstart again and this time it started the databases. So now dbstart was working from unix. Now rebooted the unix box, but with reboot the oracle did not strated. Any body has an idea how I can make my oracle to start automatically with unix reboot. What I am missing here. Thanks

    Show us your dbora script.
    started oracle automatically. I run the dbstart
    script from unix, and i got error something about
    missing init.ora file. My oracle is 9.2.0. I browsed
    to $ORACLE_HOME/dbs directory and listed its
    contents. I found that there was spfileSID.ora file.
    I copied the spfileSID.ora to initSID.ora. Now IWell, the reason for not starting is that the example script dbstart is looking for a pfile (PFILE=${ORACLE_HOME}/dbs/init${ORACLE_SID}.ora) while nowadays we should be using spfile. Perhaps copying over init.ora with the binary spfile.ora is not the best way to go.
    dbstart was working from unix. Now rebooted the unixbox, but with reboot the oracle did not strated. AnyAny output from script called during "boot up" e.g. a log file from dbora?

  • Steps to stop / start CRS & ASM in RAC 11gr2

    Hello Gurus,
    Environment is as below:
    RAC 2 nodes
    Oracle RAC 11gr2
    Enterprise Linux Server release 5.5 (Carthage)
    I am new to Oracle RAC 11gr2 and facing some issues while stop / start crs & asm.
    We want to reboot both nodes and for that I have done following steps.
    1. srvctl stop database -d <db name> -- from one node
    Databse is down now.2. srvctl stop nodeapps -n <hostname> -- from both nodes
    services are down now.3. Now I want to stop asm
    $ export ORACLE_HOME=/u01/app/11.2.0/grid ( Grid Home)
    $ srvctl stop asm - This is not stopping ASM instance.
    4. crsctl stop crs -- this is also not working.
    I would appreciate if you please give me full steps.
    Thanks and Regards,

    In 11gr2, gsd remains offline. When I had checked with metalink, they said that it is fine.
    In 11gr2 you can stop all resouces as below
    <CRS_HOME>/bin/crsctl stop has
    or you can stop in the following sequence
    stop or relocate service using srvctl
    stop instnace using srvctl
    stop asm using srvctl
    stop nodeapps using srvctl
    stop cluster resources as root - <CRS_HOME>/bin/crsctl stop has
    To start
    <CRS_HOME>/bin/crsctl start has - it should bring all resources automatically
    verify the services status and start or relocate it back.

Maybe you are looking for