zoukankan      html  css  js  c++  java
  • 【ASM】ASMSNMP用户已存在

    ASMASMSNMP用户已存在

    During Oracle Grid Infrastructure for a cluster installation, the ASMSNMP account is created and its status is set to OPEN. It is granted the SYSDBA for ASM privilege. Oracle Enterprise Manager requires access to the ASMSNMP account to monitor Oracle ASM instances and retrieve data from ASM-related data dictionary views.

    根据官方文档资料,可见ASMSNMP用户是在集群安装过程中,创建GRID的时候创建的用户。该用户为OPEN状态并被赋予了SYSDBA权限。OEM需要该用户来监控ASM实例并从ASM实例相关的数据字典中获取数据。

    客户在安装EM的时候,在ASM实例下需要建立ASMSNMP用户:

    SQL> create user asmsnmp identified by oracle123;

    create user asmsnmp identified by oracle123

                                      *

    ERROR at line 1:

    ORA-01920: user name 'ASMSNMP' conflicts with another user or role name

     

    该错误说明该用户已存在,但客户想通过查询的方式来确认该用户是否真的存在。在ASM实例中查询:

    SQL> select * from v$pwfile_users;

     

    USERNAME                       SYSDB SYSOP SYSAS SYSBA SYSDG SYSKM     CON_ID

    ------------------------------ ----- ----- ----- ----- ----- ----- ----------

    SYS                            TRUE  TRUE  TRUE  FALSE FALSE FALSE         0

    ASMSNMP                        TRUE  FALSE TRUE  FALSE FALSE FALSE         0

    asmcmd命令中查看:

    ASMCMD> lspwusr

    Username sysdba sysoper sysasm

         SYS   TRUE    TRUE   TRUE

    ASMSNMP   TRUE   FALSE   TRUE

     

    ASMCMD> help lspwusr

            lspwusr

     

            List the users from the local Oracle ASM password file

     

            lspwusr [--suppressheader]

     

            The options for the lspwusr command are described below.

     

            --suppressheader    - Suppresses column headers from the output.

     

            The following is an example of the lspwusr example.

            The example lists the current current users in the local Oracle ASM

            password file.

     

            ASMCMD [+] > lspwusr

            Username sysdba sysoper sysasm

                 SYS   TRUE    TRUE   TRUE  

             ASMSNMP   TRUE   FALSE  FALSE

    About Me

    ...............................................................................................................................

    本文作者:小麦苗,只专注于数据库的技术,更注重技术的运用

    本文在itpubhttp://blog.itpub.net/26736162)、博客园(http://www.cnblogs.com/lhrbest)和个人微信公众号(xiaomaimiaolhr)上有同步更新

    本文itpub地址:http://blog.itpub.net/26736162/viewspace-2129422/

    本文博客园地址:http://www.cnblogs.com/lhrbest/p/6119773.html

    本文pdf小麦苗云盘地址:http://blog.itpub.net/26736162/viewspace-1624453/

    ● QQ群:230161599     微信群:私聊

    联系我请加QQ好友(642808185),注明添加缘由

    2016-11-28 10:00 ~ 2016-11-30 22:00行完成

    文章内容来源于小麦苗的学习笔记,部分整理自网络,若有侵权或不当之处还请谅解

    版权所有,欢迎分享本文,转载请保留出处

    ...............................................................................................................................

    手机长按下图识别二维码或微信客户端扫描下边的二维码来关注小麦苗的微信公众号:xiaomaimiaolhr,免费学习最实用的数据库技术。

    wpsF8C8.tmp

     

  • 相关阅读:
    PageHelper 空指针异常
    ajax提交因参数超长导致接收参数为空问题解决
    Vue入门:Vue项目创建及启动
    Vue入门:Vue环境安装
    程序部署到服务器服务无法启动问题
    sqlServer区分大小写查询
    按下回车默认提交form表单问题
    MyEclipse常用快捷键
    基于JAX-WS的webService开发实例
    ie8下new Date()指定时间
  • 原文地址:https://www.cnblogs.com/lhrbest/p/6119773.html
Copyright © 2011-2022 走看看