首先创建asm磁盘组的时候,设置的组和执行dbca命令所在的组要有相同组。
/usr/sbin/oracleasm configure -i
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
[grid@node1 bin]$ ls -l/dev/oracleasm/disks/
总计 0
brw-rw---- 1 grid asmadmin 8, 3311-28 22:43 VOL1
brw-rw---- 1 grid asmadmin 8, 4911-28 22:43 VOL2
brw-rw---- 1 grid asmadmin8, 6511-28 22:43 VOL3
[root@node1 bin]# id oracle
uid=502(oracle) gid=1000(oinstall) groups=1000(oinstall),1200(asmadmin),1201(asmdba),1002(oper),1003(dba)
[root@node1 bin]# pwd
/u01/app/11.2.0/grid/bin
[root@node1 bin]# ll oracle
-rwsr-s--x 1 grid oinstall 184286251 11-28 21:52 oracle
要有s权限 chmod +s oracle
另外:NLS_LANG不能设置错误
export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK” 我是犯了这个错误