Regarding srvctl  command

Hi All,
i am using 11g R1 RAC with ASM. i have seen one strange issue, on one node when i executed srvctl command to know the status of asm , it hanged. i executed srvctl status asm -n <nodename>. i tried srvctl command so many times , every time it got hanged. finally i rebooted the node and now srvctl command is working fine.
i just thought to check with you. do you have any idea , why it happened. It is very important for me to know the cause and rectify it because i am writing a script and there i am using srvctl command. i am worried , if it will hang some time then my script will also hang.
Thanks for your help.

Hi buddy,
i just thought to check with you. do you have any idea , why it happened. It is very important for me to know the > cause and rectify it because i am writing a script and there i am using srvctl command. i am worried , if it will hang some time then my script will also hang.I guess You have to debug it. You can set the environment variable SRVM_TRACE to TRUE and then execute the srvctl status asm -n <nodename>, probably You'll get some helpful information with debug option.
Also you can take a look at crsd.log, ocssd.log and $ASM_HOME/log/<nodename>/racg , in order to see if there is any helpful information in those logs.
Regards,
Cerreia

Similar Messages

  • ADD A SECOND LISTENER USING SRVCTL COMMAND

    Hi All,
    My RAC has w nodes (10g 10.2.0.4)
    it already has a default listener (NODE1_LISTENER1 in ASM home port 1521) register with the CRS and i already create a second listener manually on both nodes.
    My question is how to add this listener (NODE1_listener1) using srvctl command not the netca
    Thanks in advance.
    Regard,
    Tom

    srvctl add listener is not support in 10g ,
    but in 11g you can add listener using srvctl
    10g:
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm#RACAD5002
    11g:
    http://download.oracle.com/docs/cd/B28359_01/rac.111/b28254/srvctladmin.htm#CDCEECFB
    So, You need to use netca to help on 10g

  • How can I use srvctl command line for change "Failover type" and "F method"

    Hi all,
    I am using Oracle One Node (11.2.0.3), and I have a service:
    /u01/11.2.0/grid/bin/srvctl config service -d orcl
    Service name: orcldb
    Service is enabled
    Server pool: orcl
    Cardinality: 1
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Failover type: NONE
    Failover method: NONE
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: BASIC
    Edition:
    Preferred instances: orcl_1
    Available instances:
    I would like to change "Failover type" and "Failover method" to:
    Failover type: SELECT
    Failover method: BASIC
    How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
    Thanks in advance.
    Leonardo.

    user10674190 wrote:
    Hi all,
    I am using Oracle One Node (11.2.0.3), and I have a service:
    /u01/11.2.0/grid/bin/srvctl config service -d orcl
    Service name: orcldb
    Service is enabled
    Server pool: orcl
    Cardinality: 1
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Failover type: NONE
    Failover method: NONE
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: BASIC
    Edition:
    Preferred instances: orcl_1
    Available instances:
    I would like to change "Failover type" and "Failover method" to:
    Failover type: SELECT
    Failover method: BASIC
    How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
    Thanks in advance.
    Leonardo.srvctl modify service -d database_name -s orcldb -q TRUE -m BASIC -P BASIC -e SELECT -z 180 -w 5 -j LONG
    Also see
    11gR2(11.2) RAC TAF Configuration for Admin and Policy Managed Databases [ID 1312749.1]

  • Query regarding OS Command in Receiver Communication Channel

    Hi All,
    Consider the following  :
    1. Sender communication channel picks up file <abc.txt> from /files/in directory. The CC is configured to archive the file in the location /files/archive.
    2. Resulting Message is processed successfully in integration engine.
    3. Receiver communication channel is configured to place the file in target directory /files/out, and the Run OS command after message processing is set as : "/scripts/FTP_SCRIPT.pl %F".
    The above scenario works fine, but I do not understand why it works. :).
    I can see (by looking at logs maintained by the script FTP_SCRIPT.pl) that in step 3 %F passes "/files/in/abc.txt" as a parameter.
    I believe that the file should not be available in the "in" folder because the sender communication channel would have already archived it. Why is it available?
    In what order is XI processing steps 1-3 in the background?

    Hello,
    If you have selected Adaper Specific message attributes in both the adapters(File sender/Receiver), the same file name which is currently being used will be passed to the place holder '%F' .
    and you might have selected RUN OS command before message processing.
    Just confirm.
    Regards,
    Sreenivas.

  • Unable to start database in srvctl Command- srvctl hangs

    Hi,
    I have 2 node rac database and i am not able to up the database with srvctl (instance name prod1 and prod 2)
    database: 11.2
    Linux red hat
    [oracle@Host1 dbs]$ srvctl status database -d PROD
    It got hanged, any one let me know how to troubleshoot this.
    Where can i find log or trace file.
    Thanks
    Ram

    Are you able to start db instance through sqlplus ?
    Check if below MOS note help :
    Troubleshooting when srvctl can't start RAC instance, but sqlplus can start it [ID 844272.1]
    Diagnosing CRS-215 Error When Starting Clusterware Resources [ID 781632.1]
    Regards
    Rajesh

  • Regarding event & command in smartforms

    i have an assignment like this,i need to develop an smartforms in which
    employees details will come page wise means for first employee the details will come
    in the first page for second employee the details will come in the second page
    like this i need the outptut ,here i need to use templates plz let me know how will
    i proceed in smartforms as well as in the driver programs....
    if possible plz send ur codes as i m new to smartforms.
    FOR THIS i already post the maater and got this answer,
    write the driver program in se38 ......with taking an internal table with the details of all
    employees for your selection.......
    in the driver program itself call ssf_function_module ........and pass the internl atable to
    this FM .......sort the table by employee number
    now create a smartform ......with one page...desgin the page as per your requirement.....
    in the mail window create a loop (assgin the tAable ....to it which has been passed from driver program....)
    inside the loop create at new (down you will see ) and put the employee number field.....
    next inside the loop create a command ...and put a new page(call) ...
    new page will trigger automatically for each employeee.
    and i did as per the answer but i m not getting here in my smartforms i m using
    table under this i have sorted pernr in the data tab and under this event i m
    putting command in this command i m using go to new page,as per this scenario
    i m getting my output but one blank page is also coming in the output ,
    how to remove this page plz help me i also tried in the condition not on first page but it is not coming.
    plz help me

    Hi,
    Uncheck the goto new page command and put the condition pernr not equal to prevevious pernr in the conditions tab of the new command.
    This can be done as follows.
    with in loop and endloop at the end of the loop create text node(cretae a var called W_prev_pernr and then w_prev_pernr = itab-pernr.) which stores the current pernr.at in the conditions tab of the new command(Create>Flow Logic>Command) put the condition like : pernr NE w_prev_pernr.
    Hope this helps you.
    Regards,
    Rama.P.

  • Can't srvctl command write tnsnames.ora file?

    Hi,
    I use srvctl to create a new service correctly, but I find the information of this service isn't written into tnsnames.ora file, it means, user can't connect database by directly using this service name, it's very stranger, who can tell me how to use srvctl to create a service and ensuer the information about this service can be correctly written into tnsnames.ora file?
    #srvctl add service -d mm -s mx -r node1 -a node2.

    Did you check tnsnames.ora for any new entries?
    Yes,There are not any new entries for the new service I just created.
    Check the command reference again, there is a flag to display "sample tns entries"
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm#i1008779
    I check that documentation, and I can use that command to run in my RAC environment, the returned result is
    Example client-side TNS entry for service mx:
    mx = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db_vip)(PORT=dedicated_port
    ))(CONNECT_DATA=(SERVICE_NAME=mx)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC
    How to use this service in client or our application, must we manullay configure tnsnames.ora file?
    BRs./Vinson

  • How to alter database open using srvctl command

    Hi all,
    I mounted my instances by using:
    [oracle@rac1 ~]$ srvctl start database -d RAC -o mount
    How can i open the instances by using srvctl from mounted status?
    Thank you!
    Dân.

    Hi,
    srvctl start database <dbname> -open will not issue an "alter database open", hence it will not work on a mounted instance, as you have seen. So this is expected.
    In case crs did only start the database in mount mode, you either have to use sqlplus or shutdown the db beforehand:
    srvctl stop database -d <dbname> -o immediate
    srvctl start database -d <dbname> -o openFor the future change the behavior, how crs will start the database with srvctl modify database.
    Regards
    Sebastian

  • 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?

  • SRVCTL command not showing properly

    Dear experts,
    I have installed RAC 11gR2(11.2.0.1) successfully on RHEL 5.4 in my testing server.
    No. of Nodes : 2 (rac1,rac2)
    It is working fine. My database also running.
    RAC1:
    SQL> select instance_name, status from v$instance;
    INSTANCE_NAME STATUS
    racdb1 OPEN
    RAC2:
    SQL> select instance_name, status from v$instance;
    INSTANCE_NAME STATUS
    racdb2 OPENBut while am commanding the following it shows instance not running like this,
    [oracle@rac2 ~]$ srvctl status instance -d racdb -i racdb1,racdb2
    Instance racdb1 is not running on node rac1
    Instance racdb2 is not running on node rac2
    [oracle@rac2 ~]$
    [oracle@rac2 ~]$ srvctl status database -d racdb
    Instance racdb1 is not running on node rac1
    Instance racdb2 is not running on node rac2
    [oracle@rac2 ~]$Can anyone clarify the reason..
    With thanks,
    Bala :)

    lets do a sime test to understand :
    step1: shutdown the database on all nodes using SRVCTL
    srvctl stop database -d <db_unique_name> -o immediatestep2: Startup the database using the sqlplus
    set env to database on node 1 and startup using the sqlplus
    sqlplus "/as sysdba"
    sql> startup;
    also open the second instance as well from second node.
    sqlplus "/as sysdba"
    sql> startup;
    step3: Now check the status using SRVCTL
    SRVCTL STATUS DATABASE -d <db_unique_name>now the status shows that database was not running on either nodes.
    because we didn't start the database with SRVCTL and eventhough database was open manually using sqlplus
    the cluster has no clue on it.
    So always use SRVCTl to staop/start the database in clusetr environment.
    -Thanks

  • 11gR2:crsctl, srvctl commands takes too long to respond

    Hi,
    I have successfully configured *11gR2 two node RAC on ASM on Win 2008 64bit.*
    Everything work very well like connecting to database, querying database. Node restart also takes acceptable time to go down & restart the clusterware & database.
    But when I execute crsctl status resource -t or srvctl status database -d db_name commands from any node takes 10-15min to give output.
    They give output & everything completes successfully but takes too long to respond.
    The questions are:
    - If everything works fine then why crsctl, srvctl takes too long to respond?
    - what could be blocking these command to gather clusterware and database status on all nodes?
    - what additional info would be helpful that I can provide?

    dag wrote:
    I dont have this issue either. are you auto starting mpd?
    that time is how long it is up in other words you opened it then closed it at that time
    I'm not sure if you are referring to me or not, but in my screenshot I am timing the lag in ncmpcpp by pressing 'q' in the terminal during the delay, so it quits ncmpcpp immediately after the lag. The lag is longer for ncmpc because the interface loads before the program connects to mpd, so I have to stop it manually immediatly after it connects.
    WonderWoofy wrote:I don't have this problem... if you are starting it as a systemd user service, maybe there is relevant information in the journal.
    The journal did not reveal anything relevant sadly. I have now tried launching mpd without systemd, and the lag remains. I have also noticed that a small mpd programming project I am writing also experiences the same lag when it tries to connect to mpd.

  • Regarding user command

    hi,
    how to write the user command on alv report and the output should ne upload into va02,
    My requirement is i have developed a alv report,in that the requiremnt is one pushbutton they want,when they clicked it the output should be upload into va02 transaction.
    Thanks and Regards,

    Hi Ali,
    For user command in alv,
    First set the PF Status of that ALV,
    and in the FM Reuse_alv_grid_display pass the subroutine name fr user command,
    in its parameter  -->      i_callback_user_command           = 'COMM'
    Then to catch the function module you have to write like for eg,
    FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
      DATA: okcode TYPE sy-ucomm.
      okcode = ucomm.
      CASE okcode.
        WHEN 'REF'.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            titel         = 'MANSI'
            txt1          = 'CREATED BY'
            txt2          = SY-UNAME
          TXT3          = ' '
          TXT4          = ' '
    That is on that buttons click you can use set parameter id statement to move your
    control from this screen to the required screen.
    Hope it helps you
    Regrds
    Mansi

  • Regarding IMPDP command in oracle10g 10.2.0.4.0

    Hi
    I am trying importing the dump file into my local system database.
    While i try to issue impdp scott/owb directory=test_dir dumpfile=mca.dmp logfile=impdpmca.log
    i am getting following errors and window is getting closed.
    ORA-39002 Invalid operation
    ORA-39070-Unable to open file
    ORA-29283-Invalid file operation
    ORA-06512-at "SYS.UTL_FILE"
    ORA-29283 Invalid File Operation
    can any one help me here ...
    Regards
    Rajesh

    Rajesh,
    Do you have permission to open file in that directory as an oracle user? It's say unable to open file, so verify directory permission. ANd if possible, please post your exact code enclosed between tag \ to preserve formatting.
    \Your code
    \Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem regarding STYLE Command in SapScript-form

    Hello together,
    i have a problem with an self-created STYLE with transaction SE72! How can i include this new style to a sap-script-form?
    i have tried to include it with an addition in main-window like:
    "/: STYLE stylename"! But after the check-form-option, it tells me that the specific paragraph and character forms were not found.
    How can i bind the new style to a sap-script-form?
    Thanks in advance,
    Marcel

    Hi ,
    Instead of defining like that just go to any editor and select the following ,menu path
    Format-> Change style
    and select your style from the list of styles,.
    Hopee it helps you
    Regards,
    Nageswar

  • REGARDING CONTROL COMMAND

    hi guru,
    in my alv  report the output of one field is
    net value(GMNGA)
    22.000
    1.000
    1.000
    5.000
    10.000
    10.000
    1.000
    1.000
    1.000
    1.000
    1.000
    1.000
    1.000
    1.000
    150.000
    6.675
    100.000
    0.000
    7.000
    0.000
    25.000
    40.000
    10.000
    15.000
    1.000
    1.000
    1.000
    4,000.000
    9.500
    10.000
    1.000
    1.000
    1.000
    5.000
    3.000
    50.000
    50.000
    0.250
    25.000
    1.000
    1.000
    2.000
    20.000
    0.000
    4.000
    3.000
    250.000
    150.000
    250.000
    17.000
    33.000
    11.000
    30.000
    10.000
    7.000
    10.000
    5,368.425 (HERE  i want the written test subtotal)
    then i have one more value .
    then final grand total.
    how to do this???
    please give me solution.
    thanks
    subhasis

    Hi johnchenqiang,
    Do you set the AutoSize property of these control to false?
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • New Version Alert Message

    I keep trying to open my iTunes. Every time i try and open the program I get an alert message. It says the following: 'The file "iTunes Library" cannot be read because it was created by a newer version of iTunes.' It won't do anything after it says t

  • How to select a set of points in a xy graph contained in an area draw with the cursor ?

    I'm using tIhe XY graph to plot a Pointcare representation of RR intervals (heart beat). I would like to use the mouse to draw a polygone surrounding the points of interest and get their indexes from the original array. Thank you to oriented me to so

  • Spotlight after TM restore (snow leopard)

    Hi guys, I restored my Mac with TM. Im booting Snow Leopard. After the restoration spotlight isnt working. Someone can help? Thnx

  • Suggestions for 'cpanel' type management system for OEL?

    I am probably going to get shot to bits on here for asking about this - but I am interested to know if anyone has tested / used any 'panel' type systems on OEL. For large multi customer hosting operations, where you sometimes want to give the custome

  • Aperture and Nikon D200

    I've bought"Aperture" 2 days ago but i can't open the .NEF files taken with my Nikon D200 What can i do?