Oracle RAC implementation scenario

Hello DB Experts,
I have got a very specific business scenario to be implemented.
Basically we need to implement 2 Node RAC infrastructure.
But in this on each node we have 2 oracle instances running.
Now is it possible to have one Instance running on Active / Active mode and another instance in Active / Passive mode.
First of all i want to know it is possible to implement RAC in this manner.
If yes, then for Active / Passive instance if Active instance goes down how to switch the traffic to the passive node? Or basically i want to know how do i make that passive node active?
Would really appreciate some quick response.
Thanks,
Darshan

Lets assume some better names for this discussion...
RAC Database MYDB (instance on node1 = MYDB1, instance on node2=MYDB2)
SI Database URDB (instance on node1 = URDB with active/passive on node2)
Can this be done? Yes. But why? You can use SERVICES to limit on which node your application is accessing.

Similar Messages

  • Oracle RAC implementation for SJSWS

    Hi,
    we have a requirement to set up Sun Java system webserver with Oracle RAC.
    Please let me know the implemetation details, like how to setup multiconnections/datasource in Webserver console.
    any details with respect to this are appreciated.
    Thanks in advance.

    good point. we don't have a write up yet. but it should be pretty straight forward.
    pl. refer to our documentation on how to add jdbc resource within web server 7.
    http://docs.sun.com/app/docs/doc/821-0793/gczly?l=en&a=view
    from what i understand, you will need to use the jdbc driver and JNDI resource for the Oracle RAC

  • ORACLE RAC failure scenarios

    Hello,
    We have heard all the good points about the RAC and many of these are true but I just want real experience when even well configured RAC is failed and have unplanned downtime.
    Can anyone tell the failure scenarios also? I understand very basic one for example, interconnect fails ,SAN failed etc but please share some real life experience where even Oracle Customer Service takes not only hours but days to resolve the problem and they simply termed that problem as bug.
    Thanks,
    S.Mann

    I agree with Andreas and I think it's important to point out that the issues he mentioned (networking issues as well as other communication problems) are typically more common when RAC is deployed on a platform that isn't completely familiar to the implementor. That is, if you run Oracle on Windows servers, then deploying RAC on Linux successfully will probably be difficult.
    My standard answer for "what's the best platform for RAC?" is to run RAC on the platform that you know the most about. When you're building a system to house your most critical applications, wouldn't you want to build it on the platform that you know the most about?

  • Oracle 10g RAC implementation running out of space

    I have an Oracle RAC implementation setup on a Sun Storagetek 6140 for storage. I have allocated 100gb of space to Oracle but am constantly running out of space during operations. I know that i can allocate additional disk space using Common Array Manager for the Storagetek. How do i get ASM to recognize the fact that there is additional space available to it?

    Hi buddy,
    How do i get ASM to recognize the fact that there is additional space available to it?You have two options:
    1- The first one is create a new LUN, configure it at the OS level and add the disk to disk group.
    alter diskgroup add disk '<DISK_DEVICE_PATH>';
    2- The second one is increasing the LUN size (if possible, of course) and resize the disk.
    alter diskgroup <DISK_GROUP_NAME> resize disk '<DISK_NAME>' <NEW_SIZE>;
    Hope it helps,
    Cerreia

  • Database replication between Oracle RAC and Oracle Standalone DB

    Hi,
    We have currently 4 node RAC environment and Oracle RAC implementation with 4 Oracle instances. We want to move the one instance and make it Standalone with Oracle database due to availability issue. Thus we will remain with 3 nodes on the RAC database and one Standalone database. We want to implement Oracle replication on this solution, where partial database of RAC environment needs to be replicated to Standalone node.
    We will have Oracle 9i database server for both RAC and Standalone machine.
    The partial data that we are looking for replication are of size 25GB. Some of questions we have:
    1. Is there any other replication mechanism apart from Materilzed view for this solution?
    2. Is it feasible to sychronize around 25GB data between servers?
    3. What can be estimated time for refresh or Synchronization?
    Thanks in advance for help.

    The methods that we are evaluating currently for this replication are:
    1. Multi Master replication
    2. Oracle 9i Datagaurd.
    Please let me know if we need to look for some other methods of replication also.

  • Database replication between Oracle RAC and Oracle Standalone DB in 9i

    Hi,
    We have currently 4 node RAC environment and Oracle RAC implementation with 4 Oracle instances. We want to move the one instance and make it Standalone with Oracle database due to availability issue. Thus we will remain with 3 nodes on the RAC database and one Standalone database. We want to implement Oracle replication on this solution, where partial database of RAC environment needs to be replicated to Standalone node.
    We will have Oracle 9i database server for both RAC and Standalone machine.
    The partial data that we are looking for replication are of size 25GB. Some of questions we have:
    1. Is there any other replication mechanism apart from Materilzed view for this solution?
    2. Is it feasible to sychronize around 25GB data between servers?
    3. What can be estimated time for refresh or Synchronization?
    The methods that we are evaluating currently for this replication are:
    1. Multi Master replication
    2. Oracle 9i Datagaurd.
    Please let me know if we need to look for some other methods of replication also.
    Thanks in advance for help.

    ManojMac wrote:
    The partial data that we are looking for replication are of size 25GB. Some of questions we have:
    1. Is there any other replication mechanism apart from Materilzed view for this solution?Streams is another option
    2. Is it feasible to sychronize around 25GB data between servers?Sure. Depending on the rate of change, your latency requirements, whether the standalone database has the horsepower to apply all the changes generated by to other three nodes, etc.
    3. What can be estimated time for refresh or Synchronization?Depends on the architecture, the network connection, whether you are doing incremental refreshes, etc. And it depends on what time you're measuring-- you might be measuring the latency between the RAC cluster and the standalone database, you might be measuring the time it takes to incrementally refresh a single materailized view when there have been no changes, you might be measuring the time it takes to do a complete refresh of an entire refresh group, pulling 25 GB of data over the network.
    The methods that we are evaluating currently for this replication are:
    1. Multi Master replication
    2. Oracle 9i Datagaurd.DataGuard is not an option if you only want to replicate a subset of the data. The two realistic options are materialized views and Streams. Are you anticipating that you will be making changes on both nodes? If not, you can use simple materialized views rather than multi-master replication.
    Since 9.2 is not longer covered by Premier Support, are you planning to upgrade to a supported version in the near future? In particular, Streams works a lot better in later versions of the database.
    Justin

  • Oracel RAC implementation experience

    Dear All,
    Has any one successfully implemented Oracle RAC on Solaris 10/SPARC on a production box for SAP ECC/SRM etc...?. Can u Pl share your experience? Will Oracle RAC be supported in future or is it going to be phased out by SAP? How robust is the Oracle RAC implementation? Is it advisable to take the Oracle RAC route?
    Thanks for all your inputs.
    Regards
    Velu

    Hi
    Hey are you asking for the Implementation methodology used by SAP-XI.It is known as
    AcceleratedSAP (ASAP) Roadmap.
    The ASAP Methodology has five phases:
    1. Project Preparation – project formally initiated and planning well under way.
    2. Business Blueprint – project team gathers requirements and conducts conceptual design of the solution.
    3. Realization – system solution is built and integration tested, end users trained
    4. Final Preparation – final check before cut over to new system solution
    5. Go Live & Support – solution confirmation, on-going support in place and project closing
    The ASAP Implementation Roadmap for Exchange Infrastructure provides guidance for the implementation teams embarking on implementation project of SAP XI Solution.
    http://www.sap-basis-abap.com/sapgeneral/what-is-asap.htm
    Refer link below for a brief ASAP stages
    ASAP SAP IMPLEMENTATION
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SVASAP/SVASAP.pdf 
    http://media.sdn.sap.com/html/submitted_docs/Implementation_Roadmap_XI/index.htm
    Thanks

  • Oracle´s File system over GPFS on Oracle RAC

    Hi all,
    I would like to know which Oracle´s File systems should be over GPFS on a Oracle RAC implementation.
    Regards,
    Sebastian.
    Edited by: user12549343 on 02-feb-2010 9:10

    You didn't provide info about DB relase and OS.
    But probably you are talking about AIX OS (I can't see any reason to use GPFS on Linux for RAC and I don't remember if this FS was/is supported for RAC on Linux (check Certification Matrix for this information)). Oracle is provides only one shared "filesystem" for AIX and it is ASM.
    Now it depends on DB version what options you can use.
    Till 11g R2 you have to store OCR and Voting disks outside of ASM (So you needed to use either RAW devices or Cluster Filesystem which GPFS is). Since 11g R2 you can store these disks in ASM directly.
    On Linux if you don't want to use ASM to store database files you can use OCFS2 clusterfile system.

  • Oracle EBS R12 implementation scenarios

    Dear All,
    We have below 3 different scenarios, please give your comments/suggestions; keep in mind client wants cheeper solution.
    HP DL580 G5 servers will be used with 64bit Redhat Linux 5.0 on all scenarios.
    Scenario 1:)
    Oracle EBS R-12 implementation with RAC & Load Balancer
    Required H/W - 8 Server (4 Production & 4 UAT / Development), Hardware Load balancer
    Software - RHEL 5.0 OS
    Licenses - Oracle RAC
    Advantages – High Availability solution, Redundancy
    Disadvantages – Specialized network administrator required for load balancer management, Complex System and costly
    Scenario 2:)
    Oracle EBS implementation with Active Passive mode / fail safe
    Required H/W - 8 Server, 4 Production (2 active & 2 passive) & 4 UAT / Development as replica of production environment
    Software - RHEL 5.0 OS & Cluster software on OS Level clustering
    Licenses – OS Cluster from Red Hat
    Advantages – OS Level clustering is cheaper compared to Oracle RAC
    Disadvantages – 2 Servers will used as Passive will not be optimally utilized they will only come into play when primary servers fail.
    Scenario 3:)
    Oracle EBS implementation Dual tier (DB & APPS)
    Option – I (Active + Active)
    Required H/W – 2 Servers for production and 2 UAT / Development as replica of production environment
    Software – RHEL 5.0 OS & Cluster software on OS Level clustering
    Licenses - OS Cluster from Red Hat
    Advantages – All the servers are optimally utilized
    Disadvantages -if one of the servers fails you might experience performance issues as both application and database services run on one node till server that failed is brought live.
    Option – II (Active / Stand BY)
    Required H/W - 2 Servers for production and 2 UAT / Development as replica of production environment, 2 server of UAT will be configured for stand by
    Software – Oracle data guard
    Licenses – oracle data guard
    Advantages – Simple configuration and easy to maintain when compared to RAC and OS clustering
    2) Will not experience performance problems when one of the primary fail .This is achieved by shutting down UAT or test instances till the issue on primary server is addressed
    Disadvantages - Sudden spike in load cannot be addressed since load balancing feature is not available.
    Best Regards,

    Scenario 1:) Oracle EBS R-12 implementation with RAC & Load Balancer
    When designing for "High Availability", this is quite a common infrastructure. It is pretty straightforward, though you are right, you need additional skills in managing RAC and Network. On the other hand, most larger companies have load balancers operational already. RAC may be expensive, however, if you want availability, it is what you will have to pay for, if you really cannot afford any downtime. Consider RAC when either of the following will be answered "No"
    1) Can your customer really not afford more (unplanned) downtime than 20 minutes.
    2) Is the maximum size of your hardware (single node database tier) sufficient to handle the amount of concurrent users in peak and will it be able to handle the expected growth for the next 12 months.
    If either of the above questions answers no, consider RAC. Otherwise, one of the two alternative scenarios will probably be better.
    Scenario 2:) Oracle EBS implementation with Active Passive mode / fail safe
    This scenario requires additional skills as well: OS Cluster Administration skills. The main advantage in this situation is that the architecture in which EBS has to operate is quite simple. No clustering (EBS will operate on one db node and one appnode). Issues you might encounter: If dbnode fails, what will your appnode do? Will it have to be restarted? What about downtime in such a case? How much can you afford (see scenario 1). You will end up with some 'dirty' data in your database (concurrent manager). It might be necessary to clean that out first.
    Another question to answer is how much do you trust your hardware/os. If it (almost) never failed on you for the past years, why would it be different in this situation. Having an active/passive cluster can be a costly architecture as well (half of your capacity being passive...)
    Scenario 3:) Oracle EBS implementation Dual tier (DB & APPS)
    Option – I (Active + Active)
    I suspect you mean to establish a cluster that runs database package on node 1 and application package on node 2, each of them having the other node as failover node. In this situation, you will definitely encounter a performance degradation, but this can be managed by oversizing each of the nodes and/or defining a threshold for performance degradation and keeping this in mind when sizing the hardware. You would still need the cluster managing skills, though.
    Option – II (Active / Stand BY)
    This option will deliver you more High Availability, because this is a truly disaster resilient solution. Dataguard will duplicate the database, taking away the Single Point Of Failure(SPOF), which the database is in all previous scenarios. You should keep in mind though that the UAT environment will be affected by the standby database activity (not very much, but nevertheless). You will need additional skills, like Dataguard administration skills. I could argue about your statement that it will be easy to maintain, compared to RAC. However, like I said in my comments about Scenario 2, the operational architecture for EBS is quite simple in this architecture as well. Consider the implications on the application tier when your database switches/fails over to the standby.
    Conclusion: There is no yes/no to each of the proposed scenarios. You will have to discuss with your customer to find out what the requirements are on a business level and translate them to an IT solution.
    The solution should meet the needs for which it is realized and the people should be able to manage/maintain the solution. Additionally, the investment should be in line with the solution the customer requires.
    Regards,
    Arnoud Roth
    Oracle E-Business Suite Technical Architect
    Inter Access
    The Netherlands

  • Oracle 9i RAC implementation!!!!!

    I am trying to implement oracle 9i RAC on top of Sun cluster 3.1.I have the done following
    1)Installed OS- 8 and patches
    2) Installed sun cluster 3.1(two node cluster)
    3)Installed vxvm on both nodes.
    According to RAC manual
    1)rootdg (disk group) need to be local
    2)share another disk group for oracle(where volumes would be created)
    Since I got only 2 hard disk as local and 1 holding the root filesystem,its obvious rootdg will have to be on disk2.If thats the case, can I create a volume in rootdg and install oracle binaries on it?

    You may find further informations here:
    <span style="text-decoration: none"><font color="#0000FF">www.oracle-rac.de</font></span></font></strong></span></p>
    <p><span class="bibliotext"><strong>
    <font size="2" face="Arial">

  • Recommendations - Oracle RAC 10g on Solaris 10 Containers Logical/Local..

    Dear Oracle Experts et all
    I have a couple of questions for Oracle 10g RAC implementation on Solaris and seek your advice. we are attempting to implement oracle 10g RAC on Solaris OS and SPARC Platform.
    1 We are wondering if Oracle 10g RAC could be implemented on Solaris Local/Logical Containers? I was assuming that Oracle will always link it self with OS binaries and Libraries while S/W installation and hence will need an OS image/Root Disk over which it could go. However, in containers, I assume we have a single solaris installation and configuration which will thus be shared to the containers which will be further configured in it. In such situations how does Oracle instalation proceed? Do I need to look at a scenario where, the global Container/Zone will have Oracle install and this image be shared across to zones/containers accordingly? If it is so, what all filesystems from OS will need to be shared across to these zones/containers?
    Additionally, even if this approach is supported, is it a recommended approach? I am unsure about the stability and functionality of Oracle in such cases and am not able to completly conceptualize. However, I assume there could be certain items which needs to be approprietly taken care off. It will help if you could share observations from your experiences.
    2 The idea of RAC we are looking at is to have multiple Oracle Installations on top of native clustering solution say veritas clusters/Sun Clusters. Do we still need to have Oracle Cluster solution Clusterware (ORACRS) on top of this to achieve Oracle Clustering? Will I be able to install Oracle as a standalone installation on top of native clustering solution say veritas clusters/Sun Clusters?
    Our requirement is to have the above mentioned multiple Oracle installations spread across two (2) seperate H/W platforms,say Node A and Node B, and configure our Cluster Solution to behave as active-passive across Node A and Node B. In other words, I will configure Clustering Solution like VRTS/SunCluster in Active-Passive, then have 3 Oracle installations on Node A, another 3 on Node B. I will configure one database each for each of these Oracle S/W installation (with an idea not to have Clusterware between clustering solution VRTS/SunCluster and Oracle installation, if it works). Now I will run 3 databases thus on each of these nodes. If any downtime happens on any one of the nodes, say Node A, I will fail all oracle databases and S/W accordingly to the alternate available node, Node B in this case, using native clustering solution and I will want the database to behave as it was behaving earlier, on Node A. I am not sure though if I will be able to bring the database up on Node B when resources in OS perspective are failed over.
    we want to use Oracle 10g RAC Release 2 EE on Solaris 10 OS latest/one before the latest release.
    Please share your thoughts.
    Regards!
    Sarat

    Sarat Chandra C wrote:
    Dear Oracle Experts et all
    I have a couple of questions for Oracle 10g RAC implementation on Solaris and seek your advice. we are attempting to implement oracle 10g RAC on Solaris OS and SPARC Platform.
    1 We are wondering if Oracle 10g RAC could be implemented on Solaris Local/Logical Containers? My understanding is that RAC in a Zone (Container) is not supported by Oracle, and will not work anyway. Regardless of installation, RAC needs to do cluster level stuff about the cluster configuration, changing network addresses dynamically, and sending guaranteed messages over the cluster interconnect. None of this stuff can be done in a Local Zone in Solaris, because Local Zones have fewer permissions that the Global Zone. This is part of the design of Solaris Zones, and nothing to do with how Oracle RAC itself works on them.
    This is all down to the security model of Zones, and Local Zones lack the ability to do certain things, to stop them reconfiguring themselves and impacting other Zones. Hence RAC cannot do dynamic cluster reconfiguration in a Local Zone, such as changing virtual network addresses when a node fails.
    My understanding is that RAC just cannot work in a Local Zone. This was certainly true 5 years ago (mid 2005), and was a result of the inherent design and implementation of Zones in Solaris. Things may have changed, so check the Solaris documentation, and check if Oracle RAC is supported in Local Zones. However, as I said, this limitation was inherent in the design of Zones, so I do not see how Sun could possibly have changed it so that RAC would work in a Local Zone.
    To me, your only option is the Global Zone. Which pretty much destroys the argument for having Zones on a Solaris system, unless you can host other non-Oracle application on the other Zones.
    2 The idea of RAC we are looking at is to have multiple Oracle Installations on top of native clustering solution say veritas clusters/Sun Clusters. Do we still need to have Oracle Cluster solution Clusterware (ORACRS) on top of this to achieve Oracle Clustering? Will I be able to install Oracle as a standalone installation on top of native clustering solution say veritas clusters/Sun Clusters?I am not sure the term 'native' is correct. All 'Cluster' software is low level, and has components that run within the operating system. Whether this is Sun Cluster, Veritas Cluster Server, or Oracle Clusterware. They are all as 'native' to Solaris as each other. They all perform the same function for Oracle RAC around Cluster management - which nodes are members of the cluster, heartbeats between nodes, reliable fast message delivery, etc.
    You only need one piece of Cluster software. So pick one and use it. If you use the Sun or Veritas cluster products, then you do not need the Oracle Clusterware software. But I would use it, because it is free (included with RAC), is from Oracle themselves and so guaranteed to work, is fully supported, and is one less third party product to deal with. Having an all Oracle software stack makes things simpler and more reliable, as far as I am concerned. You can be sure that Oracle will have fully tested RAC on their own Clusterware, and be able to replicate any issues in their own support environments.
    Officially the Sun and Veritas products will work and are supported. But when you get a problem with your Cluster environment, who are you going to call? You really want to avoid "finger pointing" when you have a problem, with each vendor blaming the cause of the problem on another vendor. Using an all Oracle stack is simpler, and ensures Oracle will "own" all your support problems.
    Also future upgrades between versions will be simpler, as Oracle will release all their software together, and have tested it together. When using third party Cluster software, you have to wait for all vendors to release new versions of their own software, and then wait again while it is tested against all the different third party software that runs on it. I have heard of customers stuck on old versions of certain cluster products, who cannot upgrade because there are no compatible combinations in the support matrices between the cluster product and Oracle database versions.
    I will configure Clustering Solution like VRTS/SunCluster in Active-Passive, then have 3 Oracle installations on Node A, another 3 on Node B. As I said before, these 3 Oracle installations will actually all be on the same Global Zone, because RAC will not go into Local Zones.
    John

  • Oracle Rac as part of OSDB Migration

    Hello Gurus,
      We are going ahead with OSDB Migration from HP-UX to Linux. Here as HA solution, we plan to implement Oracle RAC on the target systems. Where as the current environment is non RAC.
    As part of OSDB migration we are not confident in doing it on Oracle RAC.  Documentation for Oracle RAC on SAP explains first go for single instance installation on oracle cluster filesystem and implement RAC as a high availability solution with SAP Enqueue Replication service. Then do the backup and restore process from non RAC system to RAC.
    But in our scenario we should go for EXPORT/ IMPORT process.
    Please guide us in going ahead with the right approach.
    Surendra

    >  As part of OSDB migration we are not confident in doing it on Oracle RAC.  Documentation for Oracle RAC on SAP explains first go for single instance installation on oracle cluster filesystem and implement RAC as a high availability solution with SAP Enqueue Replication service. Then do the backup and restore process from non RAC system to RAC.
    >
    >  But in our scenario we should go for EXPORT/ IMPORT process.
    This is not an antagonism, you can do a single instance installation by doing the import. Basically an "import" is a new installation with the export you've done before.
    Markus

  • JDBC connection creation with ORACLE RAC

    Hello All,
    Here my scenario is when ever one of my VIP instance in Oracle RAC goes down.Weblogic/Java(JDBC) is taking close to 3 minutes for failover with secondary host. I am looking for a solution to reduce the connect time failover seconds..
    jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=HOST1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=HOST2)(PORT=1521))(FAILOVER=on)(LOAD_BALANCE=off))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=SERVICE)))

    Hi,
    In such case failover will depend on RAC instead on Weblogic.
    Oracle will never recommend such way.
    Please try to use Mutli datasource to implement such failover and in older version we have 60 seconds for failover time.
    But we can change but adding one Bug (currently not remember).
    Regards,
    Kal

  • How to configure Oracle RAC for Wiki and Blog

    Has anyone done Oracle RAC configuration for Oracle Wiki and Blogs?
    Thanks,
    Frank

    Hi Andreas,
    Thanks you for your help. I am trying to implement third party external LDAP authentication for APEX and Forms.
    So I started with OID and SSO setup to create external Partner Applications. Some reason my oid and sso web login links are not working. I didn't find any errors. I need some help in finding the problem and direction, I already read docs on web but no proper direction. I appreciate your help.
    Thanks

  • Error in ONS logs while implmenting FCF on oracle RAC from java program

    I have java prog on client machine that uses properties from a property file.While making the connection to the ONS port on the oracle RAC server to implement FCF the program is throwing error as below:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    and when i checked the ons logs for that node the logs are as follows:
    Connection 5,199.xxx.xxxxxx,8200 header RCV failed (Connect
    ion reset by peer) coFlags=1002a
    These logs are generated only when java program tries to connect else the daemon started without any errors.
    But sometime it connets and gives the desired output.
    Please advice and do let me know in case you need more information.
    Java program on the client machine is as follows..
    * Oracle Support Services
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.Enumeration;
    import java.util.Properties;
    import java.util.ResourceBundle;
    import oracle.jdbc.pool.OracleConnectionCacheManager;
    import oracle.jdbc.pool.OracleDataSource;
    public class FCFConnectionCacheExample
    private OracleDataSource ods = null;
    private OracleConnectionCacheManager occm = null;
    private Properties cacheProperties = null;
    public FCFConnectionCacheExample() throws SQLException
    // create a cache manager
    occm = OracleConnectionCacheManager.getConnectionCacheManagerInstance();
    Properties props = loadProperties("fcfcache");
    cacheProperties = new java.util.Properties();
    cacheProperties.setProperty("InitialLimit", (String)props.get("InitialLimit"));
    cacheProperties.setProperty("MinLimit", (String)props.get("MinLimit"));
    cacheProperties.setProperty("MaxLimit", (String)props.get("MaxLimit"));
    ods = new OracleDataSource();
    ods.setUser((String)props.get("username"));
    ods.setPassword((String)props.get("password"));
    ods.setConnectionCachingEnabled(true);
    ods.setFastConnectionFailoverEnabled(true);
    ods.setConnectionCacheName("MyCache");
    ods.setONSConfiguration((String)props.get("onsconfig"));
    ods.setURL((String)props.get("url"));
    occm.createCache("MyCache", ods, cacheProperties);
    private Properties loadProperties (String file)
    Properties prop = new Properties();
    ResourceBundle bundle = ResourceBundle.getBundle(file);
    Enumeration enumlist = bundle.getKeys();
    String key = null;
    while (enumlist.hasMoreElements())
    key = (String) enumlist.nextElement();
    prop.put(key, bundle.getObject(key));
    return prop;
    public void run() throws Exception
    Connection conn = null;
    Statement stmt = null;
    ResultSet rset = null;
    String sQuery =
    "select sys_context('userenv', 'instance_name'), " +
    "sys_context('userenv', 'server_host'), " +
    "sys_context('userenv', 'service_name') " +
    "from dual";
    try
    conn = null;
    conn = ods.getConnection();
    stmt = conn.createStatement();
    rset = stmt.executeQuery(sQuery);
    rset.next();
    System.out.println("-----------");
    System.out.println("Instance -> " + rset.getString(1));
    System.out.println("Host -> " + rset.getString(2));
    System.out.println("Service -> " + rset.getString(3));
    System.out.println("NumberOfAvailableConnections: " +
    occm.getNumberOfAvailableConnections("MyCache"));
    System.out.println("NumberOfActiveConnections: " +
    occm.getNumberOfActiveConnections("MyCache"));
    System.out.println("-----------");
    catch (SQLException sqle)
    while (sqle != null)
    System.out.println("SQL State: " + sqle.getSQLState());
    System.out.println("Vendor Specific code: " +
    sqle.getErrorCode());
    Throwable te = sqle.getCause();
    while (te != null) {
    System.out.print("Throwable: " + te);
    te = te.getCause();
    sqle.printStackTrace();
    sqle = sqle.getNextException();
    finally
    try
    rset.close();
    stmt.close();
    conn.close();
    catch (SQLException sqle2)
    System.out.println("Error during close");
    public static void main(String[] args)
    System.out.println(">> PROGRAM using JDBC thin driver no oracle client required");
    System.out.println(">> ojdbc14.jar and ons.jar must be in the CLASSPATH");
    System.out.println(">> Press CNTRL C to exit running program\n");
    try
    FCFConnectionCacheExample test = new FCFConnectionCacheExample();
    while (true)
    test.run();
    Thread.currentThread().sleep(10000);
    catch (InterruptedException e)
    System.out.println("PROGRAM Ended by user");
    catch (Exception ex)
    System.out.println("Error Occurred in MAIN");
    ex.printStackTrace();
    Some of the info i have deleted intensionally as this is confidential
    Property file is as follows
    # properties required for test
    username=test
    password=test
    InitialLimit=10
    MinLimit=10
    MaxLimit=20
    onsconfig=nodes=RAC-node1:port,RAC-node2:port
    url=jdbc:oracle:thin:@(DESCRIPTION= \
    (LOAD_BALANCE=yes) \
    (ADDRESS=(PROTOCOL=TCP)(HOST=RAC-node1)(PORT=1521)) \
    (ADDRESS=(PROTOCOL=TCP)(HOST=RAC-node1)(PORT=1521)) \
    (CONNECT_DATA=(service_name=RAC_SERVICE)))

    Hi;
    Please check below note:
    Link Errors While Installing CRS & RAC Database software [ID 438747.1]
    Codeword File $TIMEBOMB_CWD,/opt/aCC/newconfig/aCC.cwd Missing Or Empty [ID 552893.1]
    Regard
    Helios

Maybe you are looking for

  • Apple TV starts, and then TV loses HDMI signal

    I moved my ATV 2 from a newer 1080 HDTV to an older 720 tv, and now the ATV starts and displays apple logo and after 30-45 secs I get a message on the tv that the hdmi signal is not detected. I suspect that the ATV is sending a 1080 signal that the t

  • Calling a VI in a subpanel with parameters inside an event structure and using an abort button

    Hi all, I have a control panel with a tab control and two tabs have a sub panel in them.  At runtime I load the VIs I want in to the sub panels.  In the control panel event structure I want to start each of the VIs and monitor the execution state so

  • XK02: How to change vendor

    Hi Experts, Can we change the vendor in vendor master, if we can how to change it...? Regards, Krsnveni Moderator: Please, avoid asking basic questions

  • Adding a print screen to a textarea

    Hello, I'm using APEX 3.2 on 11g and have built a applicaiton for users to request IT support. It has a file browse item on the request form. The user can upload the attachment and it saves to the database. We have a process that sends an email to th

  • DBMS_XMLSave AND trigger

    Why isn't possible to use DBMS_XMLSave into an INSTEAD OF TRIGGER context ! XSU want to set a savepoint and this is not allowed into a trigger.....