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

相关推荐
隔窗听雨眠3 天前
Oracle日志体系分层结构与故障定位路径
数据库·oracle·故障排查
曲径海盗4 天前
Try-Except怎么用,3个追问解答在自动化下的应用
java·jvm·oracle
爱吃奥利奥_wen7 天前
SQL Server 基础语法详解:从建库建表到约束与增删改查
服务器·数据库·oracle
x_SpiderMan7 天前
搭建Oracle RAC 集群
数据库·oracle
测试界的小码农7 天前
【图数据库实战进阶(03):Neo4j 图数据建模实战——节点、关系与属性应该怎么设计?】
数据库·oracle·neo4j
.痞老板.7 天前
mysql初阶--数据库设计
数据库·mysql·oracle
一个天蝎座 白勺 程序猿8 天前
KingbaseES数据库归档重做日志文件管理:从配置到运维的实战指南
运维·数据库·oracle·kingbasees·金仓数据库
腾科IT教育10 天前
Oracle考试全解析:OCP、OCM认证体系与核心考点备考指南
数据库·oracle·开闭原则
木棉软糖12 天前
5 步确认 TiDB 历史抽数的 Logstash 有没有真的写进 ES
elasticsearch·oracle·tidb