Automate RAC startup

I am familiar with automating startup of single instances on Linux using $ORACLE_HOME/bin/dbstart and /etc/oratab and a script init /etc/init.d that invokes dbstart at the right runlevel.
Could someone say if any of that is relevant to automating the startup/shutdown of a 2-node RAC on Linux?
I've searched Google and this forum for an example of how to automate startup on RAC, but have come up empty-handed.
(I know things like srvctl start database -d mydb, but I am unclear if that needs to go into an init.d script, or if that takes care of all the crs processes etc., or if they need to be started up separately -and if there's a way to setup a dependency on the database and ASM instances, etc.)
Any pointers would be appreciated.

For the auto start of CRS, you can find out the file (crsstart or ohasdstr) under /etc/oracle/scls_scr/`hostname`/root/. This file would store the value to indicate auto start or not.
enable auto start
crsctl enable crs
disable autod start
crsctl disable crs
For the CRS resource, you can check the requested resource with "crs_stat -p <resource name>". The output of "crs_stat -p" would show out the dependence resource.
REQUIRED_RESOURCES=ora.xxxx.xxxx.asm

Similar Messages

  • How do I get an app to launch automatically on startup?

    I downloaded an app (*.wcz) file that links to a clock on the desktop background.
    Clicking the app displays the background from http://www.vladstudio.com/wallpaperclocks/ and the clock and date work.
    When I shut down and start up again, the screen reverts to the previously selected background.
    Is there any way to launch this wallpaper + clock automatically on startup?

    Hi, if the App is in the Dock, right click, choose Options>Open at login.
    Or System Preferences>Accounts>Login Items window, drag the App there or click on the tiny plus icon to add it.

  • Turn on bookmarks automatically at startup

    Using Adobe Acrobat 9 Pro.
    How can I turn on bookmarks display automatically on startup.
    Many Thanks
    Adrian

    In the properties of the document change the initial view.

  • How to set kernel parameter max-shm-memory automatically at startup

    Hi,
    We have a 11.1.0.7 Database on Solaris Sparc 10 64-bit server. We have settings of max-shm-memory as below;
    -bash-3.00# prctl -n project.max-shm-memory -i project default
    project: 3: default
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged      50.0GB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    -bash-3.00# prctl -n project.max-shm-memory -i project system
    project: 0: system
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged      50.0GB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    Whenever we restart the db the second one is lost;
    bash-3.00$ prctl -n project.max-shm-memory -i project default
    project: 3: default
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged      50.0GB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    bash-3.00$ prctl -n project.max-shm-memory -i project system
    prctl: system: No controllable process found in task, project, or zone.
    So our sys admin has to configure them again whenever we restart our db. How could I do this automatically at startup without counfiguring again from command prompt?
    Thanks,
    Hatice

    Ok it is clear now. I have one more question.  When I check system I get below error;
    # prctl -n project.max-shm-memory -i project system
    prctl: system: No controllable process found in task, project, or zone.
    Document says; The reason for the message reported above is because there is no active process(es) belong to the project.
    But it is impossible for us because according to our project settings its for root user;
    bash-3.00$ cat /etc/project
    system:0::root::project.max-shm-memory=(priv,53687091200,deny)
    user.root:1::::
    noproject:2::::
    default:3::oracle::project.max-shm-memory=(priv,53687091200,deny)
    group.staff:10::::
    oracle:100::::project.max-shm-memory=(priv,53687091200,deny)
    Is it because I check with oracle user and I don't have sufficient privileges or there is something wrong with it?
    Thanks.

  • 10g RAC startup process

    Can sombody tell me how the RAC instance will start. I know like CSS is the first process to start and then what happens how everything comes up.
    Thanks

    Maverick wrote:
    thanks for the reply.
    The link you have provided is for 11g i think
    i Need 10g RAC startup process.
    ThanksStopping the Oracle RAC 10g Environment
    The first step is to stop the Oracle instance. When the instance (and related services) is down, then bring down the ASM instance. Finally, shut down the node applications (Virtual IP, GSD, TNS Listener, and ONS).
    $ export ORACLE_SID=orcl1
    $ emctl stop dbconsole
    $ srvctl stop instance -d orcl -i orcl1
    $ srvctl stop asm -n linux1
    $ srvctl stop nodeapps -n linux1
    Starting the Oracle RAC 10g Environment
    The first step is to start the node applications (Virtual IP, GSD, TNS Listener, and ONS). When the node applications are successfully started, then bring up the ASM instance. Finally, bring up the Oracle instance (and related services) and the Enterprise Manager Database console.
    $ export ORACLE_SID=orcl1
    $ srvctl start nodeapps -n linux1
    $ srvctl start asm -n linux1
    $ srvctl start instance -d orcl -i orcl1
    $ emctl start dbconsole
    Start/Stop All Instances with SRVCTL
    Start/stop all the instances and their enabled services. I have included this step just for fun as a way to bring down all instances!
    $ srvctl start database -d orcl
    $ srvctl stop database -d orcl
    reference:http://www.rampant-books.com/art_hunter_rac_start_stop_cluster.htm
    refer the links for more informations:
    Starting and Stopping Instances and Oracle Real Application Clusters Databases
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/dbinstmgt.htm#BCEBGHHC
    Server Control Utility Reference
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm
    answered by ssolbach
    Just a minor comment on the stop nodeapps.
    While it is fine to stop the nodeapps on the server, the drawback to this is, that the VIP will not failover if you stop the nodeapps, but will be stopped.
    Hence if you only shutdown one server, then you are causing clients to fail to connect to the VIP and having to wait for the TCP/Timeout.
    So if you are not going to shut down all the server, but just want to shutdown one node, you should failover the VIP the the other node.
    See: Note 749160.1 Vip Does Not Failover When Nodeapps Stopped
    So it is sometimes better instead of stopping the nodeapps, to simply shutdown the cluster with crsctl stop crs (which will failover the VIP).
    Sebastian
    reference:-
    Re: RAC Questions

  • Photoshop launches automatically at startup

    Suddenly Photoshop launches automatically at startup. Probably a consequence of running the vacuum cleaner brush over the keyboard live! How can I control this option? I have found nothing related in the startup items folder.
    Thanks!
    Paul

    Nothing in System Preferences>Accounts>Login Items to do with Photoshop? That's normally the only way things start automatically.
    Steve

  • How to automate database startup/shutdown in RHEL4

    Dear All
    I have Oracle 10gR2 database on RHEL4.
    If i want to automate database startup/shutdown with OS startup/shutdown,
    Then where i need to update about dbstart.sh & dbshut.sh
    I have already made entry in /etc/oratab as Y for database SID.
    I am using Bourn Shell.
    Thanks

    You can refer to my post in my Blog
    [Automatically StartUp and Shutdown an Oracle Database in Linux OS|http://kamranagayev.wordpress.com/2008/12/22/automatically-startup-and-shutdown-database-in-linux-os/]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How do i make the database open automatically at startup in solaris?

    How do i make the database open automatically at startup in solaris?

    need to write a shell script that is invoked from /etc/init.d/ and soft link the following:
    ln -s /etc/init.d/MYoracle /etc/rc3.d/S99oracle
            ln -s /etc/init.d/MYoracle /etc/rc2.d/K99oracle
            ln -s /etc/init.d/MYoracle /etc/rc1.d/K99oracle
            ln -s /etc/init.d/MYoracle /etc/rc0.d/K99oracle
            ln -s /etc/init.d/MYoracle /etc/rcS.d/K99oracleThe shell script should be pretty straight forward.
    Cheers,
    Mich

  • Automate BIP Startup/Shutdown with OMS

    Is there any way to automate the startup/shutdown of BI Publisher when the OMS is started/stopped? This would really come in handy instead of manually having to start/stop these components.
    Thanks,
    Leighton

    Current release does not have auto stop/start of BIP when OMS is bounced.

  • Hi, sorry this is so basic, but how do I stop certain applications starting automatically on startup?

    sorry this is so basic but how do I stop certain applications starting automatically on startup?

    Is this for a computer model or an iDevice model? If the former you've posted in the wrong forum. But here's the answer.
    Open General preferences in System Preferences. There are two options you can check that affect this behavior:
    Check the boxes you thing you prefer. When you next shutdown the computer you should be asked in a dialog about reopening applications on restart. Select the option to not reopen.

  • Why the lock icon unlocked automatically in startup disk

    why the lock icon unlocked automatically in startup disk.

    You have to know the old password in order to change to the new one if you select the user anyway, so no.

  • Automatically creating startup items with a new account

    I'm managing some Macs on an Active Directory network. They're all tied in and working fine as AD connected computers, but as an administrator of these Macs I'd like to make it so that when a user logs in to the domain, the Mac automatically adds some startup items to their account. (We don't have network home directories or anything like that) Is there some way I can setup an AppleScript or some default settings somewhere to handle this?

    the answer might depend on whether you are creating the accounts or allowing the users to create their own. I would think it shoudl be possible to create an AppleScript or an Automator job that woudl prompt for the correct information and the create the new user and copy the necessary file(s) and make the necessary settings.

  • Microsoft Word launches automatically at startup

    This is an unusual situation. Most people can't get MS Word to launch or it crashes.
    I have the opposite. When I log into my MacBook Pro, Microsoft Word for Office 2004 launches automatically. This has just started about a month ago and I've had Office 2004 since 2005.
    1. There is no file in "Startup" that would start MS Word
    2. I've deleted the MS Word preferences file several times to combat and that hasn't worked
    3. I've removed all temp files from the Microsoft folder on my username/home --> Documents --> Microsoft folder
    And, I get the following in Console when I log in (an example from July 18th):
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: In
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: HrO
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: amA
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: ppl
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: ic
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: atio
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: nGet
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: Com
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: m
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: a
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: ndB
    Jul 18 13:05:23 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: ars
    Jul 18 13:20:13 DavidNovick06-2 [0x0-0x11d11d].com.microsoft.Word[4550]: Ignoring Quickdraw drawing between QDBeginCGContext and QDEndCGContext
    How do I stop MS Word from automatically launching?

    Check System Preferences>Accounts>Login Items. If you don't get it solved here check out the MS forums: http://www.officeformac.com/ProductForums/Word/

  • How to make a physical standby DB mounted automatically on startup of a PC?

    Hi,
    I have a physical standby DB 10.2 on a PC under windows XP. This is a Data Guard configuation. If the PC reboot, I would like the DB to start mount automatically. After that, the Data guard will automatically pout the DB in recovery mode.
    I have tried this approach :
    start automatically the DB (using ORADIM to configure the service).
    Unfortunately when this happens, the database is OPEN which is not the right mode. It should be "mounted".
    How to do ?
    Thank you for your kind help.
    Christian

    These solutions only work until the database fails over or switches over. To properly implement this you need to find out the database role:
    select database_role from v$database;
    If it is a PRIMARY then you want to open the database otherwise you want to mount it. Oracle recommends (Doc ID 883196.1) using Data Guard Broker to accomplish this. DGMGRL starts the database according to the database_role.
    On Windows:
    1. Set ORA_SID_AUTOSTART to false in the Windows registry.
    2. Schedule a batch job to perform the following when the server is started:
    set ORACLE_SID=<sid of database>
    dgmgrl / "startup"

  • Can you run something automatically at startup?

    I'm not sure if this is for the general public or a developer to answer but my question is:
    Is it possible to have something (ie. a video or application) automatically run when you startup the ipod touch?
    What I would like to try and do is give out ipod touches to clients but would like to show a promo video when it is turned on. A little like demo mode I guess. Then the client has the option to either turn that function off / disable the startup video and just use it like a regular ipod touch.
    Thanks.

    Normally, you slide to unlock your Touch - there's no way around that. But if you install an App like Fluid, it appears automatically once you slide your Touch open (if you want that to happen).
    However, you probably realize that it's pretty easy to get a USB cable to reset the Touch so that you don't have to see the promo anymore.

Maybe you are looking for