|
原帖由 lucifini1 于 2009-10-3 16:43 发表 ![]()
楼主您好,本人按您的文档进行grid ASM RAC安装实验,碰到几个问题,想请教:
1.安装grid是以grid用户还是以oracle用户,oracle文档中似乎说的是用oracle用户安装。
2.还有就是安装的时候的用户环境变量是不是要修改,哪些要unset掉
3.在做SSH互信或后面的输入密码的时候,经常出现无法输入密码的问题,不知楼主可碰到过,是不是我把环境变量改得晕头转向的原因。
4.安装grid最后,执行root.sh中间出现Failed to upgrade Oracle Cluster Registry configuration,PROT-1错误,是不是对ASM操作有问题,ASM可需要什么设置。
0.这不是安装RAC的步骤 本人是安装单实例的数据库步骤 之所以安装grid是因为需要使用ASM组件 以及Oracle Reset功能
1.我是是使用grid用户安装grid oracle用户安装database 这样的bash_profile正好分开
Specifying Installation Location
The “Specify Installation Location” page is displayed. In the “Oracle Base” field, enter the value of ORACLE_BASE for the software owner. The default value is /u01/app/grid, but because this installation is not using a separate grid user, this value should be changed to match the installation user. In the example, this user is oracle. In the “Software Location” field, enter the value of the ORACLE_HOME for the Grid Infrastructure software. The default value is /u01/app/oracle/product/11.2.0/grid. Click the Next button to proceed with the installation.
这是附件PPT里第16张的原文
默认值是/u01/app/grid,但因为暗转未使用分离的grid用户,这个只需要更改成安装用户的所属的。
Oracle推荐使用oracle和grid用户分离方式 这个在Oracle Doc里有提到 需要话我可以找一下
另一个推断是grid与oracle分别所属的权限 所以grid用户安装grid oracle用户安装database
/usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracle
/usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
oper和dba 在oracle Doc 没有 oper为非必须 dba是为了使用oracle restart功能(如不赋予将在使用dbca创建数据库时报错),详细功能可以参看一下帖子
http://www.itpub.net/thread-1217299-1-1.html
这里本人其实也有一个疑问 grid用户可以通过sqlplus登入查询数据是否有安全性的隐患,本就是为了分权 仅让grid拥有管理asm的权限,但为了restart功能竟然需要dba权限(本猜测只需要oper权限,但个人实验证明还是需要dba权限),oracle这部分并没有文档说明
2.实例有
“grid 用户配置文件 ORACLE_HOSTNAME请自行设置” 这个就是环境变量设置
今天又重新安装了一下 发现即使在环境变量不设置的情况下单实例数据可以一正常安装(grid,database)并建库
3.没配置过RAC 这个不知道了 10g装RAC也晕头转向的应该现在会更加简单
4.ASMlib需要安装 识别完成ASM磁盘
[ 本帖最后由 Himmelskorper 于 2009-10-3 22:51 编辑 ] |
|