ASM dba_user v$pwfile_users

Applies To

All Users

Summary

How to recreate the ASMSNMP user when its password is forgotten?

Example: DBCA fails because the provided password for ASMSNMP is not valid/proper/correct

.

Solution

As the ASM home software owner, connect to ASM instance via sqlplus:

Note: If this is a clustered ASM configuration, then connect to one of the clustered ASM instances (say, +ASM1)

$ . oraenv <---- enter the ASM instance name for ORACLE_SID (for non-RAC this is +ASM, but for RAC this can be +ASM1)

$ sqlplus / as sysasm

SQL> select * from v$pwfile_users;

If the previous command lists ASMSNMP then remove it:

SQL> drop user ASMSNMP;

SQL> create user asmsnmp identified by <password here>;

grant sysdba to asmsnmp;

SQL> select * from v$pwfile_users;

Desired output:

USERNAME SYSDB SYSOP SYSAS


SYS TRUE TRUE TRUE

ASMSNMP TRUE FALSE FALSE

Note: If clustered ASM configuration, the above should also cascade to the Oracle (orapw<asm instance name>) files for the other nodes.

To test this, connect to the other ASM instances within the cluster and query v$pwfile_users and verify ASMSNMP user is listed (same as for +ASM1)

Attachments :

----create user

Applies To

All Users

Summary

The present document describes how to create an ASMSYS user.

Solution

On release 11g and onwards, you need to create an ASM user and grant the SYSASM role. The purpose of the SYSASM role is to provide a level of separation between the RDBMS & ASM credentials.

The SYSASM role, which has full capability on the ASM instance, is authenticated through the OSASM user group, similar to the SYSDBA roles, which is authenticated through OSDBA.

  1. The following example shows how to connect as SYSASM and configure a new user for SYSASM role:

+ASM:oracle> export ORACLE_SID=+ASM

+ASM:oracle>sqlplus "/as sysasm "

SQL*Plus: Release 11.1.0.6.0 - Production on Thu Oct 1 15:44:00 2009

Copyright (c) 1982, 2007, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> create user ASMUSER identified by oracle;

User created.

SQL> grant SYSASM , SYSOPER to ASMUSER ;

Grant succeeded.

SQL> exit

  1. Then connect as ASMUSER:

+ASM:oracle> export ORACLE_SID=+ASM

+ASM:oracle>sqlplus "ASMUSER /oracle as sysasm "

SQL*Plus: Release 11.1.0.6.0 - Production on Thu Oct 1 15:45:26 2009

Copyright (c) 1982, 2007, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from v$pwfile_users;

USERNAME SYSDBA SYSOPE SYSASM


SYS TRUE TRUE TRUE

ASMUSER FALSE TRUE TRUE

相关推荐
jnrjian2 小时前
oraasmaudit Oracle ASM
数据库·oracle
烟雨归来4 小时前
Oracle 19c RAC登录风暴引发library cache lock生产故障分析
数据库·oracle
NineData4 小时前
DTCC 2026 NineData 叶正盛:如何统一管理人与 AI Agent 的数据访问行为
数据库·人工智能·sql·oracle·agent·ninedata·dtcc
oradh6 小时前
Oracle RMAN备份元数据管理
数据库·oracle·rman备份元数据管理·rman catalog
Java后端的Ai之路8 小时前
05、Python单例模式完全指南
开发语言·人工智能·python·单例模式·oracle
linweidong8 小时前
字节AI Agent面试题大全及参考答案(下)
数据库·oracle
Lucifer三思而后行21 小时前
Oracle 23ai/26ai 新功能:一条命令把 PDB 用户设为只读
oracle·pdb
oradh1 天前
Oracle RMAN备份脚本、RMAN还原恢复测试、RMAN常用语句
数据库·oracle·rman备份脚本·rman还原恢复测试·rman常用语句