A typical RAC implementation groups multiple Oracle database instances running on multiple machines (or nodes). These nodes communicate with each other and share a common pool of disks. The disks house all of the data files that comprise the database. This architecture is illustrated in Figure 9-9. Let’s look at a few of the key components in Figure 9-9:
This architecture makes RAC systems highly available. For example, if Node 2 in Figure 9-9 fails or requires maintenance, the remaining nodes will keep the database available. This activity is transparent to the user or application and as long as at least one node is active, all data is available. RAC architecture also allows near-linear scalability and offers increased performance benefits. New nodes can easily be added to the cluster when needed to boost performance. Administering and maintaining data files on both RAC and single-node systems have always required a good deal of effort, especially when data partitioning is involved. Oracle’s solution to reducing this effort is Automatic Storage Management, which we will discuss next. CRITICAL SKILL 9.7 Automatic Storage Management: Another Primer In previous versions of Oracle and with most other databases, management of data files for large databases consumes a good portion of the DBA’s time and effort. The number of data files in large databases can easily be in the hundreds or even thousands. The DBA must coordinate and provide names for these files and then optimize the storage location of files on the disks. The new Automatic Storage Management (ASM) feature in Oracle Database 10g Enterprise Edition addresses these issues. ASM simplifies the management of disks and data files by creating logical groupings of disks into disk groups. The DBA need only refer to the groups, not the underlying data files. Data files are automatically named and distributed evenly (striped) throughout the disks in the group for optimal throughput. As disks are added or removed from the disk group, ASM redistributes the files among the available disks, automatically, while the database is still running. ASM can also mirror data for redundancy. ASM Architecture When ASM is implemented, each node in the database (clustered or nonclustered) has an ASM instance and a database instance, with a communication link between them. The ASM instance manages and works with the disk groups, and the database instance works with the data files. Figure 9-10 illustrates this architecture. The following points address the key components in Figure 9-10: Ask the Expert Q: After ASM disk groups are defined, how are they associated with a table? A: ASM disk groups are referred to during tablespace creation, as in the following example: 1 create tablespace ts1 This listing creates tablespace ts1 in disk group diskgrp1. Note that this assumes that both diskgrp1 and alias1 have previously been defined. A table can now be created in tablespace ts1 and it will use ASM data files. While ASM can be implemented in a single-node environment, its real power and benefits are realized when used in RAC environments. This powerful CRITICAL SKILL 9.8 Grid Computing: The “g” in Oracle Database 10g In this chapter, we have discussed many issues and demands surrounding large databases—performance, maintenance efforts, and so on. We have also discussed the solutions offered by Oracle Database 10g. Now we will have a high-level look at Oracle Database 10g’s grid-computing capabilities.
The theory behind grid computing is that all parts of the grid (databases, applications, servers, disks, and so forth) work together in a highly integrated fashion, with each component being able to react appropriately to changes in other components in the grid. This results in efficient use of resources, faster response times, high availability, and so on. The database components of Oracle Database 10g’s grid computing provide an infrastructure that brings together multiple servers (RAC) with shared storage (ASM), all tied together using the Oracle Enterprise Manager (OEM) Grid Control. Table 9-17 shows how grid computing addresses some of the issues facing large databases. In order for grid computing to work, a software infrastructure layer needs to be in place to control the hardware and processes, as well as provide some automated maintenance capabilities. This is mainly the function of the OEM and is a core component of the grid. In addition, the Oracle Database 10g has the capability to perform some self-management.
blog comments powered by Disqus |
|
|
|
|
|
|
|