Linux平台安装Oracle 10g RAC ASM详细过程Step by Step

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:1764

Linux平台安装Oracle 10g RAC ASM数据库的详细过程Step by Step

操作系统:
Red Hat Enterprise Linux AS release 4

环境:
虚拟机

安装软件包:
10G 集群软件包10201_clusterware_linux32.zip
数据库软件包10201_database_linux32.zip

附件有PDF格式下载:Linux平台安装oracle 10g rac asm详细过程 step by step.pdf

330

1.安装第一节点rh4虚拟机和添加 5块虚拟硬盘1,2两块做ocr和
voting disk 3,4,5 三块做asm存储

2.默认安装完系统后需要打系列补丁包
Once the basic installation is complete, install the following packages whilst logged in as the root
user.
# From CentOS4 Disk 1
cd /media/cdrecorder/CentOS/RPMS
rpm -Uvh setarch-1*
rpm -Uvh compat-libstdc++-33-3*
rpm -Uvh make-3*
rpm -Uvh glibc-2*
cd /
eject
# From CentOS4 Disk 2
cd /media/cdrecorder/CentOS/RPMS
rpm -Uvh openmotif-2*
rpm -Uvh compat-db-4*
rpm -Uvh gcc-3*
cd /
eject
# From CentOS4 Disk 3
cd /media/cdrecorder/CentOS/RPMS
rpm -Uvh libaio-0*
rpm -Uvh rsh-*
rpm -Uvh compat-gcc-32-3*
rpm -Uvh compat-gcc-32-c++-3*
rpm -Uvh openmotif21*
cd /
eject

3.编辑/etc/hosts 加入以下内容
Oracle Installation Prerequisites
Perform the following steps whilst logged into the RAC1 virtual machine as the root user.
The /etc/hosts file must contain the following information.
127.0.0.1 localhost.localdomain localhost
# Public
192.168.2.101 rac1.localdomain rac1
192.168.2.102 rac2.localdomain rac2
#Private
192.168.0.101 rac1-priv.localdomain rac1-priv
192.168.0.102 rac2-priv.localdomain rac2-priv
#Virtual
192.168.2.111 rac1-vip.localdomain rac1-vip
192.168.2.112 rac2-vip.localdomain rac2-vip
注意一定要加127.0.0.1 localhost.localdomain localhost 要不启动crs ons 服务时会启动
不了提示 failed to get ip

4.编辑/etc/sysctl.conf 文件加入一下内容
Add the following lines to the /etc/sysctl.conf file.
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
Run the following command to change the current kernel parameters.
/sbin/sysctl –p

5. /etc/security/limits.conf 加入下列参数
Add the following lines to the /etc/security/limits.conf file.
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

6. /etc/pam.d/login 加入下列参数
Add the following line to the /etc/pam.d/login file, if it does not already exist.
session required /lib/security/pam_limits.so

7.禁用SELINUX 组件
Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set
as follows.
SELINUX=disabled
Alternatively, this alteration can be done using the GUI tool (Applications > System Settings >
Security Level). Click on the SELinux tab and disable the feature.

8. /etc/modprobe.conf 加入以下参数
Set the hangcheck kernel module parameters by adding the following line to the
/etc/modprobe.conf file.
options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180
To load the module immediately, execute "modprobe -v hangcheck-timer".

9.创建组和用户
Create the new groups and users.
groupadd oinstall
groupadd dba
groupadd oper
useradd -g oinstall -G dba oracle
passwd oracle

10.创建安装路径和赋予相关权限
Create the directories in which the Oracle software will be installed.
mkdir -p /u01/crs/oracle/product/10.2.0/crs
mkdir -p /u01/app/oracle/product/10.2.0/db_1
mkdir -p /u01/oradata
chown -R oracle.oinstall /u01

11.安装rsh和rsh-server
During the installation, both RSH and RSH-Server were installed. Enable remote shell and rlogin
by doing the following.
chkconfig rsh on
chkconfig rlogin on
service xinetd reload

12. 创建/etc/hosts.equiv 文件
Create the /etc/hosts.equiv file as the root user.
touch /etc/hosts.equiv
chmod 600 /etc/hosts.equiv
chown root:root /etc/hosts.equiv
Edit the /etc/hosts.equiv file to include all the RAC nodes:
+rac1 oracle
+rac2 oracle
+rac1-priv oracle
+rac2-priv oracle

13.oracle 用户登录添加环境变量
Login as the oracle user and add the following lines at the end of the .bash_profile file.
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=RAC1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
export CLASSPATH

14.Install VMware Client Tools 配置时间同步:
1. 执行“vmware-toolbox”以显示VMware Tools Properties 窗口。在Options 选项卡下,选择Time
synchronization between the virtual machine and the host operating system。您应该发现tools.syncTime
= "TRUE" 参数已经追加到虚拟机配置文件G:\Virtual Machines\Red Hat Enterprise Linux 4\rhel4.vmx
中。

15.配置共享磁盘
16.关掉防火墙用以下命令
17.修改网卡工作模式为100 FULL duplex
18.安装另外个节点2
19.启动两个节点后做 ssh 两边能互相信任连接
20.安装clustware 集群软件
21.安装Oracle数据库集群
22.创建Oracle数据库实例

328

......更多请下载附件PDF:Linux平台安装Oracle 10g RAC ASM详细过程Step by Step

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】