Home Database Mysql Tutorial 基于Linux平台的Oracle RAC 10g集群教程:添加节点所需要的步骤

基于Linux平台的Oracle RAC 10g集群教程:添加节点所需要的步骤

Jun 07, 2016 pm 04:53 PM
oracle

在多数业务中,基于Linux平台Oracle 真正应用集群 (RAC) 配置的主要业务要求是整个系统中数据库层的可伸缩性 mdash; 这样,当用

在多数业务中,基于Linux平台Oracle 真正应用集群 (RAC) 配置的主要业务要求是整个系统中数据库层的可伸缩性 — 这样,当用户数增加时,可将额外实例添加到该集群来分发该负载。

在 Oracle RAC 10g 中,这个特定的功能已经变得更加容易。当节点/实例变成可用状态后,Oracle 即可通过必需的几个设置步骤来包含这个即插即用功能。

在本文中,我将讨论将节点添加到现有 Oracle RAC 10g 第 2 版集群所需的步骤。

当前环境

    出于演示目的,我们这里的环境是一个四节点的 Rd Hat Linux 集群。该任务是添加一个附加节点,从而使它成为一个五节点集群。

数据库名

节点编号

数据库版本

实例编号

操作系统内核版本

文件系统

集群管理器

SSKYDB

四个节点 — oradb1、oradb2、oradb3 和 oradb4

10.2.0.1

四个实例 — SSKY1、SSKY2、SSKY3 和 SSKY4

Red Hat Enterprise Linux AS 3
Linux sumsky.net 2.4.21-32.ELsmp

OCFS 1.0 和 ASM

Oracle 集群件

该过程将通过以下 7 个步骤实现:

  • 考虑依赖性和前提条件
  • 配置网络组件
  • 安装 Oracle 集群件
  • 配置 Oracle 集群件
  • 安装 Oracle 软件
  • 添加新实例(一个或多个)
  • 执行日常管理任务

  • 第 1 步:考虑依赖性和前提条件

        任何软件安装或升级的第一个主要步骤都是确保系统的完整备份可用,包括操作系统和数据文件。下一步是验证系统要求、操作系统版本和所有应用程序补丁级别。

        新节点应该具有与现有节点相同的操作系统版本,包括 Oracle 所需的所有补丁。在这个示例中,由于驻留在节点 1 到 4 上的操作系统是 Red Hat Enterprise Linux 3,,因此新节点也应该具有该版本。此外,为了维持当前命名惯例,应该将新节点称为 oradb5。

    除了基本的操作系统外,还应该安装 Oracle 需要的以下程序包:

    [root@oradb5 root]# rpm -qa | grep -i gcccompat-gcc-c++-7.3-2.96.128compat-gcc-7.3-2.96.128libgcc-3.2.3-42gcc-3.2.3-42[root@oradb5 root]# rpm -qa | grep -i openmotifopenmotif-2.2.3-3.RHEL3openmotif21-2.1.30-8[root@oradb5 root]# rpm -qa | grep -i glibcglibc-2.3.3-74glibc-utils-2.3.3-74glibc-kernheaders-2.4-8.34.1glibc-common-2.3.3-74glibc-headers-2.3.3-74glibc-devel-2.3.3-74[root@oradb5 root]# rpm -qa | grep -i compatcompat-libstdc++-7.3-2.96.128compat-gcc-c++-7.3-2.96.128compat-gcc-7.3-2.96.128compat-db-4.0.14-5compat-libstdc++-devel-7.3-2.96.128[root@oradb5 root]#

    使用以下值更新内核参数。

    kernel.core_uses_pid = 1kernel.hostname = oradb5.sumsky.netkernel.domainname = sumsky.netkernel.shmall = 2097152#kernel.shmmax = 536870912kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.shmseg = 4096kernel.sem = 250 32000 100 150kernel.msgmnl = 2878kernel.msgmnb = 65535fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 262144net.core.wmem_default = 262144net.core.rmem_max = 262144net.core.wmem_max = 262144

    将下列参数添加到 /etc/security/limits.conf。

    oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536

    将设备添加到 /etc/fstab — 将设备定义从现有节点之一复制到 oradb5。

    [root@oradb5 root]$ more /etc/fstabLABEL=/ / ext3 defaults 1 1none /dev/pts devpts gid=5,mode=620 0 0none /proc proc defaults 0 0none /dev/shm tmpfs defaults 0 0/dev/sda2 swap swap defaults 0 0/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0/dev/sdb5 /u01 ocfs _netdev 0 0/dev/sdb6 /u02 ocfs _netdev 0 0/dev/sdb7 /u03 ocfs _netdev 0 0/dev/sdb8 /u04 ocfs _netdev 0 0/dev/sdb9 /u05 ocfs _netdev 0 0/dev/sdb10 /u06 ocfs _netdev 0 0/dev/sdb14 /u14 ocfs _netdev 0 0

    linux

    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    AI Hentai Generator

    AI Hentai Generator

    Generate AI Hentai for free.

    Hot Tools

    Notepad++7.3.1

    Notepad++7.3.1

    Easy-to-use and free code editor

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    Dreamweaver CS6

    Dreamweaver CS6

    Visual web development tools

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)

    How to check tablespace size of oracle How to check tablespace size of oracle Apr 11, 2025 pm 08:15 PM

    To query the Oracle tablespace size, follow the following steps: Determine the tablespace name by running the query: SELECT tablespace_name FROM dba_tablespaces; Query the tablespace size by running the query: SELECT sum(bytes) AS total_size, sum(bytes_free) AS available_space, sum(bytes) - sum(bytes_free) AS used_space FROM dba_data_files WHERE tablespace_

    How to encrypt oracle view How to encrypt oracle view Apr 11, 2025 pm 08:30 PM

    Oracle View Encryption allows you to encrypt data in the view, thereby enhancing the security of sensitive information. The steps include: 1) creating the master encryption key (MEk); 2) creating an encrypted view, specifying the view and MEk to be encrypted; 3) authorizing users to access the encrypted view. How encrypted views work: When a user querys for an encrypted view, Oracle uses MEk to decrypt data, ensuring that only authorized users can access readable data.

    How to view instance name of oracle How to view instance name of oracle Apr 11, 2025 pm 08:18 PM

    There are three ways to view instance names in Oracle: use the "sqlplus" and "select instance_name from v$instance;" commands on the command line. Use the "show instance_name;" command in SQL*Plus. Check environment variables (ORACLE_SID on Linux) through the operating system's Task Manager, Oracle Enterprise Manager, or through the operating system.

    How to uninstall Oracle installation failed How to uninstall Oracle installation failed Apr 11, 2025 pm 08:24 PM

    Uninstall method for Oracle installation failure: Close Oracle service, delete Oracle program files and registry keys, uninstall Oracle environment variables, and restart the computer. If the uninstall fails, you can uninstall manually using the Oracle Universal Uninstall Tool.

    How to solve the problem of closing oracle cursor How to solve the problem of closing oracle cursor Apr 11, 2025 pm 10:18 PM

    The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

    How to check invalid numbers of oracle How to check invalid numbers of oracle Apr 11, 2025 pm 08:27 PM

    Oracle Invalid numeric errors may be caused by data type mismatch, numeric overflow, data conversion errors, or data corruption. Troubleshooting steps include checking data types, detecting digital overflows, checking data conversions, checking data corruption, and exploring other possible solutions such as configuring the NLS_NUMERIC_CHARACTERS parameter and enabling data verification logging.

    How to create oracle dynamic sql How to create oracle dynamic sql Apr 12, 2025 am 06:06 AM

    SQL statements can be created and executed based on runtime input by using Oracle's dynamic SQL. The steps include: preparing an empty string variable to store dynamically generated SQL statements. Use the EXECUTE IMMEDIATE or PREPARE statement to compile and execute dynamic SQL statements. Use bind variable to pass user input or other dynamic values ​​to dynamic SQL. Use EXECUTE IMMEDIATE or EXECUTE to execute dynamic SQL statements.

    How to create cursors in oracle loop How to create cursors in oracle loop Apr 12, 2025 am 06:18 AM

    In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

    See all articles