1. Check that the df-htmp space must be greater than 1 GB of available temporary space. The disk space must be greater than 20 GB. 2. vietcsysctl. conf describes the Minimum requirements. If you find that the existing parameters are larger than this, you do not have to modify them. Fs. aio-max-nr1048576fs.file-max6815744kernel.shmall2097152kernel.shm
1. Check that the df-h/tmp space must be greater than 1 GB of available temporary space. The disk space must be greater than 20 GB. 2. What is described in vi/etc/sysctl. conf is the minimum requirement. If you find that the existing parameter is larger than this, you do not have to modify it. Fs. aio-max-nr = 1048576 fs. file-max = 6815744 kernel. shmall = 2097152 kernel. shm
1. Check that the df-h/tmp space must be greater than 1 GB of available temporary space. The disk space must be greater than 20 GB.
2. vi/etc/sysctl. conf
The following describes the minimum requirement. If you find that the existing parameter is greater than this, you do not need to modify it.
Fs. aio-max-nr = 1048576
Fs. file-max = 6815744
Kernel. shmall = 2097152
Kernel. shmmax = 536870912
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 1024 65500
Net. core. rmem_default = 262144
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048586
Reload Parameters
Sysctl-p
3. vi/etc/security/limits. conf
The following is the minimum recommended configuration.
Grid soft nproc 2047
Grid hard nproc 16384
Grid soft nofile 1024
Grid hard nofile 65536
If you find that the current value is greater. For example, if the number * represents all users and the current value is greater, you can set the number below.
4. vi/etc/pam. d/login
Session required pam_limits.so
5. Add a user and group groupadd oinstall
Groupadd dba useradd-g oinstall-G dba grid passwd grid
6. Create the $ ORACLE_BASE and ORACLE_HOME directories of the grid.
Mkdir-p/u02/grid
Mkdir-p/u02/11.2.0/grid
Chown-R grid: dba/u02
Chmod-R 775/u02
7. Add the grid user environment variable to. bash_profile. ORACLE_BASE =/u01/app/grid; export ORACLE_BASE
ORACLE_HOME =/u01/app/11.2.0/grid; export ORACLE_HOME
Export PATH = $ ORACLE_HOME/bin: $ PATH
Export ORACLE_SID = + ASM
8. download media
Upload the 11.2 GI software installation media, which can be downloaded from my cloud disk. Http://yunpan.cn/QNWwLFFkWizFc access password 2558 unzip p10404530_112030_Linux-x86-64_3of7_grid.zip cd grid [root @ erpp2 grid] # ls doc install readme.html response rpm runcluvfy. sh runInstaller sshsetup stage welcome.html
9. Initiate installation.
Users such as oracle and grid cannot run and install with root. Generally, we use grid to separate it from database users.
Enable vncserver
The vnc graphic interface is connected to the server, and the root user executes xhost +
Grid user executes./runInstaller
Because I installed asm on a single machine instead of a cluster, select the second one.
Select english.
Select external, which means that the ASM layer does not need to be mirrored. External means that the underlying storage is raid, and we do not need to create an image for ASM.
Enter a simple password. You can ignore it even if it is prompted.
Although I use a grid user independent from an oracle user, I have not created a new asmadmin group for the grid user, therefore, you can specify the oinstall or dba group (of course, the grid user must have the oinstall and dba groups)
Here, a default BASE and HOME are written based on the environment variable of the running user, namely the grid user.
Environment Variables of my grid users.
ORACLE_BASE =/u02/grid; export ORACLE_BASE
ORACLE_HOME =/u02/11.2.0/grid; export ORACLE_HOME
Export PATH = $ ORACLE_HOME/bin: $ PATH
Export ORACLE_SID = + ASM
Click Next To Go To The check procedure. After the check is completed, we can click install to install it.
After running, run the script as root.
Run the root script.
[Root @ erpdb dev] # sh/u02/11.2.0/grid/root. sh
Padding Ming root user operation for Oracle 11g
The following environment variables are set:
ORACLE_OWNER = grid
ORACLE_HOME =/u02/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to/usr/local/bin...
Copying oraenv to/usr/local/bin...
Copying coraenv to/usr/local/bin...
Creating/etc/oratab file...
Entries will be added to the/etc/oratab file as needed
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be saved med.
Using configuration parameter file:/u02/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall '..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root '..
Operation successful.
CRS-4664: Node erpdb successfully pinned.
Adding Clusterware entries to inittab
Erpdb 2014/04/25 11:38:21/u02/11.2.0/grid/cdata/erpdb/backup_201401__113821.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
Then click Next to complete the installation.
After that, use the grid user, sqlplus '/as sysasm' to check whether the diskgroup is mounted smoothly.
SQL> select name from v $ asm_diskgroup;
NAME
------------------------------
DATA1