安装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即可
//注意:如果上述在执行./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
推荐阅读
-
RHEL5.6静默安装oracle11.2.0数据库实例脚本
-
oracle 11gR2 win64安装配置教程另附基本操作
-
在 Oracle Linux 6.5 上安装 Oracle 11g 单实例数据库
-
centos 6.5下安装oracle 11gR2与Oracle自动启动的配置
-
Ubuntu 16.04安装Oracle 11gR2入门教程图文详解
-
Oracle11gR2(ASM,UDEV)的RAC搭建安装
-
单节点oracle、ASM 详细安装步骤
-
002.Oracle安装部署-ASM
-
CentOS安装Oracle 11gR2(x64)
-
CentOS 6.4下安装Oracle 11gR2详细步骤(多图)