ASM Installation of Oracle Installation

Source: Internet
Author: User

ASM Installation of Oracle Installation


The last time we talked about building an Oracle environment, let's look at the installation of ASM automated storage Management in Oracle and the creation of ASM disks today.

ASM: Automated Storage Management (Asm,automatic Storage Management)

ASM is a great new feature in Oracle database 10g and provides a platform-agnostic way to provide services such as file systems, logical volume managers, and software RAID (disk arrays). ASM can stripe and mirror disks, enabling the addition or removal of disks as the database is loaded, and automatic balancing of I/O to remove "hotspots". It also supports direct and asynchronous I/O and uses the Oracle Data Manager API (simplified I/O system invocation Interface) introduced in Oracle9i.

ASM is not a common file system and can only be used for Oracle data files, redo logs, and control files. Files in ASM can be created and named either automatically by the database (by using the Oracle managed Files feature) or manually by DBAs. Because the operating system cannot access files stored in ASM, the only way to perform backup and restore operations on databases that use ASM files is through Recovery Manager (RMAN).

ASM is implemented as a separate Oracle instance, and it can only be accessed by other databases at run time. On Linux, ASM is only available if you are running the OCSSD service (installed by default by the Oracle Universal installer). ASM requires little memory: for most systems, it's generally more than 200 trillion.


Today we look at how to install Oracle in the ASM

The first step to download Oracleasm driver and installation package http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html

I was installed under the Redhat 5 X64 bit, so to find Redhat 5AS, download different drivers and packages according to different system

Then find the Intel EM64T (x86_64) architecture, found below this

oracleasm-2.6.18-308.el5-2.0.5-l.el5x86_64.rpm

oracleasmlib-2.0.4-1.el5.x86_64.rpm

oracleasm-aupport-2.1.8-1.el5x86_64.rpm

as , first step. ASM packages and drives are uploaded using the tool Linux the system goes , upload to your new directory , Permission Text 777,

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/58/C1/wKioL1S7xoXRmYZFAACOjzSWlpA475.gif "title=" Image 001.gif "alt=" Wkiol1s7xoxrmyzfaacojzswlpa475.gif "/>

after uploading, go to the system to check, check and install :

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/58/C1/wKioL1S74Rqz9fQxAAAZsuIBUqE663.gif "title=" Image 002.gif "alt=" Wkiol1s74rqz9fqxaaazsuibuqe663.gif "/>

Then start the installation, install the method using RPM installation, and install when the directory of all. RPM packages, as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/58/C4/wKiom1S74FKALBuhAAAcSXBcj34287.gif "title=" Image 003.gif "alt=" Wkiom1s74fkalbuhaaacsxbcj34287.gif "/>

If the installation is successful .

Configuring ASM

after the installation is successful, then start the configuration ASM Drive , How to configure it ?

input : /etc/init.d/oracleasm Configure configuration command,

The following red sections are manually entered

Default user Toown the Driver interface []: grid The driver's default user interface explains who this driver is for.

Default group Toown The Driver interface []: asmadmin driver Interface for default group

Start Oracle asmlibrary driver on Boot (y/n) [n]: y start at startup Oracle ASM Library Driver (y/n) [N]:y

Scan for oracleasm disks on boot (y/n) [y]: y Scan Oracle ASM on Boot disk (y/n) [Y]:y

Specific methods such as:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/58/C1/wKioL1S74TGB0XFhAABFwZ8WTSQ247.gif "title=" Image 004.gif "alt=" Wkiol1s74tgb0xfhaabfwz8wtsq247.gif "/>

After the configuration is complete,

Check:

Use the View ASM Configuration Status command:

/etc/init.d/oracleasm status

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/58/C1/wKioL1S74T-RFICcAAANk7aWMhE092.gif "title=" Image 005.gif "alt=" Wkiol1s74t-rficcaaank7awmhe092.gif "/>

there are two Yes , the explanation is that the configuration was successful.

How do you know if we've configured it?

Mount Take a look:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/58/C4/wKiom1S74Hez9zbiAAAuu2ZibwQ432.gif "title=" Image 006.gif "alt=" Wkiom1s74hez9zbiaaauu2zibwq432.gif "/>

you can see the last line, Oracleasmfs already mounted, indicating a successful configuration

After the configuration is successful??

ASM is the automatic management of the storage disk, so to have ASM proprietary ASM disk, we have to add a new five hard drives;

Turn off the computer and add five hard drives;

then change the five HDD to ASM the disk is ready.

Here's how:

First turn off the computer,

Edit the settings to add the hard drive.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/58/C1/wKioL1S74W3SEKONAABJmota-hY323.gif "title=" Image 008.gif "width=" height= "424" border= "0" hspace= "0" vspace= "0" style= "width:250px;height:424px;" alt= " Wkiol1s74w3sekonaabjmota-hy323.gif "/>650) this.width=650; src=" http://s3.51cto.com/wyfs02/M01/58/C4/ Wkiom1s74isj_r6iaaagleveoay750.gif "title=" Image 007.gif "alt=" Wkiom1s74isj_r6iaaagleveoay750.gif "/>

then start the system, fdisk–l Check the disk status

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/58/C1/wKioL1S74YuQ644KAABMEUtOR6g404.gif "title=" Image 009.gif "width=" "height=" 430 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:400px;height:430px; "alt=" Wkiol1s74yuq644kaabmeutor6g404.gif "/>

The five disks shown are: /dev/sdb , C , D , e , F, each disk has 20G

Then start partitioning and create space for five hard disk partitions

Fdisk/dev/sdb five disks to do this in turn

After entering the Disk Management interface,

N--------------------- à Creating Partitions

P--------------------- à Establish primary partition

1--------------------- à First Primary partition

all enter below default Create all Spaces

Then use W to save and exit

W------------------- à Save & Exit

Here's how:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/58/C4/wKiom1S74W3Sd3U1AABMpZuux6I122.gif "title=" Image 010.gif "alt=" Wkiom1s74w3sd3u1aabmpzuux6i122.gif "/>

Set up all five drives in turn, then take effect immediately.

Partprobe/dev/sdb , C , D , e , F

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/58/C1/wKioL1S74brgoQnZAAAT2zOpE_k038.gif "title=" Image 011.gif "alt=" Wkiol1s74brgoqnzaaat2zope_k038.gif "/>

For example, the disk has been created well;

then divide the five disks into ASM Disk

as follows: Create ASM Disk

/etc/init.d/oracleasm Createdisk DISK1/DEV/SDB1

Create Disk1 first disk partition name

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/58/C4/wKiom1S74UyhhATNAAAm3TpxDhE386.gif "title=" Image 012.gif "alt=" Wkiom1s74uyhhatnaaam3tpxdhe386.gif "/>

After you create it, check to see if the creation was successful.

/etc/init.d/oracleasm Listdisks

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/58/C4/wKiom1S74bDyVdimAAAMTwi3O20080.gif "title=" Image 013.gif "alt=" Wkiom1s74bdyvdimaaamtwi3o20080.gif "/>

Example: Five ASM disks have been created successfully

All right. Installing ASM and configuring ASM to create an ASM disk is complete. If you have other questions or articles, you can ask questions.

Summary: Installation ASM

1. Download and Upload to System ASM Package and drive

2. installation ASM

3. Configuration ASM

4. Create ASM Disk



This article from "and the line and Cherish" blog, declined reprint!

ASM Installation of Oracle Installation

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.