ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORA-15183 Unable to Create Database on Server using 11.2 ASM

ORA-15183 Unable to Create Database on Server using 11.2 ASM

原创 Linux操作系统 作者:tolywang 时间:2011-03-02 10:53:35 0 删除 编辑


ORA-15183 Unable to Create Database on Server using 11.2 ASM and Grid Infrastructure [ID 1054033.1]

Applies to:
Oracle Server - Enterprise Edition - Version: 11.1.0.6 to 11.2.0.1.0 - Release: 11.1 to 11.2
Information in this document applies to any platform.


Symptoms
Using 11.2.0.1 Grid Infrastructure and ASM, try to create 11.1.0.7 database as oracle user "oratest",

while Grid is installed as grid user "grid", getting error in "create database ..." command:
ERROR: asm_version error. err: driver/agent not installed rc:2
ORA-15183: ASMLIB initialization error [driver/agent not installed]
WARNING:FAILED to load library: /opt/oracle/extapi/64/asm/orcl/1/libasm.so
ERROR: asm_init(): asm_erc:-5 msg:Driver not installed pid:25261

The grid and oratest users are defined as:
[root@node2]# id grid
uid=212(grid) gid=201(oinstall) groups=201(oinstall),202(dba),204(asmadmin),205(asmdba),220(asmoper)

[grid@node2]$ id oratest
uid=215(oratest) gid=201(oinstall) groups=201(oinstall),202(dba),205(asmdba),222(oper)

 

Changes
New installation


Cause
This is caused by the use of job role separation and oracle binary not having the proper group ownership

preventing the database software owner "oratest" from accessing the ASMlib driver.

The output of "/usr/sbin/oracleasm configure" shows:
ORACLEASM_UID=grid
ORACLEASM_GID=asmadmin

Only users that are members of the asmadmin group have direct access to ASM disks and maintenance. For

other database users (software owners), the access is gained via the oracle executable

($ORACLE_HOME/bin/oracle). It should have a setgid bit with group set to "asmadmin". The "oracle" binary

is changed automatically via setasmgidwrap when the instance is started by the CRS daemon (e.g. srvctl

start database/instance).

In this case, the oracle binary is owned by
-rwsr-s--x 1 oratest oinstall
instead of
-rwsr-s--x 1 oratest asmadmin

 


Solution
Manually change the oracle binary ownership and permission:
as root user:
cd $ORACLE_HOME/bin
chgrp asmadmin oracle
chmod 6751 oracle
ls -l oracle

Ensure the ownership and permission is now like:
-rwsr-s--x 1 oratest asmadmin

Then retry "create database" command.

* Note 1: This change is only required for RDBMS $ORACLE_HOME/bin/oracle. Please do not modify

$GRID_HOME/bin/oracle binary ownership.
* Note 2: Anytime when a patch is applied to the database ORACLE_HOME, please ensure above ownership and

permission is corrected after the patch.
References

Show Related Information Related
Products

    * Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition

Keywords
ASMLIB; INFRASTRUCTURE; GRID; ORACLEASM

Errors
ORA-15183 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-688236/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    13778406