【翻译自mos文章】修改被 DB Control 监控的db (10g and 11g)中 dbsnmp密码的方法

修改被 DB Control 监控的db (10g and 11g)中 dbsnmp密码的方法

参考原文:

How to Change DBSNMP Password in Database 10g and 11g Monitored by DB Control (Doc ID 259387.1)

适用于:

Enterprise Manager for Oracle Database - Version 10.1.0.4 to 11.2.0.3 [Release 10.1 to 11.2]

Information in this document applies to any platform.

目的:

当10g 和 11g的 db被DB Control 监控时, 修改 该db中的dbsnmp用户密码的方法。

ATTENTION: Enterprise Manager 10g is now in extended support. Oracle strongly recommends that you upgrade your environment to either Enterprise Manager 11g or 12c, both of which are still in premier Support.

范围:

所有使用db control 来监控他们的10g or 11g db 的数据库管理员

细节:

修改dbsnmp密码时,你必须严格遵守下面的步骤,否则 管理你的db的 10g or 11g DB Control  会运行异常。

注意: 对于安装在Windows 2008 / Vista上的 DB Control Release 10.2.0.3 以及更高版本,emctl命令可能会失败,报错为 "Permission Denied".

请参考下面的文章来解决此报错:

Document 1164293.1 -  Executing Any EMCTL Command on Windows 2008 / Vista Returns "Permission denied" Error

1.stop the standalone dbconsole

On Unix - DB Control Release up to 11.1.x

$ export ORACLE_SID=<database_sid>

$ emctl stop dbconsole

On Unix - DB Control Release 11.2.x and higher

$ export ORACLE_SID=<database_sid>

$ export ORACLE_UNQNAME=<value of the DB_UNIQUE_NAME database parameter>

$ emctl stop dbconsole

On Windows - DB Control Release up to 11.1.x

Stop the Windows Service OracleDBConsole<database_sid>

Or

Open a DOS Command Window and type

C> set ORACLE_SID=<database_sid>

C> set ORACLE_HOME=<oracle_home_name>

C> cd %ORACLE_HOME%/bin

C> emctl stop dbconsole

On Windows - DB Control Release 11.2.x and higher

Stop the Windows Service OracleDBConsole<database_sid>

Or

Open a DOS Command Window and type

C> set ORACLE_SID=<database_sid>

C> set ORACLE_UNQNAME=<value of the DB_UNIQUE_NAME database parameter>

C> set ORACLE_HOME=<oracle_home_name>

C> cd %ORACLE_HOME%/bin

C> emctl stop dbconsole

2. 检查DB Control 已经被停止

On Unix

$ emctl status dbconsole

On Windows

Check the status of the Windows Service OracleDBConsole

Or

Open a DOS Command Window, cd to the database $ORACLE_HOME\bin and type

C> emctl status dbconsole

3.以dba权限登陆sqlplus,执行如下语句:--->登陆进去的这个db是受监控端的db。

SQL> alter user dbsnmp identified by <new dbsnmp password> ;

4.确认新密码能连接:

SQL> connect dbsnmp/[@database_alias]

5.到$ORACLE_HOME/host_sid/sysman/emd目录下----->本步骤应该是在 standalone dbconsole主机上操作吧?

5.1 将targets.xml文件复制为targets.xml.orig

5.2 用文本编辑器编辑targets.xml文件

5.2.1 找下面的行:

<property name="password" value="<encrypted_string>" encrypted="TRUE">

5.2.2 用新密码替换掉加密后的值

5.3.3 用FALSE替换掉TRUE

5.3 重启standalone dbconsole

On Unix - DB Control Release up to 11.1.x

$ export ORACLE_SID=<database_sid>

$ emctl start dbconsole

On Unix - DB Control Release 11.2.x and higher

$ export ORACLE_SID=<database_sid>

$ export ORACLE_UNQNAME=<value of the DB_UNIQUE_NAME database parameter>

$ emctl start dbconsole

On Windows - DB Control Release up to 11.1.x

Start the Windows Service OracleDBConsole<database_sid>

Or

Open a DOS Command Window and type

C> set ORACLE_SID=<database_sid>

C> set ORACLE_HOME=<oracle_home_name>

C> cd %ORACLE_HOME%/bin

C> emctl start dbconsole

On Windows - DB Control Release 11.2.x and higher

Start the Windows Service OracleDBConsole<database_sid>

Or

Open a DOS Command Window and type

C> set ORACLE_SID=<database_sid>

C> set ORACLE_UNQNAME=<value of the DB_UNIQUE_NAME database parameter>

C> set ORACLE_HOME=<oracle_home_name>

C> cd %ORACLE_HOME%/bin

C> emctl start dbconsole

5.4 确认密码已经被加密

查看targets.xml

搜索:<property name="password" value="<encrypted_string>" encrypted="TRUE">

检查 密码value 已经被加密

检查ENCRYPTED 的value 是TRUE

【翻译自mos文章】修改被 DB Control 监控的db (10g and 11g)中 dbsnmp密码的方法,布布扣,bubuko.com

时间: 2024-08-26 21:01:46

【翻译自mos文章】修改被 DB Control 监控的db (10g and 11g)中 dbsnmp密码的方法的相关文章

【翻译自mos文章】CRS显示 正在运行的db instance 是offline状态

CRS显示 正在运行的db instance 是offline状态 转自: CRS shows Running Instance Status as OFFLINE (Doc ID 1673397.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.3 [Release 11.2] Information in this document applies to any platform. 症状: 在c

【翻译自mos文章】改变数据库用户sysman(该用户是DB Control Repository 的schema)密码的方法

改变数据库用户sysman(该用户是DB Control Repository 的schema)密码的方法 参考原文: How To Change the Password of the Database User Sysman (DB Control Repository Schema) (Doc ID 259379.1) 适用于: Enterprise Manager for Oracle Database - Version 10.1.0.2 to 11.2.0.3 [Release 10

【翻译自mos文章】使用Windows操作系统的Dell Pcserver,Oracle db报错:ORA-8103

翻译自mos文章:使用Windows操作系统的Dell Pcserver,Oracle db报错:ORA-8103 ORA-8103 using Windows platform and DELL servers (Doc ID 1921533.1) Applies to: Oracle Database - Personal Edition - Version 11.1.0.6 to 12.1.0.2 [Release 11.1 to 12.1] Oracle Database - Stand

【翻译自mos文章】oracle db 中的用户账户被锁--查看oracle用户的尝试次数

参考原文: Users Accounts Getting Locked. (Doc ID 791037.1) 其实这个文章是为oracle 别的软件产品写的,不过涉及到user 锁定问题,那还是跟db有关系. 该文章我就不全部翻译了,只翻译最有用的一点: ---lcount列是记录oracle用户用错误的密码登陆db的登陆的次数. Select lcount from SYS.USER$ where name ='<USERNAME>' [翻译自mos文章]oracle db 中的用户账户被锁

【翻译自mos文章】在OGG (Oracle GoldenGate) 中使用SCHEMATRANDATA的话,需要额外的db patch

在OGG (Oracle GoldenGate) 中使用SCHEMATRANDATA的话,需要额外的db patch 参考原文: Patches needed to support SCHEMATRANDATA in OGG (Oracle GoldenGate) (Doc ID 1426440.1) 适用于: Oracle GoldenGate - Version 11.1.1.1.1 and later Information in this document applies to any

【翻译自mos文章】从远程机器连接到windows上的db时报错ora-12170

从远程机器连接到windows上的db时报错ora-12170 参考原文: Windows: ORA-12170 Attempting to Connect from Remote Client (Doc ID 748461.1) 适用于: Oracle Net Services - Version 9.2.0.1 to 11.2.0.3 [Release 9.2 to 11.2] z*OBSOLETE: Microsoft Windows Generic Windows Microsoft W

【翻译自mos文章】在oracle db 11gR2版本中启用 Oracle NUMA 支持

在oracle db 11gR2版本中启用 Oracle NUMA 支持 参考原文: Enable Oracle NUMA support with Oracle Server Version 11gR2 (文档 ID 864633.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.1 and later Oracle Database - Standard Edition - Version 11.2.0.1 and l

【翻译自mos文章】运行utlpwdmg.sql之后报ORA-28003, ORA-20001, ORA-20002, ORA-20003, ORA-20004 错误

运行utlpwdmg.sql之后报ORA-28003, ORA-20001, ORA-20002, ORA-20003, ORA-20004 错误. 适用于: Oracle Server - Enterprise Edition - Version 8.1.7.0 and later Information in this document applies to any platform. Checked for relevance on 15-Sep-2012 原因: 运行 utlpwdmg.

【翻译自mos文章】oracle密码管理策略

oracle密码管理策略 参考原文: Oracle Password Management Policy (Doc ID 114930.1) 细节: 密码管理通过使用profile来建立. 当密码过期后,如果user有能力独立地从 end-user application(前台业务软件)修改密码的话,通常的推荐是只指派给这些schemas 一个profile,该profile有  password aging an expiration features . 通常这意味着application(