Oracle RAC 内部机制解析

需积分: 10 3 下载量 147 浏览量 更新于2024-07-24 收藏 985KB PDF 举报
"lundhild-Understanding_RAC_Internals 深入理解Oracle RAC内部机制" Oracle Real Application Clusters (RAC) 是Oracle数据库的一个关键特性,它允许多个实例共享同一个物理数据库,从而实现高可用性和可扩展性。 Lundhild的这份文档主要探讨了RAC内部组件的工作原理及其相互作用。 1. 主要组件与交互: Oracle Clusterware是RAC的基础,它包括多个组件,如Clusterware管理服务、 Voting Disks、OCR(Oracle Cluster Registry)、GNS(Global Name Service)等。这些组件协同工作以确保集群的稳定运行。Clusterware管理服务监控集群状态,Voting Disks用于节点间的决策,OCR存储集群配置信息,而GNS则处理全局数据库名称解析。 2. 节点重启: Oracle可能因多种原因重启节点,例如软件更新、硬件故障或系统稳定性问题。当一个节点出现故障时,RAC会自动将工作负载转移到其他健康节点,确保服务连续性。 3. 私有互连失败与可扩展性: 私有互连是RAC实例间通信的专用网络路径,用于数据块的传输和协调。如果私有互连发生故障,RAC将通过公共网络进行通信,但可能会降低性能。Oracle设计了故障切换和恢复机制来处理这种情况,保持系统的高可用性。 4. 公共网络失败的影响: 公共网络是客户端与数据库交互的路径。当公共网络失败时,ASM(Automatic Storage Management)和数据库实例可能会关闭,因为它们无法正常接收或发送数据。Oracle提供了故障检测和恢复策略,如快速应用服务器(FAN)事件,以应对这种状况。 5. VIP(Virtual IP)的作用: VIP是RAC中的一个重要概念,它是一个虚拟的IP地址,绑定到集群服务或数据库实例上。当某个实例失败时,VIP会迅速转移到另一个活动实例,确保客户端连接的连续性。 6. ONS(Oracle Notification Service): ONS主要用于Fast Application Notification (FAN)事件,它在节点故障或服务状态变化时通知应用程序。除了FAN之外,ONS还可以用于其他集群内的通信和协调任务。 7. 负载均衡: Oracle RAC通过Grid Infrastructure的负载均衡功能,自动分配数据库请求到各个实例,优化资源利用。这包括基于资源消耗、服务级别协议(SLA)和其他因素的智能调度策略。 在深入理解RAC的内部机制后,我们可以更好地优化和维护RAC环境,确保数据库服务的高可用性和性能。Oracle对RAC的持续开发和更新,旨在提供更强大的容错能力和更高的业务连续性。

INFO: Local Domain Name: WARNING: No Local Domain found, setting to whatever first domain is available INFO: Local Domain set to: WARNING: No Domain found, skipping Same Domain validation INFO: Validating for Local Node existence INFO: Checking for local node existence in the list of public nodes INFO: Validating for Duplicates INFO: Validating for Duplicates in the table INFO: Verifying setup for installer validations INFO: Overall status of CVU API call:OPERATION_FAILED SEVERE: [FATAL] [INS-30132] Initial setup required for the execution of installer validations failed on nodes: yxyddb-rac-01 CAUSE: Indicated nodes were not reachable or failed to access the temporary location on the indicated nodes. ACTION: Ensure that all the indicated nodes are reachable and current user has required permissions to access the temporary location on all the indicated nodes. INFO: Advice is ABORT INFO: Adding ExitStatus INVALID_USER_INPUT to the exit status set INFO: Completed validating state <CRSNodeInformationUI> INFO: Terminating all background operations INFO: Terminated all background operations WARNING: A log of this session is currently saved as: /tmp/OraInstall2023-06-05_06-26-29PM/installActions2023-06-05_06-26-29PM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location to a more permanent location. INFO: Finding the most appropriate exit status for the current application INFO: Exit Status is -2 INFO: Shutdown Oracle Grid Infrastructure

2023-06-06 上传