Failover - How to achieve a transparent failover using SQLPlus

AIX 5.3 Oracle Clusterware 10.2.0.4.0 Oracle Enterprise Edition 10.2.0.4.0
This is the behavior I see from an Oracle Client session which is to be expected if I read RAC: Frequently Asked Questions [ID 220970.1] see below
(1) SQLPlus session connected to NodeA
(2) NodeA - Clusterware services stopped
(3) NodeA-vip has failed over to Node B
(4) SQLPlus session receives an error
(5) SQLPlus establish new connection to NodeA-vip
My question is how is a transparent SQLPLus session failover achieved as illustrated in [ID 339107.1] see below
*** Dedicated Connections to a Migrated VIP Can Lose their Connection after the VIP is Switched Back [ID 339107.1] ***
SQL> select instance_name from v$instance;
INSTANCE_NAME
rac11g1
$ crsctl stop crs
SQL> /
INSTANCE_NAME
rac11g2
RAC: Frequently Asked Questions [ID 220970.1]
*** Why do we have a Virtual IP (VIP) in Oracle RAC 10g or 11g? Why does it just return a dead connection when its primary node fails? ***
The goal is application availability.
When a node fails, the VIP associated with it is automatically failed over to some other node. When this occurs, the following things happen.
(1) VIP detects public network failure which generates a FAN event.
(2) the new node re-arps the world indicating a new MAC address for the IP.
(3) connected clients subscribing to FAN immediately receive ORA-3113 error or equivalent. Those not subscribing to FAN will eventually time out.
(4) New connection requests rapidly traverse the tnsnames.ora address list skipping over the dead nodes, instead of having to wait on TCP-IP timeouts
Without using VIPs or FAN, clients connected to a node that died will often wait for a TCP timeout period (which can be up to 10 min) before getting an error.
As a result, you don't really have a good HA solution without using VIPs and FAN. The easiest way to use FAN is to use an integrated client with Fast Connection Failover (FCF) such as JDBC, OCI, or ODP.NET.
*** What do the VIP resources do once they detect a node has failed/gone down? Are the VIPs automatically acquired, and published, or is manual intervention required? Are VIPs mandatory? ***
With Oracle RAC 10g or higher, each node requires a VIP. With Oracle RAC 11g Release 2, 3 additional SCAN vips are required for the cluster. When a node fails, the VIP associated with the failed node is automatically failed over to one of the other nodes in the cluster. When this occurs, two things happen:
1. The new node re-arps the world indicating a new MAC address for this IP address. For directly connected clients, this usually causes them to see errors on their connections to the old address;
2. Subsequent packets sent to the VIP go to the new node, which will send error RST packets back to the clients. This results in the clients getting errors immediately.
In the case of existing SQL conenctions, errors will typically be in the form of ORA-3113 errors, while a new connection using an address list will select the next entry in the list. Without using VIPs, clients connected to a node that died will often wait for a TCP/IP timeout period before getting an error. This can be as long as 10 minutes or more. As a result, you don't really have a good HA solution without using VIPs.
With Oracle RAC 11g Release 2, you can delegate the management of the VIPs to the cluster. If you do this, the Grid Naming Service (part of the Oracle Clusterware) will automatically allocated and manage all VIPs in the cluster. This requires a DHCP service on the public network.
Thank you
Steve

Answer = Follow MetaLink 377100.1

Similar Messages

  • How to achieve parent-child relationship using self join?

    my table structure is as follows
    parent child name
    -1     1     A1
    1     2     A2
    1     3     A3
    how to achieve the hierarchy model using self join. this can be easily achieved using "connect by prior". but how to achieve the same using self join?

    Hi,
    Yes, that's definitely possible. If you only need to display two levels from the hierarchy, a self-join is a good option. Make it an outer join if you need to show everyone on one level, regardless of whether they have a match on the other level or not; for example, if you want the output:
    child_name     child_id     parent_name     parent_id
    A1          1
    A2          2          A1          1
    A3          3          A1          1It's good that you posted some sample data. Now post the results you want from that data, and your query (what you think is the best attempt you've made so far). If you haven't tried anything so far, then look at some other simple self-join to get ideas.

  • How to achieve modularize in flex using cairngorm framework?

    Hi,
    I have seen many articles on flex and cairngorm but haven't found enough information on how to achieve modularization in flex using cairngorm framework.
    Please let me know any information regarding this.
    Thanks in advance.
    Vishnu

    Hi Sumit,
    I am also working similar kind of requirement. In my case I tried to add new tab subtab using personalization , how ever the add new item button is not enable.
    So I created new stacklayout and tried to add this to new tab in the existing subtablayout by using co process form request code:
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OracleCallableStatement oraclecallablestatement = null;
    OracleConnection oracleconnection = (OracleConnection)oapagecontext.getApplicationModule(oawebbean).getOADBTransaction().getJdbcConnection();
    try{
    oracleconnection.setAutoCommit(true);
    oraclecallablestatement = (OracleCallableStatement)oracleconnection.prepareCall("begin GLO_TMPVIJ_PRCV(:1); end;");
    oraclecallablestatement.setString(1,"In the custom co process request");
    oraclecallablestatement.execute();
    }catch(SQLException sqlexception)
    throw OAException.wrapperException(sqlexception);
    OASubTabLayoutBean subTabLayout =
    (OASubTabLayoutBean)oawebbean.findChildRecursive("ApplicationDetsTabLayout");
    OASubTabBarBean subtabbar = (OASubTabBarBean)oawebbean.findIndexedChildRecursive("subTabBar");
    OALinkBean link = (OALinkBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,
    OAWebBeanConstants.LINK_BEAN, null,
    "link");
    OAStackLayoutBean commentsRN =
    (OAStackLayoutBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,
    "/xxhr/oracle/apps/irc/candidateManagement/webui/CommentsRn",
    "CommentsRn", // always specify name
    true); // region created in Oracle9i JDeveloper OA Extension
    subTabLayout.addIndexedChild(commentsRN);
    subTabLayout.addIndexedChild(link);
    in this I am not ale to add the new tab.
    Regards,
    Vijay Reddy.

  • How to compile all package body using sqlplus ?

    hi all,
    How to compile all package body using sqlplus ?
    Please help.
    Amy

    dbms_utility.compile_schema will compile all the invalid objects in a schema, including the invalid package bodies. If you only want to compile the invalid package bodies, you could write your own dynamic SQL stored procedure to do that using the user_source view, but that's a lot more effort for a very minimal benefit.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to achieve multiple hirearcy structure using RBS feature in Project server 2013

    HI,
    How can we achieve multiple hirearcy structure using RBS feature in Project server 2013?
    The below is the screen shot of hirearcy.
    GM
    DGM
    AGM
    CM
    Officers
    There are different departments and one AM may handle 4 or more department. How to achieve this permission levels so that GM can see all departments officers created project, same with other levels
    Thanks,
    Sunitha

    Hi Sunitha,
    You could populate the RBS lookup table with 2 levels (department and sub department). Then configuring correctly your
    security categories based on the RBS, the resources in the 1st level (departments) will see projects from all theirs sub departments.
    Some more references:
    http://aboutmsproject.com/project-server-securitypart-1/
    http://ntrajkovski.com/2012/06/04/the-rbs-lookup-table-in-ms-project-server-2010/
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How to STARTUP multiple Oracle Databases, using sqlplus (SOLARIS)

    Hi guys,
    I am pretty new at solaris and oracle, right now i have oracle 11gr2 installed in my Solaris 10 machine.
    I managed to create 2 databases with 2 different ORACLE_SID, (e.g. A & B)
    my question is, is it possible to have both of this Databases mounted and opened??
    here is the step i have done so far:
    - go to /ORACLE_HOME/bin
    - I started my one and only LISTENER - ./lsnrctl start LISTENER
    - ORACLE_SID=A
    - ./sqlplus / as sysdba
    - SQL>STARTUP
    Everything went well, until i set another ORACLE_SID (in another terminal) to ORACLE_SID=B, and when i tried to start it up using SQLPLUS, i get this "Segmentation Fault - core dumped".
    It seems like i start the 2nd database wrongly, is there proper way to do this?
    i need the 2 databases (SID A & SID B) to be running concurrently.
    thanks

    Hi guys,
    I am pretty new at solaris and oracle, right now i have oracle 11gr2 installed in my Solaris 10 machine.
    I managed to create 2 databases with 2 different ORACLE_SID, (e.g. A & B)
    my question is, is it possible to have both of this Databases mounted and opened??
    here is the step i have done so far:
    - go to /ORACLE_HOME/bin
    - I started my one and only LISTENER - ./lsnrctl start LISTENER
    - ORACLE_SID=A
    - ./sqlplus / as sysdba
    - SQL>STARTUP
    Everything went well, until i set another ORACLE_SID (in another terminal) to ORACLE_SID=B, and when i tried to start it up using SQLPLUS, i get this "Segmentation Fault - core dumped".
    It seems like i start the 2nd database wrongly, is there proper way to do this?
    i need the 2 databases (SID A & SID B) to be running concurrently.
    thanks

  • How to STARTUP multiple Oracle Databases, using sqlplus

    Hi guys,
    I am pretty new at solaris and oracle, right now i have oracle 11gr2 installed in my Solaris 10 machine.
    I managed to create 2 databases with 2 different ORACLE_SID, (e.g. A & B)
    my question is, is it possible to have both of this Databases mounted and opened??
    here is the step i have done so far:
    - go to /ORACLE_HOME/bin
    - I started my one and only LISTENER - ./lsnrctl start LISTENER
    - ORACLE_SID=A
    - ./sqlplus / as sysdba
    - SQL>STARTUP
    Everything went well, until i set another ORACLE_SID (in another terminal) to ORACLE_SID=B, and when i tried to start it up using SQLPLUS, i get this "Segmentation Fault - core dumped".
    It seems like i start the 2nd database wrongly, is there proper way to do this?
    i need the 2 databases (SID A & SID B) to be running concurrently.
    thanks

    $ ORACLE_SID=AM
    $ export ORACLE_SID
    $ ./lsnrctl start LISTENER
    LSNRCTL for Solaris: Version 11.2.0.1.0 - Production on 04-NOV-2010 14:38:45
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
    TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/unknown/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.77)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.10.77)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
    Start Date 04-NOV-2010 14:38:49
    Uptime 0 days 0 hr. 0 min. 5 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/unknown/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.77)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    $ ./sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 4 14:39:52 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> STARTUP
    ORACLE instance started.
    Total System Global Area 855982080 bytes
    Fixed Size 2215824 bytes
    Variable Size 562036848 bytes
    Database Buffers 285212672 bytes
    Redo Buffers 6516736 bytes
    Database mounted.
    Database opened.
    SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    $ ORACLE_SID=SDB3
    $ export ORACLE_SID
    $ ./sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 4 15:11:22 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> STARTUP
    Segmentation Fault - core dumped
    So first of all , I set the oracle SID to AM -> Start a Listener -> start sqlplus as sysdba -> STARTUP
    2ndly, I set the oracle SID to SDB 3 -> start sqlplus as sysdba -> do another STARTUP , Segmentation Fault - core dumped
    Hope you can help with this, been stuck here for almost 3 days, =p thanks!
    Edited by: 807471 on Nov 4, 2010 12:47 AM

  • How could I config TNS to use SQLPLUS in Windows NT

    I have installed the ORACLE in Linux, and I installed the Oracle8i Client on a Windows NT computer. But I could not use the SQLPLUS in Windows NT. The error message is: ORA-12560: TNS: Protocal Adapter error.
    I have test the connection between the Windows NT and Linux computer, and it seems good. Alos, I can start the OEM on Windows NT computer, and it runs ok.

    It sounds like Net8 wasn't set up properly on the NT client. Run the Oracle Net8 Assistant to tell the NT client how to connect to your Linux server.

  • How to Play a sample sound using Java

    Hi,
    I have an mp3 music files in database. When a user chooses a particular button, all the songs are fetched from the database.
    I have two buttons namely, 'Buy' and 'Play Sample'. If I click the 'Play Sample' button, a sample of the song has to be played (not the full song). If the user likes the sample, he can buy the full song.
    My question is how to achieve the 'Play Sample' using Java Swings and Sound. I have googled, but not find any solutions. Please provide me an example or link.
    Thanks in advance.

    HI
    Actually i am trying to create a JFrame which plays an mp3 music file
    with the help of play and stop buttons in it ...
    i splitted the frame into two
    i want a music file list in the first frame (JComboBox)
    and want to have play and stop button in the second frame .
    i had tried out some code in which the frame part is fine ,,,
    but i am not knowing how to play the file with those buttons ...
    here is the code and plz help me to move further ...
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JSplitPane;
    public class AudioFile extends JFrame {
        public AudioFile() {
            setTitle("Music File");
            setSize(300, 400);
            JPanel jp1 = new JPanel();
            JPanel jp2 = new JPanel();
            JButton s= new JButton("STOP");
            JButton p= new JButton("PLAY");
            JLabel j1 = new JLabel("MusicFile");
            String[] musicfiles={"file:///home/swathi/Desktop/spot3.mp3","anitha.mp3"};
            JComboBox musiclist=new JComboBox(musicfiles);
            musiclist.setSelectedIndex(1);
            jp1.add(j1);
            jp1.add(musiclist);
            jp2.add(s);
            jp2.add(p);
            JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
                    true, jp1, jp2);
            splitPane.setOneTouchExpandable(true);
            getContentPane().add(splitPane);
        public static void main(String[] args) {
          AudioFile sp = new AudioFile();
            sp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            sp.setVisible(true);
    }

  • How to view stored procedure using SQLPlus

    I have created the following stored procedure in Oracle, I would like to know how to view this stored procedure using SQLPlus:
    CREATE PROCEDURE get_product_code(prod_no IN VARCHAR2) IS
         CURSOR Getno IS
              <my_query_goes_here>
         BEGIN
              For Getno_cur IN Getno LOOP
              DBMS_OUTPUT.PUT_LINEGetno_cur.name);
              END LOOP;
         END;
    run;

    Hi,
    You can also use USER_SOURCE in place of ALL_SOURCE, for getting your own procedure code (or any pl/sql schema object).
    Regards

  • How to achieve Incremental deployment of Code Files to different environments of windows azure using TFS and Visual Studio ?

    Hi
    We are new to Windows azure and are developing a web application. In the beginning of the project , we have deployed complete code using Sitefinity Thunder to different environments which actually publish complete code. But now as we are in the middle of development
    , we are just required to upload any new files created which can be quite less in numbers (1 or 2 or maybe few). Now if we deploy with thunder , it publishes all files and then deploys complete code which takes good amount of time. Hence we are thinking to
    attach each Azure Cloud Service which is actually a different environment like staging, UAT to a TFS branch and then just check in code from local development machine to TFS and then deploy only checked in files to azure environment linked to TFS.
    I hope this possible but if you can help send some links where I can see how to achieve this , that will be helpful. 
    Also I would like to know whether a single cloud service can be linked to a single TFS branch or multiple cloud service can be linked to a single TFS repository? Why I am asking is – because we want to deploy a checked in files revision number to a staging
    cloud service and then will test there and then if everything works well then will be required to deploy these revision files to the next cloud UAT cloud service and then production cloud service. Please help.

    Hi,
    We can use TFS to manage our azure cloud service application code, refer to the following to get more information about how to deploy sitefinity to azure.
    #http://www.sitefinity.com/documentation/documentationarticles/manually-deploying-your-project-to-windows-azure
    #http://www.youtube.com/watch?v=E2aZ7lE1JUA
    #http://www.sitefinity.com/documentation/documentationarticles/sitefinity-azure-configuration
    If any question about sitefinity, please redirect to sitefinity forum:
    http://www.sitefinity.com/developer-network/forums if the issue was related with azure, welcome to post again.
    Best Regards
    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.

  • How to achieve polymorphisim using composition

    How to achieve polymorphisim using composition

    Not possible. This is very wrong, polymorphism is very much facilitated by Composition (or Aggregation).
    Polymorphism goes hand in hand with
    either imlementing an interface or extending a class.The fundamental objective of Polymorphism is the handling/using Objects of multiple types in a uniform manner, i.e. to a fixed contract.
    Composition may be used to delegate the
    implementation of an interface or subclass' method.Composition allows much more than delegation, it about defining a static contract between two objects.
    composition itself is not polymorphic.The main difference between simple composition and polymorphism is the valence. In Polymorphism it is explicityly 1. .N in the case of composition it is implicitly 0..N
    I think this code proves that a Composition of classes for Odd and Even can be used polymorphically.
    public class Polymorphism {
      abstract public class Base {
        public void method()
          System.out.println( this.getClass().getName() + ".method()" ) ;
      public class Odd extends Base {
      public class Even extends Base {
      final int ARRAY_SIZE = 10;
      Base[] composition = new Base[ARRAY_SIZE] ;
      public Polymorphism() {
        for(int i = 0 ; i < ARRAY_SIZE ; i+=2 )
          composition[i] = new Even() ;
          composition[i+1] = new Odd() ;
      public void process() {
        for(int i = 0 ; i < ARRAY_SIZE ; i++ ) {
          composition.method() ;
    public static void main(String[] args) {
    Polymorphism polymorphism = new Polymorphism();
    polymorphism.process() ;

  • How to achieve Check point functionality in SSIS with out using check point.

    I got question from
    interview!!! How
    to achieve Check
    point functionality in SSIS with out using check point. If package
    fails it has to be re-run from the point that it failed instead
    of rerunning the entire package.without
    using check point.
    Please
    any one can explain step by step...

    Sorry you have failed your interview question. Good thing you remembered it, thought about it, and ask a question about it. The solution is actually very straightforward.
    Create a table to store the state of your progress. Before each step read the table to find out where left off, then skip each completed step. After each step write to the table which step you have completed. A step can be anything, a task, a component,
    a row, an import file, an export file. You don't have to use a table, it could also be a file, just something you can read and write, and does not disappear when your package stops.
    If you find this difficult to comprehend, think of a checklist of things you do everyday and work from there.

  • Configure connect-time failover using GUI

    Any way to configure connect-time failover using GUI
    i can do it by editing Listener.ora
    i have tried "Net Manager" and it did not work
    in ocp studying material , there is an exhibit for that , don't know where is that GUI
    Thanks...

    try this link .
    http://www.lc.leidenuniv.nl/awcourse/oracle/network.920/a96580/advcfg.htm

  • How to achieve this using UWL

    Hi Friends,
    I have the following requirement for Travel request workflow and Invoice approval workflow. Please let me know how to achieve this.
    While sending a work item to sap inbox we will put the base BO in the task container right so that the approver can open the particular transaction.I need the same functionality in UWL but instead of the BO i need to place some link so that the user can open an iview or webdynpro application. Basically the user dont want to login to SAP GUI he needs everything to be done in Portal itself.
    Do we need to do some settings in tcode SWFVISU for this or do we need to change the associated xml file in UWL to provide the link to iview. Please advice.

    Hi,
    If i understand your requirement correctly, you want to place a link of BO in UWL but don't want that to get to SAP GUI. Right ?
    I think it's possible. We had ECC 6.0 and EP 6.0 with SP 11. And, we had the requirement of showing up the TRIP BO in UWL thru' an iVIEW. We tried the SWFVISU and it didn't work. But, i think this facility has been taken care in later service packs. Pl approach SAP and they should be able to help you out. I'm not sure about the details of the solution SAP provided us, but it worked for us..like there will be a button "Display XXXXXX" which infact opens up your BO in UWL without logging into GUI.
    Hope this helps.
    venu

Maybe you are looking for

  • Aiport Expresses No Longer Working - Airport Utility for Windows 5.6.1

    I have two airport express devices, each connected to a stereo to stream itunes.  Both have abruptly stopped working and the Airport Utility no longer recognizes either device. Neither device is available in itunes as a "speaker" anymore.  When I run

  • Anyone still has Photoshop 5 or 5.5 (NOT CS!) running?

    I would need a very simple favor: Pre Photoshop 6 versions did not use unique IDs to identify patterns in the actions. Back in the time, it was possible to create a pattern, then load the last pattern of the palette as an action step. That way it wou

  • New iMac, same iTunes library possible?

    I'm in the process of buying a brand new iMac for myself, instead of using the family iMac all the time. I'd like to have the same iTunes library, and preferably a copy on my hard drive. Will iTunes Home Sharing do this, or will I have to do this in

  • Error when inserting captivate demo

    iam using robohelp 7.0 and captivate 3.00 when i try to insert a captivate demo into my robohelp word project it says the file wasnt created using adobe captivate any ideas ?

  • Can't load tpl brush presets (CS5, Mac OSX 10.5)

    Hi all, I'm using Photshop CS5.1 on my Mac (OSX 10.5.8) and don't seem to be able to load tpl files. I put the file in Photoshop's "presets -> tools" folder and tried to open it via the brush presets picker. When I browse for the file, only ABR files