In Oracle 10g, we can use the Asmlib library to create ASM instances, and Oracle has a lot more to offer than a separate download for the Enterprise Linux server image after Rhel 6. So we manage the device mappings used by Udev for ease of administration. In Oracle 11g, it is recommended to use Clusterware to manage resource conditions, and if we install a single instance of a grid, the configuration process is the same.
Software Environment:
1, check the basic information
[Email protected] ~]# Lsb_release-id
Distributor Id:redhatenterpriseserver
description:red Hat Enterprise Linux Server release 6.5 (Santiago)
[Email protected] ~]# cat/etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 :: 1 localhost localhost.localdomain localhost6 localhost6.localdomain610.24.34.37 rh-asm-37
2. Add user and group configuration environment variables
# groupadd-g Oinstall # groupadd-g 1300 DBA # groupadd-g 1301 Oper # groupadd-g-asmadmin # G Roupadd-g 1201 Asmdba # groupadd-g 1202 asmoper # useradd-m-u 1100-g oinstall-g asmadmin,asmdba,asmoper-d/ Home/grid-s/bin/bash-c "grid Infrastructure Owner" Grid # useradd-m-u 1101-g oinstall-g dba,oper,asmdba-d/hom E/oracle-s/bin/bash-c "Oracle software Owner" Oracle
3. Verify the user
# ID oracleuid=1101 (Oracle) gid=1000 (oinstall) groups=1000 (Oinstall), 1300 (DBA), 1301 (Oper), 1201 (ASMDBA) # ID griduid= 1100 (GRID) gid=1000 (Oinstall) groups=1000 (Oinstall), (Asmadmin), 1201 (ASMDBA), 1202 (Asmoper)
4. Modify User Password
# echo ' navinfo1! ' |passwd--stdin oracle# echo ' navinfo1! ' |passwd--stdin grid
5. Configuring Oracle and GRID environment variables
--grid User #---------------------------------------------------# bash_profile#----------------------------------- ----------------# OS user:grid# application:oracle grid infrastructure# version:oracle 11g Release------ ---------------------------------------------export Temp=/tmpexport tmpdir=/tmpexport oracle_sid=+asmexport grid_ Base=/u01/gridexport oracle_base= $GRID _baseexport grid_home=/u01/11.2.0/gridexport ORACLE_HOME= $GRID _homeexport LD _library_path= $ORACLE _home/lib:/lib:/usr/lib:/usr/local/lib Export classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlibexport oracle_path=/u01/oracle/dba_scripts/sql: $ORACLE _home/rdbms/adminexport SQLPATH=/ U01/oracle/dba_scripts/sql: $ORACLE _home/rdbms/adminexport path= $ORACLE _home/bin: $ORACLE _home/jdk/bin:/usr/sbin: $PATH: $HOME/binexport oracle_term=xtermstty Erase ^h--oracle User #-------------------------------------------------- -#. bash_profile#---------------------------------------------------# OS User:oracle# application:oracle Database software owner# version:oracle 11g Release-------------------------------------- -------------export Temp=/tmpexport tmpdir=/tmpexport oracle_unqname=rhnodeexport oracle_sid=rhnodeexport ORACLE_ Base=/u01/oracleexport oracle_home= $ORACLE _base/product/11.2.0/db_1export ld_library_path= $ORACLE _home/lib:/lib :/usr/lib:/usr/local/lib export classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlibexport ORACLE _path=/u01/oracle/dba_scripts/sql: $ORACLE _home/rdbms/adminexport sqlpath=/u01/oracle/dba_tools/dba_scripts/ Sqlexport path= $ORACLE _home/bin: $ORACLE _home/jdk/bin:/usr/sbin: $PATH: $HOME/binexport oracle_term=xtermstty Erase ^ H
Installation of 11g grid ASM Storage Management using Multipath and udev fixed disks