【翻译自mos文章】修改被 DB Control 监控的db (10g and 11g)中 dbsnmp密码的方法
来源:互联网 发布:犀牛软件 手机建模 编辑:程序博客网 时间:2024/06/01 20:55
修改被 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密码的方法
- 【翻译自mos文章】改变数据库用户sysman(该用户是DB Control Repository 的schema)密码的方法
- 【翻译自mos文章】OGG支持oracle db 11g中的不可见索引吗?
- 【翻译自mos文章】在OGG (Oracle GoldenGate) 中使用SCHEMATRANDATA的话,需要额外的db patch
- 【翻译自mos文章】Oracle db 12c中,每次日志切换时,会改变alert_sid.log的权限
- 【翻译自mos文章】在oracle db 11gR2版本中启用 Oracle NUMA 支持
- 【翻译自mos文章】使用Windows操作系统的Dell Pcserver,Oracle db报错:ORA-8103
- 【翻译自mos文章】CRS显示 正在运行的db instance 是offline状态
- 【翻译自mos文章】oracle db 中的用户账户被锁--查看oracle用户的尝试次数
- 【翻译自mos文章】当使用原地升级的方法将db升级到11.2.0.4之后,windows注册表丢失autostart属性
- 【翻译自mos文章】在db 12c 单机中不能注册ACFS为自动启动
- 【翻译自mos文章】对于一个新建的db来说,对Dba_Feature_Usage_Statistics的查询返回零行
- 【翻译自mos文章】从远程机器连接到windows上的db时报错ora-12170
- 【翻译自mos文章】在RHEL7 or OEL7上安装oracle 11.2.0.4 db时的要求
- 【翻译自mos文章】监控flashback database 的进度
- 转)Oracle 10G重建EM DB Control
- 修改db编码的办法:(在oracle 11g上通过测试)
- oracle 10g em 中如何修改dbsnmp用户密码
- dvrrdk中dsp与arm、video通信
- 08server+IIS7.5+MySQL5.5.19+PHP5.3.28环境搭建步骤及问题
- Win8系统的机器如何改装Win7系统
- cocos2d-x的初步学习二十一之iosandroid跨平台环境配置
- CSS 选择符
- 【翻译自mos文章】修改被 DB Control 监控的db (10g and 11g)中 dbsnmp密码的方法
- 使用ScriptX实现特殊效果的页面打印功能
- 黑马程序员-单例设计模式
- A* 寻路算法
- poj 1281 MANAGER(简单模拟题)
- 无线网络通信技术完全介绍
- firefly学习笔记之C客户端与Python服务器交互(2)
- 块状元素(div)与内联元素(span)
- 网站文件的同步