Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install ASM (RHEL5) on Oracle 11g

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Oracle 11g installation

Slightly

For more information, please refer to:

Http://blog.sina.com.cn/s/blog_7c5a82970101excf.html

2. Install Oracleasm software package

Rpm-ivh oracleasm-support-2.1.7-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm

There are three of them

Download location:

Http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html

3. Configure oracleasm and install disk groups

/ etc/init.d/oracleasm configure

/ etc/init.d/oracleasm createdisk V1 / dev/sdb1

/ etc/init.d/oracleasm createdisk V2 / dev/sdc1

4. Install Oracle Grid Infrastructure

(1) configure grid users

Vim / etc/security/limits.conf

-

# Oracle configure shell parameters

Oracle soft nofile 65536

Oracle hard nofile 65536

Oracle soft nproc 16384

Oracle hard nproc 16384

Grid soft nofile 65536

Grid hard nofile 65536

Grid soft nproc 16384

Grid hard nproc 16384

Vim / home/grid/.bashrc

Export ORACLE_HOME=/u01/app/11.2.0/grid

Export PATH=$ORACLE_HOME/bin:$PATH

Export ORACLE_OWNER=oracle

Export ORACLE_SID=+ASM

Export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

Export PATH=$ORACLE_HOME/bin:$PATH

Export LANG=en_US

Alias sqlplus='rlwrap sqlplus'

Alias lsnrctl='rlwrap lsnrctl'

Alias asmcmd='rlwrap asmcmd'

(2) oracle and grid users should belong to the corresponding user groups respectively

Useradd-g oinstall-G dba,oper,asmdba,asmadmin oracle

Useradd-g oinstall-G dba,asmadmin,asmdba,asmoper grid

(3) install the software

. / runInstaller

Select Install and Configure Gride Infrastructure for a Standalone Server

(4) specify disk location

/ dev/oracleasm/disks

5. Use dbca to create ASM-based instances

Note:

Be sure to have oracle in oinstall and asmadmin groups and asmdba, otherwise creating a database under oracle users will not recognize oracleasm disk groups

If an error occurs with asmca needs oracle grid infrastructure to configure asm. This is generally due to common problems with installing grid on a single node. One way is to rerun runInstaller under grid (not recommended).

Another way is to execute a Perl script / u01/app/grid/product/11.2.0/grid/perl/bin/perl-I / u01/app/grid/product/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 after installation

That's all right.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report