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

相关推荐
猫咪很可爱39 分钟前
Oracle ORA-4031 错误分析与处理:SGA 内存不足导致 update/exp/expdp 失败
数据库·oracle
xuefuhe7 小时前
Oracle Process termination requested /usr/lib/systemd/systemd
oracle
啵啵啵鱼9 小时前
Chrome 插件开发实战指南
oracle
cuijiecheng20181 天前
WeFlow 无法使用怎么办?一次数据库组件到期问题的排查与修复
数据库·oracle
从零数据分析2 天前
零基础学SQL 23:和上月比总对不上?LAG/LEAD 一步取出上一次(附 4 个模板)
java·数据库·sql·mysql·oracle·sqlite·database
oradh2 天前
Oracle 外部表(External Tables)使用总结
数据库·oracle
LMT流氓兔2 天前
第五单元——第10课:用自动化测试验证工具逻辑
数据库·ai·oracle·langchain
Gauss松鼠会2 天前
GaussDB 内存相关参数及故障诊断
运维·数据库·sql·oracle·性能优化·架构·gaussdb
isNotNullX3 天前
智能问数技术路线怎么选?从Text-to-SQL到Data Agent一次讲清
数据库·oracle
锦衣夜行?3 天前
Oracle 数据库安装失败清理残留步骤
数据库·oracle