• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

安装oracle 11gR2单实例+ASM

mysql 搞代码 4年前 (2022-01-09) 22次浏览 已收录 0个评论

安装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 本文来源gaodaimacom搞#^代%!码&网*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即可

//注意:如果上述在执行./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

//如果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软件安装介绍

[root@ctp-dbserver db_1]# ./root.sh
Performing root user operation for Oracle 11g


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:安装oracle 11gR2单实例+ASM

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址