Installing Oracle ASM under Linux CentOS6.5

Source: Internet
Author: User

Oracle Version: Oracle 11g

1 . Determine your Linux version:

[[Email protected] ~] #uname-R

2.6.32-431.el6.x86_64

2.6.32-431.el6.x86_64, which is Linux 6

2, installation oracleasm Kernel:

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

3. Download two installation packages:oracleasmlib and 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. Install the two packages:

[[Email protected] ~] #rpm-IVH oracleasm*

5. Configuration:

[[Email protected] ~] #su Oracle

[Email protected] ~]#/etc/init.d/oracleasm Configure

Configuring the Oracle ASM Library driver.

This would configure the On-boot properties of the Oracle ASM Library

Driver. The following questions would determine whether the driver is

Loaded on boot and what permissions it would have. The current values

Would be shown in brackets (' [] '). Hitting without typing an

Answer would keep that current value. Ctrl-c'll 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]

If you want to close this ASM disk, which can be configured like this:

[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. prepare a piece of hard disk space for ASM :

You can first view the partitions using the Fdisk-l command.

I have a hard drive with no partitions for ASM,

Use the fdisk-l command to see this hard drive called SDC, and then we start to partition this hard drive:

[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'll remain in memory only, until the decide to write them.

After that, of course, the previous content won ' t is recoverable.

Warning:invalid flag 0x0000 of partition Table 4 would be a corrected by W (rite)

Warning:dos-compatible mode is deprecated. It ' s strongly recommended to

Switchoff the Mode (command ' C ') and change display units to

Sectors (Command ' u ').

Command (M for help): M

Commandaction

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 ( create a fresh 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

Commandaction

E Extended

P primary partition (1-4)

Because ASM requires a primary or logical partition, you can only select P:

Command (M for help): P

PartitionNumber (1-4): 2

Firstcylinder (1-121601, default 1):

Usingdefault value 1

Lastcylinder, +cylinders or +size{k,m,g} (1-121601, default 121601):

Usingdefault value 121601

Execute the fdisk-l command again to view the partition:

disk/dev/sdc:1000.2 GB, 1000204886016 bytes

255heads, Sectors/track, 121601 cylinders

units= Cylinders of 16065 * 8225280 bytes

SectorSize (logical/physical): bytes/512 bytes

I/osize (minimum/optimal): bytes/512 bytes

Diskidentifier:0x881f3ea8

Deviceboot Start End Blocks Id System

/DEV/SDC2 1 121601 976760001 Linux

7. allocate the hard disk space to ASM:

To view a disk group:

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

VOL1

Create a new disk group VOL2 and assign it to ASM:

[Email protected]/]#/etc/init.d/oracleasm createdisk vol2/dev/sdc2

Creating Oracle ASM Disk "VOL2" [OK]

Installing Oracle ASM under Linux CentOS6.5

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.