{"id":2139,"date":"2013-03-10T09:20:50","date_gmt":"2013-03-10T09:20:50","guid":{"rendered":"http:\/\/www.oratraining.com\/blog\/?p=2139"},"modified":"2013-03-19T09:39:00","modified_gmt":"2013-03-19T09:39:00","slug":"installing-11g-rac-on-linux-vm-install-oracle-database-software-and-create-rac-database-2","status":"publish","type":"post","link":"https:\/\/www.oratraining.com\/blog\/2013\/03\/installing-11g-rac-on-linux-vm-install-oracle-database-software-and-create-rac-database-2\/","title":{"rendered":"Installing 11g RAC on Linux VM: Install Oracle Database software and create RAC database"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>Previous:<\/strong><\/p>\n<p style=\"text-align: justify;\">You can start database installation from &lt;stage&gt;\/database directory as follows. Make sure to use database owner user <strong>oradb<\/strong>.<\/p>\n<p style=\"text-align: justify;\">[oradb@dbhost1 ~]$ <strong>cd \/mnt\/hgfs\/setup\/database\/<\/strong><\/p>\n<p style=\"text-align: justify;\">[oradb@dbhost1 database]$ <strong>.\/runInstaller<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing11.png\" \/><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing12.png\" \/><\/p>\n<p style=\"text-align: justify;\">Deselect the checkbox and click <strong>Next<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing13.png\" \/><\/p>\n<p style=\"text-align: justify;\">Click <strong>Yes<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing14.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select &#8220;Create and configure a database&#8221;. We can also install database software and later create database using DBCA. But here we will choose to create database as well. Click <strong>Next<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing15.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select <strong>Server Class<\/strong> and click <strong>Next<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing16.png\" \/><\/p>\n<p style=\"text-align: justify;\">Since it detects presence of clusterware, it will prompt you to select RAC database installation. Select RAC and also select all nodes. Click <strong>Next<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>Note:<\/strong> If this screen does not come then do not proceed, since it may not have detected cluster services running. You must get this screen for proper installation of RAC database.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing17.png\" \/><\/p>\n<p style=\"text-align: justify;\">It will test passwordless connectivity for oradb user on both nodes.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing18.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select &#8220;Advanced install&#8221; and click <strong>Next<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing19.png\" \/><\/p>\n<p style=\"text-align: justify;\">Click <strong>Next<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing110.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select Enterprise Edition. Click on Select Options.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing111.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select whichever options you need. In production systems be careful to select only those options which you have licensed.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing112.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select Software Location as \/app\/oracle\/product\/11.2.0\/dbhome_1<\/p>\n<p style=\"text-align: justify;\">This will be your ORACLE_HOME. Click <strong>Next<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing113.png\" \/><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing114.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select &#8220;General Purpose \/ Transactional Processing&#8221;. Click <strong>Next<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing115.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select appropriate name for your database. Click <strong>Next<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing116.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select &#8220;Enable Automatic Memory Management&#8221; and the amount of memory to be allocated. Click on second tab &#8220;Character sets&#8221;.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing117.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select Unicode. This is best option if you are planning to use non-English characters in future since it supports all Unicode characters. Click <strong>Next<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing118.png\" \/><\/p>\n<p style=\"text-align: justify;\">Click <strong>Next<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing119.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select <strong>File System<\/strong> and specify location as <strong>\/u01\/oradata<\/strong><\/p>\n<p style=\"text-align: justify;\">Click <strong>Next<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing120.png\" \/><\/p>\n<p style=\"text-align: justify;\">Since this is demo database, select &#8220;Do not enable automated backups&#8221;. Click <strong>Next<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing121.png\" \/><\/p>\n<p style=\"text-align: justify;\">For Demo database you can choose same password for all accounts. Click <strong>Next<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing122.png\" \/><\/p>\n<p style=\"text-align: justify;\">Click <strong>Yes<\/strong> if you want to keep simple password.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing123.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select dba and oinstall respectively. Click <strong>Next<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing124.png\" \/><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing125.png\" \/><\/p>\n<p style=\"text-align: justify;\">Review the summary and save response file if required. Click Finish once response file is saved.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing126.png\" \/><\/p>\n<p style=\"text-align: justify;\">[oracle@dbhost1 database]$ You can find the log of this install session at:<\/p>\n<p style=\"text-align: justify;\">\/app\/oraInventory\/logs\/installActions&lt;timestamp&gt;.log<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing127.png\" \/><\/p>\n<p style=\"text-align: justify;\">Next it will create the database as we had selected to create database as well. Please make sure that \/app\/oracle\/cfgtoollogs directory has write permission for group members. If not, please execute following to avoid log file write errors.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>chmod g+w \/app\/oracle\/cfgtoollogs\/<br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031913_0918_Installing128.png\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Once this completes, it will prompt you to run $ORACLE_HOME\/root.sh file on both nodes. <span style=\"text-decoration: underline;\">I have missed to take that last part screenshot so not including in this post<\/span>. This script will run multiple scripts within it which change a few permissions, ownership and add entry for database in \/etc\/oratab file<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Once installation is finished, you can make sure that the database is running on both nodes using following command.<\/p>\n<p>&nbsp;<\/p>\n<p>[oradb@dbhost1 ~]$ <strong>srvctl status database -d rac11g<\/strong><\/p>\n<p>Instance rac11g1 is running on node dbhost1<\/p>\n<p>Instance rac11g2 is running on node dbhost2<\/p>\n<p>&nbsp;<\/p>\n<p>Also you can login to the database and check.<\/p>\n<p>&nbsp;<\/p>\n<p>[oradb@dbhost1 ~]$ sqlplus \/ as sysdba<\/p>\n<p>SQL*Plus: Release 11.2.0.1.0 Production on **<\/p>\n<p>Copyright (c) 1982, 2009, Oracle. All rights reserved.<\/p>\n<p>Connected to:<\/p>\n<p>Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 &#8211; 64bit Production<\/p>\n<p>With the Partitioning, Real Application Clusters, OLAP, Data Mining<\/p>\n<p>and Real Application Testing options<\/p>\n<p>SQL&gt; select inst_id, instance_name, status from gv$instance;<\/p>\n<p>&nbsp;<\/p>\n<p>INST_ID INSTANCE_NAME STATUS<\/p>\n<p>&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;<\/p>\n<p>1 rac11g1 OPEN<\/p>\n<p>2 rac11g2 OPEN<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Shutdown\/Startup steps for 11gR2 RAC on VMs<br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>1. Shutdown steps<br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Since all cluster resources including database, listeners etc can be controlled by Oracle Clusterware Control script (crsctl), we can directly shutdown all services using this crsctl or crs_stop script.<\/p>\n<p>&nbsp;<\/p>\n<p>oracle@dbhost1 ~]# \/app\/oracle\/11.2.0\/grid\/bin\/crs_stop \u2013all<\/p>\n<p>&nbsp;<\/p>\n<p>if you want to only shutdown database or listener, use following commands.<\/p>\n<p>&nbsp;<\/p>\n<p>oracle@dbhost1 ~]# \/app\/oracle\/11.2.0\/grid\/bin\/srvctl stop listener<\/p>\n<p>&nbsp;<\/p>\n<p>oracle@dbhost1 ~]# \/app\/oracle\/11.2.0\/grid\/bin\/srvctl stop database \u2013d rac11g<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2. Startup steps<br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>You can startup all cluster resources including database and listener using crsctl or crs_start script.<\/p>\n<p>&nbsp;<\/p>\n<p>Before this, make sure that you have booted Node 1 first and then Node 2. Give it some time to bring up clusterware related services so that they both can communicate to the CRS daemon.<\/p>\n<p>&nbsp;<\/p>\n<p>Run following command to verify cluster is up.<\/p>\n<p>&nbsp;<\/p>\n<p>root@dbhost2 ~]# <strong>\/app\/11.2.0\/grid\/bin\/srvctl status nodeapps<\/strong><\/p>\n<p>VIP dbhost1-vip is enabled<\/p>\n<p>VIP dbhost1-vip is running on node: dbhost1<\/p>\n<p>VIP dbhost2-vip is enabled<\/p>\n<p>VIP dbhost2-vip is running on node: dbhost2<\/p>\n<p>Network is enabled<\/p>\n<p>Network is running on node: dbhost1<\/p>\n<p>Network is running on node: dbhost2<\/p>\n<p>GSD is disabled<\/p>\n<p>GSD is not running on node: dbhost1<\/p>\n<p>GSD is not running on node: dbhost2<\/p>\n<p>ONS is enabled<\/p>\n<p>ONS daemon is running on node: dbhost1<\/p>\n<p>ONS daemon is running on node: dbhost2<\/p>\n<p>eONS is enabled<\/p>\n<p>eONS daemon is running on node: dbhost1<\/p>\n<p>eONS daemon is running on node: dbhost2<\/p>\n<p>&nbsp;<\/p>\n<p>if everything is fine the use following commands to startup cluster resources including database and listener.<\/p>\n<p>&nbsp;<\/p>\n<p>oracle@dbhost1 ~]# <strong>\/app\/11.2.0\/grid\/bin\/crs_start -all<br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>if you want to only start database or listener, use following commands.<\/p>\n<p>&nbsp;<\/p>\n<p>oracle@dbhost1 ~]# <strong>\/app\/11.2.0\/grid\/bin\/srvctl start listener<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>oracle@dbhost1 ~]# <strong>\/app\/11.2.0\/grid\/bin\/srvctl start database -d rac11g<br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>This concludes the installation of Oracle 11gR2 RAC (11.2.0.1) on 2 VM nodes. You should upgrade this to 11.2.0.3 to leverage best functionalities and bug fixes in 11gR2. I will cover this in another post.<\/p>\n<p>&nbsp;<\/p>\n<p>If your installation had failed during database creation\/configuration part, no need to restart the installation. You can manually create database using Database Configuration Assistant (DBCA). This will automatically detect presence of Oracle clusterware and register database into RAC.<\/p>\n<p>&nbsp;<\/p>\n<p>Thanks for reading this article and feel free to ask any questions or help others who have questions in the comments section.<\/p>\n<p>&nbsp;<\/p>\n<p>Happy Learning !<\/p>\n<p>&nbsp;<\/p>\n<p>Tushar<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong><a title=\"Installing 11g Release 2 Real Application Clusters (11gR2 RAC) on Linux x86-64 Virtual Machine (VM) \u2013 Step by step installation guide\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/installing-11g-release-2-real-application-clusters-11gr2-rac-on-linux-x86-64-virtual-machine-vm-step-by-step-installation-guide\/\">Installing 11g Release 2 Real Application Clusters (11gR2 RAC) on Linux x86-64 Virtual Machine (VM) \u2013 Steps<\/a><\/strong><\/p>\n<p>1.<strong>\u00a0<a title=\"Creating Oracle VirtualBox Virtual Machine with Oracle Linux 5\" href=\"http:\/\/www.oratraining.com\/blog\/2012\/02\/creating-oracle-virtualbox-virtual-machine-with-oracle-linux\/\">Create Virtual Machine and install 64 bit Linux<\/a>\u00a0(generic step from previous post, not specific to this guide)<\/strong><\/p>\n<p>2.\u00a0<a title=\"Add additional virtual Ethernet card and perform prerequisites in Linux\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/add-additional-virtual-ethernet-card-and-perform-prerequisites-in-linux\/\"><strong>Add additional virtual Ethernet card and perform prerequisites in Linux<\/strong><\/a><\/p>\n<p>3.\u00a0<a title=\"Copy\/clone this virtual machine to create second node and modify host details\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/copyclone-this-virtual-machine-to-create-second-node-and-modify-host-details\/\"><strong>Copy\/clone this virtual machine to create second node and modify host details<\/strong><\/a><\/p>\n<p>4.\u00a0<a title=\"Setup shared file system and other pre-requisites\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/setup-shared-file-system-and-other-pre-requisites\/\"><strong>Setup shared file system and other pre-requisites<\/strong><\/a><\/p>\n<p>5.\u00a0<a title=\"Installing 11g RAC on Linux VM: Install Oracle Clusterware\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/installing-11g-rac-on-linux-vm-install-oracle-clusterware\/\"><strong>Install Oracle Clusterware<\/strong><\/a><\/p>\n<p>6.\u00a0<b><a title=\"Installing 11g RAC on Linux VM: Install Oracle Database software and create RAC database\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/installing-11g-rac-on-linux-vm-install-oracle-database-software-and-create-rac-database-2\/\">Install Oracle Database software and create RAC database<\/a><\/b><\/p>\n<p><a title=\"Copy\/clone this virtual machine to create second node and modify host details\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/copyclone-this-virtual-machine-to-create-second-node-and-modify-host-details\/\"><strong>\u00a0<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Previous: You can start database installation from &lt;stage&gt;\/database directory as follows. Make sure to use database owner user oradb. [oradb@dbhost1 ~]$ cd \/mnt\/hgfs\/setup\/database\/ [oradb@dbhost1 database]$ .\/runInstaller Deselect the checkbox and click Next Click Yes Select &#8220;Create and configure a database&#8221;. We can also install database software and later create database using DBCA. But here we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2139","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts\/2139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/comments?post=2139"}],"version-history":[{"count":0,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts\/2139\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/media?parent=2139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/categories?post=2139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/tags?post=2139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}