session required pam_limits.so
8. 下载介质
不能用root跑起安装,只能用oracle或grid这类用户,一般我们用grid,以跟数据库用户分开。
开启vncserver
vnc图形界面连到服务器,root用户执行xhost +
grid用户执行 ./runInstaller
因为我是单机安装asm的,而不是集群,所以选第二个。
选Engligsh。
选external,意思是ASM层不用做镜像。external意指底层存储做了raid,我们ASM就不用做镜像了。
输入稍微简单的密码,尽管会出来提示,但我们可以忽略。
尽管我用grid用户独立于oracle用户,但是我并没有为grid用户新建注入asmadmin之类的组,所以指定oinstall或dba组就可以了(当然grid用户要拥有oinstall与dba组了)
这里会根据跑起用户,即grid用户的环境变量,来写一个默认的BASE与HOME。
我grid用户的环境变量。
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
点击下一步后进入检查步骤,检查完毕通过后,我们就可以点击install进行安装了。
跑完后,我们要用root跑脚本。
跑root脚本。
[root@erpdb dev]# sh /u02/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
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 by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
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_20140425_113821.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
然后再点下一步,过会就可以安装完成了。
完成之后,用grid用户,sqlplus ‘/as sysasm‘进去,看diskgroup是否顺利挂载。
SQL> select name from v$asm_diskgroup;
NAME
------------------------------
DATA1
11.2 GI安装 (单节点),布布扣,bubuko.com
原文:http://blog.csdn.net/whiteoldbig/article/details/24532899