Top RAC Interview Questions
Top RAC Interview Questions
Getting ready for a RAC interview? Make sure to refresh your knowledge by
reviewing this list of RAC Interview Questions.
When database nodes in a cluster are unable to communicate with each other,
they may continue to process and modify the data blocks independently. If the
It is a private network which is used to ship data blocks from one instance to
another for cache fusion. The physical data blocks as well as data dictionary
blocks are shared across this interconnect.
How do you determine what protocol is being used for Interconnect traffic?
One of the ways is to look at the database alert log for the time period when the
database was started up.
What methods are available to keep the time synchronized on all nodes in
the cluster?
The ocrconfig -showbackup can be run to find out the automatic and manually
run backups.
You can use either the logical or the physical OCR backup copy to restore the
Repository.
How do you find out what object has its blocks being shipped across the
instance the most?
The Cluster Health Monitor (CHM) stores operating system metrics in the CHM
repository for all nodes in a RAC cluster. It stores information on CPU,
memory, process, network and other OS data, This information can later be
retrieved and used to troubleshoot and identify any cluster related issues. It is a
default component of the 11gr2 grid install. The data is stored in the master
repository and replicated to a standby repository on a different node.
What would be the possible performance impact in a cluster if a less
powerful node (e.g. slower CPUs) is added to the cluster?
All processing will show down to the CPU speed of the slowest server.
Oracle Local repository contains information that allows the cluster processes to
be started up with the OCR being in the ASM storage ssytem. Since the ASM
file system is unavailable until the Grid processes are started up a local copy of
the contents of the OCR is required which is stored in the OLR.
In 10g the default SGA size is 1G in 11g it is set to 256M and in 12c ASM it is
set back to 1G.
You can use md_backup to restore the ASM diskgroup configuration in-case of
ASM diskgroup storage loss.
Datafiles
Redo logfiles
Spfiles
In 12c the files below can also new be stored in the ASM Diskgroup
Password file
This is the parameter which controls the number of Allocation units the ASM
instance will try to rebalance at any given time. In ASM versions less than
11.2.0.3 the default value is 11 however it has been changed to unlimited in
later versions.
CLUSTER_DATABASE
CLUSTER_DATABASE_INSTANCE
INSTANCE_TYPE (RDBMS or ASM)
ACTIVE_INSTANCE_COUNT
UNDO_MANAGEMENT
The Grid software is becoming more and more capable of not just supporting
HA for Oracle Databases but also other applications including Oracles
applications. With 12c there are more features and functionality built-in and it is
easier to deploy these pre-built solutions, available for common Oracle
applications.
Is there an easy way to verify the inventory for all remote nodes
You can run the opatch lsinventory -all_nodes command from a single node to
look at the inventory details for all nodes in the cluster.
selected disks in storage area from node r greater than 50% of disks in storage
area.(if we have 2 disks in storage area, u select one==>50%of disks(1) this is
equal to 50% not greater than 50% so,we mAINTAIN ODD NO. OF DISKS IN
STORAGE AREA(STANDARD STORAGE)
Oracle RAC Interview Questions & Answers
21. Are there any issues for the interconnect when sharing the same switch
as the public network by using VLAN to separate the network?
RAC and Clusterware deployment best practices suggests that the interconnect
(private connection) be deployed on a stand-alone, physically separate,
dedicated switch. On big network the connections could be instable.
22. What is the Load Balancing Advisory?
To assist in the balancing of application workload across designated resources,
Oracle Database 10g Release 2 provides the Load Balancing Advisory. This
Advisory monitors the current workload activity across the cluster and for each
instance where a service is active; it provides a percentage value of how much
of the total workload should be sent to this instance as well as service quality
flag.
23. How many nodes are supported in a RAC Database?
With 10g Release 2, we support 100 nodes in a cluster using Oracle
Clusterware, and 100 instances in a RAC database. Currently DBCA has a bug
where it will not go beyond 63 instances. There is also a documentation bug for
the max-instances parameter. With 10g Release 1 the Maximum is 63.
24. What is the Cluster Verification Utiltiy (cluvfy)?
The Cluster Verification Utility (CVU) is a validation tool that you can use to
check all the important components that need to be verified at different stages of
deployment in a RAC environment.
25. What versions of the database can I use the cluster verification utility
(cluvfy) with?
The cluster verification utility is release with Oracle Database 10g Release 2 but
can also be used with Oracle Database 10g Release 1.
26. If I am using Vendor Clusterware such as Veritas, IBM, Sun or HP, do
I still need Oracle Clusterware to run Oracle RAC 10g?
Yes. When certified, you can use Vendor Clusterware however you must still
install and use Oracle Clusterware for RAC. Best Practice is to leave Oracle
Clusterware to manage RAC. For details see Metalink Note 332257.1 and for
Veritas SFRAC see 397460.1.
27. Is RAC on VMWare supported?
Yes.
28. What is hangcheck timer used for ?
The hangcheck timer checks regularly the health of the system. If the system
hangs or stop the node will be restarted automatically.
There are 2 key parameters for this module:
-> hangcheck-tick: this parameter defines the period of time between checks of
system health. The default value is 60 seconds; Oracle recommends setting it to
30seconds.
-> hangcheck-margin: this defines the maximum hang delay that should be
tolerated before hangcheck-timer resets the RAC node.
29. Is the hangcheck timer still needed with Oracle RAC 10g?
Yes.
30. What files can I put on Linux OCFS2?
For optimal performance, you should only put the following files on Linux
OCFS2:
- Datafiles
- Control Files
- Redo Logs
- Archive Logs
- Shared Configuration File (OCR)
- Voting File
- SPFILE
31. Is it possible to use ASM for the OCR and voting disk?
No, the OCR and voting disk must be on raw or CFS (cluster file system).
32. Can I change the name of my cluster after I have created it when I am
using Oracle Clusterware?
No, you must properly uninstall Oracle Clusterware and then re-install.
33. What the O2CB is?
The O2CB is the OCFS2 cluster stack. OCFS2 includes some services. These
services must be started before using OCFS2 (mount/ format the file systems).
34. What the OCR file is used for?
OCR is a file that manages the cluster and RAC configuration.
35. What the Voting Disk file is used for?
The voting disk is nothing but a file that contains and manages information of
all the node memberships.
36. What is the recommended method to make backups of a RAC
environment? RMAN to make backups of the database, dd to
backup your voting disk and hard copies of the OCR file.
37. What command would you use to check the availability of the RAC
system?
crs_stat -t -v (-t -v are optional)
38. What is the minimum number of instances you need to have in order to
create a RAC?
You can create a RAC with just one server.
39. Name two specific RAC background processes
RAC processes are: LMON, LMDx, LMSn, LKCx and DIAG.
40. Can you have many database versions in the same RAC?
Yes, but Clusterware version must be greater than the greater database version.
41. What was RAC previous name before it was called RAC?OPS: Oracle
Parallel Server
42. What RAC component is used for communication between
instances?Private Interconnect.
43. What is the difference between normal views and RAC views?A RAC
view has the prefix G. For example, GV$SESSION instead of V$SESSION
44. Which command will we use to manage (stop, start) RAC services in
command-line mode?
srvctl
45. How many alert logs exist in a RAC environment?
A- One for each instance.
46. What are Oracle Clusterware Components
Voting Disk Oracle RAC uses the voting disk to manage cluster membership
by way of a health check and arbitrates cluster ownership among the instances
in case of network failures. The voting disk must reside on shared disk.
Oracle Cluster Registry (OCR) Maintains cluster configuration information
as well as configuration information about any cluster database within the
cluster. The OCR must reside on shared disk that is accessible by all of the
nodes in your cluster
47. How do you backup voting disk
#dd if=voting_disk_name of=backup_file_name
48. How do I identify the voting disk location
#crsctl query css votedisk
49. How do I identify the OCR file location
check /var/opt/oracle/ocr.loc or /etc/ocr.loc ( depends upon platform)
or
#ocrcheck
50. What is SCAN?
Single Client Access Name (SCAN) is s a new Oracle Real Application Clusters
(RAC) 11g Release 2 feature that provides a single name for clients to access an
Oracle Database running in a cluster. The benefit is clients using SCAN do not
need to change if you add or remove nodes in the cluster.