Setting up an Oracle 11G R2 Real Application Cluster (RAC) using Single Client Access Name (scan IP)

<<Setup of Grid Infrastructure

Testing and Troubleshooting

Test whether the Real Application Cluster has been properly setup by using the following applications /u01/app/11.2.0/grid/bin .

srvctl config scan

srvctl config scan_listener

srvctl config database -d instance_ismi

srvctl status database -d instance_ismi

crsctl check crs

crsctl stat res -t

crsctl stat res -t init

crs_stat -t

srvctl status asm

srvctl config asm -n node_name

crsctl status serverpool

crsctl status resource

crsctl check cluster -all

crsctl query css votedisk

cluvfy comp clocksync -n all -verbose

cluvfy comp clocksync

 

Logs

tail -1000f /u01/11.2.0/grid/log/$HOSTNAME/ohasd/ohasd.log

tail -1000f /u01/11.2.0/grid/log/$HOSTNAME/alert$HOSTNAME.log

tail -1000f /u01/11.2.0/grid/log/$HOSTNAME/agent/ohasd/oraagent_grid/oraagent_grid.log

tail -1000f /u01/11.2.0/grid/log/$HOSTNAME/crsd/crsd.log

tail -1000f /u01/11.2.0/grid/log/$HOSTNAME/agent/ohasd/orarootagent_root/orarootagent_root.log

tail -1000f /u01/11.2.0/grid/log/$HOSTNAME/cssd/ocssd.log

tail -2000f /u01/11.2.0/grid/log/$HOSTNAME/gpnpd/gpnpd.log

Connecting

Operating system: Win7 x64

Oracle client: 11.2.0.1.0

 

tnsnames.ora

The error output

Solution 1.

The hosts file in C:WindowsSystem32driversetc.

In the tcp/ip section of the public ethernet card properties:

advanced ->DNS-> Append these DNS suffixes

 

Enter the domain name, in this example its sysdba.org

Solution 2.

 

Upgrading to 11.2.0.2 by installing a patch.

Source: ORA-12545 or ORA-12537 While Connecting to RAC through SCAN name [ID 970619.1]

 

*******************************************************

RAM Settings

alter system set memory_target=20G scope=spfile sid=’*’;

alter system set sga_max_size=0 scope=spfile sid=’*’;

alter system set sga_target=0 scope=spfile sid=’*’;

alter system set pga_aggregate_target=0 scope=spfile sid=’*’;

*******************************************************

The voting disks are in the OCR_VOTE asm disk group, these will be moved to the OCR_VOT disk group.

 

## STATE File Universal Id File Name Disk group

— —– —————– ——— ———

1. ONLINE 116eee3911a94fd4bfdc32072f5178c5 (/dev/ASM/OCR_VOTE01) [OCR_VOTE]

2. ONLINE 2e7b89d8e3bf4ffcbf079de552f7e828 (/dev/ASM/OCR_VOTE02) [OCR_VOTE]

3. ONLINE 8e0516586f604f04bf73f2ee9be47925 (/dev/ASM/OCR_VOTE03) [OCR_VOTE]

Located 3 voting disk(s).

 

 

There wasn’t any useful information in the grid alert logs, however reviewing the asm log:

The error message in the trc file:

Checking the OCR_VOT version:

Its still on version 10.1.0.0.0, so needs to be updated so that its the same version as the other disk groups.

 

As a grid user:

ALTER DISKGROUP OCR_VOT SET ATTRIBUTE ‘compatible.asm’ = ‘11.2’;

 

 

To check

 

Testing again

Checking

********************************

<tab=Services>

srvctl add service

-d my_db_name

-s my_service_name

-r my_active_instance

-a my_passive_instance

-P BASIC

-e SELECT

-y AUTOMATIC

-z 180

-w 5

 

Adding the service as Oracle_home’s owner or “oracle”

node_2 is used as a backup in case node_1 has problems (instance name: fugu, node_1=fugu1, node_2=fugu2)

 

rvctl start service -d fugu -s fugu_service

 

 

To retrieve information

srvctl config service -d fugu -s fugu_service

 

 

Updating the client’s tnsnames.ora

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = raca-scan.sysdba.org)(PORT = 1521))

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = fugu_service)

)

)

 

 

 

 

Viewing the fugu service in the listener

************************

ora.dba02.vip FAILED OVER

 

 

Useful resources for further reference:

1-OS Watcher Black Box User Guide (Doc ID 301137.1)

2-RAC and Oracle Clusterware Best Practices and Starter Kit (Platform Independent) (Doc ID 810394.1)

3-RACcheck – RAC Configuration Audit Tool [ID 1268927.1]

4-Top 11 Things to do NOW to Stabilize your RAC Cluster Environment [ID 1344678.1] To BottomTo Bottom

5-RAC and Oracle Clusterware Best Practices and Starter Kit (Solaris) (Doc ID 811280.1)

6-Grid Infrastructure Redundant Interconnect and ora.cluster_interconnect.haip (Doc ID 1210883.1)

7-The Basics of IPv4 Subnet and Oracle Clusterware (Doc ID 1386709.1)

8-Frequently Node Reboots, There Is Nothing In The Logs (Doc ID 437420.1)

9-CRS Diagnostic Data Gathering: A Summary of Common tools and their Usage (Doc ID 783456.1)

 

<<Setup of Grid Infrastructure

Kategori seçin...