{"id":6791,"date":"2012-11-19T12:30:27","date_gmt":"2012-11-19T17:30:27","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=6791"},"modified":"2012-11-19T12:35:56","modified_gmt":"2012-11-19T17:35:56","slug":"re-install-oracle-11g-em","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=6791","title":{"rendered":"Re-Install Oracle 11g EM"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Oracle_Version\">Oracle Version<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Unlock_SYSMAN_User_Account\">Unlock SYSMAN User Account<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Remove_EM\">Remove EM<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Add_New_EM_Config\">Add New EM Config<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#References\">References<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Oracle_Version\"><h2>Oracle Version<\/h2><\/span>\n<pre lang=\"sql\">\r\nSQL> select * from v$version;\r\n\r\nBANNER\r\n--------------------------------------------------------------------------------\r\nOracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production\r\nPL\/SQL Release 11.2.0.1.0 - Production\r\nCORE    11.2.0.1.0      Production\r\nTNS for Linux: Version 11.2.0.1.0 - Production\r\nNLSRTL Version 11.2.0.1.0 - Production\r\n<\/pre>\n<span id=\"Unlock_SYSMAN_User_Account\"><h2>Unlock SYSMAN User Account<\/h2><\/span>\n<pre lang=\"sql\">\r\nsqlplus \/ as sysdba\r\n\r\nSQL> alter user sysman account unlock;\r\n\r\nUser altered.\r\n<\/pre>\n<span id=\"Remove_EM\"><h2>Remove EM<\/h2><\/span>\n<pre lang=\"bash\">\r\nemca -deconfig dbcontrol db -repos drop\r\n\r\n...\r\nEnter the following information:\r\nDatabase SID: orcl\r\nListener port number: 1521\r\nPassword for SYS user:  \r\nPassword for SYSMAN user:  \r\n\r\nDo you wish to continue? [yes(Y)\/no(N)]: y\r\n\r\n...\r\noracle.sysman.emcp.util.DBControlUtil stopOMS\r\nINFO: Stopping Database Control (this may take a while) ...\r\noracle.sysman.emcp.EMReposConfig invoke\r\nINFO: Dropping the EM repository (this may take a while) ...\r\noracle.sysman.emcp.EMReposConfig invoke\r\nINFO: Repository successfully dropped\r\nEnterprise Manager configuration completed successfully\r\nFINISHED EMCA\r\n<\/pre>\n<span id=\"Add_New_EM_Config\"><h2>Add New EM Config<\/h2><\/span>\n<pre lang=\"bash\">\r\nemca -config dbcontrol db -repos create\r\n\r\n...\r\nEnter the following information:\r\nDatabase SID: orcl\r\nListener port number: 1521\r\nListener ORACLE_HOME [ \/u01\/app\/oracle\/product\/11.2.0\/dbhome_1 ]: \r\nPassword for SYS user:  \r\nPassword for DBSNMP user:  \r\nPassword for SYSMAN user:  \r\nEmail address for notifications (optional): \r\nOutgoing Mail (SMTP) server for notifications (optional): \r\n-----------------------------------------------------------------\r\n\r\nYou have specified the following settings\r\n\r\nDatabase ORACLE_HOME ................ \/u01\/app\/oracle\/product\/11.2.0\/dbhome_1\r\n\r\nLocal hostname ................ dbbox\r\nListener ORACLE_HOME ................ \/u01\/app\/oracle\/product\/11.2.0\/dbhome_1\r\nListener port number ................ 1521\r\nDatabase SID ................ orcl\r\nEmail address for notifications ............... \r\nOutgoing Mail (SMTP) server for notifications ............... \r\n\r\n-----------------------------------------------------------------\r\nDo you wish to continue? [yes(Y)\/no(N)]: Y\r\n\r\n...\r\noracle.sysman.emcp.EMReposConfig createRepository\r\nINFO: Creating the EM repository (this may take a while) ...\r\n\r\noracle.sysman.emcp.EMReposConfig invoke\r\nINFO: Repository successfully created\r\noracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository\r\nINFO: Uploading configuration data to EM repository (this may take a while) ...\r\noracle.sysman.emcp.EMReposConfig invoke\r\nINFO: Uploaded configuration data successfully\r\noracle.sysman.emcp.util.DBControlUtil configureSoftwareLib\r\nINFO: Software library configured successfully.\r\noracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary\r\nINFO: Deploying Provisioning archives ...\r\noracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary\r\nINFO: Provisioning archives deployed successfully.\r\noracle.sysman.emcp.util.DBControlUtil secureDBConsole\r\nINFO: Securing Database Control (this may take a while) ...\r\noracle.sysman.emcp.util.DBControlUtil secureDBConsole\r\nINFO: Database Control secured successfully.\r\noracle.sysman.emcp.util.DBControlUtil startOMS\r\nINFO: Starting Database Control (this may take a while) ...\r\noracle.sysman.emcp.EMDBPostConfig performConfiguration\r\nINFO: Database Control started successfully\r\noracle.sysman.emcp.EMDBPostConfig performConfiguration\r\nINFO: >>>>>>>>>>> The Database Control URL is https:\/\/mydbbox:1158\/em <<<<<<<<<<<\r\noracle.sysman.emcp.EMDBPostConfig invoke\r\nWARNING: \r\n************************  WARNING  ************************\r\n\r\nManagement Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted.  The encryption key has been placed in the file: \/u01\/app\/oracle\/product\/11.2.0\/dbhome_1\/dbbox_orcl\/sysman\/config\/emkey.ora.   Please ensure this file is backed up as the encrypted data will become unusable if this file is lost. \r\n\r\n***********************************************************\r\nEnterprise Manager configuration completed successfully\r\nFINISHED EMCA\r\n<\/pre>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* Reference: <a href=\"http:\/\/blog.mclaughlinsoftware.com\/oracle-architecture-configuration\/changing-windows-hostname-and-oracle-enterprise-manager\/\">Reconfigure Oracle EM<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle Version SQL> select * from v$version; BANNER &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 &#8211; 64bit Production PL\/SQL Release 11.2.0.1.0 &#8211; Production CORE 11.2.0.1.0 Production TNS for Linux: Version 11.2.0.1.0 &#8211; Production NLSRTL Version 11.2.0.1.0 &#8211; Production Unlock &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=6791\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[89],"tags":[294,270,295],"class_list":["post-6791","post","type-post","status-publish","format-standard","hentry","category-11g","tag-em","tag-oracle11gr2","tag-reinstall"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-1Lx","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/6791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6791"}],"version-history":[{"count":4,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/6791\/revisions"}],"predecessor-version":[{"id":6795,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/6791\/revisions\/6795"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}