首页 » ORACLE 9i-23c » oracle 11g dbca 找不到asm diskgroup的解决办法

oracle 11g dbca 找不到asm diskgroup的解决办法

昨天在家里的本本虚拟机里配置11G R2 RAC时,GI安装正常,db soft 安装正常,查看资源asm 磁盘也正常,GI是用的GRID 用户及用ASMLIB配置的ASM DISKGROUP.但到最后一步用ORACLE用户DBCA建库时,在储存选择ASM,无法找到ASMDISKGROUP?

家里没法上网只能自己猜一下,尝试用GRID 用户运行DBCA,当然目的只是尝试到选择存储时会不会发现ASM DISKGROUP,开始会因为环境变量问题报错忽略,当到选择存储时发现正常的发现了先前用ASMCA创建的ASM磁盘组,取消安装,开始排查错误。

命令 id oracle
查看了ORACLE的用户组,发现有oinstall,asmdba,dba
再查看 id grid
发现grid的用户组要比ORACLE用户多出一个asmadmin的用户组
然后再查看ASM设备的用户组
ls -l /dev/oracleasm/disks
total 0
brw-rw—- 1 grid asmadmin 8, 33 Nov 4 15:35 CRDATA
brw-rw—- 1 grid asmadmin 8, 49 Nov 4 15:35 DBDATA

所以你可以修改ASM设备的组为asmdba,也可以给ORACLE用户加到asmadmin,我选择第二个
usermod -a -G asmadmin oracle

还有就是去检查一下$GRID_HOME/bin/oracle执行文件的权限是不是下面
[grid@rac1 bin]$ ll oracle
-rwsr-s–x 1 grid oinstall 152462814 Apr 10 19:51 oracle

我记的当时好像是没有s而是x,如果没有执行下面的命令
chmod +s oracle
s对于执行文件是suid,就是告之以文件所有者的身份运行。

执行完上面一系列的排查后,在ORACLE用户的DBCA中终于发现了ASM DISKGROUP.

1. Incorrect permission setting for oracle user
2. ASM instance was not started or diskgroups are not mounted.
3. The diskgroup resources are not online.
4. The permission setting for the asm devices are incorrect.
5. The oracle executable under <Grid Infrastructure Home>/bin has incorrect permission settings.
6. the file system for grid home was mounted with option ‘nosuid’.
打赏

, , ,

对不起,这篇文章暂时关闭评论。