{"id":34,"date":"2008-10-29T16:48:25","date_gmt":"2008-10-29T20:48:25","guid":{"rendered":"http:\/\/dbtricks.com\/?p=34"},"modified":"2008-10-29T16:48:25","modified_gmt":"2008-10-29T20:48:25","slug":"what-to-do-when-enterprise-manager-is-not-able-to-connect-to-the-database-instance-ora-28001","status":"publish","type":"post","link":"https:\/\/dbtricks.com\/?p=34","title":{"rendered":"What to do when Enterprise Manager is not able to connect to the database instance (ORA-28001)"},"content":{"rendered":"<p>If you are trying to connect to the Oracle enterprise Manger and you get the following errors:<\/p>\n<p>Enterprise Manager is not able to connect to the database instance.<\/p>\n<p>And in the \u201cAgent connection to instance\u201d section:<\/p>\n<p>Status: Failed<br \/>\nDetails: ORA-28001: the password has expired (DBD ERROR: OCISessionBegin)<\/p>\n<p>One of the reasons could be that the password for the SYSMAN user is expired. However, changing the password alone will not solve this issue. Several additional steps are required in order to make Oracle Enterprise Manager connect:<\/p>\n<p>Before you start: Verify that ORACLE_HOME, ORACLE_SID environment variables are set. \u2013 If not, set them using as\u00a0 environment variables or open a command line and type SET ORACLE_SID=&lt;The database SID&gt;<\/p>\n<p>1. Stop the dbconsole: <strong>emctl stop dbconsole<\/strong> (dos and Unix) or\u00a0 using the windows services stop the OrcleDBConsole&lt;The database SID&gt;.<\/p>\n<p>2. Connect to the database as a user with DBA privilege with SQL*Plus<br \/>\nand run the following command:<\/p>\n<p><strong>alter user sysman identified by &lt;the new password&gt; ;<\/strong><\/p>\n<p>3. Verify that the new password works<br \/>\nSQL&gt; <strong>connect sysman\/&lt;the new password&gt;<\/strong><\/p>\n<p>4. Go to ORACLE_HOME\/&lt;HostName_SID&gt;\/sysman\/config and save a backup of the emoms.properties file.<\/p>\n<p>a) Open the file emoms.properties and search for:<br \/>\n<strong>oracle.sysman.eml.mntr.emdRepPwd=<\/strong>&lt;some encrypted value&gt;<\/p>\n<p>Replace the encrypted value with the new password value<\/p>\n<p>b) Search for <strong>oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE<\/strong><br \/>\nand change TRUE to FALSE<\/p>\n<p>c) Save and close emoms.properties<\/p>\n<p>5. Restart the dbconsole:<\/p>\n<p><strong>emctl start dbconsole<\/strong> (dos and Unix) or\u00a0 using the windows services start the OrcleDBConsole&lt;The database SID&gt;.<\/p>\n<p>6. Open\u00a0 emoms.properties again and Search for:<br \/>\na)<strong>oracle.sysman.eml.mntr.emdRepPwd=<\/strong><br \/>\nverify\u00a0 that the password is encrypted<\/p>\n<p>b)<strong> oracle.sysman.eml.mntr.emdRepPwdEncrypted=<\/strong><br \/>\nverify\u00a0 that the value is set to\u00a0 TRUE<\/p>\n<p>7. Refresh Oracle Enterprise Manager<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are trying to connect to the Oracle enterprise Manger and you get the following errors: Enterprise Manager is not able to connect to the database instance. And in the \u201cAgent connection to instance\u201d section: Status: Failed Details: ORA-28001: the password has expired (DBD ERROR: OCISessionBegin) One of the reasons could be that the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[19,107,18],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-ora-28001","tag-oracle","tag-oracle-enterprise-manager"],"_links":{"self":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=34"}],"version-history":[{"count":1,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions\/35"}],"wp:attachment":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}