Showing posts with label Oracle RAC. Show all posts
Showing posts with label Oracle RAC. Show all posts

Thursday, August 1, 2013

TAF for Oracle RAC

During the PoC of the IBM SVC Stretched Cluster for Oracle RAC, some of the tests were to simulate Oracle RAC node failure or entire site failure.

We had configured Oracle SCAN IP on the cluster, this meant that the clients would be evenly balanced between the two nodes of the Oracle RAC cluster.

We also configured Oracle TAF(Transparent Application Failover).
FAILOVER CONCEPTS from
http://www.oracle.com/technetwork/database/features/oci/taf-10-133239.pdf
Failover allows a database to recover on another system within a cluster. Figure illustrates a typical database cluster configuration. Although the example shows a two-system cluster, larger clusters can be constructed. In a cold failover configuration, only one active instance can mount the database at a time. With Oracle Real Application Clusters, multiple instances can mount the database, speeding recovery from failures.

The failure of one instance will be detected by the surviving instances, which will assume the workload of the failed instance. Clients connected to the failed instance will migrate to a surviving instance. The mechanics of this migration will depend upon the cluster configuration. Transparent Application Failover feature will automatically reconnect client sessions to the database and minimize disruption to end-user applications.

Here is the tnsnames.ora file with TAF configured that we used for the PoC

On the client machine

-sh-4.1$ pwd
/home/oracle
-sh-4.1$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/ora11/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

svccon =
  (description=
    (address=(protocol=tcp)(host=192.168.45.244)(port=1521))
    (address=(protocol=tcp)(host=192.168.45.245)(port=1521))
    (load_balance=yes)
    (connect_data =
        (server = dedicated)
        (service_name=svcdb)
        (failover_mode =
        (type=select)
        (method=basic)
           (retries=180)
           (delay=5)
     )
     )
     )

Thursday, April 11, 2013

Slow connection between the Oracle RAC nodes

While setting up our Oracle RAC hardware running AIX 7.1 we noticed that a simple 'rsh' between the nodes would take really long. In this case we were trying to see if we could rsh from one node to the other node using the private interconnect which were using 10 GigE NICs.

As you see here that something like "rsh 192.168.150.22 'date'" took an awful long time.

bash-4.2# time rsh 192.168.150.22 'date'
Thu Apr 11 18:30:41 CDT 2013

real    1m11.372s
user    0m0.002s
sys     0m0.002s

bash-4.2#

This thing was that we did not have a 'hosts' entry in the /etc/netsvc.conf file. The /etc/netsvc.conf file is used to specify the ordering of name resolution. The order we specify in the /etc/netsvc.conf will override the default ordering, and use the order specified by us for the 'hosts' keyword.

After we added the following line to the /etc/netsvc.conf, everything worked as expected.
hosts=local,bind

Here is the rsh after adding the hosts field to the /etc/netsvc.conf

bash-4.2# time rsh 192.168.150.22 'date'
Thu Apr 11 18:31:58 CDT 2013

real    0m0.107s
user    0m0.002s
sys     0m0.002s
bash-4.2#

Saturday, September 8, 2012

Open Secure Shell(SSH) and Open Secure Socket Layer(SSL) on AIX 7.1

I installed Open Secure Shell(SSH) and Open Secure Socket Layer(SSL) on my AIX 7.1 host, but when I did a sshd -V I got the below error message.

isvp14_ora> /usr/sbin/sshd -V
OpenSSL version mismatch. Built against 908070, you have 90812f

Here we see the list of SSH and SSL software that is currently installed on the AIX host.

isvp14_ora> lslpp -l | grep ssh
  openssh.base.server     4.7.0.5301  COMMITTED  Open Secure Shell Server
isvp14_ora> lslpp -l | grep openssh
  openssh.base.server     4.7.0.5301  COMMITTED  Open Secure Shell Server
isvp14_ora> lslpp -l | grep ssl
  openssl.base            0.9.8.1802  COMMITTED  Open Secure Socket Layer
  openssl.license         0.9.8.1802  COMMITTED  Open Secure Socket License
  openssl.man.en_US       0.9.8.1802  COMMITTED  Open Secure Socket Layer
  openssl.base            0.9.8.1802  COMMITTED  Open Secure Socket Layer
isvp14_ora>

I deleted the SSH solftware and started afresh with the compatible versions, by installing
from OpenSSH_5.8.0.6102.tar I got the from
http://www-03.ibm.com/systems/power/software/aix/expansionpack/index.html

On untarring OpenSSH_5.8.0.6102.tar I saw the following files in the directory.

isvp14_ora> ls
.toc                    openssh.msg.Ja_JP       openssh.msg.es_ES
OpenSSH_5.8.0.6102.tar  openssh.msg.KO_KR       openssh.msg.fr_FR
openssh.base            openssh.msg.PL_PL       openssh.msg.hu_HU
openssh.license         openssh.msg.PT_BR       openssh.msg.it_IT
openssh.man.en_US       openssh.msg.RU_RU       openssh.msg.ja_JP
openssh.msg.CA_ES       openssh.msg.SK_SK       openssh.msg.ko_KR
openssh.msg.CS_CZ       openssh.msg.ZH_CN       openssh.msg.pl_PL
openssh.msg.DE_DE       openssh.msg.ZH_TW       openssh.msg.pt_BR
openssh.msg.EN_US       openssh.msg.Zh_CN       openssh.msg.ru_RU
openssh.msg.ES_ES       openssh.msg.Zh_TW       openssh.msg.sk_SK
openssh.msg.FR_FR       openssh.msg.ca_ES       openssh.msg.zh_CN
openssh.msg.HU_HU       openssh.msg.cs_CZ       openssh.msg.zh_TW
openssh.msg.IT_IT       openssh.msg.de_DE       openssl-0.9.8.1802
openssh.msg.JA_JP       openssh.msg.en_US       openssl-0.9.8.1802.tar

I then installed the openssh.base using smitty, here is the new version of ssh on the AIX machine.
NOTE: Remember to accept the license agreement while installing using smitty.

isvp14_ora> lslpp -l | grep ssh
  openssh.base.client     5.8.0.6102  COMMITTED  Open Secure Shell Commands
  openssh.base.server     5.8.0.6102  COMMITTED  Open Secure Shell Server
  openssh.license         5.8.0.6102  COMMITTED  Open Secure Shell License
  openssh.man.en_US       5.8.0.6102  COMMITTED  Open Secure Shell
  openssh.msg.en_US       5.8.0.6102  COMMITTED  Open Secure Shell Messages -
  openssh.base.client     5.8.0.6102  COMMITTED  Open Secure Shell Commands
  openssh.base.server     5.8.0.6102  COMMITTED  Open Secure Shell Server
isvp14_ora>

isvp14_ora> /usr/sbin/sshd -V
sshd: illegal option -- V
OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011
usage: sshd [-46Ddeiqt] [-b bits] [-f config_file] [-g login_grace_time]
                           [-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len]
isvp14_ora>  


To configure passwordless ssh on Oracle RAC nodes here is link to the Oracle docs that talk about it.
http://docs.oracle.com/cd/E11882_01/install.112/e24614/manpreins.htm