Describe the Oracle Real Application Clusters Architecture?
Oracle RAC consists of a database that is represented in a clustered manner in the architecture. The cluster is the collection or pool of independent servers that make up one single system.
Cluster architecture provides more flexibility to manage and follow a modular incremental approach to improve the fault errors and provide an incremental system.
This architecture provides the maximum security in terms of ensuring high availability of the resources to the users.
It provides the resources on demand and provides hardware architecture such as failure at a single point is being removed.
The architecture provides the decoupling of the Oracle instance like the process and memory that are running on the server from the Oracle database.
What was the main purpose of Oracle Real Application Clusters (RAC)?
Oracle Real Application (RAC) provides the interaction of executable file with the Oracle database.
It allows the running of any packaged or custom built application with Oracle DB that is running on a server pool.It provides very high level of availability, flexibility and scalability to run the application and store it to the database.
It creates the database such that if the pool fails then the database is continued to run from the remaining servers and the load can be distributed.It makes it easier for the administrator to maintain many servers at the same time by load-balancing techniques and providing provision to add more and more servers when the load increases.
Differentiate Crash recovery and Instance recovery?
When an instance crashes in a single node database on startup a crash recovery takes place. In a RAC environment the same recovery for an instance is performed by the surviving nodes called Instance recovery.
What is the interconnect used for?
A private N/W 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 DB alert log for the time period when the DB was started up.
What methods are available to keep the time synchronized on all nodes in the cluster?
Either the Network Time Protocol(NTP) can be configured or in 11gr2, Cluster Time Synchronization Service (CTSS) can be used.
What files components in RAC must reside on shared storage?
Spfiles, ControlFiles, Datafiles and Redolog files should be created.
How do you find out what OCR backups are available?
The ocrconfig -showbackup can be run to find out the automatic and manually run backups.
If your OCR is corrupted what options do have to resolve this?
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?
You can use the dba_hist_seg_stats.
What is a VIP in RAC use for?
The VIP is an alternate Virtual IP address assigned to each node in a cluster. During a node failure the VIP of the failed node moves to the surviving node and relays to the application that the node has gone down. Without VIP, the application will wait for TCP timeout and then find out that the session is no longer live due to the failure.
How do we know which database instances are part of a RAC cluster?
You can query the V$ACTIVE_INSTANCES view to determine the member instances of the RAC cluster.
What is OCLUMON used for in a cluster environment?
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 CPU’s) is added to the cluster?
All processing will show down to the CPU speed of the slowest server.
What is the default memory allocation for ASM?
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.
How do you backup ASM Metadata?
You can use md_backup to restore the ASM diskgroup configuration in-case of ASM diskgroup storage loss.
What files can be stored in the ASM diskgroup?
- In 11g the following files can be stored in ASM diskgroups.
- Redo logfiles
- In 12c the files below can also new be stored in the ASM Diskgroup
- Password file
What it the ASM POWER_LIMIT?
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 184.108.40.206 the default value is 11 however it has been changed to unlimited in later versions.
What is a rolling upgrade?
A patch is considered a rolling if it is can be applied to the cluster binaries without having to shutting down the database in a RAC environment. All nodes in the cluster are patched in a rolling manner, one by one, with only the node which is being patched unavailable while all other instance open.
What are some of the RAC specific parameters?
Some of the RAC parameters are:
- INSTANCE_TYPE (RDBMS or ASM)
What is the future of the Oracle Grid?
The Grid software is becoming more and more capable of not just supporting HA for Oracle Databases but also other applications including Oracle’s 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.
What components of the Grid should I back up?
The backups should include OLR, OCR and ASM Metadata.
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.
What is cache fusion?
In a RAC environment, it is the combining of data blocks, which are shipped across the interconnect from remote database caches (SGA) to the local node, in order to fulfill the requirements for a transaction (DML, Query of Data Dictionary).
What is split brain?
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
same block is modified by more than one instance, synchronization/locking of the data blocks does not take place and blocks may be overwritten by others in the cluster. This state is called split brain.
What is the Load Balancing Advisory?
Load balancing advisory is a process through which the load of the applications and resources can be managed throughout the servers.
It monitors the workload of the current activities from all the clusters and the instances that is being given on the server.
The service that is being provided is active all the time to see the workload of the applications on the servers.
To simplify it, it provides a percentage value to show the total workload of the instance and it flags the instance according to the quality.
Load Balancing Advisory helps in maintaining the loads from the servers and equally distributes it among many other servers that are not currently working.
Why is Cluster Verification Utility so important in Oracle RAC?
Cluster Verification Utility is a tool in the Oracle Grid that is used to eliminate the errors that come up with the validations of the steps.
It provides the verification on the changes that is being made in the configuration of the files or the system.
The tool can be used with the command line interface and it is used to validate the configuration input as well such that during the installation it can be found out that everything is perfectly ok.
The tool is used to verify the system pre-requisites that are related to Oracle Clusterware, ASM and the databases.
There are few fix up scripts available if by any means the verification tool fails then these scripts can be used to automatically fix the errors.
What are the components required to manage Oracle Real Application Clusters Database?
Oracle RAC uses a single system in the form of an image to configure and manage the servers in an easy way. It provides a database for the installed and configured applications from one location so that it can be managed in an easy way.
The components required to be provided with it is as follows:
- Oracle Universal Installer (OUI) is used to manage the database that is related to the cluster and provide enterprise level configuration.
- Database configuration assistant (DBCA) that manages the database and its related functionality and services.
- Database upgrade assistant (DBUA) is the tool that allows the database to be upgraded when it is required on the server.