May 21, 2023

Best 20 Oracle RAC Interview Questions/FAQs Part1 [ 2023 ]

Oracle DBA RAC Interview Questions Part1


1. What is the use of Oracle RAC?
Answer:

2. What are the prerequisites for RAC setup?

Answer:

3. What are Oracle Clusterware/Daemon processes and what do they do?

Answer:
ohasd, orarootagent, oragent, ocssd, crsd, ctsd, evmd

4. What are the special background processes for RAC (or) what is the difference between stand-alone database & RAC database background processes?
Answer:
DIAG, LCKn, LMD, LMSn, LMON 

5. What were the structural changes in Oracle 11g R2 RAC?

Answer:
http://satya-racdba.blogspot.com/2010/07/new-features-in-9i-10g-11g-rac.html
Grid & ASM are on one home, 
Voting disk & ocrfile can be on the ASM,
SCAN,
By using srvctl, we can mange diskgroups, home, ons, eons, filesystem, srvpool, server, scan, scan_listener, gns, vip, oc4j
GSD

6. What were the new features in 11g (R2) Oracle RAC?

Answer:
http://satya-racdba.blogspot.com/2010/07/new-features-in-9i-10g-11g-rac.html
Grid & ASM are on one home, 
Voting disk & ocrfile can be on the ASM,
SCAN,
By using srvctl, we can mange diskgroups, home, ons, eons, filesystem, srvpool, server, scan, scan_listener, gns, vip, oc4j
GSD

7. What is cache fusion?

Answer:
Transferring of data between RAC instances by using private network. Cache Fusion is the remote memory mapping of Oracle buffers, shared between the caches of participating nodes in the cluster. When a block of data is read from the datafile by an instance within the cluster and another instance is in need of the same block, it is easy to get the block image from the instance which has the block in its SGA rather than reading from the disk. Oracle RAC uses the interconnect for cache fusion (UDP/RDS).

8. What is the purpose of Private Interconnect?

Answer:
Clusterware uses the private interconnect for cluster synchronization (network heartbeat) and daemon communication between the clustered nodes. This communication is based on the TCP protocol. RAC uses the interconnect for cache fusion (UDP/RDS) and inter-process communication (TCP).

9. What are the Clusterware components?

Answer:
Voting Disk or Voting file - Oracle RAC uses the voting disk/file 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 the cluster. The daemon OCSSd manages the configuration info in OCR and maintains the changes to the cluster in the registry.

Virtual IP (VIP) - When a node fails, the VIP associated with it is automatically failed over to some other node and new node re-arps the world indicating a new MAC address for the IP. Subsequent packets sent to the VIP go to the new node, which will send error RST packets back to the clients. This results in the clients getting errors immediately.

crsd – Cluster Resource Services Daemon
cssd – Cluster Synchronization Services Daemon
evmd – Event Manager Daemon

10. What is OCR file?

Answer:
RAC configuration information repository that manages information about the cluster node list and instance-to-node mapping information. The OCR also manages information about Oracle Clusterware resource profiles for customized applications. Maintains cluster configuration information as well as database configuration information. The OCR must reside on shared disk that is accessible by all of the nodes in the cluster. The daemon OCSSd manages the configuration info in OCR and maintains the changes to the cluster in the registry.

11. How to take backup of OCR file?
Answer:
#ocrconfig -manualbackup
#ocrconfig -export file_name.dmp
#ocrdump -backupfile my_file
$cp -p -R /u01/app/crs/cdata /u02/crs_backup/ocrbackup/RAC1

12. How to recover OCR file?

Answer:
#ocrconfig -restore backup_file.ocr
#ocrconfig -import file_name.dmp

13. What is local OCR or Oracle Local Registry 
(OLR)?
Answer:
/etc/oracle/local.ocr   (or)   /var/opt/oracle/local.ocr

14. How to check backup (location) of OCR files?

Answer:
#ocrconfig –showbackup

15. How do you identify the OCR file location?
Answer:
Check /var/opt/oracle/ocr.loc or /etc/ocr.loc
ocrcheck

16. Who will manage OCR files?
Answer:
cssd will manage OCR.

17. Who will take backup of OCR files?
Answer:
crsd will take backup.

18. What is a Voting file/disk and how many files should be there?
Answer:
Voting Disk/File is a file on the shared cluster system or a shared raw device file. Oracle Clusterware uses the voting disk to determine which instances are members of a cluster. The voting disk is akin to the quorum disk, which helps to avoid the split-brain syndrome. 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.

Number of voting files must be odd i.e. 1, 3, 5, 7, 9, 11, 13, 15(max) etc.

19. How to take backup of voting files?
Answer:
dd if=/u02/ocfs2/vote/VDFile_0 of=$ORACLE_BASE/bkp/vd/VDFile_0
crsctl backup css votedisk         -- from 11g R2

20. How do I identify the voting disk location?

Answer:
crsctl query css votedisk

21. If the voting disk/OCR file got corrupted and doesn’t have backups, how to get them?
Answer:
We have to install Clusterware.

3 comments:

  1. 21.if ocr and votingdisks are corrupted and create new disk groups and run run roots.it will create ocr and voting disks

    ReplyDelete