RedHat EL5 安装Oracle 10g RAC之--系统环境配置(2)

RedHat EL5 安装Oracle 10g RAC之--系统环境配置(2)

系统环境:

操作系统:RedHat EL5

Cluster: Oracle CRS 10.2.0.1.0

Oracle:  Oracle 10.2.0.1.0


如图所示:RAC 系统架构

6、通过SSH配置主机间的信任关系

node1:

[[email protected] ~]$ mkdir .ssh

[[email protected] ~]$ ssh-keygen -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/oracle/.ssh/id_rsa.

Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.

The key fingerprint is:

fa:82:c7:18:88:6f:f0:c8:a4:cf:2e:69:a3:f8:36:ad [email protected]

[[email protected] ~]$ ssh-keygen -t dsa

Generating public/private dsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_dsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/oracle/.ssh/id_dsa.

Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.

The key fingerprint is:

3c:81:49:df:a0:c6:12:7c:2a:ae:d1:48:f2:5b:37:78 [email protected]

node2:

[[email protected] asm]# su - oracle

[[email protected] ~]$ mkdir .ssh

[[email protected] ~]$ ssh-keygen -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/oracle/.ssh/id_rsa.

Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.

The key fingerprint is:

5b:6b:f5:61:54:0c:5a:8d:b5:14:b3:35:91:2e:0b:31 [email protected]

[[email protected] ~]$ ssh-keygen -t dsa

Generating public/private dsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_dsa): Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/oracle/.ssh/id_dsa.

Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.

The key fingerprint is:

5f:82:67:d0:4a:da:e7:8b:43:1a:cf:41:dc:8e:9b:c1 [email protected]

node1:

[[email protected] ~]$ cat .ssh/id_rsa.pub >> .ssh/authorized_keys

[[email protected] ~]$ cat .ssh/id_dsa.pub >> .ssh/authorized_keys

[[email protected] ~]$ ssh node2 cat .ssh/id_rsa.pub >> .ssh/authorized_keys

The authenticity of host ‘node2 (192.168.8.11)‘ can‘t be established.

RSA key fingerprint is 1c:b2:66:d8:fc:a9:29:45:73:dd:ca:92:ca:b8:0a:20.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added ‘node2,192.168.8.11‘ (RSA) to the list of known hosts.

[email protected]‘s password:

[[email protected] ~]$ ssh node2 cat .ssh/id_dsa.pub >>.ssh/authorized_keys

[email protected]‘s password:

[[email protected] ~]$ scp .ssh/authorized_keys  node2:~/.ssh

[email protected]‘s password:

authorized_keys                                                                    100%

在两个节点上测试信任关系:

[[email protected] ~]$ ssh node2 date

Mon Sep  3 07:47:14 CST 2012

[[email protected] ~]$ ssh node2-priv date

The authenticity of host ‘node2-priv (10.10.10.2)‘ can‘t be established.

RSA key fingerprint is 1c:b2:66:d8:fc:a9:29:45:73:dd:ca:92:ca:b8:0a:20.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added ‘node2-priv,10.10.10.2‘ (RSA) to the list of known hosts.

Mon Sep  3 07:47:37 CST 2012

[[email protected] ~]$ ssh node1-priv date

Mon Sep  3 07:47:42 CST 2012

[[email protected] ~]$ ssh node1 date

The authenticity of host ‘node1 (192.168.8.10)‘ can‘t be established.

RSA key fingerprint is 6d:1d:6b:1a:34:63:f2:f4:4c:15:0d:eb:60:e0:13:4d.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added ‘node1,192.168.8.10‘ (RSA) to the list of known hosts.

Mon Sep  3 07:48:57 CST 2012

node2:

[[email protected] ~]$ ssh node1 date

Mon Sep  3 07:48:58 CST 2012

[[email protected] ~]$ ssh node1-priv date

The authenticity of host ‘node1-priv (10.10.10.1)‘ can‘t be established.

RSA key fingerprint is 6d:1d:6b:1a:34:63:f2:f4:4c:15:0d:eb:60:e0:13:4d.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added ‘node1-priv,10.10.10.1‘ (RSA) to the list of known hosts.

Mon Sep  3 07:49:08 CST 2012

[[email protected] ~]$ ssh node2-priv date

Mon Sep  3 07:49:09 CST 2012

[[email protected] ~]$ ssh node2 date

Mon Sep  3 07:49:09 CST 2012

注意:一定保证通过ssh连接时不需要输入任何东东


7、配置Oracle ASM

在Linux 需要安装ASM软件(注意要和内核匹配,在所有节点)

所需的软件包:

[[email protected] ASM]# ls -l

total 236

-rwxr--r--  1 oracle oinstall 129340 Sep  3  2012 oracleasm-2.6.9-67.ELsmp-2.0.3-1.i686.rpm

-rwxr--r--  1 oracle oinstall  13105 Sep  3  2012 oracleasmlib-2.0.4-1.el4.i386.rpm

-rwxr--r--  1 oracle oinstall  83255 Sep  3  2012 oracleasm-support-2.1.4-1.el4.i386.rpm

linux 内核版本:

[[email protected] ASM]# uname -a

Linux rac1 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux

安装:

[[email protected] ASM]# rpm -ivh *

warning: oracleasmlib-2.0.4-1.el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516

Preparing...                ########################################### [100%]

1:oracleasm-support      ########################################### [ 33%]

2:oracleasm-2.6.9-67.ELsm########################################### [ 67%]

3:oracleasmlib           ########################################### [100%]

配置Oracle ASM:

[[email protected] ASM]# service oracleasm configure

Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library

driver.  The following questions will determine whether the driver is

loaded on boot and what permissions it will have.  The current values

will be shown in brackets (‘[]‘).  Hitting <ENTER> without typing an

answer will keep that current value.  Ctrl-C will abort.

Default user to own the driver interface []: oracle

Default group to own the driver interface []: dba

Start Oracle ASM library driver on boot (y/n) [n]: y

Scan for Oracle ASM disks on boot (y/n) [y]:

Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver: [  OK  ]

Scanning the system for Oracle ASMLib disks: [  OK  ]

[[email protected] ASM]#

@至此Oracle 10g RAC安装和配置前的准备工作准备就绪


RedHat EL5 安装Oracle 10g RAC之--系统环境配置(2),布布扣,bubuko.com

时间: 2024-12-17 05:09:56

RedHat EL5 安装Oracle 10g RAC之--系统环境配置(2)的相关文章

RedHat EL5 安装Oracle 10g RAC之--系统环境配置(1)

RedHat EL5 安装Oracle 10g RAC之--系统环境配置(1) 系统环境: 操作系统:RedHat EL5 Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 一.操作系统环境 1.网络配置(在所有节点) [[email protected] ~]# cat /etc/hosts # Do not remove the following line, or various programs

RedHat EL5 安装Oracle 10g RAC之--CRS 安装

RedHat EL5 安装Oracle 10g RAC之--CRS 安装 系统环境: 操作系统:RedHat EL5 Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 二.CRS 安装   Cluster Ready Service是Oracle 构建RAC,负责集群资源管理的软件,在搭建RAC中必须首先安装. 安装需采用图形化方式,以Oracle用户的身份安装(在node1上): 注意:修改安装配置文

RedHat EL5 安装Oracle 10g RAC之--Oracle软件安装

系统环境: 操作系统:RedHat EL5 Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 三.安装Orancle 软件   在构建.配置完成CRS以后,就可以安装Oracle软件 安装需采用图形化方式,以Oracle用户的身份安装(在node1上): 注意:修改安装配置文件,增加redhat-5的支持 [[email protected] install]$ pwd /home/oracle/dat

RedHat EL5 安装Oracle 10g RAC之--建库

RedHat EL5 安装Oracle 10g RAC之--建库 系统环境: 操作系统:RedHat EL5 Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 四.通过DBCA建立数据库 1.首先通过DBCA配置ASM磁盘组 [[email protected] install]$dbca 选择RAC环境建库 选择ASM磁盘组管理 创建ASM Instance ,注意选择用pfile ,易于管理 创建A

oracle linux 4.8安装oracle 10g rac环境之database安装

1.安装oracle database软件 [[email protected] ~]$ cd database/ [[email protected] database]$ ./runInstaller rac10g01节点: [[email protected] ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh Running Oracle10 root.sh script... The following environment variab

oracle linux 4.8安装oracle 10g rac环境之cluster安装

安装环境: 操作系统:oracle linux 4.8 64位 集群软件:10201_clusterware_linux_x86_64.cpio.gz 数据库:10201_database_linux_x86_64.cpio.gz cpu:1颗 内存:必须1.5G以上(一般是2G) 本地磁盘:20G(根分区17G,swap是4G,boot分区是512M) asm下载地址:http://www.oracle.com/technetwork/server-storage/linux/download

Oracle Study之--AMD CPU安装Oracle 11gR2 RAC错误

Oracle Study之--AMD CPU安装Oracle 11gR2 RAC错误 系统环境: 操作系统: RedHat  EL55     Oracle :     Oracle 11gR2 Grid +  Oracle 1.错误现象 [[email protected] install]# /u01/11.2.0/grid/root.shRunning Oracle 11g root.sh script... The following environment variables are 

redhat 下 oracle 10G RAC 集群 详细安装

在大家做RAC安装测试搭建环境时,没有存储环境下,我来教大家怎么采用虚拟机来安装 ORACLE 10 rac,这样可以让大家更快学习好 ORACLE 10 RAC ,我会把很详细的安装写给大家. 1.安装前的准备 准备需要软件 10201_clusterware_linux_x86_64.cpio.gz 10201_database_linux_x86_64.cpio.gz binutils-2.17.50.0.6-6.0.1.el5.x86_64.rpm oracleasm-2.6.18-16

Solaris 10(x86)构建Oracle 10g RAC之--配置系统环境(1)

系统环境: 操作系统:Solaris 10(x86-64) Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 一.操作系统环境 1.网络配置(在所有节点) [[email protected]:/]# cat /etc/inet/ipnodes  # # Internet host table # ::1     localhost        127.0.0.1       localhost