Oracle RAC Interview Questions - Comprehensive
Oracle RAC Interview Questions - Comprehensive
aspx
What is RAC?
RAC stands for Real Application cluster. It is a clustering solution from Oracle Corporation that ensures high availability
of databases by providing instance failover, media failover features.
RAC stands for Real Application Cluster, you have n number of instances running in their own separate nodes and based
on the shared storage. Cluster is the key component and is a collection of servers operations as one unit. RAC is the
best solution for high performance and high availably. Non RAC databases has single point of failure in case of hardware
failure or server crash.
What is GRD?
GRD stands for Global Resource Directory. The GES and GCS maintains records of the statuses of each datafile and each
cahed block using global resource directory.This process is referred to as cache fusion and helps in data integrity.
ACMS stands for Atomic Controlfile Memory Service.In an Oracle RAC environment ACMS is an agent that ensures a
distributed SGA memory update(ie)SGA updates are globally committed on success or globally aborted in event of a
failure.
1 of 7 10/9/2012 7:55 PM
Oracle RAC Interview Questions - Comprehensive http://www.franklinfaces.com/Topic22-79-1.aspx
failure.
Cache fusion is the mechanism to transfer the data block from memory to memory of one node to the other.If two
nodes require the same block for query or update, the block must be transfered from the cache of one node to the
other. RAC system must equipped with low-latency and high speed inter-connect to make it happen.
Cache Fusion is essentially a memory-to-memory transfer of data between the nodes in the RAC environment. Before
Cache Fusion, a node was required to write some of the data to disk before it could be transferred to the next node in
the cluster. Cache Fusion does a straight memory-to-memory transfer. In addition, each node's SGA has a map of what
data is contained in the other node's data caches.
The performance improvement is phenomenal. Oracle leverages the vendor's high speed interconnects between the
nodes to achieve the cache-to-cache data transfers. Before Cache Fusion, when you added a node to the cluster to
increase performance of the application, it didn't always provide you with the performance improvement that you hoped
for. With Cache Fusion, you can easily cost justify the addition of another node into a RAC cluster to increase the
performance of the application running on it. Oracle sales pitches describe it as 'near linear horizontal scalability'.
In a RAC environment the buffer cache is global across all instances in the cluster and hence the processing differs.The
most common wait events related to this are gc cr request and gc buffer busy
GC CR request :the time it takes to retrieve the data from the remote cache
Reason: RAC Traffic Using Slow Connection or Inefficient queries (poorly tuned queries will increase the amount of data
blocks requested by an Oracle session. The more blocks requested typically means the more often a block will need to
be read from a remote instance via the interconnect.)
GC BUFFER BUSY: It is the time the remote instance locally spends accessing the requested data block.
2 of 7 10/9/2012 7:55 PM
Oracle RAC Interview Questions - Comprehensive http://www.franklinfaces.com/Topic22-79-1.aspx
What is the significance of using cluster-aware shared storage in an Oracle RAC environment?
All instances of an Oracle RAC can access all the datafiles,control files, SPFILE's, redolog files when these files are
hosted out of cluster-aware shared storage which are group of shared disks.
3 of 7 10/9/2012 7:55 PM
Oracle RAC Interview Questions - Comprehensive http://www.franklinfaces.com/Topic22-79-1.aspx
What are the administrative tools used for Oracle RAC environments?
Oracle RAC cluster can be administered as a single image using OEM(Enterprise
Manager),SQL*PLUS,Servercontrol(SRVCTL),clusterverificationutility(cvu),DBCA,NETCA
What is FAN?
Fast application Notification as it abbreviates to FAN relates to the events related to instances,services and nodes.This
is a notification mechanism that Oracle RAc uses to notify other processes about the configuration and service level
information that includes service status changes such as,UP or DOWN events.Applications can respond to FAN events
and take immediate action.
4 of 7 10/9/2012 7:55 PM
Oracle RAC Interview Questions - Comprehensive http://www.franklinfaces.com/Topic22-79-1.aspx
State the initialization parameters that must have same value for every instance in an Oracle RAC
database:
Some initialization parameters are critical at the database creation time and must have same values.Their value must
be specified in SPFILE or PFILE for every instance.The list of parameters that must be identical on every instance are
given below:
ACTIVE_INSTANCE_COUNT
ARCHIVE_LAG_TARGET
COMPATIBLE
CLUSTER_DATABASE
CLUSTER_DATABASE_INSTANCE
CONTROL_FILES
DB_BLOCK_SIZE
DB_DOMAIN
DB_FILES
DB_NAME
DB_RECOVERY_FILE_DEST
DB_RECOVERY_FILE_DEST_SIZE
DB_UNIQUE_NAME
INSTANCE_TYPE (RDBMS or ASM)
PARALLEL_MAX_SERVERS
REMOTE_LOGIN_passWORD_FILE
UNDO_MANAGEMENT
What is ORA-00603: ORACLE server session terminated by fatal error or ORA-29702: error occurred in
Cluster Group Service operation?
RAC node name was listed in the loopback address...
What are the modes of deleting instances from ORacle Real Application cluster Databases?
We can delete instances using silent mode or interactive mode using DBCA(Database Configuration Assistant).
5 of 7 10/9/2012 7:55 PM
Oracle RAC Interview Questions - Comprehensive http://www.franklinfaces.com/Topic22-79-1.aspx
We can delete instances using silent mode or interactive mode using DBCA(Database Configuration Assistant).
How do we verify that an instance has been removed from OCR after deleting an instance?
Issue the following srvctl command:
srvctl config database -d database_name
cd CRS_HOME/bin
./crs_stat
What is the difference between server-side and client-side connection load balancing?
Client-side balancing happens at client side where load balancing is done using listener.In case of server-side load
balancing listener uses a load-balancing advisory to redirect connections to the instance providing best service.
In a RAC environment, if a node in the cluster fails, the application continues to run on the surviving nodes contained in
the cluster. If your application is configured correctly, most users won't even know that the node they were running on
became unavailable.
GC CR request: the time it takes to retrieve the data from the remote cache
Reason: RAC Traffic Using Slow Connection or Inefficient queries (poorly tuned queries will increase the amount of data
blocks
requested by an Oracle session. The more blocks requested typically means the more often a block will need to be read
from a remote instance via the interconnect.)
GC BUFFER BUSY: It is the time the remote instance locally spends accessing the requested data block.
6 of 7 10/9/2012 7:55 PM
Oracle RAC Interview Questions - Comprehensive http://www.franklinfaces.com/Topic22-79-1.aspx
Admin
Question:
Does anyone have any experience with adjusting or setting the MTU Size for the RAC interconnect. I have
found a DOC on oracle.com which references changing it to 9000 for a database with 8K block sizes. (Jumbo
Frames??)
Response:
My team has changed the MTU setting for the interconnect. Basically it reduces packets being sent over the
interconnect at the network transport layer.
By default the MTU size basically splits up the data packet at the network card layer into multiple (usually two)
packets so when an oracle block is requested by another node in the RAC cluster two network packets are
transmitted across the interconnect. This causes a delay as the sending node splits the oracle block at the
network layer into two packets, sends them over the interconnect and then reconstructs the oracle block at the
receiving end to allow Oracle to read it into memory.
By increasing the MTU setting to use “Jumbo Frames” basically you are increasing the packet size at the
network layer – by setting the MTU to 9000 this allows an 8K oracle block to fit exactly into a packet so there
is only one packet sent across the interconnect i.e. one oracle block. This can significantly reduce network
traffic via the interconnect and as both nodes (source & destination) don’t need to break up and reconstruct the
block it. As you can imagine this has performance benefits at this level.
7 of 7 10/9/2012 7:55 PM