【ASM】ASMSNMP使用者已存在

lhrbest發表於2016-11-30

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

 

【ASM】ASMSNMP使用者已存在

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2129422/,如需轉載,請註明出處,否則將追究法律責任。

相關文章