设为首页 收藏本站
查看: 493|回复: 0

[经验分享] 修改被 DB Control 监控的db (10g and 11g)中 dbsnmp密码的方法

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-7-18 08:55:11 | 显示全部楼层 |阅读模式
修改被 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
                                      



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-22225-1-1.html 上篇帖子: ORACLE中常见SET指令 下篇帖子: Main Note - ogg的 Supplemental Logging and TRANDATA 监控 密码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表