{"id":1315,"date":"2011-12-21T15:49:48","date_gmt":"2011-12-21T07:49:48","guid":{"rendered":"http:\/\/www.se.cuhk.edu.hk\/~hmleung\/wordpress\/?p=1315"},"modified":"2011-12-21T15:51:50","modified_gmt":"2011-12-21T07:51:50","slug":"oracle-11g-r2-win2008-server-r2","status":"publish","type":"post","link":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/?p=1315","title":{"rendered":"Oracle 11g R2 win2008 server R2"},"content":{"rendered":"<p>Before installing Oracle 11g R2 x64 in the windows 2008 server R2 x64,  uninstall previous oracle installation .<\/p>\n<p><b>Uninstall previous installation of Oracle Server:<\/b><\/p>\n<p>1. Stop all oracle services from Windows Services<br \/>\n2. Run {Oracle_Home}\\deinstall\\deinstall<br \/>\n3. Run regedit.exe<br \/>\n    => delete  HKEY_LOCAL_MACHINE\/SOFTWARE\/ORACLE key.<br \/>\n    => delete   HKEY_LOCAL_MACHINE\/SYSTEM\/CurrentControlSet\/Services\/Ora*<br \/>\n4. Reboot your machine.<br \/>\n5. Delete the Oracle Home e.g. &#8220;C:\\Oracle&#8221; directory<br \/>\n6. Delete the &#8220;C:\\Program Files\\Oracle&#8221; directory.<\/p>\n<p><b><\/p>\n<p>Install Oracle 11g R2<\/p>\n<p><\/b><\/p>\n<p>1. Unzip win64_11gR2_database_1of2.zip and win64_11gR2_database_2of2.zip into the <b>**same**<\/b> directory , e.g. win64_11gR2_database<br \/>\n2. Run win64_11gR2_database\\database\\setup.exe<br \/>\n3. Follow on-screen instruction for the installation .<br \/>\n4. At the end you will surely see below error message  :<br \/>\n<img src='http:\/\/www.se.cuhk.edu.hk\/~hmleung\/wordpress\/wp-content\/uploads\/2011\/12\/11gr2-install1.JPG' alt='11gr2-install1.JPG' \/><\/p>\n<p>Then Click &#8220;Yes&#8221; to continue and then follow on-screen instruction to finish the whole installation .<br \/>\n5. Go check the Windows Services , the OracleDBConsole Service will be found  failing to startup . <\/p>\n<p><b><\/p>\n<p>Fix Oracle Configuration Manager Configuration failure problem<br \/><\/b><br \/>\n1. Stop all Oracle services<br \/>\n2. Delete  below directories :<br \/>\n&#8211;  $ORACLE_HOME\\{HOSTNAME_SID}<br \/>\n&#8211;  $ORACLE_HOME\\oc4j\\j2ee\\{OC4J_DBConsole_HOSTNAME_SID}<br \/>\n3. Start Oracle server and Oracle Listener services<br \/>\n4.  Drop sysman user and it&#8217;s contents :<\/p>\n<blockquote>\n<p>\n     Run sqlplus \/nolog<br \/>\n     SQL> connect \/ as sysdba<br \/>\n     SQL> drop user sysman cascade;<br \/>\n     SQL> drop role MGMT_USER;<br \/>\n     SQL> drop user MGMT_VIEW cascade;<br \/>\n     SQL> drop public synonym MGMT_TARGET_BLACKOUTS;<br \/>\n     SQL> drop public synonym SETEMVIEWUSERCONTEXT;\n<\/p>\n<\/blockquote>\n<p>5. Remove OracleDBconsoletestdb service from registry<br \/>\n     Run regedit.exe<br \/>\n     => Delete HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\OracleDBConsole{SID}<br \/>\n6. Add entries in hosts file with fully qualified domain name in  C:\\Windows\\System32\\drivers\\etc\\hosts  :<\/p>\n<blockquote>\n<p>\n    127.0.0.1       localhost<br \/>\n    {IP}                  foo.abc.com  foo<br \/>\n    141.146.44.51     updates.oracle.com<br \/>\n    141.146.8.193     metalink.oracle.com\n<\/p>\n<\/blockquote>\n<p>7. Configuring Oracle DB Console.<br \/>\nE:\\> emca -config dbcontrol db -repos recreate<\/p>\n<blockquote>\n<p>\nEnter the following information:Enter the following information:<br \/>\nDatabase SID: {SID}<br \/>\nListener port number: 1521<br \/>\nListener ORACLE_HOME : {Oracle_Home}<br \/>\nPassword for SYS user: {password} <br \/>\nPassword for DBSNMP user: {password} <br \/>\nPassword for SYSMAN user: {password} <br \/>\nPassword for SYSMAN user: {password}<br \/>\nEmail address for notifications (optional): {Email Addr}<br \/>\nOutgoing Mail (SMTP) server for notifications (optional): {your Email smtp server}\n<\/p>\n<\/blockquote>\n<p>Reboot to test https:\/\/foo.abc.com:1158\/em<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before installing Oracle 11g R2 x64 in the windows 2008 server R2 x64, uninstall previous oracle installation . Uninstall previous installation of Oracle Server: 1. Stop all oracle services from Windows Services 2. Run&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1316,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1315","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1315"}],"version-history":[{"count":0,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1315\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/1316"}],"wp:attachment":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}