RAC failover with HP-Serviceguard package over listener

We have two nodes (lcsnew1 and lcsnew3) on which RAC is installed. We are using HP-Serviceguard and HP-SGeRAC in the co-existence model, where RAC derives cluster membership information from SG and SGeRAC.
We are using the dedicated server model, where each node has one listener. We have configured HP-SG packages over RAC listener so as to provide failover capability. The HP-SG packages monitor database listener and on node failure or listener failure, the package moves to the other node and attaches itself with the listener running on the adoptive node. So, the basic setup is
Initially:
lcsnew1 lcsnew3
pkg4 pkg5
On listener / node failure at lcsnew1:
lcsnew1 lcsnew3
Not Available pkg4, pkg5
On listener / node failure at lcsnew3:
lcsnew1 lcsnew3
pkg4, pkg5 Not Available
We want to connect to any of the pkg IP Address, and if it failsover to another node, the connectivity should still be maintained.
I have a small Test programme which uses JDBC connectivity (thin) to connect at pkg4 virtual IP Address. It is able to get a connection and run some queries in a loop on the same connection. Then pkg4 is moved from lcsnew1 to lcsnew3 (at this time the test programme is in sleep mode). On the same old connection, we expect the query to run successfully. But the behaviour we are observing is random. Sometimes, the test programme remains connected to pkg4 IP address even after failover, while sometimes it gives ConnectionError. However, on again connecting to pkg4 IP address (which by now is in adoptive node lcsnew3), it works. So, basically fresh connections always work but the old connections do not failover every time.
I am enclosing all the configuration files for RAC (listener.ora, tnsnames.ora) and package configuration files (config, control). Also, the hosts file is enclosed which gives the details of all names and IP addresses. The test programme is also enclosed.
Pls have a look and suggest what how to move forward.
The listener.ora looks like
==========================================================
# listener.ora.lcsnew1 Network Configuration File: /opt/app/oracle/product/10.2.0/db_1/network/admin/listener.ora.lcsnew1
# Generated by Oracle configuration tools.
LISTENER_LCSNEW1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = lcsnew1-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = lcsnew1)(PORT = 1521))
SID_LIST_LISTENER_LCSNEW1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
=========================================================
The tnsnames.ora looks like
=========================================================
# tnsnames.ora.lcsnew1 Network Configuration File: /opt/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora.lcsnew1
# Generated by Oracle configuration tools.
GMLCDB2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = lcsnew3-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = gmlcdb)
(INSTANCE_NAME = gmlcdb2)
GMLCDB1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = lcsnew1-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = gmlcdb)
(INSTANCE_NAME = gmlcdb1)
LISTENERS_GMLCDB =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = lcsnew3-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = lcsnew1-vip)(PORT = 1521))
GMLCDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = lcsnew3-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = lcsnew1-vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = gmlcdb)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
========================================================
The package configuration file looks like
========================================================
PACKAGE_NAME     pkg4
PACKAGE_TYPE               FAILOVER
FAILOVER_POLICY               CONFIGURED_NODE
FAILBACK_POLICY               MANUAL
NODE_NAME     lcsnew1
NODE_NAME     lcsnew3     
AUTO_RUN               YES
LOCAL_LAN_FAILOVER_ALLOWED     YES
NODE_FAIL_FAST_ENABLED          NO
RUN_SCRIPT               /etc/cmcluster/pkg4/pkg4.cntl     
RUN_SCRIPT_TIMEOUT          NO_TIMEOUT
HALT_SCRIPT               /etc/cmcluster/pkg4/pkg4.cntl
HALT_SCRIPT_TIMEOUT          NO_TIMEOUT
The package control file looks like
==========================================================
. ${SGCONFFILE:=/etc/cmcluster.conf}
PATH=$SGSBIN:/usr/bin:/usr/sbin:/etc:/bin
CVM_ACTIVATION_CMD="vxdg -g \$DiskGroup set activation=exclusivewrite"
DEACTIVATION_RETRY_COUNT=0
KILL_PROCESSES_ACCESSING_RAW_DEVICES="NO"
VXVOL="vxvol -g \$DiskGroup startall"
FS_UMOUNT_COUNT=1
FS_MOUNT_RETRY_COUNT=0
CONCURRENT_VGCHANGE_OPERATIONS=1
CONCURRENT_FSCK_OPERATIONS=1
CONCURRENT_MOUNT_AND_UMOUNT_OPERATIONS=1
IP[0]="10.3.10.170"
SUBNET[0]="10.3.10.0"

Why do you want to use the HP-serviceguard even when you are using RAC on 10g Rel 2.
Oracle itself provide facility of TAF and now in 10g the concept of Vip.
all this functionality will be available by using TAF.
Kuljeet

Similar Messages

  • 9i RAC configured with HP ServiceGuard

    Has anyone out there either successfully or unsuccessfully configured a 2+ node 9i RAC system that runs on a HP-UX box which is set-up with ServiceGuard? I read a few articles about how it works 'in theory' but never actually talked to someone who has really done successfully or tried it and failed.
    I'll be grateful to anyone who can share their experiences.
    GT

    Why do you want to use the HP-serviceguard even when you are using RAC on 10g Rel 2.
    Oracle itself provide facility of TAF and now in 10g the concept of Vip.
    all this functionality will be available by using TAF.
    Kuljeet

  • Listener.ora file on RAC 11gR2 with SCAN

    Hello,
    I have 11.2.0.1 Rac with 2 nodes configured to work with SCAN.
    The following listener.ora file was created during the rac installation.
    (I only changed the name of the instance to XYZ in the output bellow).
    There is only one listener.ora file for both the rdbms instance and the ASM instance.
    Is it a good best practice or should i consider to create a seperate listener.ora
    to the rdbms instance and to the ASM instance ?
    The listener.ora is look as follow:
    LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
    LISTENER_XYZ_=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_XYZ)))) # line added by Agent
    LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
    LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
    LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_XYZ=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by AgentLSNRCTL> show current_listener
    Current Listener is LISTENER
    LSNRCTL> services
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:9195 refused:0 state:ready
    LOCAL SERVER
    Service "XYZ_SRV" has 1 instance(s).
    Instance "XYZ_1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:803987 refused:0 state:ready
    LOCAL SERVER
    Service "XYZ" has 1 instance(s).
    Instance "XYZ_1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:803987 refused:0 state:ready
    LOCAL SERVER
    Service "XYZ_XDB" has 1 instance(s).
    Instance "XYZ_1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: xyzdb-11-1, pid: 11923>
    (ADDRESS=(PROTOCOL=tcp)(HOST=xyz-11-1)(PORT=36594))
    The command completed successfullyThanks

    Is it a good best practice or should i consider to create a seperate listener.ora to the rdbms instance and to the ASM instance ?No, you should not be creating separate listener for each Grid & DB. Listener is node specific resource. Oracle recommends in RAC environment the listener should be configured from GRID home and it will be able to serve both Grid and DB services.
    It also helps in maintenance where as you can upgrade DB without bothering Listener, can have several db instances, and can have several versions of DB supported by a single listener.
    I hope this answers your question. if yes please mark the question as answered and do not forget marking answer as a Correct answer.
    Edited by: pgoel on Mar 5, 2011 10:50 PM

  • I have ebooks on my ipod and when I'm listening to a story it will not go to the next chapter, it just starts over again with the chapter I just listen too.  How do I correct this?  It didn't do this before.

    I have ebooks on my ipod and when I'm listening to a story it will not go to the next chapter, it just starts over again with the chapter I just listen too.  How do I correct this?  It didn't do this before.

    ebooks is a term for (mainly) textual books that can be read on screen. If you're listening then I think you mean audiobooks. See audiobooks on iPods. Either reorganize as single files or access via a playlist.
    tt2

  • Do I need to change OCI layer to utilize Oracle RAC failover Feature?

    Dear Oracle Experts,
    From the Oracle documents, the RAC is a great feature providing the scalability and high availablility. I thought the failover features should be transparent to users.
    However, from this book:
    http://www.oreilly.com/catalog/oressentials2/chapter/ch01.html
    "For instance, in high-availability implementations in which multiple systems share disks and implement Real Application Clusters/Oracle Parallel Server, you may want users to reattach to a second server transparently if the first fails. You can write programs that do this using OCI. "
    "You can write applications with the Oracle Call Interface (OCI) to provide failover to a second instance transparently to the user. "
    I am confused if RAC failover feature have to depend on OCI user application coding?
    I have an application developed over Oracle 8.1.6, if I buy Oracle9i to use RAC failover feature, should I modify my application at OCI layer to make it work? Can I switch the oracle instance when the original one fails only by RAC setup instead of changing OCI code?
    Thanks.
    Wei
    P.S. I am running application over Compaq tru64 5.1A.

    Hi ,
    As answered by Sumit u need not alter ur application for shifting it to RAC.But there are few things which will determine the perfoemance of your application on RAC and depend on the type of application u use .Application partioning,data partitioning,index partitioning ... look for these topics . This may help.
    The other thing u mentioned abt. Oracle Libraries,DB name,SID .. . Now when u'll have RAC there will be more than 1 Node I believe. So each Node will have its SID,Oracle Binaries but DB name will be same.
    Gud Luck!
    Vijay Shanker
    Edited by: Vijay Shanker on Feb 14, 2009 6:12 PM

  • Oracle 11gR2 RAC installation with DNS

    Dear Guru's,
    I want to configure RAC on two node cluster with DNS(For SCAN) in my testing server.
    O.S: RHEL5.4(64 bit)
    Oracle Version: 11gR2(11.2.0.2)
    Note: Am creating nodes in VMware ESXi server.
    Just I want to know whether DNS should be configure in any one of those NODES or in separate machine.
    Bala :)

    Hi Bala,
    I want to configure my Database with & without DNS. (Will try both installation in different servers)I think, you have already received a link on very good article about Oracle RAC installation without DNS and DHCP (I mean Jeffrey Hunter's article).
    There is one more about Oracle RAC installation with DNS and DHCP (http://gjilevski.com/2011/10/05/build-two-node-oracle-rac-11gr2-11-2-0-3-with-gns-dns-dhcp-and-haip/).
    And want to know how it forwards the client connection if a node fails.. Can anyone update the URL for this..There are a lot of information about it:
    - http://www.oracle.com/technetwork/database/features/oci/taf-10-133239.pdf
    - http://docs.oracle.com/cd/E14072_01/java.112/e10589/apxracfan.htm
    - http://www.oracle.com/technetwork/database/app-failover-oracle-database-11g-173323.pdf
    Very good videos:
    - http://www.dsvolk.ru/oracle/racdd4d/demos/video/taf/session/session_viewlet_swf.html
    - http://www.dsvolk.ru/oracle/racdd4d/demos/video/taf/select/select_viewlet_swf.html
    - http://www.dsvolk.ru/oracle/racdd4d/demos/video/taf/callback/callback_viewlet_swf.html
    - http://www.dsvolk.ru/oracle/racdd4d/demos/video/fan/fan_viewlet_swf.html
    Hope it helps,
    Best regards,
    Gena

  • Not able to connect to RAC Database with VIP entries

    Hi All,
    My RAC database run with Physical Host entries in listener and tnsnames files.
    But VIP services are running in both nodes.
    Now i want to use VIP enties to connect to the RAC database from client side.
    I have modified the both the listener and tnsnames files with VIP entries and bounced the instance.But It didn't work.
    Please suggest what could be done in this issues.

    Hi,
    It is 10.2.0.3 and remote_listener is set to LISTENER_Hostname and Remote listener is configured.
    Thanks

  • Handling Oracle RAC Failover at the application layer

    Hi All,
    I am currently researching best practices for handling oracle RAC failover at the application layer since transactional statements (INSERT,UPDATE and DELETE) are not handled transparently. So I have few questions for the community:
    1. In case of a node failure would I need to roll back all of transactional statements that are part of the transaction or would I have to re-execute the one that failed only?
    2. Does things change with XA 2 phase commit transactions?
    Any input and/or architecture suggestions would be much appreciated.
    Regards,
    Dmitriy Frolov

    Hi,
    the Oracle RAC stack works very vell on its own, without the need of a third party clusterware. It will be aware of failures on the nodes.
    Database will be using ASM or RAW or NFS devices for Shared storage.
    Oracle Clusterware can also be configured to monitor your applications and to a failover to other nodes.
    However if you need a shared filesystem for your own applications, then you will have to use QFS or similar (which again than requires Sun Cluster).
    See: http://www.oracle.com/technology/products/database/clusterware/index.html
    Regards
    Sebastian

  • Optimize rac failover time?

    I have 2node RAC and the failover time is taking 4 minutes. Please advice some tips/documents/links that shows, how to optimize the rac failover time?
    [email protected]

    Hi
    Could you provide some more information of what it is you are trying to achieve. I assume you are talking about a the time it takes for clients to start connecting to the available instance on the second node, could you clarify this?
    There is SQLnet parameters that can be set, you can also make shadow connections with the preconnect parameter in your fail_over section of your tnsnames.ora on the clients.
    Have you set both of your hosts as preferred in the service configuration on the RAC cluster. The impact will be less in a failure as approximately half of your connections will be unaffeced when an instance fails.
    Cheers
    Peter

  • How can i use my apple ID with the itune store over my windows laptop

    how can i use my apple ID with the itune store over my windows laptop

    If you don't have iTunes installed on your laptop then you can download and install it from here : http://www.apple.com/itunes/download/
    You can then log into your account on it via the Store > Sign In menu option (on iTunes 11 on a PC you can get the menus to show via control-B) :
    And you can then select the Store on the left-hand sidebar (you can enable the sidebar via control-S), and then browse items in the store and buy them by clickin on their price.

  • I recently bought, from the original website of Adobe, Photoshop elements 13. However, when I go with my mouse pointer over the menu, It hangs or he works very slow. Does anyone have an idea how I can fix it? I have already downloaded updates, both from A

    I recently bought, from the original website of Adobe, Photoshop elements 13. However, when I go with my mouse pointer over the menu, It hangs or he works very slow. Does anyone have an idea how I can fix it? I have already downloaded updates, both from Adobe and Windows. I have a new pc with window 8.1.

    It could be a coincidence, but I rebooted the machine and (knock on wood) PSE13 seems to be working ok.

  • Problem with procedure in package

    Problem with procedure in package:
    create table accounts
    (acno number(10),
    name varchar2(20),
    balance number(10,2));
    create package banking is
    procedure new_acct(acno NUMBER, name IN VARCHAR);
    procedure acct_dep(acno IN NUMBER, amount IN NUMBER);
    procedure acc_wdr(acno IN NUMBER, amount IN NUMBER);
    procedure acc_bal(acno IN NUMBER, bal OUT NUMBER);
    function acc_drwn(acno IN NUMBER) RETURN BOOLEAN;
    end banking;
    create or replace package body banking is
    procedure new_acct ( acno IN number,
    name IN varchar) is
    begin
    insert into accounts
    (acno, name, balance)
    values
    (acno, name,0);
    end;
    procedure acct_dep(acno IN NUMBER,
    amount IN NUMBER) is
    begin
    update accounts
    set balance = balance + amount
    where acno = acno;
    end;
    procedure acc_wdr(acno IN NUMBER,
    amount IN NUMBER) is
    begin
    update accounts
    set balance = balance - amount
    where acno = acno;
    end;
    procedure acc_bal(acno IN NUMBER,
    bal OUT NUMBER) is
    begin
    declare cursor c_balance(i_acno IN accounts.acno%type) is
    select balance
    from accounts
    where acno = i_acno;
    acc_bal accounts.balance%type;
    begin
    if c_balance%isopen then
    close c_balance;
    end if;
    open c_balance(acno);
    fetch c_balance into acc_bal;
    close c_balance;
    end;
    end;
    function acc_drwn(acno IN NUMBER) RETURN BOOLEAN is
    begin
    declare cursor c_balance(i_acno IN accounts.acno%type) is
    select balance
    from accounts
    where acno = i_acno;
    bal accounts.balance%type;
    begin
    if c_balance%isopen then
    close c_balance;
    end if;
    open c_balance(acno);
    fetch c_balance into bal;
    close c_balance;
    if bal < 0 then
    return true;
    else
    return false;
    end if;
    end;
    end;
    end banking;
    begin
    banking.new_acct(123,'FRANKS');
    end;
    execute banking.acct_dep(123,100);
    execute banking.acc_wdr(123,50);
    Works fine up to this point, however when running the balance check the balance amount is not visible?
    SQL> set serveroutput on
    SQL> begin
    2 declare
    3 bal accounts.balance%type;
    4 begin
    5 banking.acc_bal(123,bal);
    6 dbms_output.put_line('Franks balance is '||bal);
    7 end;
    8 end;
    9 /

    procedure acc_bal(acno IN NUMBER,
       bal OUT NUMBER)
    is
    cursor c_balance(i_acno IN accounts.acno%type) is
       select balance
       from accounts
       where acno = i_acno;
       l_acc_bal accounts.balance%type;
    begin
       open c_balance(acno);
       fetch c_balance into l_acc_bal;
       close c_balance;
       bal := l_acc_bal;
    end;

  • TS2834 I've been using the mail app that came with my Mac for over a year. Out of the blue, it will not open and keeps saying "Mail cannot open because of a problem" and something about not being compatible ??? Help! I miss my mail

    I've been using the mail app that came with my Mac for over a year. Out of the blue, it will not open and keeps giving me an error like "Mail cannot open because of an error and something about it not being compatible. Please help! I miss my mail

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How can I adjust the contrast of video on my MacBook Pro Retina so they don't look like they were filmed with an old sock over the lens?

    I'd like to watch movies and TV shows, downloaded from iTunes or Amazon, on my MacBook Pro Retina, but they all look like they were filmed with an old sock over the lens. Daytime sequences look muddy, and night time sequences are incomprehensible with anything but the brightest objects rendered as black. I can watch the same files on my old MacBook Air and everything looks right, but no manner of tweaking seems to let me watch movies on my new machine.
    I've tried adjusting the gamma. It's a bit better when gammas is set to 1.0, but I can't seem to set a gamma less than one. I tried using the Accessibility Contrast control, but it just lowers the contrast, swallowing my desktop into the dark abyss. I tried Applecare, but they don't have a clue. I tried the Apple Store. The "genius" confirmed that it is indeed impossible to watch movies shot anywhere but in the brightest sunlight on a MacBook Pro Retina, and it isn't just my machine, but every similar model in the store. He arranged for someone who really understands color profiles to give me a call, but Apple seems to have dropped the ball on this.
    Is there some tool for stretching out the darker grays in Apple video? I don't want calibration. My impression is that my display, like the dozens I checked at the Apple Store are calibrated to make all dimmer grays appear completely black. I want uncalibration so I can actually see what is going on in the movies even if something is in a light shadow or shot at night. Hollywood has lots of trained technicians who can light and shoot night scenes that are quite comprehensible. I've watched a number of such scenes on my old MacBook Air. Now, I'd like to enjoy their artistry on my MacBook Pro Retina.

    http://www.ifixit.com/ has directions for do it yourself.  Also look at PRAM battery instructions, as sometimes this can fix optical drive issues.
    You can get external or internal drives from http://www.macsales.com/
    I also suggest in the future, take care of this problem while it is still under warranty. It may have cost you nothing.
    See this FAQ* on what may be at issue:
    http://www.macmaps.com/cdrfailure.html

  • I ended up with 3 Apple IDs over time.  How can I get it down to one account?

    I ended up with 3 Apple IDs over time.  When I sink my iPad, some apps won't sync because the app was purchased under a different account? 
    How can I get it down to one account and be able to sync all of my iTunes purchases (apps, music, etc.) on my iPad and iPhone?
    This is driving me crazy!  grrrr.   :-)
    I have .me; .mac and .icloud accounts.
    - Dave
    Running OS X  10.8.5 (Mountain Lion) on iMac, using iPad 4 (64GB) and iPhone 5.

    Thanks.  I was afraid of that.  Darn Apple....we use Apple products because they are elegant and easy to use, why can't apple simplify the ID issues???   :-)
    Thanks for the reply.

Maybe you are looking for