<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oracle Database Administration Blog &#187; mudhalvan</title>
	<atom:link href="http://www.bestremotedba.com/author/mudhalvan/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bestremotedba.com</link>
	<description>Specially Created for Remote DBAs and Junior DBAs</description>
	<lastBuildDate>Fri, 30 Dec 2011 05:43:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>replace comma with new line in editor</title>
		<link>http://www.bestremotedba.com/replace-comma-with-new-line-in-editor/</link>
		<comments>http://www.bestremotedba.com/replace-comma-with-new-line-in-editor/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 03:24:35 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[How to replace a bulk comma with new line in an Editor?]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=1197</guid>
		<description><![CDATA[How to replace a bulk comma with new line in an Editor?
]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>How to replace a bulk comman with new line in an Editor?</p>
<p>   We can easily do it in Winword. Use the replace tool to search for &#8220;,&#8221; and replace with &#8220;^l&#8221;</p>
<p>&nbsp;</p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/replace-comma-with-new-line-in-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Informatica Interview Questions and Answers</title>
		<link>http://www.bestremotedba.com/informatica-interview-questions-and-answers/</link>
		<comments>http://www.bestremotedba.com/informatica-interview-questions-and-answers/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 03:17:35 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Oracle DBA Interview Questions]]></category>
		<category><![CDATA[Informatica Interview Questions]]></category>
		<category><![CDATA[Informatica Interview Questions and Answers]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=1070</guid>
		<description><![CDATA[Informatica Interview Questions and Answers]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>Q. What type of repositories can be created using Informatica Repository Manager?</p>
<p>A. Informatica PowerCenter includeds following type of repositories :</p>
<p>•Standalone Repository : A repository that functions individually and this is unrelated to any other repositories.<br />
•Global Repository : This is a centralized repository in a domain. This repository can contain shared objects across the repositories in a domain. The objects are shared through global shortcuts.<br />
•Local Repository : Local repository is within a domain and it’s not a global repository. Local repository can connect to a global repository using global shortcuts and can use objects in it’s shared folders.<br />
•Versioned Repository : This can either be local or global repository but it allows version control for the repository. A versioned repository can store multiple copies, or versions of an object. This features allows to efficiently develop, test and deploy metadata in the production environment.<br />
Q. What is a code page?</p>
<p>A. A code page contains encoding to specify characters in a set of one or more languages. The code page is selected based on source of the data. For example if source contains Japanese text then the code page should be selected to support Japanese text.</p>
<p>When a code page is chosen, the program or application for which the code page is set, refers to a specific set of data that describes the characters the application recognizes. This influences the way that application stores, receives, and sends character data.</p>
<p>Q. Which all databases PowerCenter Server on Windows can connect to?</p>
<p>A. PowerCenter Server on Windows can connect to following databases:</p>
<p>•IBM DB2<br />
•Informix<br />
•Microsoft Access<br />
•Microsoft Excel<br />
•Microsoft SQL Server<br />
•Oracle<br />
•Sybase<br />
•Teradata<br />
Q. Which all databases PowerCenter Server on UNIX can connect to?</p>
<p>A. PowerCenter Server on UNIX can connect to following databases:</p>
<p>•IBM DB2<br />
•Informix<br />
•Oracle<br />
•Sybase<br />
•Teradata</p>
<p>Informatica Mapping Designer<br />
Q. How to execute PL/SQL script from Informatica mapping?</p>
<p>A. Stored Procedure (SP) transformation can be used to execute PL/SQL Scripts. In SP Transformation PL/SQL procedure name can be specified. Whenever the session is executed, the session will call the pl/sql procedure.</p>
<p>Q. How can you define a transformation? What are different types of transformations available in Informatica?</p>
<p>A. A transformation is a repository object that generates, modifies, or passes data. The Designer provides a set of transformations that perform specific functions. For example, an Aggregator transformation performs calculations on groups of data. Below are the various transformations available in Informatica:<br />
•Aggregator<br />
•Application Source Qualifier<br />
•Custom<br />
•Expression<br />
•External Procedure<br />
•Filter<br />
•Input<br />
•Joiner<br />
•Lookup<br />
•Normalizer<br />
•Output<br />
•Rank<br />
•Router<br />
•Sequence Generator<br />
•Sorter<br />
•Source Qualifier<br />
•Stored Procedure<br />
•Transaction Control<br />
•Union<br />
•Update Strategy<br />
•XML Generator<br />
•XML Parser<br />
•XML Source Qualifier</p>
<p>Q. What is a source qualifier? What is meant by Query Override?</p>
<p>A. Source Qualifier represents the rows that the PowerCenter Server reads from a relational or flat file source when it runs a session. When a relational or a flat file source definition is added to a mapping, it is connected to a Source Qualifier transformation.</p>
<p>PowerCenter Server generates a query for each Source Qualifier Transformation whenever it runs the session. The default query is SELET statement containing all the source columns. Source Qualifier has capability to override this default query by changing the default settings of the transformation properties. The list of selected ports or the order they appear in the default query should not be changed in overridden query.</p>
<p>Q. What is aggregator transformation?</p>
<p>A. The Aggregator transformation allows performing aggregate calculations, such as averages and sums. Unlike Expression Transformation, the Aggregator transformation can only be used to perform calculations on groups. The Expression transformation permits calculations on a row-by-row basis only.</p>
<p>Aggregator Transformation contains group by ports that indicate how to group the data. While grouping the data, the aggregator transformation outputs the last row of each group unless otherwise specified in the transformation properties.</p>
<p>Various group by functions available in Informatica are : AVG, COUNT, FIRST, LAST, MAX, MEDIAN, MIN, PERCENTILE, STDDEV, SUM, VARIANCE.</p>
<p>Q. What is Incremental Aggregation?</p>
<p>A. Whenever a session is created for a mapping Aggregate Transformation, the session option for Incremental Aggregation can be enabled. When PowerCenter performs incremental aggregation, it passes new source data through the mapping and uses historical cache data to perform new aggregation calculations incrementally.</p>
<p>Q. How Union Transformation is used?</p>
<p>A. The union transformation is a multiple input group transformation that can be used to merge data from various sources (or pipelines). This transformation works just like UNION ALL statement in SQL, that is used to combine result set of two SELECT statements.</p>
<p>Q. Can two flat files be joined with Joiner Transformation?</p>
<p>A. Yes, joiner transformation can be used to join data from two flat file sources.</p>
<p>Q. What is a look up transformation?</p>
<p>A. This transformation is used to lookup data in a flat file or a relational table, view or synonym. It compares lookup transformation ports (input ports) to the source column values based on the lookup condition. Later returned values can be passed to other transformations.</p>
<p>Q. Can a lookup be done on Flat Files?</p>
<p>A. Yes.</p>
<p>Q. What is the difference between a connected look up and unconnected look up?</p>
<p>A. Connected lookup takes input values directly from other transformations in the pipleline.</p>
<p>Unconnected lookup doesn’t take inputs directly from any other transformation, but it can be used in any transformation (like expression) and can be invoked as a function using :LKP expression. So, an unconnected lookup can be called multiple times in a mapping.</p>
<p>Q. What is a mapplet?</p>
<p>A. A mapplet is a reusable object that is created using mapplet designer. The mapplet contains set of transformations and it allows us to reuse that transformation logic in multiple mappings.</p>
<p>Q. What does reusable transformation mean?</p>
<p>A. Reusable transformations can be used multiple times in a mapping. The reusable transformation is stored as a metadata separate from any other mapping that uses the transformation. Whenever any changes to a reusable transformation are made, all the mappings where the transformation is used will be invalidated.</p>
<p>Q. What is update strategy and what are the options for update strategy?</p>
<p>A. Informatica processes the source data row-by-row. By default every row is marked to be inserted in the target table. If the row has to be updated/inserted based on some logic Update Strategy transformation is used. The condition can be specified in Update Strategy to mark the processed row for update or insert.</p>
<p>Following options are available for update strategy :<br />
•DD_INSERT : If this is used the Update Strategy flags the row for insertion. Equivalent numeric value of DD_INSERT is 0.<br />
•DD_UPDATE : If this is used the Update Strategy flags the row for update. Equivalent numeric value of DD_UPDATE is 1.<br />
•DD_DELETE : If this is used the Update Strategy flags the row for deletion. Equivalent numeric value of DD_DELETE is 2.<br />
•DD_REJECT : If this is used the Update Strategy flags the row for rejection. Equivalent numeric value of DD_REJECT is 3.</p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/informatica-interview-questions-and-answers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sample tnsnames.ora</title>
		<link>http://www.bestremotedba.com/sample-tnsnames-ora/</link>
		<comments>http://www.bestremotedba.com/sample-tnsnames-ora/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 02:51:58 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[example of tnsnames.ora]]></category>
		<category><![CDATA[sample of tnsnames.ora]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=1030</guid>
		<description><![CDATA[sample tnsnames.ora]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>Simple example/sample tnsnames.ora</p>
<p>TEST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = UNIX01)(PORT = 1521)) ) (CONNECT_DATA = (SID = TEST)) )</p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/sample-tnsnames-ora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dos batch to send email with Attachment</title>
		<link>http://www.bestremotedba.com/dos-batch-to-send-email-with-attachment/</link>
		<comments>http://www.bestremotedba.com/dos-batch-to-send-email-with-attachment/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 03:13:53 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=1018</guid>
		<description><![CDATA[Dos batch to send email with Attachment ]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p><strong>Command syntax:</strong></p>
<div>
<ul>
<li><code>febootimail -ATTACH image.jpg</code></li>
<li><code>febootimail -ATTACH *.doc -ATTACH 20??-file.gif</code></li>
<li><code>febootimail -FILE document.doc -ATTACH "C:\my music\music.mp3"</code></li>
<li><code>febootimail -FILE "image.jpg | C:\my music\music.mp3 | data.txt"</code></li>
</ul>
</div>
<p><strong>-ATTACH</strong> or <strong>-FILE</strong> switch specifies which files will be added to message when sending email from command line. If attachment file path is not specified, attachments are taken from the folder in which Febootimail is executed.</p>
<p>Since Febooti Command line email version 3.0 it is possible to use file masks (e.g. &#8220;*.*&#8221; or &#8220;files*.jp?&#8221;) with -ATTACH (or -FILE) parameter thus cancelling the need for batch files.</p>
<p>Pay attention that if spaces are used either in file name or folder name, expression has to be put in quotes. If many files are sent, -ATTACH switch must be repeated before each file or separate filenames by using | (<em>pipe</em>).</p>
<div>
<div>
<div>
<div>
<div> </div>
<div id="o11"><code id="o31">C:\&gt;febootimail -SERVER smtp.server.com -FROM jack@sender.com -TO john@recipients.com -ATTACH "c:\My Presentations\presentation.ppt | c:\terms\terms.txt" -TEXT DOS mailing out presentation and term files as attachments </code></div>
</div>
</div>
</div>
</div>
<p>Text files can be sent out either as plain message or as attachment. In the latter case text file formatting will not be interpreted arbitrary by email clients, so that it is useful to send text files as attachments if every byte has to be preserved as is.</p>
<div>
<div>
<div>
<div>
<div> </div>
<div id="o12"><code id="o32">C:\&gt;febootimail *other mail parameters* -ATTACH plaintextfile.txt -TEXT "send e-mail from DOS with text file attachment" </code></div>
</div>
</div>
</div>
</div>
<p id="batch">If many files are to be sent as attachments with command line mail utility, it is most convenient to create batch file.</p>
<div>
<div>
<div>
<div>
<div> </div>
<div id="o13"><code id="o33">@echo off<br />
rem send all files as attachments. one attach per email...</p>
<p>for %%i in (*.*) do Febootimail *other params* -ATTACH %%i </code></div>
</div>
</div>
</div>
</div>
<p>Note that (*.*) stands for file mask where (*.*) means that all files will be sent as attachments. If (*.doc) is used, all files with extension .doc will be sent. If (??-dec*.d?c) is specified, only files that have &#8220;-dec&#8221; in their names as 3rd to 6th characted and extension that starts with &#8220;d&#8221; and ends with &#8220;c&#8221; (with 2nd character being any) are to be sent.</p>
<p id="all">Also, note that in example above every file is sent as separate email. If all files have to be attached to single email message, use the batch files from example given below.</p>
<div>
<div>
<div>
<div>
<div> </div>
<div id="o14"><code id="o34">@echo off<br />
rem this is batch file - <strong>do.bat</strong><br />
rem will call batch file - <strong>send.bat</strong></p>
<p>cmd /v /c send.bat</p>
<p>rem /v - delayed environment variable expansion<br />
rem /c carries out the command specified by string<br />
rem Call this file from Windows 2000 / XP / 2003 / Vista </code></div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div> </div>
<div><code id="o35">@echo off<br />
rem batch file - <strong>send.bat</strong> must be called from file <strong>do.bat</strong></p>
<p>rem Gathering all files in current folder with mask specified...<br />
dir *.doc /A-D /B &gt; tmp</p>
<p>rem Expand environment variable attach as long as needed...<br />
for /F "tokens=*" %%i in (tmp) do set attach=!attach! -ATTACH %%i</p>
<p>rem Send all files / attachments in single email...<br />
febootimail &lt;standard params excluding -ATTACH&gt; %ATTACH%</p>
<p>rem Cleaning temporary file...<br />
del tmp </code></div>
<div><code></code> </div>
<div><code>Download febootimail from following Link.</code></div>
</div>
</div>
</div>
</div>
<p><a href="http://www.febooti.com/products/command-line-email/online-help/commands/dos-e-mail-automate-attachment-sending.html">http://www.febooti.com/products/command-line-email/online-help/commands/dos-e-mail-automate-attachment-sending.html</a></p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/dos-batch-to-send-email-with-attachment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OUI-10150:Error: A runtime exception occurred while setting s_dlgCfgNamingLabelSIDnull in component Oracle Database 11g 11.2.0.1.0</title>
		<link>http://www.bestremotedba.com/oui-10150error-a-runtime-exception-occurred-while-setting-s_dlgcfgnaminglabelsidnull-in-component-oracle-database-11g-11-2-0-1-0/</link>
		<comments>http://www.bestremotedba.com/oui-10150error-a-runtime-exception-occurred-while-setting-s_dlgcfgnaminglabelsidnull-in-component-oracle-database-11g-11-2-0-1-0/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 00:51:09 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[OUI-10150:Error: A runtime exception occurred while setting s_dlgCfgNamingLabelSIDnull in component Oracle Database 11g 11.2.0.1.0]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=1016</guid>
		<description><![CDATA[OUI-10150:Error: A runtime exception occurred while setting s_dlgCfgNamingLabelSIDnull in component Oracle Database 11g 11.2.0.1.0]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><pre></pre>
<pre>Problem : Add a Component to an Oracle 11g rel2 Home get the following error
INFO: *** Error Dialog: OUI-10150:Error: A runtime exception occurred while setting s_dlgCfgNamingLabelSIDnull in component Oracle Database 11g 11.2.0.1.0 

Solution:
With 11gR2, you are no longer allowed to run OUI from $ORACLE_HOME/oui/bin. If you do, you will receive this error:
INFO: *** Error Dialog: OUI-10150:Error: A runtime exception occurred while setting s_dlgCfgNamingLabelSIDnull in component Oracle Database 11g 11.2.0.1.0 .
Clearly, the error message is not descriptive at all. Oracle has created unpublished Bug 8330280 to give a warning message instead of this error. 

To avoid this error, always run OUI from the installation media and not from $ORACLE_HOME/oui/bin.</pre>
<pre></pre>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/oui-10150error-a-runtime-exception-occurred-while-setting-s_dlgcfgnaminglabelsidnull-in-component-oracle-database-11g-11-2-0-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AWR Report Missing Statistic Data &#8211; WARNING: Since the DB Time is less than one second</title>
		<link>http://www.bestremotedba.com/awr-report-missing-statistic-data-warning-since-the-db-time-is-less-than-one-second/</link>
		<comments>http://www.bestremotedba.com/awr-report-missing-statistic-data-warning-since-the-db-time-is-less-than-one-second/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 01:17:08 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[AWR report missing Data]]></category>
		<category><![CDATA[there was minimal foreground activity in the snapshot period. Some of the percentage values will be invalid.]]></category>
		<category><![CDATA[WARNING: Since the DB Time is less than one second]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=948</guid>
		<description><![CDATA[WARNING: Since the DB Time is less than one second, there was minimal foreground activity in the snapshot period. Some of the percentage values will be invalid.]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p><span class="Apple-style-span" style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px; white-space: pre;"><strong>Problem description:</strong></span></p>
<pre>     In AWR report in 11g have found the following warning message in the Top and All Statistics Informations are missing
"WARNING: Since the DB Time is less than one second, there was minimal foreground activity in the snapshot period. Some of the percentage values will be invalid."
<strong>Root Cause:</strong>
	Historical Data and Statistics are not colleted and available in Statistical Tables.
<strong>Proposed Solution:</strong>
[oracle@ORA01 ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/db_1
[oracle@ORA01 ~]$ echo $ORACLE_SID
ORCL
[oracle@ORA01 ~]$ cd $ORACLE_HOME
[oracle@ORA01 db_1]$ cd rdbms
[oracle@ORA01 rdbms]$ cd admin
[oracle@ORA01 admin]$ pwd
/u01/app/oracle/product/11.2.0/db_1/rdbms/admin
[oracle@ORA01 admin]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 29 20:51:52 2011
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.1.0 - Production

SQL&gt; show parameter control_management_pack_access

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_management_pack_access       string      NONE

SQL&gt; alter system set control_management_pack_access="DIAGNOSTIC+TUNING" scope=both;

System altered.

SQL&gt; show parameter control_management_pack_access

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_management_pack_access       string      DIAGNOSTIC+TUNING
SQL&gt;
      Once the above propsed solution is applied wait for an hour because default time to generate next Data Collection is after 1 hour. If you have any specific data collection interval please check after next data collection. It will be fine.

<strong>Proposed Another Solution:</strong>
	I think this is a known problem, several mentions on metalink. You could try to drop your AWR with the catnoawr.sql script, then re-create it with catawr.sql but of course you would lose all the histotical data. Or possibly, following the hints in the metalink articles
</pre>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/awr-report-missing-statistic-data-warning-since-the-db-time-is-less-than-one-second/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to run multiple SQL files from a Dos batch</title>
		<link>http://www.bestremotedba.com/how-to-run-multiple-sql-files-from-a-dos-batch/</link>
		<comments>http://www.bestremotedba.com/how-to-run-multiple-sql-files-from-a-dos-batch/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 03:08:15 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[Call a SQL file from a DOS batch]]></category>
		<category><![CDATA[How to run multiple SQL files from a Dos batch]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=938</guid>
		<description><![CDATA[How to run multiple SQL files from a Dos batch ]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>To run multiple SQLPlus queries as part of a DOS batch file place all the queries in a separate SQL file.</p>
<p>For Example</p>
<p>@C:\Queries\Query_1.sql</p>
<p>@C:\Queries\Query_2.sql</p>
<p>@C:\Queries\Query_3.sql</p>
<p>@C:\Queries\Query_4.sql</p>
<p>Save the file as runall.sql.</p>
<p>Then use this file in your batch file</p>
<p>@Echo Off</p>
<p>sqlplus [login details] @C:\queries\runall.sql</p>
<p>EXIT</p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/how-to-run-multiple-sql-files-from-a-dos-batch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Oracle 11g RAC on virtual servers using VMware</title>
		<link>http://www.bestremotedba.com/installing-oracle-11g-rac-on-virtual-servers-using-vmware/</link>
		<comments>http://www.bestremotedba.com/installing-oracle-11g-rac-on-virtual-servers-using-vmware/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 02:14:22 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[RAC]]></category>
		<category><![CDATA[11g Rel2 RAC Installation]]></category>
		<category><![CDATA[Installing Oracle 11g RAC on virtual servers using VMware]]></category>
		<category><![CDATA[RAC Installation]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=935</guid>
		<description><![CDATA[Installing Oracle 11g RAC on virtual servers using VMware]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p><strong>Installing Oracle 11g RAC on virtual servers using VMware.</strong></p>
<p>This post describes the installation of Oracle 11g RAC on virtual servers.<strong>Hardware</strong><br />
The following hardware was used for the installation:</p>
<table width="487" border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="99"><strong>Operating system</strong></td>
<td valign="top" width="100"><strong>Processor</strong></td>
<td valign="top" width="99"><strong>Memory</strong></td>
<td valign="top" width="187"><strong>HDD’s</strong></td>
</tr>
<tr>
<td valign="top" width="99">Windows XP SP2 (32 bit)</td>
<td valign="top" width="100">Intel P4 3Ghz</td>
<td valign="top" width="99">3Gb</td>
<td valign="top" width="187">1 x 160Gb 7200rpm &amp; 1x 250Gb 7200rpm. Both on Ultra ATA Controllers</td>
</tr>
</tbody>
</table>
<p>You’ll need at least 3Gb of RAM for this installation as the virtual machines will be configured with 1Gb of RAM each, leaving 1Gb for the host operating system. The virtual machines further requires a total of 40Gb of storage.</p>
<p><strong>Software</strong></p>
<ul>
<li><a href="http://www.oracle.com/technology/software/products/database/oracle11g/111060_linuxsoft.html">Oracle 11g (11.1.0.6) Database &amp; Clusterware Software</a></li>
<li><a href="http://edelivery.oracle.com/linux">Oracle Enterprise Linux 4 (Update 5)</a></li>
<li><a href="http://www.vmware.com/download/server/">VMware Server 1.0.3</a></li>
</ul>
<p><strong>General</strong></p>
<p>For obvious reason this installation should never be used for Production or Development purposes. This type of environment is however extremely helpful if you want to learn and understand Oracle RAC and you do not have access to traditional hardware resources.</p>
<p><strong>Virtual Machines</strong></p>
<p>I used VMware Server (1.0.3) to facilitate my virtual machines. If you have not done so already download the software <a href="http://www.vmware.com/download/server/">here</a>. You’ll need to register to get an activation code, but it is a free product.</p>
<p>Configure your first virtual machine:</p>
<ol>
<li>Install VMware Server and launch.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/001.jpg?w=162&amp;h=45" alt="vm_console_icon" width="162" height="45" border="0" /></li>
<li>Select ‘local host’ and ‘OK’ to close the pop-up window.</li>
<li>Select ‘New Virtual Machine’ from the VMware Server Console to create the hardware specification for your first virtual machine.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/002.jpg?w=75&amp;h=90" alt="new_vm_icon" width="75" height="90" border="0" /></li>
<li>This will launch the ‘New Virtual Machine Wizard’. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/004.jpg?w=315&amp;h=278" alt="VM4" width="315" height="278" border="0" /></li>
<li>Select ‘Custom’ to allow you to customize the virtual machine. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/005.jpg?w=311&amp;h=275" alt="VM5" width="311" height="275" border="0" /></li>
<li>I’ve settled for Oracle Enterprise Linux 4.5 (which is a rebranded version of Red Hat Enterprise Linux ), therefore select ‘Linux’ as the Guest Operating System and ‘Red Hat Enterprise Linux 4’ as the Version. Oracle Enterprise Linux 5 is not yet supported on VMware Server. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/006.jpg?w=311&amp;h=275" alt="VM6" width="311" height="275" border="0" /></li>
<li>Name your virtual machine and select a location to store the files.<br />
I’ve named the virtual machines: EL4_11gRAC1 and EL4_11gRAC2. We will be creating 2 virtual machines with shared storage. You need to create separate directories for your virtual machines. Also create a separate directory for your shared storage. I’ve created them as follows:&nbsp;</p>
<table width="400" border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="119">Virtual Machine 1</td>
<td valign="top" width="279">E:\Virtual Machines\RAC\rac11g\rac1</td>
</tr>
<tr>
<td valign="top" width="119">Virtual Machine 2</td>
<td valign="top" width="279">E:\Virtual Machines\RAC\rac11g\rac2</td>
</tr>
<tr>
<td valign="top" width="119">Shared Storage</td>
<td valign="top" width="279">E:\Virtual Machines\RAC\rac11g\share</td>
</tr>
</tbody>
</table>
<p><img src="http://startoracle.files.wordpress.com/2007/09/007.jpg?w=311&amp;h=274" alt="VM7" width="311" height="274" border="0" /></li>
<li>Set Access Rights. Deselect ‘Make this virtual machine private’. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/008.jpg?w=310&amp;h=273" alt="VM8" width="310" height="273" border="0" /></li>
<li>Keep the default Startup/Shutdown Options (Run this virtual machines as the user that powers on the virtual machine). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/009.jpg?w=314&amp;h=276" alt="VM9" width="314" height="276" border="0" /></li>
<li>Keep the Processor Configuration default (One). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/010.jpg?w=310&amp;h=273" alt="VM10" width="310" height="273" border="0" /></li>
<li>Allocate 1Gb of memory for your virtual machine. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/n004.jpg?w=314&amp;h=277" alt="VM11" width="314" height="277" border="0" /></li>
<li>Keep the default network type (bridged networking). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/012.jpg?w=314&amp;h=276" alt="VM12" width="314" height="276" border="0" /></li>
<li>Keep the default I/O Adapter Type (LSI Logic). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/013.jpg?w=314&amp;h=276" alt="VM13" width="314" height="276" border="0" /></li>
<li>Keep the default setting to create a new virtual disk. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/014.jpg?w=310&amp;h=273" alt="VM14" width="310" height="273" border="0" /></li>
<li>Keep the default disk type (SCSI). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/015.jpg?w=310&amp;h=274" alt="VM15" width="310" height="274" border="0" /></li>
<li>Specify a disk capacity of 20Gb for your local disk. We need enough space for the Linux installation, Oracle Clusterware software, Oracle Database software and a staging area. Make sure to deselect ‘Allocate all disk space now’ and select ‘Split disk into 2Gb files’.<br />
‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/036.jpg?w=309&amp;h=273" alt="VM16" width="309" height="273" border="0" /></li>
<li>Specify a filename for your virtual disk (localdisk.vmdk) and create it in the directory for your first virtual machine (E:\Virtual Machines\RAC\rac11g\rac1). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/40.jpg?w=313&amp;h=276" alt="VM17" width="313" height="276" border="0" /></li>
<li>Edit your virtual machine settings to add the shared disks and an additional network card. Select ‘Edit virtual machine settings’ from the Commands section on the VMware Server Console. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/n005.jpg?w=393&amp;h=336" alt="VM18" width="393" height="336" border="0" /></li>
<li>This will bring up a settings window. Select ‘Add’ to add new hardware. This will launch the ‘Add New Hardware’ wizard.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/n006.jpg?w=436&amp;h=336" alt="VM19" width="436" height="336" border="0" /></li>
<li>Select ‘Ethernet Adapter’ to add an additional network card. We will use this to configure the private interconnect. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/020.jpg?w=310&amp;h=275" alt="VM20" width="310" height="275" border="0" /></li>
<li>This time around select ‘Host-only’ as the network type. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/037.jpg?w=309&amp;h=273" alt="VM21" width="309" height="273" border="0" /></li>
<li>Launch the New Hardware Wizard again to add the following SCSI disks:<br />
<table width="336" border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="117"><strong>Purpose</strong></td>
<td valign="top" width="63"><strong>Size</strong></td>
<td valign="top" width="153"><strong>Virtual device node</strong></td>
</tr>
<tr>
<td valign="top" width="117">Database files</td>
<td valign="top" width="63">3Gb</td>
<td valign="top" width="153">SCSI 1:0</td>
</tr>
<tr>
<td valign="top" width="117">Database files</td>
<td valign="top" width="63">3Gb</td>
<td valign="top" width="153">SCSI 1:1</td>
</tr>
<tr>
<td valign="top" width="117">Database files</td>
<td valign="top" width="63">3Gb</td>
<td valign="top" width="153">SCSI 1:2</td>
</tr>
<tr>
<td valign="top" width="116">Oracle Cluster Registry</td>
<td valign="top" width="63">300Mb</td>
<td valign="top" width="153">SCSI 1:3</td>
</tr>
<tr>
<td valign="top" width="116">Voting Disk</td>
<td valign="top" width="63">300Mb</td>
<td valign="top" width="153">SCSI 1:4</td>
</tr>
</tbody>
</table>
</li>
<li>Select ‘Hard Disk’ to add a new harddisk. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/022.jpg?w=310&amp;h=274" alt="VM23" width="310" height="274" border="0" /></li>
<li>Select ‘Create a new virtual disk’. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/023.jpg?w=310&amp;h=274" alt="VM24" width="310" height="274" border="0" /></li>
<li>Select ‘SCSI’ as the disk type. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/024.jpg?w=312&amp;h=276" alt="VM25" width="312" height="276" border="0" /></li>
<li>Allocate disk space as per the table in step 22. This time around keep the default options (‘Allocate all disk space now’ selected and ‘Split disk into 2Gb files’ deselected). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/025.jpg?w=310&amp;h=275" alt="VM26" width="310" height="275" border="0" /></li>
<li>Give the new disk a descriptive name (datadisk1.vmdk) and save it to the shared disk folder (E:\Virtual Machines\RAC\rac11g\share ). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/026.jpg?w=310&amp;h=275" alt="VM27" width="310" height="275" border="0" /></li>
<li>Once the new disk has been created, select it and click on the ‘Advanced’ button to edit. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/027.jpg?w=421&amp;h=324" alt="VM28" width="421" height="324" border="0" /></li>
<li>Change the Virtual device node as per the table in step 22 and change the Mode to ‘Independent’ and ‘Persistent’. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/028.jpg?w=271&amp;h=361" alt="VM29" width="271" height="361" border="0" /></li>
<li>Repeat steps 23 to 29 until all the disks in the table in step 22 have been configured.</li>
<li>Once all the disks have been added edit the virtual machine configuration file (E:\Virtual Machines\RAC\rac11g\rac1\Red Hat Enterprise Linux 4.vmx), but first close the Virtual Machine Settings screen to save the changes to the configuration file.Add the parameters in bold blue below to the configuration file in order to enable disk sharing:config.version = “8″<br />
virtualHW.version = “4″<br />
scsi0.present = “TRUE”<br />
scsi0.virtualDev = “lsilogic”<br />
memsize = “768″<br />
scsi0:0.present = “TRUE”<br />
scsi0:0.fileName = “rac1_localdisk.vmdk”<br />
ide1:0.present = “TRUE”<br />
ide1:0.fileName = “auto detect”<br />
ide1:0.deviceType = “cdrom-raw”<br />
floppy0.present = “FALSE”<br />
Ethernet0.present = “TRUE”<br />
displayName = “EL4_11gRAC1″<br />
guestOS = “rhel4″<br />
priority.grabbed = “normal”<br />
priority.ungrabbed = “normal”<br />
<strong>disk.locking = “FALSE”<br />
diskLib.dataCacheMaxSize = “0″<br />
diskLib.dataCacheMaxReadAheadSize = “0″<br />
diskLib.dataCacheMinReadAheadSize = “0″<br />
diskLib.dataCachePageSize = “0″<br />
scsi1.sharedBus = “virtual”</strong><br />
scsi1.present = “TRUE”<br />
scsi1:0.present = “TRUE”<br />
scsi1:0.fileName = “E:\Virtual Machines\rac\rac11g\share\datadisk1.vmdk”<br />
scsi1:0.mode = “independent-persistent”<br />
<strong>scsi1:0.deviceType = “disk”</strong><br />
scsi1:1.present = “TRUE”<br />
scsi1:1.fileName = “E:\Virtual Machines\rac\rac11g\share\datadisk2.vmdk”<br />
scsi1:1.mode = “independent-persistent”<br />
<strong>scsi1:1.deviceType = “disk”</strong><br />
scsi1:2.present = “TRUE”<br />
scsi1:2.fileName = “E:\Virtual Machines\rac\rac11g\share\datadisk3.vmdk”<br />
scsi1:2.mode = “independent-persistent”<br />
<strong>scsi1:2.deviceType = “disk”</strong><br />
scsi1:3.present = “TRUE”<br />
scsi1:3.fileName = “E:\Virtual Machines\rac\rac11g\share\ocrdisk.vmdk”<br />
scsi1:3.mode = “independent-persistent”<br />
<strong>scsi1:3.deviceType = “disk”</strong><br />
scsi1:4.present = “TRUE”<br />
scsi1:4.fileName = “E:\Virtual Machines\rac\rac11g\share\votingdisk.vmdk”<br />
scsi1:4.mode = “independent-persistent”<br />
<strong>scsi1:4.deviceType = “disk”</strong><br />
scsi1.virtualDev = “lsilogic”<br />
ide1:0.autodetect = “TRUE”<br />
Ethernet1.present = “TRUE”</li>
</ol>
<p>You have now successfully configured your first virtual machine. We’ll clone this at a later stage to provide for the second virtual machine.</p>
<p><strong>Install Oracle Enterprise Linux</strong></p>
<p>You are now ready to install Linux on the virtual machine. If you have not done so already, download the Oracle Enterprise Linux 4 (Update 5) files from <a href="http://edelivery.oracle.com/linux">here</a>and unzip. Once unzipped you should have the following cd image files:<br />
Enterprise-R4-U5-i386-disc1.iso<br />
Enterprise-R4-U5-i386-disc2.iso<br />
Enterprise-R4-U5-i386-disc3.iso<br />
Enterprise-R4-U5-i386-disc4.iso</p>
<p>Install Linux:</p>
<ol>
<li>To start the installation select ‘Edit virtual machine settings’ from the main VMware Server Console. Select the CD-ROM drive. Under ‘Connection’ select ‘Use ISO image’ and browse to and select the ISO image for the Linux installation disk 1 (Enterprise-R4-U5-i386-disc1.iso).’OK’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/n003.jpg?w=435&amp;h=336" alt="EL1" width="435" height="336" border="0" /></li>
<li>Select ‘Start this virtual machine’ to start it up.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0021.jpg?w=170&amp;h=41" alt="EL2" width="170" height="41" border="0" /></li>
<li>The virtual machine will now boot from the CD-ROM and start the Linux installer. Press ‘Enter’ to select to install in graphical mode. Select ‘Skip’ on the following screen to skip media testing.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/003.jpg?w=357&amp;h=336" alt="EL3" width="357" height="336" border="0" /></li>
<li>The graphical installer will now launch. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0041.jpg?w=372&amp;h=336" alt="EL4" width="372" height="336" border="0" /></li>
<li>Make your language selection. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0051.jpg?w=373&amp;h=336" alt="EL5" width="373" height="336" border="0" /></li>
<li>Select your keyboard configuration. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0061.jpg?w=373&amp;h=336" alt="EL6" width="373" height="336" border="0" /></li>
<li>Select ‘Manually partition with Disk Druid’. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0071.jpg?w=373&amp;h=336" alt="EL7" width="373" height="336" border="0" /></li>
<li>Select ‘Yes’ for all warning messages that indicate the partition table was unreadable.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/42.jpg?w=329&amp;h=186" alt="EL8" width="329" height="186" border="0" /></li>
<li>Partition local disk<br />
Partition the local disk (/dev/sda) as follows:&nbsp;</p>
<table width="188" border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="95"><strong>Mount point</strong></td>
<td valign="top" width="91"><strong>Size</strong></td>
</tr>
<tr>
<td valign="top" width="95">/swap</td>
<td valign="top" width="91">2048Mb</td>
</tr>
<tr>
<td valign="top" width="95">/tmp</td>
<td valign="top" width="91">1024Mb</td>
</tr>
<tr>
<td valign="top" width="95">/</td>
<td valign="top" width="91">4096Mb</td>
</tr>
<tr>
<td valign="top" width="95">/u01</td>
<td valign="top" width="91">13312Mb</td>
</tr>
</tbody>
</table>
<p>To partition the local disk select the free space on /dev/sda and select ‘Edit’ to add partitions. Add all partitions as in the table above to /dev/sda. Do not configure the other disks at this stage. Select ‘Next’ to continue once done.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/43.jpg?w=371&amp;h=336" alt="EL9" width="371" height="336" border="0" /></li>
<li>Keep the default boot loader configuration. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0091.jpg?w=372&amp;h=336" alt="EL10" width="372" height="336" border="0" /></li>
<li>Network configuration<br />
Configure the network as follows:&nbsp;</p>
<table width="400" border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="145"><strong>Hostname</strong></td>
<td valign="top" width="63"><strong>Network device</strong></td>
<td valign="top" width="79"><strong>Network type</strong></td>
<td valign="top" width="110"><strong>IP address</strong></td>
</tr>
<tr>
<td valign="top" width="145">rac1.startoracle.com</td>
<td valign="top" width="63">eth0</td>
<td valign="top" width="78">Public</td>
<td valign="top" width="110">192.168.1.50</td>
</tr>
<tr>
<td valign="top" width="145"></td>
<td valign="top" width="63">eth1</td>
<td valign="top" width="78">Private</td>
<td valign="top" width="110">10.10.10.50</td>
</tr>
</tbody>
</table>
<p>Please note: Configure the public IP address for your virtual machines so that they are on the same network (192.168.1.1 in my case) as your host machine. You can also change the domain name (startoracle.com in my case) to your own. Remember to make these changes throughout the rest of the installation.</p>
<p>Tick both network devices to be ‘Active on boot’:<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0101.jpg?w=333&amp;h=124" alt="EL11_1" width="333" height="124" border="0" /><br />
Select each device and select ‘Edit’ to edit advanced settings:<br />
Deselect ‘Configure using DHCP’<br />
Enter the IP address as per the table above.<br />
Enter the Netmask: 255.255.255.0<br />
<img src="http://startoracle.files.wordpress.com/2007/09/011.jpg?w=297&amp;h=235" alt="EL11_2" width="297" height="235" border="0" /><br />
Repeat for interface eth1:<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0121.jpg?w=294&amp;h=233" alt="EL11_3" width="294" height="233" border="0" /><br />
Set the hostname: rac1.startoracle.com<br />
Set the Gateway: 192.168.1.1<br />
Set the Primary DNS: 192.168.1.1<br />
‘Next’ to continue when done.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0131.jpg?w=373&amp;h=336" alt="EL11_4" width="373" height="336" border="0" /></li>
<li>Disable the firewall and SELinux. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0141.jpg?w=371&amp;h=336" alt="EL12" width="371" height="336" border="0" /></li>
<li>Select additional language support. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0151.jpg?w=371&amp;h=336" alt="EL13" width="371" height="336" border="0" /></li>
<li>Select your time zone. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/016.jpg?w=371&amp;h=336" alt="EL14" width="371" height="336" border="0" /></li>
<li>Set your root password. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/017.jpg?w=373&amp;h=336" alt="EL15" width="373" height="336" border="0" /></li>
<li>Select ‘Customize software packages to be installed’. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/018.jpg?w=373&amp;h=336" alt="EL16" width="373" height="336" border="0" /></li>
<li>Package Group Selection<br />
Keep all the default selected package groups and add the following groups:<br />
– Legacy Software Development<br />
– Graphical Internet (to add Firefox)<br />
– Development Tools<br />
– System Tools. Also select ‘Details’ for this group and add the 3 oracleasm packages and the sysstat package.<br />
‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/019.jpg?w=372&amp;h=336" alt="EL17" width="372" height="336" border="0" /></li>
<li>Select ‘Next’ to start the installation.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0201.jpg?w=373&amp;h=336" alt="EL18_1" width="373" height="336" border="0" />During the installation you’ll be prompted to insert the installation cd’s. When this happens simply right-click on the CD-ROM icon in the bottom right corner and select the appropriate ISO image file. Select ‘Ok’ to continue the installation.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/021.jpg?w=389&amp;h=70" alt="EL18_2" width="389" height="70" border="0" /></li>
<li>Reboot once installation is done.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0221.jpg?w=371&amp;h=336" alt="EL19" width="371" height="336" border="0" /></li>
<li>After the reboot, finalize the setup. ‘Next’ to skip the Welcome screen.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0231.jpg?w=372&amp;h=336" alt="EL20" width="372" height="336" border="0" /></li>
<li>Accept the license agreement. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0241.jpg?w=371&amp;h=336" alt="EL21" width="371" height="336" border="0" /></li>
<li>Check the date and time and set if incorrect. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0251.jpg?w=371&amp;h=336" alt="EL22" width="371" height="336" border="0" /></li>
<li>Check and set display. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0261.jpg?w=371&amp;h=336" alt="EL23" width="371" height="336" border="0" /></li>
<li>Setup a system user (not the oracle user). You can skip this. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0271.jpg?w=373&amp;h=336" alt="EL24" width="373" height="336" border="0" /></li>
<li>Additional CDs. No action required. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0281.jpg?w=372&amp;h=336" alt="EL25" width="372" height="336" border="0" /></li>
<li>Select ‘Next’ to complete the installation.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/029.jpg?w=372&amp;h=336" alt="EL26" width="372" height="336" border="0" /></li>
<li>Ensure that you are using the SMP kernel<br />
To ensure you are using this kernel open a terminal window as the root user and enter the following command: uname -rIf the following output is displayed then the correct kernel is used:<br />
<img src="http://startoracle.files.wordpress.com/2007/09/44.jpg?w=289&amp;h=132" alt="EL27_1" width="289" height="132" border="0" /><br />
If any other kernel is used edit the /boot/grub/grub.conf file and set the default option to boot the SMP kernel. The first option is 0 and is usually set as the default boot option, the second option is 1 etc. Each kernel boot option starts with the ‘title’ line.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/45.jpg?w=448&amp;h=302" alt="EL27_2" width="448" height="302" border="0" /></li>
<li>At this point power down the virtual machine, edit the virtual machine settings to reset the CD-ROM to ‘Use physical drive’ and ‘Auto detect’. Restart the virtual machine.</li>
<li>Install VMware tools in the virtual machine. This is necessary so that the time between the host and virtual machines stay synchronized. If the time between the RAC nodes are out of sync installation to the remote node will fail.To install VMware tools, log in as root in the virtual machine and select ‘Install VMware Tools…’ from the VM menu in the VMware Server Console.<br />
<a href="http://startoracle.files.wordpress.com/2007/09/030.jpg"><img src="http://startoracle.files.wordpress.com/2007/09/030-thumb.jpg?w=329&amp;h=256" alt="EL29_1" width="329" height="256" border="0" /></a><br />
Confirm installation. ‘Install’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/031.jpg?w=373&amp;h=134" alt="EL29_2" width="373" height="134" border="0" /><br />
This will mount an image on the cd drive with the installation package.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/032.jpg?w=117&amp;h=92" alt="EL29_3" width="117" height="92" border="0" /><br />
Open the cd folder and double-click the VMwareTools package to install.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/033.jpg?w=166&amp;h=114" alt="EL29_4" width="166" height="114" border="0" /><br />
Open a terminal window and execute: /usr/bin/vmware-config-tools.pl to configure VMware Tools. Select the screen resolution during configuration.Configure VMware Tools to start every time you login. On the ‘Applications’ menu go to ‘Preferences’, ‘More Preferences’ and launch ‘Sessions’. Add: /usr/bin/vmware-toolbox to Startup Programs.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/034.jpg?w=337&amp;h=252" alt="EL29_5" width="337" height="252" border="0" /><br />
Log out and back in as root.Make sure to tick the ‘Time synchronization between the virtual machine and the host operating system’ box. This will add the following line to the Virtual Machine configuration file:tools.syncTime = “TRUE”<br />
<img src="http://startoracle.files.wordpress.com/2007/09/035.jpg?w=318&amp;h=361" alt="EL29_6" width="318" height="361" border="0" /><br />
Minimize the ‘VMware Tools Properties’ window.</li>
<li>Edit /boot/grub/grub.conf and add the following options to the kernel /boot/ line of your default (SMP) kernel:<br />
clock=pit nosmp noapic nolapic<br />
<img src="http://startoracle.files.wordpress.com/2007/09/46.jpg?w=448&amp;h=313" alt="EL30" width="448" height="313" border="0" /></li>
<li>Install the following packages from the indicated cd’s:<br />
libaio-devel-0.3.105-2 (CD 3)<br />
elfutils-libelf-devel-0.97.1-4 (CD 4)<br />
unixODBC-devel-2.2.11-1 (CD 4)</li>
<li>Create disk partitions for shared disks<br />
Prepare the following disks that will host the shared database files, the Oracle Cluster Registry and the Clusterware voting disk:&nbsp;</p>
<table width="400" border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="164"><strong>Purpose</strong></td>
<td valign="top" width="57"><strong>Size</strong></td>
<td valign="top" width="100"><strong>Virtual device node</strong></td>
<td valign="top" width="78"><strong>Disk</strong></td>
</tr>
<tr>
<td valign="top" width="164">Database files</td>
<td valign="top" width="57">3Gb</td>
<td valign="top" width="100">SCSI 1:0</td>
<td valign="top" width="79">/dev/sdb</td>
</tr>
<tr>
<td valign="top" width="164">Database files</td>
<td valign="top" width="57">3Gb</td>
<td valign="top" width="100">SCSI 1:1</td>
<td valign="top" width="80">/dev/sdc</td>
</tr>
<tr>
<td valign="top" width="164">Database files</td>
<td valign="top" width="57">3Gb</td>
<td valign="top" width="99">SCSI 1:2</td>
<td valign="top" width="81">/dev/sdd</td>
</tr>
<tr>
<td valign="top" width="164">Oracle Cluster Registry</td>
<td valign="top" width="57">300Mb</td>
<td valign="top" width="99">SCSI 1:3</td>
<td valign="top" width="82">/dev/sde</td>
</tr>
<tr>
<td valign="top" width="164">Voting Disk</td>
<td valign="top" width="57">300Mb</td>
<td valign="top" width="99">SCSI 1:4</td>
<td valign="top" width="83">/dev/sdf</td>
</tr>
</tbody>
</table>
<p>Use the following command to list all disks &amp; partitions: fdisk –l<br />
This will list all disks (including /dev/sda which we’ve already configured).</p>
<p>Repeat the following steps for all disks in the table above:<br />
Open a terminal window as the root user and enter the following command (replacing &lt;disk&gt; with the correct disk name): fdisk &lt;disk&gt;</p>
<p>[root@rac1 ~]# fdisk /dev/sdb<br />
Command (m for help): n<br />
Command action<br />
e extended<br />
p primary partition (1-4)<br />
p<br />
Partition number (1-4): 1<br />
First cylinder (1-391, default 1):<br />
Using default value 1<br />
Last cylinder or +size or +sizeM or +sizeK (1-391, default 391):<br />
Using default value 391<br />
Command (m for help): w<br />
The partition table has been altered!<br />
Calling ioctl() to re-read partition table.<br />
Syncing disks.</p>
<p>The key sequence after entering the fdisk &lt;disk&gt; command is:<br />
n [return] p [return] 1 [return] [return] [return] w [return]</li>
<li>Prepare raw disks<br />
Bind the OCR and Voting Disk partitions to raw devices. To do this edit the file: /etc/sysconfig/rawdevices and add the following lines:<br />
/dev/raw/raw1 /dev/sde1<br />
/dev/raw/raw2 /dev/sdf1<br />
<img src="http://startoracle.files.wordpress.com/2007/09/401.jpg?w=448&amp;h=210" alt="EL33_1" width="448" height="210" border="0" /><br />
Restart the raw devices service for the new settings to take effect:<br />
[root@rac1 ~]# service rawdevices restart<br />
Assigning devices:<br />
/dev/raw/raw1 –&gt; /dev/sde1<br />
/dev/raw/raw1: bound to major 8, minor 65<br />
/dev/raw/raw2 –&gt; /dev/sdf1<br />
/dev/raw/raw2: bound to major 8, minor 81When you restart an Oracle Enterprise Linux 4 system, ownership and permissions for raw devices will revert to the root owner. To prevent this from happening edit the raw devices section of the /etc/udev/permissions.d/50-udev.permissions file to look like the following:<br />
<img src="http://startoracle.files.wordpress.com/2007/09/39.jpg?w=203&amp;h=77" alt="EL33_2" width="203" height="77" border="0" /></li>
<li>Create users and groups<br />
In Oracle 11g Oracle recommends a new system group (osasm) if you want to separate the ASM administration function from your DBA’s. Likewise they recommend creating a separate group (crs) for Clusterware administration. I will however create a single software owner (oracle) for all Oracle software.To create the necessary groups and users execute the following from the command line as the root user:<br />
# groupadd -g 501 oinstall<br />
# groupadd -g 502 dba<br />
# useradd -g oinstall -G dba -s /bin/ksh oracle<br />
# passwd oracle</li>
<li>Configuring kernel parameters and shell limits<br />
Append the following to the /etc/sysctl.conf file as the root user:<br />
kernel.sem = 250 32000 100 128<br />
kernel.shmmax = 536870912<br />
net.ipv4.ip_local_port_range = 1024 65000<br />
net.core.rmem_default = 4194304<br />
net.core.rmem_max = 4194304<br />
net.core.wmem_default = 262144<br />
net.core.wmem_max = 262144</p>
<p>You can issue the following command for these settings to take immediate effect: /sbin/sysctl –p</li>
<li>Add the following entries to the /etc/hosts file as the root user:<br />
<table width="429" border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="96">Public</td>
<td valign="top" width="91">192.168.1.50</td>
<td valign="top" width="169">rac1.startoracle.com</td>
<td valign="top" width="71">rac1</td>
</tr>
<tr>
<td valign="top" width="96"></td>
<td valign="top" width="91">192.168.1.60</td>
<td valign="top" width="169">rac2.startoracle.com</td>
<td valign="top" width="71">rac2</td>
</tr>
<tr>
<td valign="top" width="96">VIP</td>
<td valign="top" width="91">192.168.1.51</td>
<td valign="top" width="169">rac1-vip.startoracle.com</td>
<td valign="top" width="71">rac1-vip</td>
</tr>
<tr>
<td valign="top" width="96"></td>
<td valign="top" width="91">192.168.1.61</td>
<td valign="top" width="169">rac2-vip.startoracle.com</td>
<td valign="top" width="71">rac2-vip</td>
</tr>
<tr>
<td valign="top" width="96">Inter-connect</td>
<td valign="top" width="91">10.10.10.50</td>
<td valign="top" width="169">rac1-priv.startoracle.com</td>
<td valign="top" width="71">rac1-priv</td>
</tr>
<tr>
<td valign="top" width="96"></td>
<td valign="top" width="91">10.10.10.60</td>
<td valign="top" width="169">rac2-priv.startoracle.com</td>
<td valign="top" width="71">rac2-priv</td>
</tr>
</tbody>
</table>
<p>The /etc/hosts file should now contain the following entries:<br />
<img src="http://startoracle.files.wordpress.com/2007/09/41.jpg?w=448&amp;h=321" alt="EL36" width="448" height="321" border="0" /><br />
Restart the network services to pick up the new settings with the following command: # service network restart</li>
<li>As root create the following oracle directories and change the ownership to oracle:<br />
# mkdir -p /u01/app/oracle/product/11.1.0/crs<br />
# mkdir /u01/app/oracle/product/11.1.0/db_1<br />
# mkdir /u01/Stage11g<br />
# chown -R oracle:oinstall /u01/app<br />
# chown oracle:oinstall /u01/Stage11g</li>
<li>Set shell limits for the Oracle user<br />
As the root user add the following lines to the /etc/security/limits.conf file:<br />
oracle soft nproc 2047<br />
oracle hard nproc 16384<br />
oracle soft nofile 1024<br />
oracle hard nofile 65536Add the following as the second last lines in the /etc/pam.d/login file if it does not exist:<br />
session required pam_limits.so&nbsp;</p>
<p>Append the following to the /etc/profile file:<br />
if [ $USER = “oracle” ]; then<br />
if [ $SHELL = “/bin/ksh” ]; then<br />
ulimit -p 16384<br />
ulimit -n 65536<br />
else<br />
ulimit -u 16384 -n 65536<br />
fi<br />
umask 022<br />
fi</li>
<li>Install the ASMLib package<br />
Download the ASM Lib package from the <a href="http://www.oracle.com/technology/software/tech/linux/asmlib/rhel4.html">Oracle Technology Network</a>. Download the package named ‘oracleasmlib-2.0.2-1.i386.rpm’ under the section ‘Intel IA32 (x86) Architecture’ and install it as the root user with the following command: # rpm -i oracleasmlib-2.0.2-1.i386.rpm</li>
<li>Clone the virtual machine<br />
At this point shutdown the virtual machine and copy all the files from the virtual machine’s directory to the directory for the second virtual machine. Once this is complete add the second virtual machine as follows:<br />
Select the ‘Home’ tab in the VMware Server Console.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/441.jpg?w=341&amp;h=124" alt="EL40_1" width="341" height="124" border="0" /><br />
Select ‘Open Existing Virtual Machine’ and browse to the cloned virtual machine directory and select the file ‘Red Hat Enterprise Linux 4.vmx’. The cloned virtual machine will now show up in the VMware Server Console.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/451.jpg?w=104&amp;h=107" alt="EL40_2" width="104" height="107" border="0" /><br />
Rename the new virtual machine:<br />
To rename the virtual machine select ‘Edit virtual machine settings’ and select the ‘Options’ tab. Change the virtual machine name (EL4_11gRAC2) and click ‘OK’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/461.jpg?w=260&amp;h=71" alt="EL40_3" width="260" height="71" border="0" /><br />
Start the new virtual machine (while leaving the old one powered off) and log in as root. When prompted if you want to create a new UUID for the virtual machine select ‘Create’ and ‘OK’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/47.jpg?w=389&amp;h=239" alt="EL40_4" width="389" height="239" border="0" /><br />
Upon startup you will be asked to remove the 2 “old” network cards and add “new” network cards. Select ‘Remove Configuration’ to remove the network cards. You’ll need to do this twice.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/48.jpg?w=377&amp;h=218" alt="EL40_5" width="377" height="218" border="0" /><br />
Select ‘Configure’ to configure the first network card.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/49.jpg?w=377&amp;h=227" alt="EL40_6" width="377" height="227" border="0" /><br />
Enter the IP configuration for the second virtual machine’s first network card (Private) as per the table in step 36. ‘OK’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/51.jpg?w=377&amp;h=228" alt="EL40_7" width="377" height="228" border="0" /><br />
Select ‘Configure’ again to configure the second network card and enter the IP configuration for the second virtual machine’s second network card (Public) as per the table in step 36. ‘OK’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/50.jpg?w=377&amp;h=228" alt="EL40_8" width="377" height="228" border="0" /><br />
Login as the root user and update the network settings.<br />
From the ‘Applications’ menu select ‘System Settings’ and ‘Network’ to edit network settings.<br />
For each network device do the following:<br />
Select the device and Select ‘Edit’.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/52.jpg?w=336&amp;h=347" alt="EL40_9" width="336" height="347" border="0" /><br />
Make sure the IP address is correct for each device – eth0 (the bridged network connection) should be on the public network and eth1 (the host-only network connection) should be on the private network. If the settings are incorrect update the IP address, subnet mask and default gateway.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/53.jpg?w=346&amp;h=336" alt="EL40_10" width="346" height="336" border="0" /><br />
Select the ‘Hardware Device’ tab and click ‘Probe’ to get the new MAC address for the device. Select ‘OK’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/54.jpg?w=346&amp;h=336" alt="EL40_11" width="346" height="336" border="0" /><br />
Select the ‘DNS’ tab and update the Hostname to rac2.startoracle.com. From the file menu select ‘Save’ and ‘Quit’.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/55.jpg?w=336&amp;h=348" alt="EL40_12" width="336" height="348" border="0" /><br />
Restart the virtual machine for the changes to take effect and start the first virtual machine. Both virtual machines should now be up and running.Note: To test the network setup, ping the nodes from each other using the public and private ip addresses (the virtual ip address is not pingable at this stage).</li>
<li>Enabling SSH User Equivalency<br />
The OUI (Oracle Universal Installer) uses the ssh and scp commands during installation to run remote commands and copy files to other nodes in the cluster, therefore you need to setup user equivalency for the Oracle user on all nodes.Perform the following in order to setup user equivalency:As the oracle user on node rac1:<br />
$ mkdir ~/.ssh<br />
$ chmod 700 ~/.ssh<br />
$ /usr/bin/ssh-keygen -t rsa<br />
Note: Whenever prompted for a passphrase leave it empty and press return.&nbsp;</p>
<p>As the oracle user on node rac2:<br />
$ mkdir ~/.ssh<br />
$ chmod 700 ~/.ssh<br />
$ /usr/bin/ssh-keygen -t rsa</p>
<p>As the oracle user on node rac1:<br />
$ cat ~/.ssh/id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys<br />
$ ssh rac2 cat ~/.ssh/id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys<br />
$ scp ~/.ssh/authorized_keys rac2:/home/oracle/.ssh/</p>
<p>Perform the following as the oracle user on node rac1 and then node rac2:<br />
ssh rac1 date<br />
ssh rac2 date<br />
ssh rac1.startoracle.com date<br />
ssh rac2.startoracle.com date<br />
ssh rac1-priv date<br />
ssh rac2-priv date<br />
ssh rac1-priv.startoracle.com date<br />
ssh rac2-priv.startoracle.com date</li>
<li>Setup the ASM disksConfigure the Oracle ASM driver<br />
As the root user on both nodes run the following:<br />
# service oracleasm configure&nbsp;</p>
<p>Ouput:<br />
[root@rac1 etc]# service oracleasm configure<br />
Configuring the Oracle ASM library driver.<br />
This will configure the on-boot properties of the Oracle ASM library<br />
driver. The following questions will determine whether the driver is<br />
loaded on boot and what permissions it will have. The current values<br />
will be shown in brackets (’[]’). Hitting &lt;ENTER&gt; without typing an<br />
answer will keep that current value. Ctrl-C will abort.<br />
Default user to own the driver interface []: oracle<br />
Default group to own the driver interface []: dba<br />
Start Oracle ASM library driver on boot (y/n) [n]: y<br />
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y<br />
Writing Oracle ASM library driver configuration: [ OK ]<br />
Loading module “oracleasm”: [ OK ]<br />
Mounting ASMlib driver filesystem: [ OK ]<br />
Scanning system for ASM disks: [ OK ]</p>
<p>Stamp the ASM disks<br />
As the root user on node rac1 (or rac2, but not both) run the following:<br />
# service oracleasm createdisk DATA1 /dev/sdb1<br />
# service oracleasm createdisk DATA2 /dev/sdc1<br />
# service oracleasm createdisk RECO1 /dev/sdd1</p>
<p>Output:<br />
[root@rac1 etc]# service oracleasm createdisk DATA1 /dev/sdb1<br />
Marking disk “/dev/sdb1″ as an ASM disk: [ OK ]<br />
[root@rac1 etc]# service oracleasm createdisk DATA2 /dev/sdc1<br />
Marking disk “/dev/sdc1″ as an ASM disk: [ OK ]<br />
[root@rac1 etc]# service oracleasm createdisk RECO1 /dev/sdd1<br />
Marking disk “/dev/sdd1″ as an ASM disk: [ OK ]</p>
<p>Verify the newly configured ASM disks<br />
As the root user on both nodes run the following:<br />
# service oracleasm scandisks<br />
# service oracleasm listdisks</p>
<p>Output:<br />
[root@rac1 etc]# service oracleasm scandisks<br />
Scanning system for ASM disks: [ OK ]<br />
[root@rac1 etc]# service oracleasm listdisks<br />
DATA1<br />
DATA2<br />
RECO1</li>
</ol>
<p>You are now ready to install Oracle Clusterware.</p>
<p><strong>Install Oracle Clusterware</strong></p>
<ol>
<li>Copy the Oracle Clusterware and Database Software zip files <a href="http://www.oracle.com/technology/software/products/database/oracle11g/111060_linuxsoft.html">downloaded</a>earlier to the staging area (/u01/Stage11g) on node rac1. Use <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">pscp</a> to copy the downloaded files from your Windows host machine to the virtual machine:<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0181.jpg?w=448&amp;h=195" alt="CW1" width="448" height="195" border="0" /><br />
Alternatively download the zip files from your virtual machine. If your network is setup correctly you should be able to connect to the internet from within your virtual machine.</li>
<li>Unzip the Oracle 11g software in your staging area (/u01/Stage11g) as the oracle user:<br />
$ unzip /u01/Stage11g/linux_11gR1_clusterware.zip<br />
$ unzip /u01/Stage11g/linux_11gR1_database.zip</li>
<li>Install the cvuqdisks package<br />
It can be found in the /u01/Stage11g/clusterware/rpm directory. Install on both nodes as the root user: # rpm -i cvuqdisk-1.0.1–1.rpm</li>
<li>Run the Cluster Verification Utility (CVU or Cluvfy) as the oracle user to verify all pre-installation tasks for Oracle Clusterware are completed.<br />
Go to your Clusterware staging directory (/u01/Stage11g/clusterware) and run the following command as the oracle user on node rac1: $ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2The Clufvy output will be similar to the following:<br />
$ pwd<br />
/u01/Stage11g/clusterware&nbsp;</p>
<p>$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2<br />
Performing pre-checks for cluster services setup<br />
Checking node reachability…<br />
Node reachability check passed from node “rac1″.<br />
Checking user equivalence…<br />
User equivalence check passed for user “oracle”.<br />
Checking administrative privileges…<br />
User existence check passed for “oracle”.<br />
Group existence check passed for “oinstall”.<br />
Membership check for user “oracle” in group “oinstall” [as Primary] passed.<br />
Administrative privileges check passed.<br />
Checking node connectivity…<br />
Node connectivity check passed for subnet “192.168.1.0″ with node(s) rac2,rac1.<br />
Node connectivity check passed for subnet “10.10.10.0″ with node(s) rac2,rac1.<br />
Interfaces found on subnet “10.10.10.0″ that are likely candidates for VIP:<br />
rac2 eth1:10.10.10.60<br />
rac1 eth1:10.10.10.50<br />
Interfaces found on subnet “192.168.1.0″ that are likely candidates for a private interconnect:rac2 eth0:192.168.1.60<br />
rac1 eth0:192.168.1.50<br />
Node connectivity check passed.<br />
Checking system requirements for ‘crs’…<br />
Total memory check failed.<br />
Check failed on nodes:<br />
rac2,rac1<br />
Free disk space check passed.<br />
Swap space check passed.<br />
System architecture check passed.<br />
Kernel version check passed.<br />
Package existence check passed for “make-3.80″.<br />
Package existence check passed for “binutils-2.15.92.0.2″.<br />
Package existence check passed for “gcc-3.4.5″.<br />
Package existence check passed for “libaio-0.3.105″.<br />
Package existence check passed for “libaio-devel-0.3.105″.<br />
Package existence check passed for “libstdc++-3.4.5″.<br />
Package existence check passed for “elfutils-libelf-devel-0.97″.<br />
Package existence check passed for “sysstat-5.0.5″.<br />
Package existence check passed for “libgcc-3.4.5″.<br />
Package existence check passed for “libstdc++-devel-3.4.5″.<br />
Package existence check passed for “unixODBC-2.2.11″.<br />
Package existence check passed for “unixODBC-devel-2.2.11″.<br />
Package existence check passed for “glibc-2.3.4-2.19″.<br />
Group existence check passed for “dba”.<br />
Group existence check passed for “oinstall”.<br />
User existence check passed for “nobody”.<br />
System requirement failed for ‘crs’<br />
Pre-check for cluster services setup was unsuccessful on all the nodes.</p>
<p>The Clufvy pre-check will fail, because the ‘Total memory check’ failed, even though we have the recommended 1Gb RAM allocated to each instance. Make sure all other checks passed.</li>
<li>Launch the OUI for Oracle Clusterware<br />
Prior to installing open a terminal window as the root user on node rac1 and type the following:<br />
# xhost +Open a terminal window as the oracle user on node rac1 and go to the clusterware staging directory (/u01/Stage11g/clusterware) and start the installer with the following command:<br />
$ ./runInstaller&nbsp;</p>
<p>This will launch the OUI (Oracle Universal Installer) for Oracle Clusterware 11g.</li>
<li>Welcome. Select ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0011.jpg?w=428&amp;h=336" alt="CW6" width="428" height="336" border="0" /></li>
<li>Specify Inventory directory and credentials<br />
Change the inventory directory from the default of /u01/app/oraInventroy to /u01/app/oracle/oraInventory. Keep the default (oinstall) Operating System group name. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0022.jpg?w=429&amp;h=336" alt="CW7" width="429" height="336" border="0" /></li>
<li>Specify Home Details<br />
Change the path to /u01/app/oracle/product/11.1.0/crs. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0012.jpg?w=429&amp;h=336" alt="CW8" width="429" height="336" border="0" /></li>
<li>Product-Specific Prerequisite Checks<br />
The OUI will now verify that the environment meets all the requirements. All pre-requisite steps should complete successfully. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0023.jpg?w=429&amp;h=336" alt="CW9" width="429" height="336" border="0" /></li>
<li>Specify Cluster Configuration<br />
Specify all nodes in the cluster. Initially only node rac1 will be listed.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0052.jpg?w=428&amp;h=336" alt="CW10" width="428" height="336" border="0" /></li>
<li>Select ‘Add’ and add the details for node rac2. Enter all details. ‘OK’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0062.jpg?w=429&amp;h=336" alt="CW11" width="429" height="336" border="0" /></li>
<li>After you’ve added node rac2 the Cluster configuration should look as below. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0072.jpg?w=429&amp;h=336" alt="CW12" width="429" height="336" border="0" /></li>
<li>Specify Network Interface Usage<br />
Select the eth0 interface name and ‘Edit’ to correct the Interface Type.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0081.jpg?w=429&amp;h=336" alt="CW13" width="429" height="336" border="0" /></li>
<li>Change the eth0 Interface Type to Public. ‘Ok’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0092.jpg?w=429&amp;h=336" alt="CW14" width="429" height="336" border="0" /></li>
<li>Verify that eth0 (192.168.1.0) is now your public network and eth1 (10.10.10.0) is your private network. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0102.jpg?w=429&amp;h=336" alt="CW15" width="429" height="336" border="0" /></li>
<li>Specify Oracle Cluster Registry (OCR) Location<br />
Select External Redundancy and specify the first raw device (/dev/raw/raw1) setup earlier as the OCR location. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0111.jpg?w=429&amp;h=336" alt="CW16" width="429" height="336" border="0" /></li>
<li>Specify Voting Disk Location<br />
Select External Redundancy and specify the second raw device (/dev/raw/raw2) setup earlier as the Voting Disk location. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0122.jpg?w=429&amp;h=336" alt="CW17" width="429" height="336" border="0" /></li>
<li>Summary<br />
Review the summary and select ‘Install’ to start the installation.<br />
Install<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0031.jpg?w=429&amp;h=336" alt="CW18" width="429" height="336" border="0" /></li>
<li>Monitor the progress of the installation.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0042.jpg?w=429&amp;h=336" alt="CW19" width="429" height="336" border="0" /></li>
<li>Configuration Scripts<br />
Once the installation is complete you will be prompted to run 2 configuration scripts as the root user. Open a terminal window and execute these scripts as the root user on each node. Select ‘Ok’ to continue after these scripts have completed successfully on both nodes. Do not run the scripts simultaneously on both nodes.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0152.jpg?w=428&amp;h=336" alt="CW20" width="428" height="336" border="0" /><br />
The output for the configuration scripts will look similar to below:<br />
[root@rac1 ~]# /u01/app/oracle/oraInventory/orainstRoot.sh<br />
Changing permissions of /u01/app/oracle/oraInventory to 770.<br />
Changing groupname of /u01/app/oracle/oraInventory to oinstall.<br />
The execution of the script is complete<br />
[root@rac1 ~]# /u01/app/oracle/product/11.1.0/crs/root.sh<br />
WARNING: directory ‘/u01/app/oracle/product/11.1.0′ is not owned by root<br />
WARNING: directory ‘/u01/app/oracle/product’ is not owned by root<br />
WARNING: directory ‘/u01/app/oracle’ is not owned by root<br />
WARNING: directory ‘/u01/app’ is not owned by root<br />
Checking to see if Oracle CRS stack is already configured<br />
/etc/oracle does not exist. Creating it now.<br />
Setting the permissions on OCR backup directory<br />
Setting up Network socket directories<br />
Oracle Cluster Registry configuration upgraded successfully<br />
The directory ‘/u01/app/oracle/product/11.1.0′ is not owned by root. Changing owner to root<br />
The directory ‘/u01/app/oracle/product’ is not owned by root. Changing owner to root<br />
The directory ‘/u01/app/oracle’ is not owned by root. Changing owner to root<br />
The directory ‘/u01/app’ is not owned by root. Changing owner to root<br />
Successfully accumulated necessary OCR keys.<br />
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.<br />
node &lt;nodenumber&gt;: &lt;nodename&gt; &lt;private interconnect name&gt; &lt;hostname&gt;<br />
node 1: rac1 rac1-priv rac1<br />
node 2: rac2 rac2-priv rac2<br />
Creating OCR keys for user ‘root’, privgrp ‘root’..<br />
Operation successful.<br />
Now formatting voting device: /dev/raw/raw2<br />
Format of 1 voting devices complete.<br />
Startup will be queued to init within 30 seconds.<br />
Adding daemons to inittab<br />
Expecting the CRS daemons to be up within 600 seconds.<br />
Cluster Synchronization Services is active on these nodes.<br />
rac1<br />
Cluster Synchronization Services is inactive on these nodes.<br />
rac2<br />
Local node checking complete. Run root.sh on remaining nodes to start CRS daemons.</li>
<li>Configuration Assistants<br />
The configuration assistants will now kick into gear. They all need to complete successfully in order for the installation to be successful.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0161.jpg?w=429&amp;h=336" alt="CW21" width="429" height="336" border="0" /></li>
<li>End of Installation<br />
Once the configuration assistants complete below screen will display. ‘Exit’ to complete the installation and exit the OUI.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0171.jpg?w=429&amp;h=336" alt="CW22" width="429" height="336" border="0" /></li>
<li>Checking the status of Clusterware<br />
To check the status of your installation issue the following commands as the root user:<br />
# /u01/app/oracle/product/11.1.0/crs/bin/crsctl check crs<br />
Cluster Synchronization Services appears healthy<br />
Cluster Ready Services appears healthy<br />
Event Manager appears healthyTo get more detailed information issue the following command as the root user: #/u01/app/oracle/product/11.1.0/crs/bin/crs_stat -t<br />
Name Type R/RA F/FT Target State Host<br />
———— ———– —- —- —— —— —-<br />
ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1<br />
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1<br />
ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1<br />
ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2<br />
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2<br />
ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2</li>
</ol>
<p><strong>Install Oracle Database and ASM Software</strong></p>
<ol>
<li>As root change ownership of the oracle directories to the oracle user on both nodes:<br />
# chown oracle:oinstall /u01/app/oracle<br />
# chown oracle:oinstall /u01/app/oracle/product<br />
# chown oracle:oinstall /u01/app/oracle/product/11.1.0</li>
<li>To start the OUI change to the database directory in your staging area (/u01/Stage11g/database) and launch the OUI as the oracle user with the following command: $ ./runInstaller</li>
<li>Welcome<br />
‘Next’ to skip the Welcome screen.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0013.jpg?w=430&amp;h=336" alt="OUI_O03" width="430" height="336" border="0" /></li>
<li>Select Installation Type<br />
Keep the default installation type (Enterprise Edition). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0024.jpg?w=430&amp;h=336" alt="OUI_O04" width="430" height="336" border="0" /></li>
<li>Install Location<br />
Keep the default Oracle Base location (/u01/app/oracle) and default Oracle Home location (/u01/app/oracle/product/11.1.0/db_1). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0123.jpg?w=430&amp;h=336" alt="OUI_O05" width="430" height="336" border="0" /></li>
<li>Specify Hardware Cluster Installation Mode<br />
Keep the default ‘Cluster Installation’ selection and select both nodes. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0043.jpg?w=431&amp;h=336" alt="OUI_O06" width="431" height="336" border="0" /></li>
<li>Product-Specific Prerequisite Checks<br />
The OUI will now verify that the environment meets all the requirements. All pre-requisite steps should complete successfully. Select ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0025.jpg?w=429&amp;h=336" alt="OUI_O07" width="429" height="336" border="0" /></li>
<li>Select Configuration Option<br />
Select ‘Install Software Only’. We will use the DBCA (Database Configuration Assistant) at a later stage to configure ASM and create a database. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0063.jpg?w=429&amp;h=336" alt="OUI_O08" width="429" height="336" border="0" /></li>
<li>Privileged Operating System Groups<br />
Keep the default options (dba, oinstall and oinstall). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0073.jpg?w=430&amp;h=336" alt="OUI_O09" width="430" height="336" border="0" /></li>
<li>Summary<br />
Review the summary and select ‘Install’ to start the installation.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0053.jpg?w=429&amp;h=336" alt="OUI_O10" width="429" height="336" border="0" /></li>
<li>Install<br />
Monitor the progress of the installation.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0064.jpg?w=430&amp;h=336" alt="OUI_O11" width="430" height="336" border="0" /></li>
<li>Configuration Script<br />
Once the installation is complete you will be prompted to run a script as the root user. Open a terminal window and execute the script as the root user on each node. Select ‘Ok’ to continue after the script has been run successfully on both nodes.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0074.jpg?w=429&amp;h=336" alt="OUI_O12" width="429" height="336" border="0" /></li>
<li>End of Installation<br />
Once the installation is complete select ‘Exit’ to complete the installation and exit the OUI.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0112.jpg?w=429&amp;h=336" alt="OUI_O13" width="429" height="336" border="0" /></li>
</ol>
<p><strong>Create Oracle ASM instances</strong></p>
<ol>
<li>Launch the DBCA (Database Configuration Assistant) to configure ASM and create a RAC database.Open a terminal window as the oracle user. From the /u01/app/oracle/product/11.1.0/db_1/bin directory launch the dbca with the following command: $ ./dbca</li>
<li>Welcome<br />
Keep the default selection (Oracle RAC database). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0014.jpg?w=448&amp;h=317" alt="DBCA_ASM02" width="448" height="317" border="0" /></li>
<li>Operations<br />
Select ‘Configure ASM’. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0026.jpg?w=448&amp;h=316" alt="DBCA_ASM03" width="448" height="316" border="0" /></li>
<li>Node Selection<br />
Select all the nodes and ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0032.jpg?w=448&amp;h=316" alt="DBCA_ASM04" width="448" height="316" border="0" /></li>
<li>Create ASM Instance<br />
Select a SYS pasword for the ASM instance. Keep the default type of parameter file (IFILE) to create. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0044.jpg?w=448&amp;h=316" alt="DBCA_ASM05" width="448" height="316" border="0" /></li>
<li>Select ‘Ok’ to confirm creation of the ASM instances.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0054.jpg?w=293&amp;h=120" alt="DBCA_ASM06" width="293" height="120" border="0" /></li>
<li>Select ‘Yes’ to let the DBCA create default listeners.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0065.jpg?w=377&amp;h=197" alt="DBCA_ASM07" width="377" height="197" border="0" /></li>
<li>ASM Disk Groups<br />
Select ‘Create New’ to create new ASM disk groups.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0075.jpg?w=448&amp;h=316" alt="DBCA_ASM08_1" width="448" height="316" border="0" />Enter ‘DATA’ as the first disk group name. Keep the default redundancy settings (Normal) and select the 2 data disks (DATA1 and DATA2). ‘Ok’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0082.jpg?w=448&amp;h=316" alt="DBCA_ASM08_2" width="448" height="316" border="0" /></li>
<li>The DATA disk group should now be mounted. This will be the location for all our database files. Select ‘Create new’ again to add another disk group.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0093.jpg?w=448&amp;h=317" alt="DBCA_ASM09" width="448" height="317" border="0" /></li>
<li>Enter ‘RECO’ as the disk group name. This time select ‘External’ for redundancy and select the remaining disk (RECO1). ‘OK’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0103.jpg?w=448&amp;h=316" alt="DBCA_ASM10" width="448" height="316" border="0" /></li>
<li>All the disk groups are now created. ‘Finish’ to complete.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0113.jpg?w=448&amp;h=317" alt="DBCA_ASM11" width="448" height="317" border="0" /></li>
<li>Select ‘Yes’ to perform the database creation.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0124.jpg?w=379&amp;h=164" alt="DBCA_ASM12" width="379" height="164" border="0" /></li>
</ol>
<p>Create Oracle RAC Database</p>
<ol>
<li>Operations<br />
Select ‘Create a Database’. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0132.jpg?w=448&amp;h=316" alt="DBCA_DB01" width="448" height="316" border="0" /></li>
<li>Node Selection<br />
Select all the nodes and ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0142.jpg?w=448&amp;h=316" alt="DBCA_DB02" width="448" height="316" border="0" /></li>
<li>Database Templates<br />
Keep the default setting (General Purpose or Transaction Processing). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0153.jpg?w=448&amp;h=316" alt="DBCA_DB03" width="448" height="316" border="0" /></li>
<li>Database Identification<br />
Enter ‘rac’ (without the quotes) as the global database name. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0162.jpg?w=448&amp;h=316" alt="DBCA_DB04" width="448" height="316" border="0" /></li>
<li>Management Options<br />
Keep the default settings (‘Configure Enterprise Manager’ and ‘Configure Database Control for local management’ selected, but ‘Enable Alert Notifications’ and ‘Enable Daily Disk Backup to Recovery Area’ deselected). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0172.jpg?w=448&amp;h=317" alt="DBCA_DB05" width="448" height="317" border="0" /></li>
<li>Database Credentials<br />
Select ‘Use the same Administrative Password for All Accounts’ and enter a password. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0182.jpg?w=448&amp;h=316" alt="DBCA_DB06" width="448" height="316" border="0" /></li>
<li>Storage Options<br />
Select ‘ASM’ for storage. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0191.jpg?w=448&amp;h=316" alt="DBCA_DB07" width="448" height="316" border="0" /></li>
<li>ASM Disk Groups<br />
Select both disk groups (DATA and RECO). ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0202.jpg?w=448&amp;h=316" alt="DBCA_DB08" width="448" height="316" border="0" /></li>
<li>Database File Locations<br />
Keep the default (Use Oracle-Managed Files). Make sure ‘+DATA’ is entered as the Database Area. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0211.jpg?w=448&amp;h=317" alt="DBCA_DB09" width="448" height="317" border="0" /></li>
<li>Select ‘Specify Flash Recovery Area’ and enter ‘+RECO’ as the Flash Recovery Area. Select ‘Enable archiving’ and click on the ‘Edit Archive Mode Parameters’ button.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0222.jpg?w=448&amp;h=316" alt="DBCA_DB10" width="448" height="316" border="0" /></li>
<li>Edit Archive Mode Parameters<br />
Make sure the Flash Recovery Area (RECO) is shown as the archiving destination. If not change it to ‘+RECO/’ (without the quotes). ‘OK’ and then ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0232.jpg?w=448&amp;h=317" alt="DBCA_DB11" width="448" height="317" border="0" /></li>
<li>Database Content<br />
Select ‘Sample Schemas’ if you want to install them. I did not. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0242.jpg?w=448&amp;h=317" alt="DBCA_DB12" width="448" height="317" border="0" /></li>
<li>Initialization Parameters<br />
Reduce the ‘Memory Size’ to 250Mb and select ‘Use Automatic Memory Management’ Leave all other settings as is. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0252.jpg?w=448&amp;h=316" alt="DBCA_DB13" width="448" height="316" border="0" /></li>
<li>Security Settings<br />
Keep the default, enhanced 11g security settings. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0262.jpg?w=448&amp;h=316" alt="DBCA_DB14" width="448" height="316" border="0" /></li>
<li>Automatic Maintenance Tasks<br />
Make sure ‘Enable automatic maintenance tasks’ is seleced. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0272.jpg?w=448&amp;h=316" alt="DBCA_DB15" width="448" height="316" border="0" /></li>
<li>Database Storage<br />
Review the storage options for all files. ‘Next’ to continue.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0282.jpg?w=448&amp;h=316" alt="DBCA_DB16" width="448" height="316" border="0" /></li>
<li>Creation Options<br />
Select ‘Generate database creation scripts’ if you want to review these at a later stage. ‘Finish’ to review the installation.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0291.jpg?w=448&amp;h=316" alt="DBCA_DB17" width="448" height="316" border="0" /></li>
<li>Summary<br />
Select ‘Ok’ to close the review page and ‘Finish’ to start the installation.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0301.jpg?w=343&amp;h=324" alt="DBCA_DB18" width="343" height="324" border="0" /></li>
<li>The DBCA will first generate the database creation scripts if you selected this. A message will be displayed once this is done. Acknowledging the message will start the database creation.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0311.jpg?w=448&amp;h=316" alt="DBCA_DB19" width="448" height="316" border="0" /></li>
<li>Once database creation is done a summary screen will be displayed. ‘Exit’ to exit the OUI.<br />
<img src="http://startoracle.files.wordpress.com/2007/09/0321.jpg?w=293&amp;h=368" alt="DBCA_DB20" width="293" height="368" border="0" /></li>
<li>As the oracle user edit the /etc/oratab file on both nodes.Replace the database name with the instance name for the rac database i.e. replace the rac keyword with rac1 or rac2 depending on the node. Furthermore add details for your clusterware home to this file. This will enable you to set the Clusterware home using the oraenv script. Once edited the /etc/oratab file should contain the following:<br />
On node RAC1:<br />
+ASM1:/u01/app/oracle/products/11.1.0/db_1:N<br />
rac1:/u01/app/oracle/products/11.1.0/db_1:N<br />
crs:/u01/app/oracle/products/11.1.0/crs:N<br />
On node RAC2<br />
+ASM2:/u01/app/oracle/products/11.1.0/db_1:N<br />
rac2:/u01/app/oracle/products/11.1.0/db_1:N<br />
crs:/u01/app/oracle/products/11.1.0/crs:N</li>
<li>Setup the environment for the Oracle user<br />
As the oracle user create the file /home/oracle/.profile on all nodes and add the following lines:<br />
umask 022<br />
set -o vi<br />
export PS1=”[${USER}@`hostname -s`]$ “<br />
export ORACLE_BASE=/u01/app/oracle<br />
export ORACLE_SID=`hostname -s`<br />
export ORAENV_ASK=NO<br />
. oraenv<br />
unset ORAENV_ASKCongratulations! You have successfully installed and created an Oracle 11g RAC database.</li>
</ol>
<p><strong>Oracle 11g RAC on virtual servers. Done.</strong></p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/installing-oracle-11g-rac-on-virtual-servers-using-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-01455: converting column overflows integer datatype</title>
		<link>http://www.bestremotedba.com/ora-01455-converting-column-overflows-integer-datatype/</link>
		<comments>http://www.bestremotedba.com/ora-01455-converting-column-overflows-integer-datatype/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 01:59:18 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Database Maintenance]]></category>
		<category><![CDATA[export problem 11g]]></category>
		<category><![CDATA[ORA-01455: converting column overflows integer datatype]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=928</guid>
		<description><![CDATA[ORA-01455: converting column overflows integer datatype]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>ORA-01455: converting column overflows integer datatype</p>
<p>Error:<br />
Export of 11g Rel2 using 10g Client will have the above error message at exporting triggers.</p>
<p>The export failed with the following detailed error :…..</p>
<p>exporting referential integrity constraints.</p>
<p>exporting triggers</p>
<p>EXP-00056: ORACLE error</p>
<p>1455 encounteredORA-01455: converting column overflows integer datatype</p>
<p>EXP-00000: Export terminated unsuccessfully</p>
<p>Cause:<br />
This is an Oracle Bug. The root cause is that the converted form of the specified expression was too large for the specified datatype.</p>
<p>Solution:</p>
<p>Solution 1 : Try with an Oracle 11g Release 2 EXP client against the Oracle 11g Release 2.</p>
<p>Solution 2 : Use the triggers=n option, that allows an export of a schema made by an Oracle 10.2 client against an Oracle 11g release 2 to complete successfully.</p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/ora-01455-converting-column-overflows-integer-datatype/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ORA-12500  TNS:listener failed to start a dedicated server process</title>
		<link>http://www.bestremotedba.com/ora-12500-tnslistener-failed-to-start-a-dedicated-server-process/</link>
		<comments>http://www.bestremotedba.com/ora-12500-tnslistener-failed-to-start-a-dedicated-server-process/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 03:53:49 +0000</pubDate>
		<dc:creator>mudhalvan</dc:creator>
				<category><![CDATA[Database Administration]]></category>
		<category><![CDATA[ORA-12500 TNS:listener failed to start a dedicated server process]]></category>
		<category><![CDATA[ORA-28575: unable to open RPC connection to external procedure agent]]></category>

		<guid isPermaLink="false">http://www.bestremotedba.com/?p=922</guid>
		<description><![CDATA[ORA-28575: unable to open RPC connection to external procedure agent]]></description>
			<content:encoded><![CDATA[<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>ORA-12500  TNS:listener failed to start a dedicated server process<br />
General<br />
Cause: The process of starting up a dedicated server process failed. The executable could not be found or the environment may be set up incorrectly.<br />
Action: Turn on tracing at the ADMIN level and reexecute the operation. Verify that the ORACLE Server executable is present and has execute permissions enabled. Ensure that the ORACLE environment is specified correctly in LISTENER.ORA. The Oracle Protocol Adapter that is being called may not be installed on the local hard drive. Please check that the correct Protocol Adapter are successfully linked. If error persists, contact Oracle Customer Support.<br />
Specific Incident and Solution Incident : We had an incident that when we try to call External procedure we got an error that External procedure not able to call<br />
ORA-28575: unable to open RPC connection to external procedure agent<br />
Solution:   We have checked Listenr.ora and TNSNAME.ORA everything looks fine. But when we checked on listener.log we found ORA-12500 whenever we call the external procedure. But all other connections and sessions looked fine.<br />
We have enabled trace for listener and trace file showed that some library files are missing. we have added in listener.ora with ENV=&lt;Library path&gt; and reloded the listener. Then it worked fine.<br />
Root Cause: Even though it was working fine until day before one of the DBA relinked the library which caused not able to identify default libraries belongs. So we have added explicitly to the external procedure.</p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.bestremotedba.com/ora-12500-tnslistener-failed-to-start-a-dedicated-server-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

