Srvctl vs startup command in RAC

Hi,
pls clarify some doubts about srvctl /startup?
1,What is the difference between startup and srvctl in rac.what is the advantage of srvctl over startup.
2,How to start the database( From CRS to DB instance) in rac by traditional method ( startup command).
3,I read the oracledocumentation "http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm"
which says only command descriptions.but i need what actually happening while executing the command?
4,The executions are same compare with traditional method or not?
Thanks & Regards,

Hi,
1,What is the difference between startup and srvctl in rac.what is the advantage of srvctl over startup.
- SRVCTL is cluster aware so you can control database instances for any node in the cluster, which is something you can not do manually. Consider policy based cluster databases in 11gR2, managing databases manually will not be easy.
2,How to start the database( From CRS to DB instance) in rac by traditional method ( startup command).
- Can you elaborate on your question? If your question is to start database manually then its exactly same as of single instance database OR do you want to start the database using cluster control utility (CRSCTL)?
3,I read the oracledocumentation "http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm"
which says only command descriptions.but i need what actually happening while executing the command?
- SRVCTL pass on request to Oracle Cluster ware, which checks for the dependencies and start the corresponding database resources. I guess internally it use the same OCI calls that SQL*Plus use to start the database.
4,The executions are same compare with traditional method or not?
- With SRVCTL, it checks for the dependencies such as asm and listener resources and start them where as manual method will fail startup and throw some relevant errors.
Thanks & Regards,
http://oraxperts.com.au

Similar Messages

  • Database not start with srvctl  command in rac 10g

    hi
    when i change parameter in sqlnet file
    SQLNET.AUTHENTICATION_SERVICES= (NTS) to SQLNET.AUTHENTICATION_SERVICES= (NONE)
    then database is not started with srvctl utillity but started with sqlplus enviroment.
    please help in this issue

    user521214 wrote:
    hi,
    we are implementing security policy for our client. our databas is on RAC . As per the security, we need to revoke sys dba priviliges. when i used SQLNET.AUTHENTICATION_SERVICES=(NTS) in sqlnet.ora or SQLNET.AUTHENTICATION_SERVICES=(NONE). the instance not start with the following command in rac 10g.
    $srvctl start database -d abc
    $ crs_stat -t
    Name Type Target State Host
    ora.db.db application OFFLINE OFFLINE
    ora....b1.inst application ONLINE OFFLINE hosttest01
    Edited by: user521214 on Apr 21, 2011 4:08 AMIs this the only parameter you changed? What happens when you undo this modification?
    What do you see on log files?

  • Startup command not picking correct pfile

    Hi Guys,
    I am facing a problem. Whenever I try to start oracle on my Linux machine I get the foillowing error:
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/home/oracle/oracle/product/10.2.0/db_1/dbs/initARIES.ora'
    Actually the pfile mentioned is not the correct one. I do not know where it is taking the path from. I had to start using the following command:
    startup pfile=/home/oracle/oracle/product/10.2.0/db_1/admin/aries/pfile/init.ora.110200612140
    Please provide me some way that I need not to mention the full path of pfile everytime.
    Thanks

    You can also create the initARIES.ora file in the dbs directory (the database is searching there by default) and use the IFILE parameter to point to the file you actually want to use.
    It seems the file you currently using is the one created during installation. Doesn't you have an SPFILE??? Using an SPFILE has some advantages (faster startup, change parameter using alter statement). You can create one via create SPFILE xxx from PFILE. If you place it in the dbs directory oracle should find it automatically. Again no need to pfile in the startup command.

  • Startup command starts database but alter database open read only gives error

    Hi,
    I'm having some strange behavior. I've 10.2.0.3 database on windows 2003.
    The startup command starts database without any issues.
    But if I try following it gives error.
    startup mount (successful no errors)
    alter database open read only; gives error that file Mnnnnnn is missing.
    Why this is happening and how to fix it?
    Thanks.

    You really need to show us exactly what Oracle is telling you, using copy and paste, so we can have some clue.  You can hide details like instance and host names if they show up.
    I'm wondering if you had some messed up offline datafile in a tablespace, where Oracle handles it with startup, but gets upset when you try to open read-only.  It's some bizarro sequence of events like: add a datafile to a tablespace, decide that was a mistake, alter it offline, then remove it from the OS without telling Oracle any more about it.  I've come back from vacation to find scenarios like this, it winds up being a time-bomb trying to recreate a standby later.  Or something like that, I could be unremembering some details.

  • My Mac mini won't respond to startup commands

    Hi, first of all I'd like to say that I tried to find a solution not only in this forum but all over google could offer me and still no success in finding a solution to this problem I'm having, so you guys are my last hope before taking my computer to maintenance.
    Well, the thing is, I have a Mac mini Intel Core Duo 1.66GHz that, while trying to install Windows XP through bootcamp I accidentally deleted the Mac OS X disk partition, no harm there as I have a time machine backup, but now I'm trying to boot my OS X 10.6 disk to reinstall the OS but only Windows XP is starting up. I tried to startup with the keys option pressed but no menu to select the source it should boot. I also tried start it up with C pressed, I could hear the DVD spinning and the laser doing its job but only Windows XP boot up.
    During my journey trying to make my OS X disk to boot, I realize that almost no startup command was working as its suppose to be, I tried to ZAP PRAM using CMDOPT+PR but no double chime, tried then CMDOPT+NV to clear NV RAM and nothing. My keyboard is the original Apple aluminum wired keyboard that came with my iMac and it's working perfectly.
    I also tried to reset PMU, SMC and still no success.
    Message was edited by: Carlos Grossi

    Found out what's going on on this very same forum, during my research I actually wasn't using the right words on the search box to find what I need, but who'd know that the official Apple keyboard was the source of the problem, anyway for those who came here with the same problem as mine, turns out that my iMac Aluminum Keyboard isn't "compatible" with startup commands although it works for pretty much everything else, I just used an old PC USB keyboard to give the boot options using Alt as the Option key and Windows Logo as Command key.
    And that's it!

  • Terminal Startup Commands

    So I was reading online about how to make Terminal run a command on startup. When entering the commands to make it run a command on the start of Terminal I guess I messed up, now whenever I start Terminal it says [Process Completed] and wont let me enter any more commands. It also does this when I open a new shell. I want to know if there is a way to delete this startup command so Terminal opens as it does out of the box.

    Or this shell script->
    #!/bin/sh
    #showallfiles
    # Description and usage message
    usage () {
    echo "
    Description:
    A simple shell script to reveal/conceal files
    hidden in Mac OS X Finder application.
    showallfiles excepts one option.
    Usage: ${0##*/} [-h|--help] to show this help
    ${0##*/} [on|ON] to show hidden files
    ${0##*/} [off|OFF] to set the default hidden files
    Example: ${0##*/} on
    # Test for more than one option
    if [ $# -gt 1 ]
    then echo "${0##*/} -h to access help"; exit
    fi
    # Get the AppleShowAllFiles status in the domain com.apple.finder.plist or create the default off setting
    STATUS=`defaults read com.apple.finder AppleShowAllFiles 2>/dev/null` || STATUS=`defaults write com.apple.finder AppleShowAllFiles OFF`
    # Function to check AppleShowAllFiles status and change the status if necessary
    finderfilesstatus () {
    if [ "$STATUS" = "$SAF_OPT" ]
    then
    echo "AppleShowAllFiles is set to $SAF_OPT"
    else
    defaults write com.apple.finder AppleShowAllFiles $SAF_OPT
    osascript -e 'tell application "Finder" to quit' -e 'delay 1' -e 'tell application "Finder" to launch'
    fi
    # Parse the command option
    case "$1" in
    '-h'|'--help') usage; exit;;
    'on'|'ON') SAF_OPT="ON"; finderfilesstatus;;
    'off'|'OFF') SAF_OPT="OFF"; finderfilesstatus;;
    *) echo "${0##*/} -h to access help"; exit;;
    esac

  • Srvctl stop asm command failed

    Hi all
    I have just installed oracle 11g r2 standalone server with ASM in my oracle linux 6 in virtual box.
    srvctl start database -d command works fine.
    but srvctl stop asm command did not work.
    I have two user, one for oracle software owner is "oracle" and the other for grid infrastructure owner is "grid"
    I put srvctl stop asm command on both users. and did not work.
    when I use sqlplus by accessing with "sqlplus / as sysasm" and try to stop it, it works fine.
    but not srvctl
    here is additional information - asmlib configuration command history :
    /etc/init.d/oracleasm configure
    This will configure the on-boot properties of the Oracle ASM library
    driver.  The following questions will determine whether the driver is
    loaded on boot and what permissions it will have.  The current values
    will be shown in brackets ('[]').  Hitting <ENTER> without typing an
    answer will keep that current value.  Ctrl-C will abort.
    Default user to own the driver interface []: oracle
    Default group to own the driver interface []: oinstall
    Start Oracle ASM library driver on boot (y/n) [n]: y
    Scan for Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver:                       [  OK  ]
    Scanning the system for Oracle ASMLib disks:               [  OK  ]
    [root@localhost ~]# /etc/init.d/oracleasm enable
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver:                       [  OK  ]
    Scanning the system for Oracle ASMLib disks:               [  OK  ]
    [root@localhost ~]# /etc/init.d/oracleasm start
    Initializing the Oracle ASMLib driver:                       [  OK  ]
    Scanning the system for Oracle ASMLib disks:               [  OK  ]
    [root@localhost ~]# /etc/init.d/oracleasm createdisk asm1 /dev/asm/asm1
    Marking disk "asm1" as an ASM disk:                        [  OK  ]
    [root@localhost ~]# /etc/init.d/oracleasm createdisk asm2 /dev/asm/asm2
    Marking disk "asm2" as an ASM disk:                        [  OK  ]
    [root@localhost ~]# /etc/init.d/oracleasm createdisk fra1 /dev/asm/fra1
    Marking disk "fra1" as an ASM disk:                        [  OK  ]
    [root@localhost ~]# oracleasm listdisks
    ASM1
    ASM2
    FRA1
    p.s
    since this is a standalone server, i can not input srvctl command with '-n' option.
    "crsctl stop crs" does not work in single instance configuration.

    Diskgroup needs to be dismounted before bringing the asm resource down as they are separate resource . You have to use srvctl stop asm -f option to dismount diskgroups as well.
    Using sqlplus when you issue shutdown , it will dismount the asm diskgroups and then bringdown the ASM instance.
    you can check resource dependency for start or stop  using crsctl stat res  -p
    for asm resource dependency crsctl stat res ora.asm -p

  • Adding SAP CCMS startup command to SAP Start Profile

    Hi All,
    We need to add SAP CCMS startup command in our SAP start profile.
    We use command sapccm4x -DCCMS pf=<> to start SAP CCMS agent .
    I expect we need to add this command (sapccm4x -DCCMS pf=<> ) with same protocol to execute it with SAP start profile.
    Please let me know how can we add this with SAP start profile.
    Shivam Mittal

    Hi Eric,
    I have added command and CCMS agent is also getting start with SAP startup.
    But when I execute command startsap ....like it shows message "database started";;"Instance Started", I am not getting any SAPCCMS agent startup message.
    Please suggest how can I get in startsap script SAPCCMS startup confirmation messge also. Does it require change in startsap script or we should some command protocol in startup profie for it.
    Please suggest.
    Shivam Mittal

  • List of Keyboard Startup commands?

    Hello,
    Is there a list of the different Startup commands anywhere? I can't seem to find any with various searches on the mac.com support sites.
    I've learned that holding "shift" at Startup will turn all extensions off. Is there a command for turning all extensions ON at Startup, regardless if some were disabled during an earlier brain-freeze moment?
    Thanks so much!
    Patterson
    Power Mac G4 Quicksilver 867   Mac OS 9.2.x   17" Studio Display, 512MB RAM

    Hi, Patterson -
    Is there a command for turning all extensions ON at Startup, regardless if some were disabled during an earlier brain-freeze moment?
    Not directly. However, if you hold down the Spacebar from the beginning of startup, Extensions Manager will open just before extensions and control panels will start to load. You can make any adjustments to the choice of Selected Set or to the on-off status of individual extensions and control panels at that time, then resume startup.

  • Regarding Oracle Startup command

    Hello All,
    Whenever we execute the startup command in sqlplus ::
    SQL> startup
    ORACLE instance started.
    Total System Global Area 252776588 bytes
    Fixed Size 450700 bytes
    Variable Size 218103808 bytes
    Database Buffers 33554432 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    Database opened.
    SQL>
    Please elaborate what Fixed Size and Variable size contains??
    I mean what components come under Fixed and Variable size?
    Thanks !!
    Regards,
    Avadhut

    Fixed portion
    The size of the fixed portion is constant for a release and a plattform of Oracle, that is, it cannot be changed through any means such as altering the initialization parameters
    Variable portion
    The variable portion is called variable because its size (measured in bytes) can be changed. The variable portion consists of:
    large pool (optional)
    Provides working space for rman (although rman will also work without large pool).
    Shared pool The shared pool is used for objects that are shared among all users. For example: table definitions, PL/SQL definitions, cursors and so on.
    reference:http://www.adp-gmbh.ch/ora/concepts/sga.html

  • Difference between srvctl and crsctl commands

    may be I am wrong but I want to know what is the difference betweens stopping service using srvctl and crsctl utilities.
    ./crsctl stop resource <service.srv> –f
    ./crsctl stop resource ora.<service>.cs –f
    and
    srvctl stop service -d <database> -s <service>
    Also what is the <servicename>.cs ? I know service.srv and its purpose but .cs resource.
    Please share document or link wheren I can have more details of services.
    Thanks
    Bhanu

    931804 wrote:
    may be I am wrong but I want to know what is the difference betweens stopping service using srvctl and crsctl utilities.
    ./crsctl stop resource <service.srv> –f
    ./crsctl stop resource ora.<service>.cs –f
    and
    srvctl stop service -d <database> -s <service>
    Also what is the <servicename>.cs ? I know service.srv and its purpose but .cs resource.
    Please share document or link wheren I can have more details of services.
    In a very generic way, CRSCTL commands would require a sudo access and the SRVCTL can be run by the grid or oracle user. I haven't checked the docs but as a guess, the +.cs+ would be cluster service as in RAC, everything runs as a service and in 11.2 as a resource.
    HTH
    Aman....

  • First Time "STARTUP" command

    I just installed 8i Enterprise successfully on a Sun Ultra 5 box with Solaris 8.
    After I log into the box as the "oracle" user, I issue the "sqlplus" command. It then asks me for user name, I type: "sys/oracle as sysdba" and it comes back with "connected to an idle instance".
    Finally, at the "SQL>" prompt, I type "STARTUP OPEN PFILE=$ORACLE_HOME/dbs/mypfile.ora" and it returns:
    ORA-24323 value not allowed
    ORA-03113 end-of-file on communication channel
    I have verified that I do have the correct pfile, for the Installer made it during installation.
    Please HELP!!!

    Hi fractals
    Before we go any further we need to find out which version of Java is causing the problem. In the Terminal program, type "java -version" (without the quotes) and observe the behaviour. Hopefully, you'll get the long delay you mentioned earlier, but it will eventually print out the java version. This should serve to identify exactly which Java version has the problem. If you don't get the long delay, or it hangs without ever printing out the version then you need to follow these steps. In Terminal type:
    cd /System/Library/Frameworks/JavaVM.framework/Versions/1.3/Commands
    ./java -version
    cd /System/Library/Frameworks/JavaVM.framework/Versions/1.4/Commands
    ./java -version
    cd /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands
    ./java -version
    (you can cut and paste these commands from here)
    With any luck this will identify the faulty Java version. Come back when you know which one it is.
    Bob

  • Startup command in JDBC

    How can i execute the startup and recover commands for oracle usingJDBC OCI driver

    One way to control a database when the are a 'lot' of attributes is to create a named attribute table. So instead of this
      table X - fields: name, color, width, height, finish, texture, cost
      data X
             bear, brown,       14, 14, shiny, fuzzy, $14
             top,  red and blue, 3,  3, shiny, hard,  $1
    .one uses this
      table X - fields: name, id, cost
      table Attr - fields: X_id, name, value
      Data X
             bear, 1, $14
             top,  2, $1
      Data Y
             1,  color, brown
             1,  width, 14
             1,  height, 14
             1,  finish, shiny
             1,  texture, fuzzy
             2,  color, red and blue
             2,  width, 3
             2,  height, 3
             2,  finish, shiny
             2,  texture, hard
         The trade off is ease of use in programming vs more complex logic and possibly more storage space (noting that name in Y could be a number saves on space.)
    This might actually result in saving space if the attribute values are sparse - not all of them have values.
    This can slow down searches and make queries slower. But that greatly depends on the query. There are cases where this can make it substantially faster. That depends on the nature of the data and the needed queries.
    An alternative to this is to make a table for each attribute. Once again there are trade offs there. And it probably isn't applicable for 'attributes for a house'.
    Notice in the above that cost is not part of the attribute table. This is a design decision that once again is driven by the needed queries. Presumably cost is an important query item, it will always exist and will always be returned for any query. So it can remain in the main table.
    An additional table can be used - an attribute name table. Doing this, and writing code which supports the use of that makes it extremely easy to add new attributes.

  • What startup command should be writen after abnormal shutdown?

    Hi all
    I have a 10g DB instance on Unix server.
    The server was shutdown without first shutting down the DB and Listener.
    Now when I started the server, should I type:
    sqlplus: sys as sysdba
    startup
    in normal mode or nomount mode?
    Is there anything else to be done after startup?
    Please mention the reason!
    Thank you

    Well, yes all db files are autoextend
    When I typed the command you gave, it showed AUTO YESGood.
    But i'll have to work on making the size unlimited.Use this command:
    SQL> ALTER DATABASE DATAFILE '<FULL Path to Datafile>' AUTOEXTEND ON MAXSIZE UNLIMITED;Note: 468096.1 - How To Check For Autoextensible Datafiles Set To Maxsize Unlimited
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468096.1

  • I can not start oracle using "startup " command

    I installed the oracle 11g software on linux red hat, then i connect using “sqlplus / as sysdba”
    but when I type “startup” on SQL prompt it gives the following error:
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file'/oraeng/app/oracle/product/11.1.0/dbs/initorcl.ora'
    I tried: export ORACLE_SID=orcl
    But it gives the same error.
    Then i checked the directory “dbs” but could not find the pfile:initorcl.ora,
    however there was a file named “init.ora” only. I remember that in bash_profile I set the ORACLE_SID as “orcl”
    Then i searched the web and tried the following command to set the pfile
    SQL> startup pfile=/oraeng/app/oracle/product/11.1.0/dbs/init.ora
    but it gave me following error
    ORA-00371: not enough shared pool memory, should be at least 102341017 bytes
    Could anyone please help me identify the problem? why i could not start it using start it in SQL prompt.
    Thanks in advance
    AZ

    844019 wrote:
    I installed the oracle 11g software on linux red hat, then i connect using “sqlplus / as sysdba”
    but when I type “startup” on SQL prompt it gives the following error:
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file'/oraeng/app/oracle/product/11.1.0/dbs/initorcl.ora'
    I tried: export ORACLE_SID=orcl
    But it gives the same error.
    Then i checked the directory “dbs” but could not find the pfile:initorcl.ora,
    however there was a file named “init.ora” only. I remember that in bash_profile I set the ORACLE_SID as “orcl”
    Then i searched the web and tried the following command to set the pfile
    SQL> startup pfile=/oraeng/app/oracle/product/11.1.0/dbs/init.ora
    but it gave me following error
    ORA-00371: not enough shared pool memory, should be at least 102341017 bytes
    Could anyone please help me identify the problem? why i could not start it using start it in SQL prompt.
    Thanks in advance
    AZWhat's the output of the
    ls -l $ORACLE_HOME/dbsWhat is happening that you don't seem to have the required init or SP file for the startup of your instance. If that's the case, you need to create it manually from the copy/paste of the alert.log content if the instance ever started before . Show us hte output of the DBS directory that what it contains.
    HTH
    Aman....

Maybe you are looking for