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

相关推荐
严同学正在努力19 小时前
认识 SQL Server 的 T-SQL 语法
数据库·人工智能·ai·oracle·dba
l1t1 天前
DeepSeek总结的chdb-core v26.7.3发版说明
数据库·clickhouse·oracle
风哥2号2 天前
数据库教程FGMT21‑Oracle RAC+DG生产实战(1):Oracle19c/26ai for RHEL8/9安装配置+补丁
数据库·oracle
风哥2号2 天前
数据库教程FGMT26‑1‑GoldenGate数据库容灾迁移01(OGG同构异构、数据库迁移、数据同步、容灾复制)
数据库·oracle
风哥2号2 天前
数据库教程FGMT25‑Oracle多租户架构CDB与PDB运维管理
数据库·oracle
天空之城--2 天前
Flutter Drift 完全指南:从原理到实战
jvm·flutter·oracle
奔跑吧树袋熊3 天前
多租户隔离该做到哪一层:从连接池到 ORM 的取舍
开发语言·数据库·oracle·系统架构
YHHLAI3 天前
从零理解 Agent Memory 管理:内存记忆、文件持久化与上下文截断
数据库·oracle
Aaron - Wistron3 天前
Windows Server 配置
oracle
惜分飞3 天前
记录一次0丢失的ORA-00354: 损坏重做日志块标头故障恢复---惜分飞
数据库·oracle