Oracle 11.2 單一實例串連ASM時需要注意的事項以及問題處理

來源:互聯網
上載者:User

Oracle 11.2 單一實例串連ASM時需要注意的事項以及問題處理

Oracle 11.2 執行個體訪問ASM需要注意的幾點:

1. Oracle使用者和grid使用者必須有相同的組,並且 ASM Disk的屬組要和這個組保持一致,否則資料庫無法訪問ASM磁碟,報錯 ora 15081

例如下面: oracle和grid都屬於 asmdba組,並且asm磁碟的屬主也是asmdba

[root@host rules.d]# id oracle

uid=1001(oracle) gid=1000(oinstall) groups=1000(oinstall),1001(dba),1002(oper),1004(asmdba)

[root@host rules.d]# id grid

uid=1000(grid) gid=1000(oinstall) groups=1000(oinstall),1001(dba),1003(asmadmin),1004(asmdba),1005(asmoper)

[root@host rules.d]# ll /dev/sdb*

brw-rw-r-- 1 grid asmdba 8, 16 Dec 19 13:44 /dev/sdb

brw-rw-r-- 1 grid asmdba 8, 17 Dec 19 17:58 /dev/sdb1

brw-rw-r-- 1 grid asmdba 8, 18 Dec 19 17:58 /dev/sdb2

brw-rw-r-- 1 grid asmdba 8, 19 Dec 19 17:58 /dev/sdb3

brw-rw-r-- 1 grid asmdba 8, 20 Dec 19 17:58 /dev/sdb4

2. $ORACLE_HOME/bin/oracle 可執行檔正確屬主應該是 oracle:asmadmin,並且許可權必須有s共用才可以,如下:

oracle@host:[/oracle/database/product/11.2.0/dbhome_1/bin] ll oracle

-rwsr-s--x 1 oracle asmadmin 232399473 Dec 19 14:51 oracle

如果oracle可執行檔許可權不對,可以執行下面命令:

${GI_HOME}/bin/setasmgidwrap -o ${ORACLE_HOME}/bin/oracle

執行完畢以後檢查oracle可執行檔的許可權:

ls -l ${ORACLE_HOME}/bin/oracle

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.