oracle部署asm 2份数据,安装oracle 11gR2单实例+ASM

安装oracle11gR2单实例+ASM,让新手走向数据库管理员一、介绍因业务需要,最近在主系统的基础上搭建一套mini系统,本文只讲ORACLE数据库+ASM磁盘管理工具的安装

安装oracle 11gR2单实例+ASM ,让新手走向数据库管理员

一、介绍

因业务需要,最近在主系统的基础上搭建一套mini系统,本文只讲ORACLE数据库+ASM磁盘管理工具的安装;

1.服务器系统版本:RHEL 5.5 x64Bit ,kernel 2.6.18-194.el5

2.磁盘分区格式: LVM+裸设备

3.ORACLE软件版本: p10404530_112030_Linux-x86-64

4.ASM 组件版本: oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm

oracleasmlib-2.0.4-1.el5.x86_64.rpm

oracleasm-support-2.1.7-1.el5.x86_64.rpm

二、安装实施准备

1.创建ORACLE用户和组成员

groupadd oinstall

groupadd dba

groupadd oper

groupadd asmadmin

groupadd asmdba

groupadd asmoper

useradd -g oinstall -G dba,asmdba,oper -d /home/oracle oracle

useradd -g oinstall -G dba,asmadmin,asmdba,asmoper -d /home/grid grid

2.分别创建oracle、grid用户的密码

passwd oracle

new unix password:

/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl

To configure Grid Infrastructure for a Cluster execute the following command:

/u01/app/11.2.0/grid/crs/config/config.sh

This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.

[root@ctp-dbserver grid]#

6.图形界面使用asmca创建ASM磁盘组

$asmca

//asmca创建ASM磁盘介绍

//因在硬件上采用了raid5做冗余,再此将选External即可

114717f24a91c625b1c845bd96b1427d.png

8ee24b7010ec968228b5045092c5ea65.png

353868b383efcea51dcb3b351ade61cc.png

0ec108231f64704f93603a85f8686f5b.png

802bdf99c902653f6cca0df1a82ad67c.png

//注意:如果上述在执行./root.sh后没有执行,香港虚拟主机,/u01/app/11.2.0/grid/crs/install/roothas.pl

//那么将会出现:

Oracle Grid Infrastructure is not configured properly. ASMCA needs Oracle Grid Infrastructure to configure ASM.

//如果你错过了,那么现在执行还来得及;

[root@ctp-dbserver install]# ./roothas.pl

Using configuration parameter file: ./crsconfig_params

Creating trace directory

User ignored Prerequisites during installation

LOCAL ADD MODE

Creating OCR keys for user 'grid', privgrp 'oinstall'..

Operation successful.

LOCAL ONLY MODE

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

CRS-4664: Node ctp-dbserver successfully pinned.

Adding Clusterware entries to inittab

ctp-dbserver 2012/10/29 02:03:01 /u01/app/11.2.0/grid/cdata/ctp-dbserver/backup_20121029_020301.olr

Successfully configured Oracle Grid Infrastructure for a Standalone Server

[root@ctp-dbserver install]#

//执行roothas.pl 脚本后,再检查has进程是否启动;

#ps -ef |grep has

//确定进程已经启动后,再图形下执行Create ASM

0e6fae6dfe48cb5b29386f9b870de782.png

d583134bd3c02a22d40889d961f26077.png

05eaf44a41141f604b43f78ed708103f.png

//如果grid安装顺利,那么可以泡杯红茶休息一下,后面都是很容易的了。

7.使用Oracle用户图形下安装oralce软件

[oracle@ctp-dbserver ]$ cd /u02/

[oracle@ctp-dbserver ]$unzip p10404530_112030_Linux-x86-64_1of7.zip

[oracle@ctp-dbserver ]$unzip p10404530_112030_Linux-x86-64_2of7.zip

[oracle@ctp-dbserver database]$./runInstaller

//oracle软件安装介绍

6b1f09dd2eef97df4582b753959142e7.png

6d247da35eda418b9b39a501a75fe03b.png

aa66912a7e956c93cfdee9a83e1bee98.png

68441df42b30bf1e67afd9e541113693.png

b9029845c45609cce055912c12e26508.png

5cf0a025a5f5f453e9c37e7012a121a9.png

400e735381f186617ccff508dc184d61.png

19730fbbd880fc01bd29648ce74bf3f8.png

cd3353f524c390c595f355e992e5e553.png

38ace8ec09373ef10fb7089d6dbc0206.png

3ab49782e1d2118a416b6da493469eae.png

f521a827ec355e6a140e776d18f63f5e.png

[root@ctp-dbserver db_1]# ./root.sh

Performing root user operation for Oracle 11g

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值