Linux CentOS6.5下安装Oracle ASM

Oracle版本:Oracle 11g

1、确定自己的Linux版本:

[[email protected] ~]#uname -r

2.6.32-431.el6.x86_64

2.6.32-431.el6.x86_64,即Linux 6

2、安装Oracleasm Kernel:

[[email protected] ~]# yum install kmod-oracleasm

3、下载两个安装包:oracleasmlib和oracleasm-support

[[email protected] ~]#wget http://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/rhel6/amd64/2.1.8/oracleasm-support-2.1.8-1.el6.x86_64.rpm

[[email protected] ~]#wget http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el6.x86_64.rpm

4、安装这两个包:

[[email protected] ~]#rpm -ivh oracleasm*

5、配置:

[[email protected] ~]#su oracle

[[email protected] ~]#/etc/init.d/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 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

Fix permissions of Oracle ASM disks on boot (y/n) [y]: y

Writing Oracle ASM library driver configuration [ OK ]

Creating /dev/oracleasm mount point [ OK ]

Loading module "oracleasm" [ OK ]

Mounting ASMlib driver filesystem [ OK ]

Scanning system for ASM disks [ OK ]

如果想关闭这个ASM磁盘,可以这样配置:

[[email protected] /]# /etc/init.d/oracleasm disable

Writing Oracle ASM library driver configuration [ OK ]

Unmounting ASMlib driver filesystem [ OK ]

Unloading module "oracleasm" [ OK ]

[[email protected] /]# /etc/init.d/oracleasm enable

Writing Oracle ASM library driver configuration [ OK ]

Loading module "oracleasm" [ OK ]

Mounting ASMlib driver filesystem [ OK ]

Scanning system for ASM disks [ OK ]

6、为ASM准备一块硬盘空间:

首先可以使用fdisk -l命令查看分区,

我这里为ASM准备了一块还没有分区的硬盘,

使用fdisk -l命令看到这块硬盘叫sdc,然后我们开始给这块硬盘分区:

[[email protected] ~]# fdisk /dev/sdc

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel with disk identifier 0x3c1761b2.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won‘t be recoverable.

Warning:
invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING:
DOS-compatible mode is deprecated. It‘s strongly recommended to

switch
off the mode (command ‘c‘) and change display units to

sectors
(command ‘u‘).

Command
(m for help): m

Command
action

a
toggle a bootable flag

b
edit bsd disklabel

c
toggle the dos compatibility flag

d
delete a partition

l
list known partition types

m
print this menu

n
add a new partition(创建新分区)

o
create a new empty DOS partition table

p
print the partition table

q
quit without saving changes

s
create a new empty Sun disklabel

t
change a partition‘s system id

u
change display/entry units

v
verify the partition table

w
write table to disk and exit

x
extra functionality (experts only)

Command
(m for help): n

Command
action

e
extended

p
primary partition (1-4)

因为ASM要求必须是主分区或逻辑分区所以只能选p:

Command (m for help): p

Partition
number (1-4): 2

First
cylinder (1-121601, default 1):

Using
default value 1

Last
cylinder, +cylinders or +size{K,M,G} (1-121601, default 121601):

Using
default value 121601

再次执行fdisk -l命令查看分区:

Disk
/dev/sdc: 1000.2 GB, 1000204886016 bytes

255
heads, 63 sectors/track, 121601 cylinders

Units
= cylinders of 16065 * 512 = 8225280 bytes

Sector
size (logical/physical): 512 bytes / 512 bytes

I/O
size (minimum/optimal): 512 bytes / 512 bytes

Disk
identifier: 0x881f3ea8

Device
Boot Start End Blocks Id System

/dev/sdc2
1 121601 976760001 83 Linux

7、将硬盘空间分配给ASM:

查看磁盘组:

[[email protected] /]# /etc/init.d/oracleasm listdisks

VOL1

新建一个磁盘组VOL2并分配给ASM:

[[email protected] /]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdc2

Creating Oracle ASM disk "VOL2" [ OK ]

时间: 2024-12-27 08:48:36

Linux CentOS6.5下安装Oracle ASM的相关文章

Oracle Linux 6.3下安装Oracle 11g R2(11.2.0.3)

本文主要描述了在Oracle Linux 6.3下安装Oracle 11gR2(11.2.0.3).从Oracle 11g开始,Oracle官方网站不再提供其Patch的下载链接,需要使用Meatlink账户才可以进行下载.童鞋们不要着急,没有Metalink账户的也可以自己百度一下,网上有很多下载链接,迅雷就可以搞定了.Oracle 11.2.0.3整合为7个zip压缩包,如果仅仅是安装Oracle Database,下载1至2.zip包即可.下面是其安装步骤. 一.准备安装环境1.安装rpm

Linux 6.3下安装Oracle Enterprise Cloud Control 12c

Oracle enterprise cloud control 12c的安装是一个比较复杂的过程,因为他需要依赖于Oracel database以及Oracle Weblogic.现在Oracle已经整合了Weblogic到cloud control安装包中还是省事很多,本文是基于Oracle Linux 6.3上安装Oracle enterprise cloud control 12c,以下是具体描述. 1.安装前的准备a) os安装参考   Virtual Box下安装Oracle Linu

Linux 命令符下安装Oracle

之前都是使用脚本直接安装,这样很容易出现出现问题 不知道排错, 于是尝试在linux 下手动分步安装, 内部有些原理并不是很懂, 待慢慢完善, 最好是多安装几次图形化安装,理解原理. 一.准备安装的环境: 1.硬件: centos 6.5 Oracle database 11g /db  分区大于10G /free  内存大于2G 2.Oracle 的安装的两个软件包: linux.x64_11gR2_database_2of2.zip linux.x64_11gR2_database_1of2

virtualbox+oracle linux 6.3 下安装oracle 11.2.3.0

闲来无事,今天在虚拟机下安装了oracle11g的单实例,特此记录分享下! 用到的软件:VirtualBox-4.0.8-71778-Win.exe     oracle linux 6.3(V33411-01.iso) oracle11g(p10404530_112030_Linux-x86-64_1of7.zip, p10404530_112030_Linux-x86-64_2of7.zip) 一.安装linux. 虚拟机配置的是:1g内存,30g硬盘,一块网卡(host-only模式) 检

Linux(centos6.5)下安装jenkins

Jenkins 的前身是 Hudson 是一个可扩展的持续集成引擎. 通俗的来讲,jenkins就是一个可以实现自动化部署的一个插件, 对于我来说,也是应用在系统部署上. 废话不多说,直接进入我们的安装步骤吧 1.安装JDK,maven环境搭建 因为考虑到jenkins的实际应用场景,我们需要把这些基础环境先安装完成. jdk安装比较简单不做赘述,maven环境借用了osc其他大侠的博客内容, 试了下安装成功. maven官网下载安装包:http://maven.apache.org/downl

Linux(Centos6.5)下安装svn服务器,并通过http访问

目录[-] 安装: 配置: linux安装svn其实很容易,个人觉得难就难在配置上,反复配置,琢磨,查找相关资料,总算是成功了.. 安装: 安装svn,一般情况下,选择yum方式安装还是比较简单的. ? 1 2 [[email protected] ~] # yum -y install mod_dav_svn #会自动安装mod_dav_svn及其依赖包:mod_dav_svn-1.6.11-9,neon-0.29.3-2,pakchois-0.4-3.2,subversion-1.6.11-

linux centos6.5下安装svn方法

这几天一直在搭建svn,网上搜索了很多资料,没有一个是完整的,于是我就自己整理了一份安装手册,记录下来,第一是给自己做一个笔记,第二是给大家一个参考. 下面是简单的目录说明: subversion目录说明:*dav目录:是提供apache与mod_dav_svn使用的目录,让他们存储内部数据*db目录:就是所有版本控制的数据存放文件*hooks目录:放置hook脚本文件的目录*locks目录:用来放置subversion见艰苦锁定数据的目录,用来追踪存取文件库的客户端*format文件:是一个文

Linux(Centos6.9) 下安装了Redis 宿主机不能访问问题

搞定这个问题着实不易啊,说出来都是泪,宝宝心里苦!!! 下面是解决步骤: 1.注释掉bind 127.0.0.1 因为配置文件绑定了本地ip,该配置会导致,其他ip访问被拒绝,所以我们把它注释掉 2.将protected-mode yes改为protected-mode no 因为默认情况下redis运行在保护模式(这种模式下,访问不需要密码),但是这种模式只允许本地回路访问 3.做了2中的操作之后需要给redis设置密码:requirepass xxx(密码) 4.关闭防火墙:service

Linux下安装Oracle 11g

1.环境 VMware 10 CentOS-6.3-x86_64 Oracle:linux.x64_11gR2 硬件上我分了2.5G的内存,30G硬盘(应该不需要这么大)2个U 2. 2.1 先把系统装上,root登陆之后需要改掉系统设置: setup命令关掉防火墙 vi /etc/selinux/config 把SELINUX的值改成disabled,然后wq存盘退出 2.2 查阅了我下载的11G的文档里面linux下Oracle需要的软件(E11882_01,貌似解压了有2.22G)列表如下