您好,登錄后才能下訂單哦!
在Oracle Linux 7.1中使用dbca為Oracle 18C RAC創建數據庫時,找不到ASM磁盤組;而grid用戶使用asmca卻又能看到ASM磁盤組。
解決方法
1. 檢查創建ASM磁盤設備的權限,正確的權限為grid:asmadmin,通過下面輸出可知權限正確
[root@18c1 ~]# ls -lrt /dev/asm* brw-rw---- 1 grid asmadmin 8, 16 Mar 16 22:28 /dev/asmdisk01 brw-rw---- 1 grid asmadmin 8, 32 Mar 17 08:40 /dev/asmdisk02 [root@18c2 ~]# ls -lrt /dev/asm* brw-rw---- 1 grid asmadmin 8, 32 Mar 17 08:41 /dev/asmdisk02 brw-rw---- 1 grid asmadmin 8, 16 Mar 17 08:41 /dev/asmdisk01
2.檢查ASM實例是否啟動
[grid@18c1 ~]$ asmcmd lsdg State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name MOUNTED EXTERN N 512 512 4096 4194304 61440 35868 0 35868 0 Y CRS/ MOUNTED EXTERN N 512 512 4096 4194304 40960 36036 0 36036 0 N DATA/ [grid@18c2 ~]$ asmcmd lsdg State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name MOUNTED EXTERN N 512 512 4096 4194304 61440 35868 0 35868 0 Y CRS/ MOUNTED EXTERN N 512 512 4096 4194304 40960 36036 0 36036 0 N DATA/
3. 檢查GRID_HOME/bin下oracle是否有s權限,如果沒有需要添加s權限,通過下面的輸出可知GRID_HOME/bin目錄下的oracle是沒有s權限的,這里需要添加
[root@18c1 ~]# ls -lrt /u01/app/oracle/18.0.0/db/bin/oracle -rwsr-s--x 1 oracle asmadmin 437038067 Mar 16 23:00 /u01/app/oracle/18.0.0/db/bin/oracle [root@18c1 ~]# ls -lrt /u01/app/18.0.0/grid/bin/oracle -rwxr-x--x. 1 grid oinstall 413877125 Mar 16 19:10 /u01/app/18.0.0/grid/bin/oracle [root@18c2 /]# ls -lrt /u01/app/oracle/18.0.0/db/bin/oracle -rwsr-s--x 1 oracle oinstall 437038067 Mar 16 23:07 /u01/app/oracle/18.0.0/db/bin/oracle [root@18c2 /]# ls -lrt /u01/app/18.0.0/grid/bin/oracle -rwxr-x--x. 1 grid oinstall 413877125 Mar 16 19:30 /u01/app/18.0.0/grid/bin/oracle [root@18c1 ~]# chmod +s /u01/app/18.0.0/grid/bin/oracle [root@18c1 ~]# ls -lrt /u01/app/18.0.0/grid/bin/oracle -rwsr-s--x. 1 grid oinstall 413877125 Mar 16 19:10 /u01/app/18.0.0/grid/bin/oracle [root@18c2 /]# chmod +s /u01/app/18.0.0/grid/bin/oracle [root@18c2 /]# ls -lrt /u01/app/18.0.0/grid/bin/oracle -rwsr-s--x. 1 grid oinstall 413877125 Mar 16 19:30 /u01/app/18.0.0/grid/bin/oracle
4.檢查用戶所有組
[root@18c1 ~]# id oracle uid=1001(oracle) gid=1011(oinstall) groups=1007(asmdba),1009(dba),1010(oper),1012(backupdba),1013(dgdba),1014(kmdba),1015(racdba),1011(oinstall) [root@18c1 ~]# id grid uid=1002(grid) gid=1011(oinstall) groups=1006(asmadmin),1007(asmdba),1008(asmoper),1009(dba),1011(oinstall) [root@18c1 ~]# gpasswd -a oracle asmadmin Adding user oracle to group asmadmin [root@18c1 ~]# id oracle uid=1001(oracle) gid=1011(oinstall) groups=1006(asmadmin),1007(asmdba),1009(dba),1010(oper),1012(backupdba),1013(dgdba),1014(kmdba),1015(racdba),1011(oinstall) [root@18c2 /]# id oracle uid=1001(oracle) gid=1011(oinstall) groups=1007(asmdba),1009(dba),1010(oper),1012(backupdba),1013(dgdba),1014(kmdba),1015(racdba),1011(oinstall) [root@18c2 /]# id grid uid=1002(grid) gid=1011(oinstall) groups=1006(asmadmin),1007(asmdba),1008(asmoper),1009(dba),1011(oinstall) [root@18c2 /]# gpasswd -a oracle asmadmin Adding user oracle to group asmadmin [root@18c2 /]# id oracle uid=1001(oracle) gid=1011(oinstall) groups=1006(asmadmin),1007(asmdba),1009(dba),1010(oper),1012(backupdba),1013(dgdba),1014(kmdba),1015(racdba),1011(oinstall)
再執行dbca創建數據庫時能正確找到磁盤組
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。