Oracle 11g RAC安装与配置for Linux(5)

2020-02-20 15:11

Bourne shell (sh) or Korn shell (ksh): $ vi .profile

C shell (csh or tcsh): % vi .login

1.29.4 在启动文件中增加 umask 022

1.29.5 如果不是在本地安装增加DISPLAY变量

export DISPLAY=curstom_name:0.0

1.29.6 如果/tmp空间小于1GB,配置TEMP和TMPDIR环境变量替换默认临时

空间

$ TEMP=/mount_point/tmp $ TMPDIR=/mount_point/tmp $ export TEMP TMPDIR

1.30 校验环境

umask env | more

1.31 检查资源限制,确保显示值在推荐范围内

1.31.1 文件句柄限制

$ ulimit -Sn 1024

$ ulimit -Hn 65536

1.31.2 进程限制

$ ulimit -Su 2047

$ ulimit -Hu 16384

1.31.3 堆栈限制

$ ulimit -Ss 10240

$ ulimit -Hs 32768

1.32 设置X11转发

为了防止X11转发导致的安装失败,增加并配置~/.ssh/config文件 Host *

ForwardX11 no

1.33 消除终端输出命令导致的错误

Bourne, Bash, or Korn shell: if [ -t 0 ]; then stty intr ^C fi

C shell: test -t 0

if ($status == 0) then stty intr ^C

endif

13. 建立必须的目录

# mkdir -p /u01/app/11.2.0/grid

# chown grid:oinstall /u01/app/11.2.0/grid # chmod -R 775 /u01/app/11.2.0/grid # mkdir -p /u01/app/oracle

# chown -R oracle:oinstall /u01/app/oracle # chmod -R 775 /u01/app/oracle

14. 群集名要求

群集名必须少于15字符

三、 为Cluster and Oracle Real Application Clusters

(Oracle RAC)安装Grid Infrastructure配置存储

1. Oracle Clusterware and Oracle RAC存储选项综述

有两种方式支持Oracle群集文件:Oracle Clusterware files (Oracle Cluster Registry

and voting disk files)能存储在Oracle ASM上。也能存放在一个共享文件系统上,如NFS。对于IBM linux或system z,能够使用块设备,但是不能使用ACFS和OCFS

2. 了解ACFS

Oracle Automatic Storage Management Cluster File System (Oracle ACFS)用于存储Oracle执行文件,但是不能用于存储数据文件和群集文件。

3. 支持的存储选项

OCR and Oracle Oracle Voting Clusterware RAC Disk Files binaries binaries No No Oracle Database Files Yes Oracle Recovery Files Yes Storage Option Oracle Automatic Storage Management Yes

Storage Option (Oracle ASM) Note: Loopback devices are not supported for use with Oracle ASM OCR and Oracle Oracle Voting Clusterware RAC Disk Files binaries binaries Oracle Database Files Oracle Recovery Files Oracle Automatic Storage Management No Cluster File System (Oracle ACFS) Local file system No No Yes Yes Yes Yes Yes No No Yes No No Yes NFS file system on a certified NAS filer Yes Note: Direct NFS does not support Oracle Clusterware files. Shared disk partitions (block devices or No raw devices) 注一 No No No 注一. No 注一:Not supported by OUI or ASMCA, but supported by the software. They can be added or removed after installation

4. 共享文件系统配置

1.1 群集文件文件系统所需尺寸 File Types Stored Voting disks with external redundancy Number Volumes 3 of Volume Size At least 300 MB for each voting disk volume. At least 300 MB for each OCR volume At least 300 MB for each OCR volume At least 300 MB for each voting disk volume 1.2 Oracle RAC共享文件系统所需尺寸 File Types Stored Oracle Database files Number Volumes 1 of Volume Size At least 1.5 GB for each volume Oracle Cluster Registry (OCR) with external redundancy 1 Oracle Clusterware files (OCR and voting disks) with redundancy provided by Oracle software. 1

File Types Stored Recovery files Note: Recovery files must be on a different volume than database files Number Volumes 1 of Volume Size At least 2 GB for each volume 1.3 Oracle ASM存储配置

1.3.1 使用ASMLIB配置Oracle ASM

1.3.1.1 安装配置ASM Library Driver软件

? 检查Linux内核版本:uname –rm ? 下载ASMLIB软件

http://www.oracle.com/technetwork/server-storage/linux/downloads/index-088143.html

oracleasm-support-version.arch.rpm oracleasm-kernel-version.arch.rpm oracleasmlib-version.arch.rpm

1.3.1.2 安装ASMLIB包

rpm -Uvh oracleasm-support-2.0.1.x86_64.rpm \\ oracleasmlib-2.0.1.x86_64.rpm \\

oracleasm-2.6.9-11.EL-2.0.1.x86_64.rpm

1.3.1.3 执行命令初始化OracleASM配置,此脚本将创建

/etc/sysconfig/oracleasm配置文件,并创建/dev/oracleasm安装点,安装ASMLIB文件系统

# /usr/sbin/oracleasm configure -i

1.3.1.4 载入oracleasm内核模块

# /usr/sbin/oracleasm init

1.3.1.5 使用ASM library配置磁盘设备

在linux平台使用fdisk创建磁盘分区 fdisk /dev/sdb

1.3.1.6 表示磁盘作为ASM磁盘

# /usr/sbin/oracleasm createdisk DISK1 /dev/sdb1 1.3.1.7 在其它节点识别磁盘

# /usr/sbin/oracleasm scandisks 1.3.1.8 管理ASMLIB驱动和磁盘 Option configure Description Use the configure option to reconfigure the Oracle Automatic Storage Management library driver, if necessary: # /usr/sbin/oracleasm configure -i To see command options, enter oracleasm configure without the -i flag. Use the disable and enable options to change the actions of the Oracle Automatic Storage Management library driver when the system starts. The enable option causes the Oracle enable disable

Option Description Automatic Storage Management library driver to load when the system starts: # /usr/sbin/oracleasm enable start stop restart createdisk Use the start, stop, and restart options to load or unload the Oracle Automatic Storage Management library driver without restarting the system: # /usr/sbin/oracleasm restart Use the createdisk option to mark a disk device for use with the Oracle Automatic Storage Management library driver and give it a name: # /usr/sbin/oracleasm createdisk DISKNAME devicename Use the deletedisk option to unmark a named disk device: # /usr/sbin/oracleasm deletedisk DISKNAME Caution: Do not use this command to unmark disks that are being used by an Oracle Automatic Storage Management disk group. You must delete the disk from the Oracle Automatic Storage Management disk group before you unmark it. Use the querydisk option to determine if a disk device or disk name is being used by the Oracle Automatic Storage Management library driver: # /usr/sbin/oracleasm querydisk {DISKNAME | devicename} Use the listdisks option to list the disk names of marked Oracle Automatic Storage Management library driver disks: # /usr/sbin/oracleasm listdisks Use the scandisks option to enable cluster nodes to identify which shared disks have been marked as Oracle Automatic Storage Management library driver disks on another node: # /usr/sbin/oracleasm scandisks 1.3.2 手动配置Oracle ASM

1.3.2.1 查询unique device identifiers

Linux 5.x

# /sbin/scsi_id -g -s /block/sdb/sdb1 Linux 6.x

scsi_id --whitelisted --replace-whitespace --device=/dev/sdc

1.3.2.2 增加或修改/etc/scsi_id.config文件

Linux 5.x options=-g Linux 6.x

options=--whitelisted --replace-whitespace

1.3.2.3 编辑文件/etc/udev/rules.d/99-oracle-asmdevices.rules建立UDEV规则

Linux 5.x

KERNEL==”sd?1″, BUS==”scsi”, PROGRAM==”/sbin/scsi_id -g -u -d /dev/$parent”, RESULT==”SATA_VBOX_HARDDISK_VBce8c63bb-ac67a172_”, NAME=”asm-disk3″, OWNER=”grid”, GROUP=”asmadmin”, MODE=”0660″

Linux 6.x

KERNEL==\SUBSYSTEM==\PROGRAM==\

deletedisk querydisk listdisks scandisks


Oracle 11g RAC安装与配置for Linux(5).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:《组织行为学》练习题库参考答案

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: