RAC DBCA 找不到共享磁盘
Posted wzzkaifa
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RAC DBCA 找不到共享磁盘相关的知识,希望对你有一定的参考价值。
(一) 前言:
通过vmware workstation 走iscsi协议。安装RAC 集群架构,DBCA 时不能识别ASM 共享存储(按理来说这一版都是权限的问题)。同一时候,本想通过RMAN 做单实例 --> 迁移 -->RAC, 单在创建ASM共享存储spfile參数文件时,一直报错,可是涉及的crs 服务,grid,oracle 权限都存在。
(二) 报错信息:
SQL> create spfile=‘+DATA/DOMINIC/PARAMETERFILE/spfiledominic.ora‘ from pfile=‘/u01/soft/spfile_5_04‘;
create spfile=‘+DATA/DOMINIC/PARAMETERFILE/spfiledominic.ora‘ from pfile=‘/u01/soft/spfile_5_04‘
*
ERROR at line 1:
ORA-17502: ksfdcre:4 Failed to create file
+DATA/DOMINIC/PARAMETERFILE/spfiledominic.ora
ORA-01017: invalid username/password; logon denied
---这里,事实上 仅仅有真正的spfile參数放在ASM存储里,其它节点RAC1 ....RACn 都仅仅是一个地址的映射。
当权限组正常的话,以上命令是能够运行,同一时候各节点在$ORACLE_HOME/dbs/initORACLE_SID.ora
echo "SPFILE=‘+DATA/ANQING/PARAMETERFILE/spfildominic.ora‘" > /u01/app/oracle/product/11.2/db_1/dbs/initdominic1.ora
(三) 故障权限排查:
oracle 家文件夹bin下权限,及所属组
[[email protected] ~]$ cd /u01/app/oracle/product/11.2/dbhome_1/bin/
[[email protected] bin]$ ll oracle
-rwxrwxr-x 1 oracle asmadmin 239627031 May 17 17:32 oracle ---注意这里Oracle
权限,组, 路径!
grid 家文件夹bin下权限,及所属组
[[email protected] bin]$ cd /u01/app/11.2/grid/bin/
[[email protected] bin]$ ll oracle
-rwsrwsr-x 1 grid oinstall 209914869 May 17 15:58 oracle ---注意这里Oracle
权限,组, 路径!
[[email protected] ~]# ls /dev/oracleasm/disks/* -l
brw-rw---- 1 grid asmadmin 8, 17 May 27 15:37 /dev/oracleasm/disks/DATA01
brw-rw---- 1 grid asmadmin 8, 81 May 27 15:37 /dev/oracleasm/disks/DATA02
brw-rw---- 1 grid asmadmin 8, 97 May 27 15:37 /dev/oracleasm/disks/LOG01
brw-rw---- 1 grid asmadmin 8, 65 May 27 15:37 /dev/oracleasm/disks/LOG02
brw-rw---- 1 grid asmadmin 8, 113 May 27 15:37 /dev/oracleasm/disks/OCR01
brw-rw---- 1 grid asmadmin 8, 33 May 27 15:37 /dev/oracleasm/disks/OCR02
brw-rw---- 1 grid asmadmin 8, 49 May 27 15:37 /dev/oracleasm/disks/OCR03
[[email protected] ~]# su - grid
[[email protected] ~]$ sqlplus / as sysasm
SQL> select GROUP_NUMBER,DISK_NUMBER,MOUNT_STATUS,HEADER_STATUS,MODE_STATUS,STATE,PATH from v$asm_disk;
SQL> /
2 0 CACHED MEMBER ONLINE NORMAL ORCL:DATA01
2 1 CACHED MEMBER ONLINE NORMAL ORCL:DATA02
3 0 CACHED MEMBER ONLINE NORMAL ORCL:LOG01
3 1 CACHED MEMBER ONLINE NORMAL ORCL:LOG02
1 0 CACHED MEMBER ONLINE NORMAL ORCL:OCR01
1 1 CACHED MEMBER ONLINE NORMAL ORCL:OCR02
1 2 CACHED MEMBER ONLINE NORMAL ORCL:OCR03
我把Oracle 及时加入到asmadmin 组也是这样
[[email protected] ~]$ id oracle
uid=1101(oracle) gid=1000(oinstall) groups=1000(oinstall),1200(asmadmin),1201(asmdba),1300(dba),1301(oper)
[[email protected] ~]$ id grid
uid=1100(grid) gid=1000(oinstall) groups=1000(oinstall),1200(asmadmin),1201(asmdba),1202(asmoper)
-- grid 须要增加DBA 权限组。
ASMDBA GRID,ORACLE ASM的SYSDBA OSDBA FOR ASM
ASMADMIN GRID
SYSASM OSASM
ASMOPER GRID ASM的SYSOPER OSOPER FOR ASM
最后的结果是: ASMDBA, ASMOPER, ASMADMIN 在创建grid 用户时。权限组设置颠倒所致。
以上是关于RAC DBCA 找不到共享磁盘的主要内容,如果未能解决你的问题,请参考以下文章