文档库 最新最全的文档下载
当前位置:文档库 › hacmp oracle安装

hacmp oracle安装

目录

第一部分aix系统的安装 (1)

1、操作系统需要的安装包 (1)

2、oracle数据需要的程序安装包 (1)

3、系统备份 (1)

4、系统调优 (2)

5、给内置磁盘作镜像 (2)

6、首先,分别将心跳线连接两台主机的串口3上 (3)

第二部分HACMP安装过程 (4)

1、软件环境 (4)

1.1 AIX 5300-08 (4)

1.2 HAMCP 5.4.1 (4)

2、硬件环境 (4)

3、系统环境 (4)

3.1 /etc/hosts (4)

3.2 /.rhosts (5)

4、配置HACMP 以下操作只需在一个节点上操作即可 (5)

4.1 配置网络拓朴 (5)

4.1.1 配置Cluster Name (5)

4.1.2 配置Cluster节点 (5)

4.1.3 配置HACMP网络 (6)

4.1.4 添加网络到Cluster (7)

4.2 配置HACMP资源 (9)

4.2.1 配置资源 (9)

4.2.2 配置资源组 (10)

5、校验并同步HACMP配置 (13)

6、启动/停止HACMP (13)

6.1 启动HACMP(快速路径:#smitty clstart) (13)

6.2 停止HACMP(快速路径:#smitty clstop) (14)

7、测试HACMP(这里仅为模拟测试) (14)

第三部分oracle的安装 (15)

1、oracle用户的建立 (15)

2、单机安装步骤 (15)

第四部分启动双机方式说明 (26)

1、启动HACMP(快速路径:#smitty clstart) (26)

2、停止HACMP(快速路径:#smitty clstop) (26)

第一部分aix系统的安装

1、操作系统需要的安装包

bos.adt bos.alt_disk_install bos.sysmgt bos.rte bos.data https://www.wendangku.net/doc/dc15510082.html,pat bos.mh bos.dlc bos.lrn

bos.dosutil https://www.wendangku.net/doc/dc15510082.html, bos.perf bos.acct ipfx.rte perl.rte perfagent.tools https://www.wendangku.net/doc/dc15510082.html,pat X11.vsm.rte rsct.basic https://www.wendangku.net/doc/dc15510082.html,pat

2、oracle数据需要的程序安装包

bos.adt.base

bos.adt.lib

bos.adt.libm

bos.perf.libperfstat

bos.adt.base,

bos.perf.perfstat

bos.,d-fs

Clvm

Rsct.opt.storagerm

3、系统备份

Smitty mksysb

volume group.

* Backup DEVICE or FILE [/dev/rmt0] +/

Create MAP files? yes +

EXCLUDE files? no +

List files as they are backed up? no +

Generate new /image.data file? yes +

EXPAND /tmp if needed? no +

Disable software packing of backup? no +

Number of BLOCKS to write in a single output [ ] # (Leave blank to use a system default)

#smit update_all //升级补丁

[Entry Fields]

* INPUT device / directory for software [/dev/cd0]

* SOFTWARE to update _update_all

PREVIEW only? (update operation will NOT occur) no

COMMIT software updates? no

SA VE replaced files? yes

AUTOMATICALL Y install requisite software? yes

EXTEND file systems if space needed? yes

VERIFY install and check file sizes? no

#inutoc .//如果从ibm网站下载补丁,

#oslevel –r

4、系统调优

/etc/security/limits

Smitty aio

修改nim 10

Max 20

修改/etc/security/limits

Default filesize = -1

5、给内置磁盘作镜像

5.1然后执行smitty mirrorvg,各域值如下所示:

Mirror a Volume Group

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[Entry Fields] * VOLUME GROUP name rootvg

Mirror sync mode [Background]

PHYSICAL VOLUME names [hdisk1]

Number of COPIES of each logical partition 2

Keep Quorum Checking On? no

Create Exact LV Mapping? No

5.2执行bosboot –ad /dev/hdisk* ;

5.3执行bootlist把镜像盘加入到启动列表中;

6、首先,分别将心跳线连接两台主机的串口3上

# smitty tty

Add a TTY

Rs232 Asynchronous Terminal

sa2 Available 01-S3 Standard I/O Serial Port

屏幕显示

Add a TTY

TTY type fedwtty

TTY interface rs232 Description Asynchronous Trminal

Parent adapter sa0

* PORT number [0]+

Enable LOGIN disable+

BAUD rate [9600]+ PARITY [none]+

BITS per character [8]+

Number of STOP BITS [1]+

其他选项使用缺省值

在第二台主机上同样方法配置一个TTY

测试tty

分别在两台主机上执行 stty < /dev/tty0

出现以下信息说明正确

speed 9600 baud; -parity hupcl

eof = ^A; eol2 = ^?

brkint -inpck -istrip -ixany ixoff -opost

-isig -icanon -echo echoe -echok

Hacmp配置资料:

NODE p52A:

Network net_diskhb_01

p52A_hb_disk /dev/hdisk4

Network net_ether_01

Svc_ip 10.11.33.1

p52A_boot 192.168.169.127

p52A_stb 10.66.5.127

network net_rs232_01

p52A_rs232 /dev/tty0

NODE p630:

Network net_diskhb_01

p630_hb_disk /dev/hdisk4

Network net_ether_01

svc 10.11.33.1

p630_boot 192.168.169.128

p630_stb 10.66.5.128

network net_rs232_01

p630_rs232 /dev/tty0

/////////////////////////////////////////////////////////////////////////////// 第二部分HACMP安装过程

1.软件环境

1.1AIX 5300-08

1.2HAMCP 5.4.1

2.硬件环境

P52A一台、p630一台

DS4700存储一台

串口线一根

3.系统环境

3.1/etc/hosts

127.0.0.1 loopback localhost p52A(另一节点为p630)

10.66.5.127p52A_stb gaoxian52A

10.66.5.128p630_stb gaoxian630

192.168.169.127p52A_boot gaoxian52A

192.168.169.128p630_boot gaoxian630

10.11.33.1 svc_ip

3.2/.rhosts

+oracle

3.3 /etc/hosts.equiv

+ oracle

4.配置HACMP 以下操作只需在一个节点上操作即可

4.1 配置网络拓朴

4.1.1 配置Cluster Name

# smitty hacmp

Extended Configuration

Extended Topology Configuration

Configure an HACMP Cluster

Add/Change/Show an HACMP Cluster

* Cluster Name [GXcluster]

4.1.2 配置Cluster节点

# smitty hacmp

Extended Configuration

Extended Topology Configuration

Configure HACMP Nodes

Add a Node to the HACMP Cluste

*NodeName [Node1]

Communication Path to Node [p52A_boot] + 以同样方法将Node2添加到Cluster中

*NodeName [Node2]

Communication Path to Node [p630_boot] +

4.1.3配置HACMP网络

4.1.3.1创建IP网络

# smitty hacmp

Extended Configuration

Extended Topology Configuration

Configure HACMP Networks

Add a Network to the HACMP Cluster

* NetworkName [net_ether_01]

* NetworkType ether

* Netmask [255.255.255.0] +

* Enable IP Address Takeover via IP Aliases [Yes] +

IP Address Offset for Heartbeating over IP Aliases [] +

* Enable IP Address Takeover via IP Aliases [Yes] 此选项决定了HACMP的IP切换方式,但值得一提的是只有“boot”、“standby”、“ser vice”三个IP分别为三个不同网段时必须选用IP Aliases方式。如果“boot”、“standby”其中一个与“service”为同一个网段时必须选用IP Replace,则此选项应选“NO”。

4.1.3.2创建串口心跳网络

# smitty hacmp

Extended Configuration

Extended Topology Configuration

Configure HACMP Networks

Add a Network to the HACMP Cluster

* NetworkName [net_rs232_01]

* Network Type rs232

4.1.3.3创建磁盘心跳网络

# smitty hacmp

Extended Configuration

Extended Topology Configuration

Configure HACMP Networks

Add a Network to the HACMP Cluster

* Network Name [net_diskhb_01]

* Network Type diskhb

4.1.4添加网络到Cluster

4.1.4.1创建IP通信接口

# smitty hacmp

Extended Configuration

Extended Topology Configuration

Configure HACMP Networks

Configure HACMP Communication Interfaces/Devices

Add Communication Interfaces/Device

Add Pre-defined Communication Interfaces and Devices

Communication Interfaces

* IP Label/Address [p52A_boot] +

* Network Type ether

* Network Name net_ether_01

* Node Name [Node1] +

Network Interface []

同样方法添加另一个通信接口到”net_ether_01”

* IP Label/Address [p630_boot] +

* Network Type ether

* Network Name net_ether_01

* Node Name [Node2] +

Network Interface []

同样方法添加另一个通信接口到”net_ether_01”

* IP Label/Address [p52A_stb] +

* Network Type ether

* Network Name net_ether_01

* Node Name [Node1] + Network Interface []

同样方法添加另一个通信接口到”net_ether_01”

* IP Label/Address [p630_stb] +

* Network Type ether

* Network Name net_ether_01

* Node Name [Node2] + Network Interface []

4.1.4.2 创建串口通信设备

# smitty hacmp

Extended Configuration

Extended Topology Configuration

Configure HACMP Networks

Configure HACMP Communication Interfaces/Devices

Add Communication Interfaces/Device

Add Pre-defined Communication Interfaces and Devices Communication Devices

* Device Name [rs232_node_a]

* Network Type rs232

* Network Name net_rs232_01

* Device Path [/dev/tty0]

* Node Name [Node1] +

以同样方法创建另一个串口通信设备

* Device Name [rs232_node_b]

* Network Type rs232

* Network Name net_rs232_01

* Device Path [/dev/tty0]

* Node Name [Node2] +

4.1.4.3创建磁盘通信设备

# smitty hacmp

Extended Configuration

Extended Topology Configuration

Configure HACMP Networks

Configure HACMP Communication Interfaces/Devices

Add Communication Interfaces/Device

Add Pre-defined Communication Interfaces and Devices

Communication Devices

* Device Name [diskhb_node_a]

* Network Type diskhb

* Network Name net_diskhb_01

* Device Path [/dev/hdisk4]

* Node Name [Node1] + 同样方法创建另一个磁盘通信设备

* Device Name [diskhb_node_b]

* Network Type diskhb

* Network Name net_diskhb_01

* Device Path [/dev/hdisk4]

* Node Name [Node1] + 做磁盘心跳的磁盘必须将VG创建为Concurrent模式

4.2 配置HACMP资源

4.2.1配置资源

4.2.1.1创建Applications Servers

# smitty hacmp

Extended Configuration

Extended Resource Configuration

HACMP Extended Resources Configuration

Configure HACMP Applications Servers

Add an Application Server

* Server Name [oraapp]

* Start Script [/home/oracle/orastart.sh]

* Stop Script [/home/oracle/orastop.sh] 需要手动在两个节点上建立“/home/oracle/orastart.sh”、“/home/ora cle/orastop.sh”并保证其有执行权限。如果是双机互备的话需要建立两个App Server。方法相同。

4.2.1.2创建Service IP

# smitty hacmp

Extended Configuration

Extended Resource Configuration

HACMP Extended Resources Configuration

Configure HACMP Service IP Labels/Addresses

Add a Service IP Label/Address

Configurable on Multiple Nodes

* IP Label/Address svc_ip +

* Network Name net_ether_01

Network Name:“net_ether_01”决定了与之对应的Service IP默认在哪个网卡上启动。

4.2.2配置资源组

4.2.2.1创建资源组

# smitty hacmp

Extended Configuration

Extended Resource Configuration

Add a Resource Group

* Resource Group Name [orarsg] Particip ating Nodes (Default Node Priority) [Node1 Node2] + Startup Policy Online On Home Node O> +

Fallover Policy Fallover To Next Prio> +

Fallback Policy Fallback To Higher Pr> +

如果是双机互备的话以同样方法建立另一个资源组

* Resource Group Name [oraclevg]

Participating Nodes (Default Node Priority) [Node1 Node2] +

“Participating Nodes”选项决定了资源组中节点的优先级,写在前面的节点其优先级高于后面的节点。

根据实际需求决定资源组的:“Startup Policy”、“Fallover Policy”、“Fallback Policy”。

Startup Policy:

Online On Home Node Only:只在主节点启动。在“Participating N odes”中写在第一位的节点启动。

Online On First Available Node:在第一个启动的节点启动。在“Participa ting Nodes”中所选择的所有节点中最先启动的节点上启动。

Online Using Distribution Policy:按照分布策略启动

Online On All Available Nodes:在所有启动的节点中启动。做并发群集时选择此项。如:Oracle RAC

Fallover Policy:

Fallover To Next Priority Node In The List:节点失败时资源组迁移到下一优先级节点

Fallover Using Dynamic Node Priority:节点失败时动态选择迁移节点

Bring Offline (On Error Node Only):将资源组下线

Fallback Policy:

Fallback To Higher Priority Node In The List:节点恢复时资源组返回优先级高的节点

Never Fallback:不进行资源组回迁

4.2.2.2配置资源组属性

# smitty hacmp

Extended Configuration

Extended Resource Configuration

Change/Show Resources and Attributes for a Resource Group

Resource Group Name orarsg Participating Nodes (Default Node Priority) Node1 Node2 Startup Policy Online On Home Node O> Fallover Policy Fallover To Next Prio>

Fallback Policy Fallback To Higher Pr>

Fallback Timer Policy (empty is immediate) [] +

Service IP Labels/Addresses [svc_ip ] + Application Servers [oraapp] +

Volume Groups [oraclevg] + Use forced varyon of volume groups, if necessary false +

Automatically Import Volume Groups ture +

Filesystems (empty is ALL for VGs specified) [] +

Filesystems Consistency Check fsck +

Filesystems Recovery Method sequential +

Filesystems mounted before IP configured false +

Filesystems/Directories to Export [] +

Filesystems/Directories to NFS Mount [] Network For NFS Mount [] +

Tape Resources [] +

Raw Disk PVIDs [] +

Fast Connect Services [] +

Communication Links [] + Primary Workload Manager Class [] + Secondary Workload Manager Class [] +

如果是双机互备以同样方法修改另一个资源组属性

5.校验并同步HACMP配置

# smitty hacmp

Extended Configuration

Extended Verification and Synchronization

* Verify, Synchronize or Both [Both] +

* Automatically correct errors found during [Interactively] +

verification? * Force synchronization if verification fails? [No] +

* Verify changes only? [No] +

* Logging [Standard] +

6.启动/停止HACMP

6.1启动HACMP(快速路径:#smitty clstart)

# smitty hacmp

System Management (C-SPOC)

Manage HACMP Services

Start Cluster Services

* Start now, on system restart or both now Start Cluster Services on these nodes [Node1 Node2] * Manage Resource Groups Automatically BROADCAST message at startup? true Startup Cluster Information Daemon? false Ignore verification errors? falsb Automatically correct errors found during Interactively cluster start?

6.2停止HACMP(快速路径:#smitty clstop)

# smitty hacmp

System Management (C-SPOC)

Manage HACMP Services

Stop Cluster Services

* Stop now, on system restart or both now +

Stop Cluster Services on these nodes [Node1 Node2] +

BROADCAST cluster shutdown? True + *Select an Action on Resource Groups Move Resource Groups +

7.测试HACMP(这里仅为模拟测试)

# smitty hacmp

Extended Configuration

HACMP Cluster Test Tool

Execute Automated Test Procedure

Verbose Logging [Yes] +

Cycle Log File [Yes] +

Abort On Error [No] + 执行测试前先将Cluster停止,否则HACMP的启动测试将无法执行。

在执行测试过程中可以使用“tail –f /tmp/hacmp.out”来查看HACMP的日志。

///////////////////////////////////////////////////////////////////////////////////////////// 第三部分oracle的安装

1、oracle用户的建立

在两台服务器上分别建立:

新建用户组dba id 301

新建用户oracle id300 ,组id 301 ,组集301、202、203

Hacmp 共享卷组:oraclevg,

其中存在文件系统

Smitty crfs

Oradata jfs2格式,大小为200g

Backup jfs2格式,大小为100g

Oracle安装目录/oracle文件系统

Oracle jfs2格式大小10g

Chown oracle:dba /oracle

Chown oracle:dba /oradata

Chown oracle:dba /backup

2.单机安装步骤

2.1用root用户登录;

2.2打开一个命令操作窗口(dtterm窗口);

2.3用su – oracle 命令切换到oracle用户;

2.4编辑/home/oracle/.profile 文件,在文件中加入如下内容:

时/home/oracle/.profile 文件能生效;

2.6退出桌面环境用oracle用户登录;如下图所示:

2.7打开一个命令操作窗口(dtterm窗口);

2.8将Oracle 9i第一张光盘放入CD_ROM;

2.9用su 命令切换到root用户;

2.10运行mount /cdrom命令:#mount /cdrom

2.11运行/cdrom/.rootpre.sh命令:#./cdrom/rootpre.sh

2.12退出root用户:#exit;

2.13运行/cdrom/runIstaller命令(不能在/cdrom目录下运行该命令,否则会占用/cdrom的资源,导致不能换盘):

$./cdrom/runIstaller

会问你是否运行了rootpre.sh,输入y,如下所示:

2.14安装程序会弹出一个Oracle Universal Installer窗口,点击Next,如下图所示:

相关文档
相关文档 最新文档