<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Oracle Masters</title>
	<atom:link href="http://www.oraclemasters.in/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.oraclemasters.in</link>
	<description>Oracle FAQ, Tips And Tricks, Resources, Certifications....Anything Oracle!</description>
	<lastBuildDate>Fri, 20 Aug 2010 14:33:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How To Check Whether Physical Standby is in Sync with the Primary or Not?</title>
		<link>http://www.oraclemasters.in/?p=1255</link>
		<comments>http://www.oraclemasters.in/?p=1255#comments</comments>
		<pubDate>Fri, 20 Aug 2010 14:32:52 +0000</pubDate>
		<dc:creator>tdomf_2a078</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[HA - RAC, Dataguard]]></category>

		<guid isPermaLink="false">http://www.oraclemasters.in/?p=1255</guid>
		<description><![CDATA[Hi all, The following tips will help you in monitoring sync between primary and standby databases. How To Check Whether Physical Standby is in Sync with the Primary or Not? 1. Check for GAP on standby 2. Check redo received on standby 3. Check redo applied on standby Solution Execute following queries: A. On Primary [...]]]></description>
			<content:encoded><![CDATA[<div class="article">
Hi all,</p>
<p>The following tips will help you in monitoring sync between primary and standby databases.</p>
<p>How To Check Whether Physical Standby is in Sync with the Primary or Not?</p>
<p>1. Check for GAP on standby<br />
2. Check redo received on standby<br />
3. Check redo applied on standby<br />
<span id="more-1255"></span><br />
Solution<br />
Execute following queries:</p>
<p>A. On Primary</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1255&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12555"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p1255code5"><pre class="language" style="font-family:monospace;">SQL&amp;gt; SELECT THREAD# &quot;Thread&quot;,SEQUENCE# &quot;Last Sequence Generated&quot;
FROM V$ARCHIVED_LOG
WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)
ORDER BY 1;
&nbsp;
Thread     Last Sequence Generated
---------- -----------------------
1          19
2          13
3          11</pre></td></tr></table></div>

<p>B. On Physical Standby</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1255&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12556"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p1255code6"><pre class="language" style="font-family:monospace;">SQL&amp;gt; SELECT ARCH.THREAD# &quot;Thread&quot;, ARCH.SEQUENCE# &quot;Last Sequence Received&quot;, APPL.SEQUENCE# &quot;Last Sequence Applied&quot;, (ARCH.SEQUENCE# - APPL.SEQUENCE#) &quot;Difference&quot;
FROM
(SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
(SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
WHERE
ARCH.THREAD# = APPL.THREAD#
ORDER BY 1;
&nbsp;
Thread     Last Sequence Received Last Sequence Applied Difference
---------- ---------------------- --------------------- ----------
1          19                     19                    0
2          13                     13                    0
3          11                     11                    0</pre></td></tr></table></div>

<p>C. On Physical Standby</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1255&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12557"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p1255code7"><pre class="language" style="font-family:monospace;">SQL&amp;gt; SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;
no rows selected</pre></td></tr></table></div>

<p>Now perform following checks:</p>
<p>1. Check for GAP</p>
<p>If query &#8220;C&#8221; returns any row then this means there are some archive log missing on standby.<br />
Example:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1255&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12558"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p1255code8"><pre class="language" style="font-family:monospace;">SQL&amp;gt; SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;
&nbsp;
Thread     Low Sequence High Sequence
---------- ------------ -------------
1          8            9</pre></td></tr></table></div>

<p>This example shows sequence 8 and 9 from thread 1 are missing on standby, Hence standby is not in sync with the primary.<br />
If query &#8220;C&#8221; does not returns any row and output is &#8220;no row selected&#8221; than this means there is no archive gap on standby.</p>
<p>2. Check for redo received on standby</p>
<p>Compare value of &#8220;Last Sequence Generated&#8221; in query &#8220;A&#8221; with &#8220;Last Sequence Received&#8221; in query &#8220;B&#8221; for all threads.<br />
If both values are same than this means that standby has received the last sequence generated on primary.<br />
If both values are not same then there are some archives missing on standby, Hence standby is not in sync with the primary.</p>
<p>Example:</p>
<p>If &#8220;Last Sequence Generated&#8221; in query &#8220;A&#8221; shows value 25 for thread 1 and &#8220;Last Sequence Received&#8221; in query &#8220;B&#8221; shows value 20 for thread 1 than this means sequence 21 to 25 are missing on standby. Hence standby is not in sync with the primary.</p>
<p>3. Check for redo applied on standby</p>
<p>If value of &#8220;Difference&#8221; in query &#8220;B&#8221; is 0 than this means all the redo received on primary is applied on standby. Hence we can says standby is in sync with primary.<br />
If value of &#8220;Difference&#8221; in query &#8220;B&#8221; is not 0 than this means all the redo received on primary is not applied on standby. Hence we can says standby is not in sync with primary</p>
<p>Cheers,<br />
Sakthivel G</p></div>
<img src="http://www.oraclemasters.in/?ak_action=api_record_view&id=1255&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.oraclemasters.in/?feed=rss2&amp;p=1255</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Snapshot Standby &#8211; Oracle 11g and Oracle 10g examples</title>
		<link>http://www.oraclemasters.in/?p=1243</link>
		<comments>http://www.oraclemasters.in/?p=1243#comments</comments>
		<pubDate>Sat, 14 Aug 2010 15:40:08 +0000</pubDate>
		<dc:creator>Ramesh Menon</dc:creator>
				<category><![CDATA[HA - RAC, Dataguard]]></category>

		<guid isPermaLink="false">http://www.oraclemasters.in/?p=1243</guid>
		<description><![CDATA[Let us consider a scenario, where the application owner wants to perform read/write testing using production database. This is not possible in a real environment as you cannot play with production data. Oracle, provides a feature to use the standby database in read write mode, so that application users can perform tests, and then revert [...]]]></description>
			<content:encoded><![CDATA[<div class="article">
<p>
Let us consider a scenario, where the application owner wants to perform read/write testing using production database. This is not possible in a real environment as you cannot play with production data. Oracle, provides a feature to use the standby database in read write mode, so that application users can perform tests, and then revert the standby to physical standby status.<br />
<br/></p>
<p>This feature is possible in both Oracle 10g and Oracle 11g. Oracle 11g calls it a snapshot standby and can be performed directly. Oracle creates a Restore Point internally.<br />
<br/><br />
This article will demonstrate both Oracle 10g and Oracle 11g methods.<br />
<br/>
</p>
<p><span id="more-1243"></span></p>
<ol>
<li><a href="#oracle10g">Oracle 10g Steps</a></li>
<li><a href="#oracle11g">Oracle 11g Steps</a></li>
</ol>
<p><a name="oracle10g"></a></p>
<h2>Steps in Oracle 10g</h2>
<ol>
<li><a href="#setparams">Set FRA parameters</a></li>
<li><a href="#restorepoint">Create a guranteed restore point</a></li>
<li><a href="#activate">Activate standby database</a></li>
<li><a href="#testing">Perform read/write testing</a></li>
<li><a href="#revert">Revert to original standby</a></li>
</ol>
<p><a name="setparams"></a><br />
<strong>Set FRA parameters</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1243&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p124319"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code" id="p1243code19"><pre class="language" style="font-family:monospace;">SQL&gt; alter system set db_recovery_file_dest_size=1G;
&nbsp;
System altered.
&nbsp;
SQL&gt; alter system set db_recovery_file_dest='/fra';
&nbsp;
System altered.
&nbsp;
SQL&gt;</pre></td></tr></table></div>

<p><a name="restorepoint"></a><br />
<strong>Create a guranteed restore point</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1243&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p124320"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code" id="p1243code20"><pre class="language" style="font-family:monospace;">SQL&gt; ho df -gh /fra
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t6d0s0      7.9G    48M   7.7G     1%    /fra
&nbsp;
SQL&gt; create restore point pre_activate guarantee flashback database;
&nbsp;
Restore point created.
&nbsp;
SQL&gt;
&nbsp;
&nbsp;
SQL&gt; set lines 132
SQL&gt; col time format a32
SQL&gt;  select name, time, storage_size,GUARANTEE_FLASHBACK_DATABASE from V$restore_point;
&nbsp;
NAME                                               TIME                             STORAGE_SIZE GUA
-------------------------------------------------- -------------------------------- ------------ ---
PRE_ACTIVATE                                       14-AUG-10 07.59.35.000000000 PM       8192000 YES
&nbsp;
1 row selected.
&nbsp;
SQL&gt;</pre></td></tr></table></div>

<p><a name="activate"></a><br />
<strong>Activate the standby database</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1243&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p124321"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code" id="p1243code21"><pre class="language" style="font-family:monospace;">SQL&gt; alter database activate standby database;
&nbsp;
Database altered.
&nbsp;
SQL&gt; select name, open_mode, controlfile_type from V$database;
&nbsp;
NAME                                               OPEN_MODE            CONTROL
-------------------------------------------------- -------------------- -------
PROD10G                                             MOUNTED              CURRENT
&nbsp;
1 row selected.
&nbsp;
SQL&gt; alter database open;
&nbsp;
Database altered.
&nbsp;
SQL&gt; select name, open_mode, controlfile_type from V$database;
&nbsp;
NAME                                               OPEN_MODE            CONTROL
-------------------------------------------------- -------------------- -------
PROD10G                                            READ WRITE           CURRENT
&nbsp;
1 row selected.</pre></td></tr></table></div>

<p><a name="testing"></a><br />
<strong>Perform testing</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1243&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p124322"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p1243code22"><pre class="language" style="font-family:monospace;">SQL&gt; create table test as select * from v$datafile;
&nbsp;
Table created.</pre></td></tr></table></div>

<p><a name="revert"></a><br />
<strong>Revert to standby setup</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1243&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p124323"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
</pre></td><td class="code" id="p1243code23"><pre class="language" style="font-family:monospace;">SQL&gt; shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL&gt; startup mount
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
&nbsp;
Total System Global Area  217157632 bytes
Fixed Size                  2209600 bytes
Variable Size             159385792 bytes
Database Buffers           50331648 bytes
Redo Buffers                5230592 bytes
Database mounted.
SQL&gt;  flashback database to restore point PRE_ACTIVATE;
&nbsp;
Flashback complete.
&nbsp;
SQL&gt; alter database convert to physical standby;
&nbsp;
Database altered.
&nbsp;
SQL&gt; shut immediate;
ORA-01507: database not mounted
&nbsp;
&nbsp;
ORACLE instance shut down.
SQL&gt; startup mount;
ORACLE instance started.
&nbsp;
Total System Global Area  217157632 bytes
Fixed Size                  2209600 bytes
Variable Size             159385792 bytes
Database Buffers           50331648 bytes
Redo Buffers                5230592 bytes
Database mounted.
SQL&gt; select name, open_mode, controlfile_type from V$database;
&nbsp;
NAME                                               OPEN_MODE            CONTROL
-------------------------------------------------- -------------------- -------
PROD10G		                                    MOUNTED              STANDBY
&nbsp;
1 row selected.
&nbsp;
SQL&gt;</pre></td></tr></table></div>

<p><a name="oracle11g"></a></p>
<h2>Steps in Oracle 11g</h2>
<p>Though the same steps as Oracle 10g can be performed on 11g, Oracle introduces a new command as shown below</p>
<p><strong> Converting to snapshot standby</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1243&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p124324"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p1243code24"><pre class="language" style="font-family:monospace;">sql&gt; select name, open_mode, controlfile_type from V$database
sql&gt; alter database convert to snapshot standby</pre></td></tr></table></div>

<p>Excerpt from alert log file while this command is processed</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1243&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p124325"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p1243code25"><pre class="language" style="font-family:monospace;">Sat Aug 14 19:49:00 2010
alter database convert to snapshot standby
Created guaranteed restore point SNAPSHOT_STANDBY_REQUIRED_08/14/2010 19:49:00
krsv_proc_kill: Killing 4 processes (all RFS)
Begin: Standby Redo Logfile archival
End: Standby Redo Logfile archival
RESETLOGS after complete recovery through change 235449
Sat Aug 14 19:49:19 2010
Standby became primary SCN: 235447
Sat Aug 14 19:49:19 2010
Setting recovery target incarnation to 4
CONVERT TO SNAPSHOT STANDBY: Complete - Database mounted as snapshot standby
Completed: alter database convert to snapshot standby</pre></td></tr></table></div>

<p>Quering v$restore_point</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1243&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p124326"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code" id="p1243code26"><pre class="language" style="font-family:monospace;">sql&gt; col name format a50
sql&gt; select name from v$restore_point
NAME
--------------------------------------------------
SNAPSHOT_STANDBY_REQUIRED_08/14/2010 19:49:00
&nbsp;
1 row selected.
&nbsp;
SQL&gt;</pre></td></tr></table></div>

<p><strong>Reverting</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1243&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p124327"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code" id="p1243code27"><pre class="language" style="font-family:monospace;">SQL&gt; shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL&gt; startup mount;
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
&nbsp;
Total System Global Area  217157632 bytes
Fixed Size                  2209600 bytes
Variable Size             159385792 bytes
Database Buffers           50331648 bytes
Redo Buffers                5230592 bytes
Database mounted.
SQL&gt;  alter database convert to physical standby;
&nbsp;
Database altered.
&nbsp;
SQL&gt;</pre></td></tr></table></div>

<p>Excerpt from alert log file while this command is processed</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1243&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p124328"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
</pre></td><td class="code" id="p1243code28"><pre class="language" style="font-family:monospace;">RFS[2]: Identified database type as 'snapshot standby': Client is LGWR ASYNC pid 2541
RFS[2]: Opened log for thread 1 sequence 40 dbid -1085733228 branch 726956820
Archived Log entry 46 added for thread 1 sequence 40 rlc 726956820 ID 0xbf4a13e2 dest 2:
RFS[2]: Opened log for thread 1 sequence 41 dbid -1085733228 branch 726956820
Sat Aug 14 19:54:55 2010
 alter database convert to physical standby
ALTER DATABASE CONVERT TO PHYSICAL STANDBY (PROD11R2)
krsv_proc_kill: Killing 2 processes (all RFS)
Flashback Restore Start
Flashback Restore Complete
Stopping background process RVWR
Deleted Oracle managed file /oraarch11g/PROD11R2/arch/PROD11R2_STBY/flashback/o1_mf_66f7o57r_.flb
Guaranteed restore point  dropped
Clearing standby activation ID 3209312565 (0xbf4a3935)
The primary database controlfile was created using the
'MAXLOGFILES 16' clause.
There is space for up to 13 standby redo logfiles
Use the following SQL commands on the standby database to create
standby redo logfiles that match the primary database:
ALTER DATABASE ADD STANDBY LOGFILE 'srl1.f' SIZE 104857600;
ALTER DATABASE ADD STANDBY LOGFILE 'srl2.f' SIZE 104857600;
ALTER DATABASE ADD STANDBY LOGFILE 'srl3.f' SIZE 104857600;
ALTER DATABASE ADD STANDBY LOGFILE 'srl4.f' SIZE 104857600;
Completed:  alter database convert to physical standby
&nbsp;
SQL&gt; shut immediate;
ORA-01507: database not mounted
&nbsp;
&nbsp;
ORACLE instance shut down.
SQL&gt; startup mount
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
&nbsp;
Total System Global Area  217157632 bytes
Fixed Size                  2209600 bytes
Variable Size             159385792 bytes
Database Buffers           50331648 bytes
Redo Buffers                5230592 bytes
Database mounted.
&nbsp;
SQL&gt; select name, open_mode, controlfile_type from v$database;
&nbsp;
NAME                                               OPEN_MODE            CONTROL
-------------------------------------------------- -------------------- -------
PROD11R2                                           MOUNTED              STANDBY
&nbsp;
1 row selected.</pre></td></tr></table></div>

</div>
<img src="http://www.oraclemasters.in/?ak_action=api_record_view&id=1243&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.oraclemasters.in/?feed=rss2&amp;p=1243</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>11g Physical Standby database creation</title>
		<link>http://www.oraclemasters.in/?p=1226</link>
		<comments>http://www.oraclemasters.in/?p=1226#comments</comments>
		<pubDate>Sat, 14 Aug 2010 13:32:10 +0000</pubDate>
		<dc:creator>Ramesh Menon</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[HA - RAC, Dataguard]]></category>

		<guid isPermaLink="false">http://www.oraclemasters.in/?p=1226</guid>
		<description><![CDATA[Creating a physical standby database on Oracle 11gR2 This article is a simple example to setup a standby database in Oracle 11g. The standby database environment will be used in later articles for configuring dataguard broker and logical standby database creation Steps Setup the primary database Create bare minimum intialization parameter file Create database Create [...]]]></description>
			<content:encoded><![CDATA[<div class="article">
<h2> Creating a physical standby database on Oracle 11gR2 </h2>
<p> This article is a simple example to setup a standby database in Oracle 11g. The standby database environment will be used in later articles for configuring dataguard broker and logical standby database creation </p>
<p><span id="more-1226"></span></p>
<p>Steps</p>
<ol>
<li> <a href="#SetupPrimary"> Setup the primary database </a></li>
<ol>
<li><a href="#priminit">Create bare minimum intialization parameter file</a></li>
<li><a href="#crdb">Create database</a></li>
<li><a href="primespfile">Create spfile</a></li>
</ol>
<li> <a href="#CreateStandby"> Create the standby database </li>
<ol>
<li> <a href="#initparams"> Setup initialization parameter file for Standby database </a></li>
<li> <a href="#pwdfile"> Create password file on production and standby</a></li>
<li> <a href="#spfile"> Convert standby to use spfile</a></li>
<li> <a href="#networking"> Setup networking for archive transfer</a></li>
<li> <a href="#backuprestore"> Create a backup on production and restore it to the standby</a></li>
<li> <a href="#standbycontrolfile"> Create a standby controlfile and copy it to the standby server</a></li>
<li> <a href="#recoverstandby"> Mount the standby database and test log transfer and application</a></li>
</ol>
</ol>
<p>The following are the details of the databases that I will create</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=configuration.txt">configuration.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122641"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code" id="p1226code41"><pre class="language" style="font-family:monospace;">				Source Database			Standby Database
IP Address			192.168.1.221			192.168.1.222
Hostname			solaris-si-node-01		solaris-si-node-02
SID				PROD11R2			PROD11R2
DB_UNIQUE_NAME			PROD11R2_LIVE			PROD11R2_STBY
Listener			LISTENER_PROD			LISTENER_STBY
Listener Port			1234				1234
TnsNames Entry			PROD11R2_LIVE			PROD11R2_STBY
Partitions			/oradata11g/PROD11GR2/data01	/oradata11g/PROD11GR2/data01
				/oradata11g/PROD11GR2/data02	/oradata11g/PROD11GR2/data02
				/oradata11g/PROD11GR2/data03	/oradata11g/PROD11GR2/data03			
				/oraarch11g/PROD11GR2/arch	/oraarch11g/PROD11GR2/arch</pre></td></tr></table></div>

<p><a name="SetupPrimary"></a></p>
<h2>Setup the primary database</h2>
<p>	<a name="priminitfile"></a><br />
	<strong>Create bare minimum intialization parameter file</strong></p>
<p>We will create the entries for this database in both LIVE and STANDBY ROLES, so that we do not have to create multiple initialization parameter files</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=initPROD11R2.ora">initPROD11R2.ora</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122642"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code" id="p1226code42"><pre class="language" style="font-family:monospace;">	db_name=PROD11R2
	db_unique_name=PROD11R2_LIVE
	control_files=('/oradata11g/PROD11R2/data01/control/control01.ctl','/oradata11g/PROD11R2/data02/cont
	rol/control02.ctl','/oradata11g/PROD11R2/data03/control/control03.ctl')
	diagnostic_dest=/ora11g/app/ora11g/product/11.2.0/dbhome_1/log
	undo_tablespace=UNDO_TBS
	undo_management=AUTO
&nbsp;
	log_archive_dest_1='LOCATION=/oraarch11g/PROD11R2/arch/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES)'
	log_archive_dest_2='SERVICE=PROD11R2_STBY VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE)'
	log_archive_format='PROD11R2_%t_%s_%r.dbf'
&nbsp;
	# Standby related parameters
	standby_file_management=AUTO
	#standby_archive_dest='/oraarch11g/PROD11R2/arch/'		Deprecated
&nbsp;
	fal_server=PROD11R2_STBY
	fal_client=PROD11R2_LIVE</pre></td></tr></table></div>

<p>	<a name="crdb"></a><br />
	<strong>Create the database</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=createdb.txt">createdb.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122643"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
</pre></td><td class="code" id="p1226code43"><pre class="language" style="font-family:monospace;">	$ export ORACLE_SID=PROD11R2	
&nbsp;
	create database
	user sys  identified by oracle
	user system  identified by oracle
	logfile
	group 1 ('/oradata11g/PROD11R2/data01/redo/redo01a.log','/oradata11g/PROD11R2/data02/redo/redo01b.lo
	g') size 100M,
	group 2 ('/oradata11g/PROD11R2/data02/redo/redo02a.log','/oradata11g/PROD11R2/data03/redo/redo02b.lo
	g') size 100M,
	group 3 ('/oradata11g/PROD11R2/data03/redo/redo03a.log','/oradata11g/PROD11R2/data01/redo/redo03b.lo
	g') size 100M
	DATAFILE '/oradata11g/PROD11R2/data01/oradata/system_01.dbf' size 500M AUTOEXTEND ON MAXSIZE 1000M
	EXTENT MANAGEMENT LOCAL
	SYSAUX DATAFILE '/oradata11g/PROD11R2/data01/oradata/sysaux_01.dbf' size 200M AUTOEXTEND ON MAXSIZE
	500M
	UNDO TABLESPACE UNDO_TBS
	DATAFILE '/oradata11g/PROD11R2/data01/oradata/undo_tbs_01.dbf' size 100M
	DEFAULT TEMPORARY TABLESPACE TEMP
	TEMPFILE '/oradata11g/PROD11R2/data01/oradata/temp_01.dbf' size 100M
&nbsp;
	$ sqlplus &quot;/ as sysdba&quot;
&nbsp;
	SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 13 20:26:26 2010
&nbsp;
	Copyright (c) 1982, 2009, Oracle.  All rights reserved.
&nbsp;
	Connected to an idle instance.
&nbsp;
	SQL&gt; startup nomount
	ORACLE instance started.
&nbsp;
	Total System Global Area  217157632 bytes
	Fixed Size                  2209600 bytes
	Variable Size             159385792 bytes
	Database Buffers           50331648 bytes
	Redo Buffers                5230592 bytes
	SQL&gt; exit
	Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
	With the Partitioning, OLAP, Data Mining and Real Application Testing options
	$ pwd
	/ora11g/app/ora11g/product/11.2.0/dbhome_1/dbs
	$ sqlplus &quot;/ as sysdba&quot;
&nbsp;
	SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 13 20:26:58 2010
&nbsp;
	Copyright (c) 1982, 2009, Oracle.  All rights reserved.
&nbsp;
&nbsp;
	Connected to:
	Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
	With the Partitioning, OLAP, Data Mining and Real Application Testing options
&nbsp;
	SQL&gt; @crdb
&nbsp;
	Database created.
&nbsp;
	SQL&gt; @?/rdbms/admin/catalog.sql
	SQL&gt; @?/rdbms/admin/catproc.sql
	&lt;/p&gt;</pre></td></tr></table></div>

<p>	<a name="primspfile"></a><br />
	<strong>Convert the database to SPFILE based startup and enable archivelog mode</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=createspfile.txt">createspfile.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122644"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
</pre></td><td class="code" id="p1226code44"><pre class="language" style="font-family:monospace;">	SQL&gt; create spfile from pfile;
	File created.
&nbsp;
	SQL&gt; shut immediate;
	Database closed.
	Database dismounted.
	ORACLE instance shut down.
	SQL&gt; exit
	Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
	With the Partitioning, OLAP, Data Mining and Real Application Testing options
&nbsp;
	SQL&gt; startup mount
	ORACLE instance started.
&nbsp;
	Total System Global Area  217157632 bytes
	Fixed Size                  2209600 bytes
	Variable Size             159385792 bytes
	Database Buffers           50331648 bytes
	Redo Buffers                5230592 bytes
	Database mounted.
&nbsp;
	SQL&gt;  alter system set log_archive_dest_1='LOCATION=/oraarch11g/PROD11R2/arch/ VALID_FOR=(ALL_LOGFILES, ALL_ROLES)';
&nbsp;
	System altered.
&nbsp;
	SQL&gt; alter system set log_archive_dest_2='SERVICE=PROD11R2_STBY VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE)'
	SQL&gt; /
&nbsp;
	System altered.
&nbsp;
&nbsp;
&nbsp;
	SQL&gt; alter system set log_archive_format='PROD11R2_%t_%s_%r.dbf' SCOPE=SPFILE;
&nbsp;
	System altered.
&nbsp;
&nbsp;
	SQL&gt; alter database archivelog;
&nbsp;
	Database altered.
&nbsp;
	SQL&gt; shut immediate;
	ORA-01109: database not open
&nbsp;
&nbsp;
	Database dismounted.
	ORACLE instance shut down.
	SQL&gt; startup
	ORACLE instance started.
&nbsp;
	Total System Global Area  217157632 bytes
	Fixed Size                  2209600 bytes
	Variable Size             159385792 bytes
	Database Buffers           50331648 bytes
	Redo Buffers                5230592 bytes
	Database mounted.
	Database opened.
	SQL&gt;</pre></td></tr></table></div>

<p>
	In the above example, we have set the log_archive_dest_2 to the DR Service, which will be created in the later section
	</p>
<p><a name="CreateStandby"></a></p>
<h2>Setup the standby database</h2>
<p>	<a name="initparams"></a><br />
	<strong>Setup initialization parameter file for Standby database</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=initPROD11R2.ora">initPROD11R2.ora</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122645"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code" id="p1226code45"><pre class="language" style="font-family:monospace;">	db_name=PROD11R2
	db_unique_name=PROD11R2_STBY
	control_files=('/oradata11g/PROD11R2/data01/control/control01.ctl','/oradata11g/PROD11R2/data01/cont
	rol/control02.ctl','/oradata11g/PROD11R2/data01/control/control03.ctl')
	diagnostic_dest=/ora11g/app/ora11g/product/11.2.0/dbhome_1/log
	undo_tablespace=UNDO_TBS
	undo_management=AUTO
&nbsp;
	log_archive_dest_1='LOCATION=/oraarch11g/PROD11R2/arch/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES)'
	log_archive_dest_2='SERVICE=PROD11R2_LIVE VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE)'
	log_archive_format='PROD11R2_%t_%s_%r.dbf'
&nbsp;
	# Standby related parameters
	standby_file_management=AUTO
	#standby_archive_dest='/oraarch11g/PROD11R2/arch/'		
&nbsp;
	fal_server=PROD11R2_LIVE
	fal_client=PROD11R2_STBY</pre></td></tr></table></div>

<p>	<a name="pwdfile"></a><br />
	<strong>Create password file on production and standby</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122646"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1226code46"><pre class="language" style="font-family:monospace;">	 orapwd file=orapwdPROD11R2 password=oracle entries=5</pre></td></tr></table></div>

<p>	<a name="spfile"></><br />
	<strong>Convert standby to use spfile</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122647"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code" id="p1226code47"><pre class="language" style="font-family:monospace;">	$ sqlplus &quot;/ as sysdba&quot;
&nbsp;
	SQL*Plus: Release 11.2.0.1.0 Production on Sat Aug 14 10:30:24 2010
&nbsp;
	Copyright (c) 1982, 2009, Oracle.  All rights reserved.
&nbsp;
	Connected to an idle instance.
&nbsp;
	SQL&gt; startup nomount
	ORACLE instance started.
&nbsp;
	Total System Global Area  217157632 bytes
	Fixed Size                  2209600 bytes
	Variable Size             159385792 bytes
	Database Buffers           50331648 bytes
	Redo Buffers                5230592 bytes
	SQL&gt; create spfile from pfile;
&nbsp;
	File created.
&nbsp;
	SQL&gt; shut immediate
	ORA-01507: database not mounted
&nbsp;
&nbsp;
	ORACLE instance shut down.
	SQL&gt; startup nomount;
	ORACLE instance started.
&nbsp;
	Total System Global Area  217157632 bytes
	Fixed Size                  2209600 bytes
	Variable Size             159385792 bytes
	Database Buffers           50331648 bytes
	Redo Buffers                5230592 bytes
	SQL&gt;</pre></td></tr></table></div>

<p>	<a name="networking"></a><br />
	<strong>Setup networking for archive transfer</strong></p>
<p> You can setup the listener.ora and tnsnames.ora on production and standby as follows </p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=listenertnsnames.txt">listenertnsnames.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122648"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
</pre></td><td class="code" id="p1226code48"><pre class="language" style="font-family:monospace;">&nbsp;
	On Production database server
&nbsp;
	Listener
	LISTENER_PROD11R2 =
	  (DESCRIPTION_LIST =
	    (DESCRIPTION =
	      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
	    )
	    (DESCRIPTION =
	      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.221)(PORT = 1234))
	    )
	  )
&nbsp;
	SID_LIST_LISTENER_PROD11R2 =
	  (SID_LIST =
	    (SID_DESC =
	      (GLOBAL_DBNAME = PROD11R2)
	      (ORACLE_HOME = /ora11g/app/ora11g/product/11.2.0/dbhome_1)
	      (SID_NAME = PROD11R2)
	    )
	  )
&nbsp;
&nbsp;
	Tnsnames
	PROD11R2_LIVE =
	  (DESCRIPTION =
	    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.221)(PORT = 1234))
	    (CONNECT_DATA =
	      (SERVER = DEDICATED)
	      (SID=PROD11R2)
	    )
	  )
&nbsp;
	PROD11R2_STBY =
	  (DESCRIPTION =
	    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.222)(PORT = 1234))
	    (CONNECT_DATA =
	      (SERVER = DEDICATED)
	      (SID=PROD11R2)
	    )
	  )</pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=listenertnsnames.txt">listenertnsnames.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122649"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
</pre></td><td class="code" id="p1226code49"><pre class="language" style="font-family:monospace;">	On Standby database server
&nbsp;
	Listener
	LISTENER_PROD11R2 =
	  (DESCRIPTION_LIST =
	    (DESCRIPTION =
	      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
	    )
	    (DESCRIPTION =
	      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.222)(PORT = 1234))
	    )
	  )
&nbsp;
	SID_LIST_LISTENER_PROD11R2 =
	  (SID_LIST =
	    (SID_DESC =
	      (GLOBAL_DBNAME = PROD11R2)
	      (ORACLE_HOME = /ora11g/app/ora11g/product/11.2.0/dbhome_1)
	      (SID_NAME = PROD11R2)
	    )
	  )
&nbsp;
&nbsp;
	Tnsnames
	PROD11R2_LIVE =
	  (DESCRIPTION =
	    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.221)(PORT = 1234))
	    (CONNECT_DATA =
	      (SERVER = DEDICATED)
	      (SID=PROD11R2)
	    )
	  )
&nbsp;
	PROD11R2_STBY =
	  (DESCRIPTION =
	    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.222)(PORT = 1234))
	    (CONNECT_DATA =
	      (SERVER = DEDICATED)
	      (PROD11R2)
	    )
	  )</pre></td></tr></table></div>

<p>	<a name="backuprestore"></a><br />
	<strong>Create a backup on production and restore it to the standby </strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=backuprestore.txt">backuprestore.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122650"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code" id="p1226code50"><pre class="language" style="font-family:monospace;">	SQL&gt; alter database begin backup;
&nbsp;
	Database altered.
&nbsp;
	SQL&gt; ho
	$ cd /oradata11g/PROD11R2/data01/oradata/
	$ scp  *.* ora11g@192.168.1.222:/oradata11g/PROD11R2/data01/oradata/
	Password:
	sysaux_01.dbf        100% |*************************************************|   200 MB    00:25
	system_01.dbf        100% |*************************************************|   500 MB    00:58
	temp_01.dbf          100% |*************************************************|   100 MB    00:06
	undo_tbs_01.dbf      100% |*************************************************|   100 MB    00:06
	$
&nbsp;
	SQL&gt; alter database end backup;
&nbsp;
	Database altered.
&nbsp;
	SQL&gt;</pre></td></tr></table></div>

<p>	<a name="standbycontrolfile"></a><br />
	<strong>Create a standby controlfile and copy it to the standby server</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=standbycontrolfile.txt">standbycontrolfile.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122651"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code" id="p1226code51"><pre class="language" style="font-family:monospace;">	SQL&gt; alter database create standby controlfile as '/tmp/control01.ctl';
&nbsp;
	Database altered.
&nbsp;
	SQL&gt; exit
	Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
	With the Partitioning, OLAP, Data Mining and Real Application Testing options
	$ cd /tmp
	$ scp  control01.ctl ora11g@192.168.1.222:/oradata11g/PROD11R2/data01/control/control01.ctl
	Password:
	control01.ctl        100% |*************************************************|  7664 KB    00:00
	$ scp  control01.ctl ora11g@192.168.1.222:/oradata11g/PROD11R2/data02/control/control02.ctl
	Password:
	control01.ctl        100% |*************************************************|  7664 KB    00:00
	$ scp  control01.ctl ora11g@192.168.1.222:/oradata11g/PROD11R2/data03/control/control03.ctl
	Password:
	control01.ctl        100% |*************************************************|  7664 KB    00:00
	$</pre></td></tr></table></div>

<p>	<a name="recoverstandby"></a><br />
	<strong>Mount the standby database and test log transfer and application</strong></p>
<p>On standby database</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1226&amp;download=recoverstandby.txt">recoverstandby.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122652"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code" id="p1226code52"><pre class="language" style="font-family:monospace;">	SQL&gt; alter database mount;
&nbsp;
	Database altered.
&nbsp;
	SQL&gt; recover standby database;
	ORA-00279: change 235449 generated at 08/14/2010 13:13:39 needed for thread 1
	ORA-00289: suggestion : /oraarch11g/PROD11R2/arch/PROD11R2_1_35_726956820.dbf
	ORA-00280: change 235449 for thread 1 is in sequence #35
&nbsp;
&nbsp;
	Specify log: {&lt;RET&gt;=suggested | filename | AUTO | CANCEL}
	cancel
	Media recovery cancelled.
	SQL&gt; ho ls -ltr /oraarch11g/PROD11R2/arch/PROD11R2_1_5_726956820.dbf
	-rw-r-----   1 ora11g   dba         1024 Aug 14 13:15 /oraarch11g/PROD11R2/arch/PROD11R2_1_5_726956820.dbf</pre></td></tr></table></div>

<p>
	If the archive logs are not being received, check the alert logs for errors.</p>
</div>
<img src="http://www.oraclemasters.in/?ak_action=api_record_view&id=1226&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.oraclemasters.in/?feed=rss2&amp;p=1226</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>one of datafile shows recovery in my standby database</title>
		<link>http://www.oraclemasters.in/?p=1219</link>
		<comments>http://www.oraclemasters.in/?p=1219#comments</comments>
		<pubDate>Thu, 12 Aug 2010 08:02:08 +0000</pubDate>
		<dc:creator>tdomf_2a078</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[HA - RAC & Dataguard FAQs]]></category>

		<guid isPermaLink="false">http://www.oraclemasters.in/?p=1219</guid>
		<description><![CDATA[Hi, One of my datafile in standby database shows recover mode. can any one help me how to solve this issue. I have created one table in one tablespace in production database, today i have applied the archive files in standby database, after that i have opened the standby database in read only mode to [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>One of my datafile in standby database shows recover mode.<br />
can any one help me how to solve this issue.</p>
<p>I have created one table in one tablespace in production database, today i have applied the archive files in standby database, after that i have opened the standby database in read only mode to check the table. But the table is<br />
corrupted saying block corrupted at block Num 3.</p>
<p>regards</p>
<img src="http://www.oraclemasters.in/?ak_action=api_record_view&id=1219&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.oraclemasters.in/?feed=rss2&amp;p=1219</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Duplicate active database over network using RMAN &#8211; 11g</title>
		<link>http://www.oraclemasters.in/?p=1198</link>
		<comments>http://www.oraclemasters.in/?p=1198#comments</comments>
		<pubDate>Tue, 13 Jul 2010 10:23:55 +0000</pubDate>
		<dc:creator>Ramesh Menon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.oraclemasters.in/?p=1198</guid>
		<description><![CDATA[This post is a demonstration of duplicating an Oracle database to another server over the network. The article is for the scenario where ALL directory structures are the same on both the source and the destination database. The setup information are as follows ?View Code LANGUAGE1 2 3 4 5 6 7 8 9 10 [...]]]></description>
			<content:encoded><![CDATA[<div class="article">
<p>This post is a demonstration of duplicating an Oracle database to another server over the network. The article is for the scenario where ALL directory structures are the same on both the source and the destination database.
</p>
<p><span id="more-1198"></span></p>
<p> The setup information are as follows </p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1198code61'); return false;">View Code</a> LANGUAGE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p119861"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code" id="p1198code61"><pre class="language" style="font-family:monospace;">Details		Source					Destination
OS		SunOS 5.10 Generic_141445-09 x86 64 bit	SunOS 5.10 Generic_141445-09 x86 64 bit
Hostname	solaris-si-node-01			solaris-si-node-02
IP Address	192.168.1.221				192.168.1.222
Oracle Home	/ora11g/app/ora11g/product/11.2.0/db_1	/ora11g/app/ora11g/product/11.2.0/db_1
SPFILE	$ORACLE_HOME/dbs/spfilePRODDBR2.ora		$ORACLE_HOME/dbs/spfilePRODDBR2.ora
Database Name	PRODDB2					PRODDB2
Data Location	/oradata11g/oradata/PRODDBR2/		/oradata11g/oradata/PRODDBR2/
Archive Location	/fra/PRODDBR2/arch		/fra/PRODDBR2/arch
Listener	LISTENER				LISTENER_DEST
Listener Port	1521					1521
Connect String	PRODDB2					PRODDB2_DEST</pre></td></tr></table></div>

<p>The steps involved are as follows</p>
<ol>
<li><a href="#source">Setup the source database</a></li>
<li><a href="#auxiliary">Setup the auxiliary database</a></li>
<li><a href="#rman">Use RMAN to create duplicate database</a></li>
</ol>
</div>
<div class="article">
<a name="source"></a></p>
<h2>Setup the source database</h2>
<p> The source database should be configured to have connectivity to the auxiliary database via the listener.  This can be configured by setting the tnsnames.ora entry for the auxiliary database. (This Listener needs to be created on the auxiliary database as seen later in this article).
</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1198&amp;download=tnsnames.ora">tnsnames.ora</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p119862"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code" id="p1198code62"><pre class="language" style="font-family:monospace;">	# tnsnames.ora Network Configuration File: /ora11g/app/ora11g/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
	# Generated by Oracle configuration tools.
&nbsp;
	PRODDBR2 =
	  (DESCRIPTION =
	    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.221)(PORT = 1521))
	    (CONNECT_DATA =
	      (SERVER = DEDICATED)
	      (SERVICE_NAME = PRODDBR2)
	    )
	  )
&nbsp;
	PRODDBR2_DEST =
	  (DESCRIPTION =
	    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.222)(PORT = 1521))
	    (CONNECT_DATA =
	      (SERVER = DEDICATED)
	      (SERVICE_NAME = PRODDBR2)
	    )
	  )</pre></td></tr></table></div>

</div>
<div class="article">
<a name="auxiliary"></a></p>
<h2>Setup the auxiliary database</h2>
<p>In this section, we setup the auxiliary database. The following are the things that we need to take care of</p>
<ul>
<li> Generate a password file</li>
<p> You could copy the password file from the source database or create a new one </p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1198&amp;download=pwcreate.txt">pwcreate.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p119863"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p1198code63"><pre class="language" style="font-family:monospace;">$ scp orapwPRODDBR2 ora11g@solaris-si-node-02:/ora11g/app/ora11g/product/11.2&gt;
	Password:
	orapwPRODDBR2        100% |*****************************|  1536       00:00
	$</pre></td></tr></table></div>

<li> Create directory structure same as that on production </li>
<p>	Ensure that you create the directory structure same as the production server. Any location in the spfile MUST exist on the target</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1198&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p119864"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code" id="p1198code64"><pre class="language" style="font-family:monospace;">	audit_file_dest=/ora11g/app/ora11g/admin/PRODDBR2/adump
	background_dump_dest=/ora11g/app/ora11g/diag/rdbms/proddbr2/PRODDBR2/trace
	core_dump_dest=/ora11g/app/ora11g/diag/rdbms/proddbr2/PRODDBR2/cdump
	user_dump_dest=/ora11g/app/ora11g/diag/rdbms/proddbr2/PRODDBR2/trace
&nbsp;
	control_files=/oradata11g/oradata/PRODDBR2/control01.ctl, /ora11g/app/ora11g/flash_recovery_area/PRODDBR2/control02.ctl
	diagnostic_dest=/ora11g/app/ora11g
&nbsp;
&nbsp;
	mkdir -p /ora11g/app/ora11g/admin/PRODDBR2/adump
	mkdir -p /ora11g/app/ora11g/diag/rdbms/proddbr2/PRODDBR2/trace
	mkdir -p /ora11g/app/ora11g/diag/rdbms/proddbr2/PRODDBR2/cdump
	mkdir -p /ora11g/app/ora11g/diag/rdbms/proddbr2/PRODDBR2/trace
	mkdir -p /oradata11g/oradata/PRODDBR2/
	mkdir -p /ora11g/app/ora11g/flash_recovery_area/PRODDBR2/</pre></td></tr></table></div>

<p>	Also create the directories for your datafiles and redo logfiles</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1198&amp;download=tnsnames.ora">tnsnames.ora</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p119865"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1198code65"><pre class="language" style="font-family:monospace;">	mkdir -p /oradata11g/oradata/PRODDBR2/ (in my case, it is already created earlier)</pre></td></tr></table></div>

<li> Create a bare minimum initialization parameter file </li>
<p> Add db_name=PRODDBR2 to initPRODDBR2.ora in $ORACLE_HOME/dbs. Since the SPFILE will be brought from the production, and the directory structure is the same, the other parameters can be ignored </p>
<li> Create the listener for remote logins </li>
<p> Create and start the listener for this instance </p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1198&amp;download=listener.ora">listener.ora</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p119866"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code" id="p1198code66"><pre class="language" style="font-family:monospace;"># Generated by Oracle configuration tools.
&nbsp;
SID_LIST_LISTENER_DEST =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = PRODDBR2)
      (ORACLE_HOME = /ora11g/app/ora11g/product/11.2.0/dbhome_1)
      (SID_NAME = PRODDBR2)
    )
  )
&nbsp;
LISTENER_DEST =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.222)(PORT = 1521))
    )
  )
&nbsp;
ADR_BASE_LISTENER = /ora11g/app/ora11g</pre></td></tr></table></div>

<li> Startup in nomount mode </li>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1198&amp;download=tnsnames.ora">tnsnames.ora</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p119867"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code" id="p1198code67"><pre class="language" style="font-family:monospace;">$ sqlplus &quot;/ as sysdba&quot;
&nbsp;
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jul 13 16:08:36 2010
&nbsp;
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
&nbsp;
Connected to an idle instance.
&nbsp;
SQL&gt; startup nomount;
ORACLE instance started.
&nbsp;
Total System Global Area  217157632 bytes
Fixed Size                  2209600 bytes
Variable Size             159385792 bytes
Database Buffers           50331648 bytes
Redo Buffers                5230592 bytes
SQL&gt; exit</pre></td></tr></table></div>

</ul>
</div>
<div class="article">
<a name="rman"></a></p>
<h2>Use RMAN to create duplicate database</h2>
<p> Now that all the settings have been made, we can connect to the target database and auxiliary database as follows and start the duplication process.
</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1198&amp;download=duplicate.txt">duplicate.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p119868"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
</pre></td><td class="code" id="p1198code68"><pre class="language" style="font-family:monospace;">&nbsp;
$ hostname
solaris-si-node-01
$ export ORACLE_SID=PRODDBR2
$ rman target /
&nbsp;
Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jul 13 16:23:25 2010
&nbsp;
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
&nbsp;
connected to target database: PRODDBR2 (DBID=2607472656)
&nbsp;
RMAN&gt; connect auxiliary sys@proddbr2_dest
&nbsp;
auxiliary database Password:
connected to auxiliary database (not started)
&nbsp;
RMAN&gt; DUPLICATE TARGET DATABASE TO PRODDBR2
FROM ACTIVE DATABASE
PASSWORD FILE
SPFILE
NOFILENAMECHECK; 
Starting Duplicate Db at 13-JUL-10
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=19 device type=DISK
&nbsp;
contents of Memory Script:
{
   backup as copy reuse
   targetfile  '/ora11g/app/ora11g/product/11.2.0/dbhome_1/dbs/orapwPRODDBR2' auxiliary format
 '/ora11g/app/ora11g/product/11.2.0/dbhome_1/dbs/orapwPRODDBR2'   targetfile
 '/ora11g/app/ora11g/product/11.2.0/dbhome_1/dbs/spfilePRODDBR2.ora' auxiliary format
 '/ora11g/app/ora11g/product/11.2.0/dbhome_1/dbs/spfilePRODDBR2.ora'   ;
   sql clone &quot;alter system set spfile= ''/ora11g/app/ora11g/product/11.2.0/dbhome_1/dbs/spfilePRODDBR2.ora''&quot;;
}
executing Memory Script
&nbsp;
Starting backup at 13-JUL-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=42 device type=DISK
Finished backup at 13-JUL-10
&nbsp;
sql statement: alter system set spfile= ''/ora11g/app/ora11g/product/11.2.0/dbhome_1/dbs/spfilePRODDBR2.ora''
&nbsp;
contents of Memory Script:
{
   sql clone &quot;alter system set  db_name =
 ''PRODDBR2'' comment=
 ''duplicate'' scope=spfile&quot;;
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script
&nbsp;
sql statement: alter system set  db_name =  ''PRODDBR2'' comment= ''duplicate'' scope=spfile
&nbsp;
Oracle instance shut down
&nbsp;
connected to auxiliary database (not started)
Oracle instance started
&nbsp;
Total System Global Area    1085640704 bytes
&nbsp;
Fixed Size                     2210208 bytes
Variable Size                687867488 bytes
Database Buffers             385875968 bytes
Redo Buffers                   9687040 bytes
&nbsp;
contents of Memory Script:
{
   sql clone &quot;alter system set  db_name =
 ''PRODDBR2'' comment=
 ''Modified by RMAN duplicate'' scope=spfile&quot;;
   sql clone &quot;alter system set  db_unique_name =
 ''PRODDBR2'' comment=
 ''Modified by RMAN duplicate'' scope=spfile&quot;;
   shutdown clone immediate;
   startup clone force nomount
   backup as copy current controlfile auxiliary format  '/oradata11g/oradata/PRODDBR2/control01.ctl';
   restore clone controlfile to  '/ora11g/app/ora11g/flash_recovery_area/PRODDBR2/control02.ctl' from
 '/oradata11g/oradata/PRODDBR2/control01.ctl';
   alter clone database mount;
}
executing Memory Script
&nbsp;
sql statement: alter system set  db_name =  ''PRODDBR2'' comment= ''Modified by RMAN duplicate'' scope=spfile
&nbsp;
sql statement: alter system set  db_unique_name =  ''PRODDBR2'' comment= ''Modified by RMAN duplicate'' scope=spfile
&nbsp;
Oracle instance shut down
&nbsp;
Oracle instance started
&nbsp;
Total System Global Area    1085640704 bytes
&nbsp;
Fixed Size                     2210208 bytes
Variable Size                687867488 bytes
Database Buffers             385875968 bytes
Redo Buffers                   9687040 bytes
&nbsp;
Starting backup at 13-JUL-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying current control file
output file name=/ora11g/app/ora11g/product/11.2.0/dbhome_1/dbs/snapcf_PRODDBR2.f tag=TAG20100713T162459 RECID=5 STAMP=724263900
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
Finished backup at 13-JUL-10
&nbsp;
Starting restore at 13-JUL-10
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=18 device type=DISK
&nbsp;
channel ORA_AUX_DISK_1: copied control file copy
Finished restore at 13-JUL-10
&nbsp;
database mounted
RMAN-05538: WARNING: implicitly using DB_FILE_NAME_CONVERT
&nbsp;
contents of Memory Script:
{
   set newname for datafile  1 to
 &quot;/oradata11g/oradata/PRODDBR2/system01.dbf&quot;;
   set newname for datafile  2 to
 &quot;/oradata11g/oradata/PRODDBR2/sysaux01.dbf&quot;;
   set newname for datafile  3 to
 &quot;/oradata11g/oradata/PRODDBR2/undotbs01.dbf&quot;;
   set newname for datafile  4 to
 &quot;/oradata11g/oradata/PRODDBR2/users01.dbf&quot;;
   backup as copy reuse
   datafile  1 auxiliary format
 &quot;/oradata11g/oradata/PRODDBR2/system01.dbf&quot;   datafile
 2 auxiliary format
 &quot;/oradata11g/oradata/PRODDBR2/sysaux01.dbf&quot;   datafile
 3 auxiliary format
 &quot;/oradata11g/oradata/PRODDBR2/undotbs01.dbf&quot;   datafile
 4 auxiliary format
 &quot;/oradata11g/oradata/PRODDBR2/users01.dbf&quot;   ;
   sql 'alter system archive log current';
}
executing Memory Script
&nbsp;
executing command: SET NEWNAME
&nbsp;
executing command: SET NEWNAME
&nbsp;
executing command: SET NEWNAME
&nbsp;
executing command: SET NEWNAME
&nbsp;
Starting backup at 13-JUL-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/oradata11g/oradata/PRODDBR2/system01.dbf
output file name=/oradata11g/oradata/PRODDBR2/system01.dbf tag=TAG20100713T162509
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:02:56
channel ORA_DISK_1: starting datafile copy
input datafile file number=00002 name=/oradata11g/oradata/PRODDBR2/sysaux01.dbf
output file name=/oradata11g/oradata/PRODDBR2/sysaux01.dbf tag=TAG20100713T162509
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:06
channel ORA_DISK_1: starting datafile copy
input datafile file number=00003 name=/oradata11g/oradata/PRODDBR2/undotbs01.dbf
output file name=/oradata11g/oradata/PRODDBR2/undotbs01.dbf tag=TAG20100713T162509
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
channel ORA_DISK_1: starting datafile copy
input datafile file number=00004 name=/oradata11g/oradata/PRODDBR2/users01.dbf
output file name=/oradata11g/oradata/PRODDBR2/users01.dbf tag=TAG20100713T162509
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 13-JUL-10
&nbsp;
sql statement: alter system archive log current
&nbsp;
contents of Memory Script:
{
   backup as copy reuse
   archivelog like  &quot;/fra/PRODDBR2/arch/1_7_724236691.dbf&quot; auxiliary format
 &quot;/fra/PRODDBR2/arch/1_7_724236691.dbf&quot;   ;
   catalog clone archivelog  &quot;/fra/PRODDBR2/arch/1_7_724236691.dbf&quot;;
   switch clone datafile all;
}
executing Memory Script
&nbsp;
Starting backup at 13-JUL-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log copy
input archived log thread=1 sequence=7 RECID=5 STAMP=724264160
output file name=/fra/PRODDBR2/arch/1_7_724236691.dbf RECID=0 STAMP=0
channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:01
Finished backup at 13-JUL-10
&nbsp;
cataloged archived log
archived log file name=/fra/PRODDBR2/arch/1_7_724236691.dbf RECID=5 STAMP=724264163
&nbsp;
datafile 1 switched to datafile copy
input datafile copy RECID=5 STAMP=724264163 file name=/oradata11g/oradata/PRODDBR2/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=6 STAMP=724264163 file name=/oradata11g/oradata/PRODDBR2/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=7 STAMP=724264163 file name=/oradata11g/oradata/PRODDBR2/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=8 STAMP=724264163 file name=/oradata11g/oradata/PRODDBR2/users01.dbf
&nbsp;
contents of Memory Script:
{
   set until scn  924147;
   recover
   clone database
    delete archivelog
   ;
}
executing Memory Script
&nbsp;
executing command: SET until clause
&nbsp;
Starting recover at 13-JUL-10
using channel ORA_AUX_DISK_1
&nbsp;
starting media recovery
&nbsp;
archived log for thread 1 with sequence 7 is already on disk as file /fra/PRODDBR2/arch/1_7_724236691.dbf
archived log file name=/fra/PRODDBR2/arch/1_7_724236691.dbf thread=1 sequence=7
media recovery complete, elapsed time: 00:00:01
Finished recover at 13-JUL-10
&nbsp;
contents of Memory Script:
{
   shutdown clone immediate;
   startup clone nomount;
   sql clone &quot;alter system set  db_name =
 ''PRODDBR2'' comment=
 ''Reset to original value by RMAN'' scope=spfile&quot;;
   sql clone &quot;alter system reset  db_unique_name scope=spfile&quot;;
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script
&nbsp;
database dismounted
Oracle instance shut down
&nbsp;
connected to auxiliary database (not started)
Oracle instance started
&nbsp;
Total System Global Area    1085640704 bytes
&nbsp;
Fixed Size                     2210208 bytes
Variable Size                687867488 bytes
Database Buffers             385875968 bytes
Redo Buffers                   9687040 bytes
&nbsp;
sql statement: alter system set  db_name =  ''PRODDBR2'' comment= ''Reset to original value by RMAN'' scope=spfile
&nbsp;
sql statement: alter system reset  db_unique_name scope=spfile
&nbsp;
Oracle instance shut down
&nbsp;
connected to auxiliary database (not started)
Oracle instance started
&nbsp;
Total System Global Area    1085640704 bytes
&nbsp;
Fixed Size                     2210208 bytes
Variable Size                687867488 bytes
Database Buffers             385875968 bytes
Redo Buffers                   9687040 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE &quot;PRODDBR2&quot; RESETLOGS ARCHIVELOG
  MAXLOGFILES     16
  MAXLOGMEMBERS      3
  MAXDATAFILES      100
  MAXINSTANCES     8
  MAXLOGHISTORY      292
 LOGFILE
  GROUP  1  SIZE 50 M ,
  GROUP  2  SIZE 50 M ,
  GROUP  3  SIZE 50 M
 DATAFILE
  '/oradata11g/oradata/PRODDBR2/system01.dbf'
 CHARACTER SET WE8MSWIN1252
&nbsp;
&nbsp;
contents of Memory Script:
{
   set newname for tempfile  1 to
 &quot;/oradata11g/oradata/PRODDBR2/temp01.dbf&quot;;
   switch clone tempfile all;
   catalog clone datafilecopy  &quot;/oradata11g/oradata/PRODDBR2/sysaux01.dbf&quot;,
 &quot;/oradata11g/oradata/PRODDBR2/undotbs01.dbf&quot;,
 &quot;/oradata11g/oradata/PRODDBR2/users01.dbf&quot;;
   switch clone datafile all;
}
executing Memory Script
&nbsp;
executing command: SET NEWNAME
&nbsp;
renamed tempfile 1 to /oradata11g/oradata/PRODDBR2/temp01.dbf in control file
&nbsp;
cataloged datafile copy
datafile copy file name=/oradata11g/oradata/PRODDBR2/sysaux01.dbf RECID=1 STAMP=724264213
cataloged datafile copy
datafile copy file name=/oradata11g/oradata/PRODDBR2/undotbs01.dbf RECID=2 STAMP=724264213
cataloged datafile copy
datafile copy file name=/oradata11g/oradata/PRODDBR2/users01.dbf RECID=3 STAMP=724264213
&nbsp;
datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=724264213 file name=/oradata11g/oradata/PRODDBR2/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=724264213 file name=/oradata11g/oradata/PRODDBR2/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=724264213 file name=/oradata11g/oradata/PRODDBR2/users01.dbf
&nbsp;
contents of Memory Script:
{
   Alter clone database open resetlogs;
}
executing Memory Script
&nbsp;
database opened
Finished Duplicate Db at 13-JUL-10
&nbsp;
RMAN&gt;</pre></td></tr></table></div>

</div>
<div class="article">
<p> This article is a simple demonstration of RMAN&#8217;s duplicate over network feature. Oracle 11g provides various other options with duplicate command. These include duplicate database when directory structures are different, point in time duplication, incomplete (partial) duplication, duplicate for standby etc. Oracle documentation is the best place for beginers to start, in order to understand these features.</p>
<p>This option of duplicate opens the destination or auxiliary database in resetlogs mode.
</p>
</div>
<img src="http://www.oraclemasters.in/?ak_action=api_record_view&id=1198&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.oraclemasters.in/?feed=rss2&amp;p=1198</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Query tuning</title>
		<link>http://www.oraclemasters.in/?p=1187</link>
		<comments>http://www.oraclemasters.in/?p=1187#comments</comments>
		<pubDate>Wed, 09 Jun 2010 00:35:37 +0000</pubDate>
		<dc:creator>niket</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Performance Tuning]]></category>

		<guid isPermaLink="false">http://www.oraclemasters.in/?p=1187</guid>
		<description><![CDATA[Optimizer is not using index when i am giving hint to the query which contains bind variables It is generating its own plan The query is ?Download text1 2 3 4 5 6 7 8 9 10 SELECT b.amount, b.invoice_charge_price, b.charge_id, b.internal_agreement_no, b.item_code, b.entity_id, b.agreement_id, b.start_date, b.end_date, b.charge_code, b.charge_type, price_inclusive_of_taxes, b.pricing_entity_id, b.party_slaccount FROM bt_billing_charges b [...]]]></description>
			<content:encoded><![CDATA[<div class="article">
<p>Optimizer is not using index when i am giving hint to the query which contains bind variables</p>
<p>It is generating its own plan</p>
<p>The query is </p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1187&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p118774"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p1187code74"><pre class="language" style="font-family:monospace;">SELECT b.amount, b.invoice_charge_price, b.charge_id, b.internal_agreement_no,
       b.item_code, b.entity_id, b.agreement_id, b.start_date, b.end_date,
       b.charge_code, b.charge_type, price_inclusive_of_taxes,
       b.pricing_entity_id, b.party_slaccount
  FROM bt_billing_charges b
 WHERE b.entity_id = :b3
   AND NVL (b.invoice_no, 0) = 0
   AND b.paid_status = 'N'
   AND b.cp_code = NVL (:b2, b.cp_code)
   AND b.paymode_trans_no = NVL (:b1, b.paymode_trans_no);</pre></td></tr></table></div>

<p>
Now execution plan is<br />
============</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1187&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p118775"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
</pre></td><td class="code" id="p1187code75"><pre class="language" style="font-family:monospace;">Plan Table
============
----------------------------------------------------------------+--------------------------------
---+
| Id  | Operation                      | Name                   | Rows  | Bytes | Cost  | Time
   |
----------------------------------------------------------------+--------------------------------
---+
| 0   | SELECT STATEMENT               |                        |       |       |   539 |
   |
| 1   |  CONCATENATION                 |                        |       |       |       |
   |
| 2   |   FILTER                       |                        |       |       |       |
   |
| 3   |    TABLE ACCESS BY INDEX ROWID | BT_BILLING_CHARGES     |     1 |    88 |   269 |  00:00:
04 |
| 4   |     INDEX RANGE SCAN           | IDX_BT_BILLING_ENTITYID|   807 |       |     8 |  00:00:
01 |
| 5   |   FILTER                       |                        |       |       |       |
   |
| 6   |    TABLE ACCESS BY INDEX ROWID | BT_BILLING_CHARGES     |     1 |    88 |   269 |  00:00:
04 |
| 7   |     INDEX RANGE SCAN           | IDX_BT_BILLING_ENTITYID|   807 |       |     8 |  00:00:
01 |
----------------------------------------------------------------+--------------------------------
---+
Predicate Information:
----------------------
2 - filter(:B1 IS NULL)
3 - filter((NVL(&quot;B&quot;.&quot;INVOICE_NO&quot;,0)=0 AND &quot;B&quot;.&quot;PAID_STATUS&quot;='N' AND &quot;B&quot;.&quot;PAYMODE_TRANS_NO&quot; IS NOT
 NULL AND &quot;B&quot;.&quot;CP_CODE&quot;=NVL(:B2,&quot;B&quot;.&quot;CP_CODE&quot;)))
4 - access(&quot;B&quot;.&quot;ENTITY_ID&quot;=TO_NUMBER(:B3))
5 - filter(:B1 IS NOT NULL)
6 - filter((NVL(&quot;B&quot;.&quot;INVOICE_NO&quot;,0)=0 AND &quot;B&quot;.&quot;PAID_STATUS&quot;='N' AND &quot;B&quot;.&quot;CP_CODE&quot;=NVL(:B2,&quot;B&quot;.&quot;CP
_CODE&quot;) AND &quot;B&quot;.&quot;PAYMODE_TRANS_NO&quot;=:B1))
7 - access(&quot;B&quot;.&quot;ENTITY_ID&quot;=TO_NUMBER(:B3))</pre></td></tr></table></div>

<p>Now i am passing hint to the query</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1187&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p118776"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p1187code76"><pre class="language" style="font-family:monospace;">SELECT /*+ INDEX (b BT_BILLING_CHARGES_I4) */ b.amount, b.invoice_charge_price, b.charge_id, b.internal_agreement_no,
       b.item_code, b.entity_id, b.agreement_id, b.start_date, b.end_date,
       b.charge_code, b.charge_type, price_inclusive_of_taxes,
       b.pricing_entity_id, b.party_slaccount
  FROM bt_billing_charges b
 WHERE b.entity_id = :b3
   AND NVL (b.invoice_no, 0) = 0
   AND b.paid_status = 'N'
   AND b.cp_code = NVL (:b2, b.cp_code)
   AND b.paymode_trans_no = NVL (:b1, b.paymode_trans_no)</pre></td></tr></table></div>

<p>But still it is using same plan.</p>
<p>Now when i removed bind variables with values then it is using index </p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1187&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p118777"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p1187code77"><pre class="language" style="font-family:monospace;">SELECT /*+ INDEX (b BT_BILLING_CHARGES_I4) */ B.AMOUNT,B.INVOICE_CHARGE_PRICE,B.CHARGE_ID,B.INTER
NAL_AGREEMENT_NO, B.ITEM_CODE,B.ENTITY_ID,B.AGREEMENT_ID,B.START_DATE,B.END_DATE, B.CHARGE_CODE,B
.CHARGE_TYPE,PRICE_INCLUSIVE_OF_TAXES,B.PRICING_ENTITY_ID,B.PARTY_SLACCOUNT FROM IMCL420.BT_BILLI
NG_CHARGES B WHERE B.ENTITY_ID=12345263 AND NVL(B.INVOICE_NO,0)=0 AND B.PAID_STATUS='N' AND B.CP_
CODE=NVL(0,B.CP_CODE) AND B.PAYMODE_TRANS_NO= NVL(0,B.PAYMODE_TRANS_NO)</pre></td></tr></table></div>

<p>and exec plan is</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1187&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p118778"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p1187code78"><pre class="language" style="font-family:monospace;">Plan Table
============
-------------------------------------------------+-----------------------------------+
| Id  | Operation         | Name                 | Rows  | Bytes | Cost  | Time      |
-------------------------------------------------+-----------------------------------+
| 0   | SELECT STATEMENT  |                      |       |       |     5 |           |
| 1   |  INDEX RANGE SCAN | BT_BILLING_CHARGES_I4|     1 |    88 |     5 |  00:00:01 |
-------------------------------------------------+-----------------------------------+
Predicate Information:
----------------------
1 - access(&quot;B&quot;.&quot;ENTITY_ID&quot;=12345263 AND NVL(&quot;INVOICE_NO&quot;,0)=0 AND &quot;B&quot;.&quot;PAID_STATUS&quot;='N')
1 - filter((NVL(&quot;INVOICE_NO&quot;,0)=0 AND &quot;B&quot;.&quot;PAID_STATUS&quot;='N' AND TO_NUMBER(&quot;B&quot;.&quot;CP_CODE&quot;)=NVL(0,TO
_NUMBER(&quot;B&quot;.&quot;CP_CODE&quot;)) AND &quot;B&quot;.&quot;PAYMODE_TRANS_NO&quot;=NVL(0,&quot;B&quot;.&quot;PAYMODE_TRANS_NO&quot;)))</pre></td></tr></table></div>

<p>so my question is how to force query containing bind variables  to use index </p>
<p>Kindly guide me</p>
<p>Thanks </p>
<p>Regards</p>
<p>Niket</p>
</div>
</div>
<img src="http://www.oraclemasters.in/?ak_action=api_record_view&id=1187&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.oraclemasters.in/?feed=rss2&amp;p=1187</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>10g rac</title>
		<link>http://www.oraclemasters.in/?p=1183</link>
		<comments>http://www.oraclemasters.in/?p=1183#comments</comments>
		<pubDate>Thu, 03 Jun 2010 07:27:18 +0000</pubDate>
		<dc:creator>tdomf_2a078</dc:creator>
				<category><![CDATA[Architecture]]></category>

		<guid isPermaLink="false">http://www.oraclemasters.in/?p=1183</guid>
		<description><![CDATA[hi ramesh Can u explain about master and slave nodes. I have 4 node rac, if master is down , which node will take over as master out of 3 alive nodes. 2. can I mannually switch master and slave manually.]]></description>
			<content:encoded><![CDATA[<p>hi ramesh</p>
<p> Can u explain about master and slave nodes.  I have 4 node rac, if master is down , which node will take over as master out of 3 alive nodes. </p>
<p>2.     can I mannually switch master and slave manually.</p>
<img src="http://www.oraclemasters.in/?ak_action=api_record_view&id=1183&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.oraclemasters.in/?feed=rss2&amp;p=1183</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oracle 9i binary installation.</title>
		<link>http://www.oraclemasters.in/?p=1179</link>
		<comments>http://www.oraclemasters.in/?p=1179#comments</comments>
		<pubDate>Thu, 27 May 2010 14:52:14 +0000</pubDate>
		<dc:creator>srini</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[DBA Posts]]></category>

		<guid isPermaLink="false">http://www.oraclemasters.in/?p=1179</guid>
		<description><![CDATA[We faced this error during the oracle 9I binary installation during (silent installation) on solaris 5.10 (While applying the patch set (9.2.0.6.0)) erver: /tmp/dumps/ship.patch.drop7/Disk1 $ ./runInstaller -silent -responseFile /tmp/dumps/ship.patch.drop7/Disk1/response/patchset.rsp Starting Oracle Universal Installer&#8230; Checking installer requirements&#8230; Checking operating system version: must be 5.8 or 5.9. Actual 5.10 Failed]]></description>
			<content:encoded><![CDATA[<p>We faced this error during the oracle  9I binary installation during (silent installation) on solaris 5.10 (While applying the patch set (9.2.0.6.0))</p>
<p>erver: /tmp/dumps/ship.patch.drop7/Disk1 $ ./runInstaller -silent -responseFile /tmp/dumps/ship.patch.drop7/Disk1/response/patchset.rsp<br />
 Starting Oracle Universal Installer&#8230;</p>
<p> Checking installer requirements&#8230;</p>
<p> Checking operating system version: must be 5.8 or 5.9.    Actual 5.10<br />
                                       Failed <<<<</p>
<p> Exiting Oracle Universal Installer, log for this session can be found at /ora9i/oracle/oraInventory/logs/installActions2010-05-27_03-09-17PM.log</p>
<p>This error we rectified by editing the file<br />
<strong>oraparamsilent.ini<br />
oraparam.ini</strong><br />
By default these  files were present on  Disk1/install  folder of the patch set dumps.</p>
<p>We added  solaris 5.10  entry in to the  above mentioned files under column</p>
<p> [Certified Versions]<br />
<strong>Solaris=5.8,5.9,5.10</strong></p>
<p>We gone through the installation.</p>
<p>Regards</p>
<p>Srinivas</p>
<img src="http://www.oraclemasters.in/?ak_action=api_record_view&id=1179&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.oraclemasters.in/?feed=rss2&amp;p=1179</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recover physical standby database after loss of archive log &#8211; roll forward</title>
		<link>http://www.oraclemasters.in/?p=1166</link>
		<comments>http://www.oraclemasters.in/?p=1166#comments</comments>
		<pubDate>Wed, 19 May 2010 15:14:25 +0000</pubDate>
		<dc:creator>Ramesh Menon</dc:creator>
				<category><![CDATA[Backup/Recovery]]></category>
		<category><![CDATA[HA - RAC & Dataguard FAQs]]></category>

		<guid isPermaLink="false">http://www.oraclemasters.in/?p=1166</guid>
		<description><![CDATA[This tutorial simulates a scenario, where in you are unable to recover your standby database because of a corrupted archive log file. The premise is that the archive log is corrupted on both production and standby, and we do not have a backup of this archive log. The tutorial shows an example of how we [...]]]></description>
			<content:encoded><![CDATA[<div class="article">
<p>This tutorial simulates a scenario, where in you are unable to recover your standby database because of a corrupted archive log file. The premise is that the archive log is corrupted on both production and standby, and we do not have a backup of this archive log.</p>
<p>The tutorial shows an example of how we can use RMAN incremental backup to recover the standby in such a scenario.</p>
<p><span id="more-1166"></span></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p116690"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code" id="p1166code90"><pre class="language" style="font-family:monospace;">Source 
 DBNAME   PRODDB 
 Oracle Home  /u01/ora10g
 Archive Dest  /u02/PRODDB/arch
&nbsp;
Destination 
 DBNAME   PRODDB
 Oracle Home  /u01/ora10g
 Archive Dest  /u02/PRODDB/arch</pre></td></tr></table></div>

<ol>
<li>Synch primary and standby. Defer application of logs on standby.</li>
<li>Let us now create some dummy tables and switch the logfile on primary. This is the log file that would be needed for recovery</li>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p116691"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code" id="p1166code91"><pre class="language" style="font-family:monospace;">{PRIMARY} /u01/ora10g/backup $ sqlplus
&nbsp;
SQL*Plus: Release 10.2.0.3.0 - Production on Wed May 19 12:37:34 2010
&nbsp;
Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
&nbsp;
Enter user-name: demo/demo
&nbsp;
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
&nbsp;
SQL&gt; select * from tab;
&nbsp;
TNAME                          TABTYPE  CLUSTERID
------------------------------ ------- ----------
OBJLIST                        TABLE
&nbsp;
SQL&gt; create table object_list as select * from dba_objects        
  2  union select * from dba_objects;
&nbsp;
Table created.
&nbsp;
SQL&gt; conn / as sysdba
Connected.
SQL&gt; archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /u02/PRODDB/arch/
Oldest online log sequence     59
Next log sequence to archive   61
Current log sequence           61
SQL&gt; alter system switch logfile;
&nbsp;
System altered.
&nbsp;
SQL&gt; archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /u02/PRODDB/arch/
Oldest online log sequence     60
Next log sequence to archive   62
Current log sequence           62
SQL&gt;</pre></td></tr></table></div>

<li>Get the current SCN of standby database </li>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p116692"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p1166code92"><pre class="language" style="font-family:monospace;"> STBYHOST(PRODDB)SQL &gt;select current_scn from v$database;
&nbsp;
                      CURRENT_SCN
 --------------------------------
                    7765466164256
&nbsp;
 STBYHOST(PRODDB)SQL &gt;</pre></td></tr></table></div>

<li>To find out which is the next archive log the standby database needs for recovery, run the recover command on the standby database without applying the archive logs</li>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p116693"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code" id="p1166code93"><pre class="language" style="font-family:monospace;"> STBYHOST(PRODDB)SQL &gt;recover standby database ;
 ORA-00279: change 7765466164257 generated at 05/19/2010 11:55:11 needed for
 thread 1
 ORA-00289: suggestion : /u02/PRODDB/arch/PRODDB_1_717173775_60.arc
 ORA-00280: change 7765466164257 for thread 1 is in sequence #60
&nbsp;
&nbsp;
 Specify log: {&lt;RET&gt;=suggested | filename | AUTO | CANCEL}
 CANCEL
 Media recovery cancelled.
 STBYHOST(PRODDB)SQL &gt;</pre></td></tr></table></div>

<p> Archive Sequence 60 is needed for recovery. Let us now assume that this archive log is not available on disk or on tape backup.</p>
<li>Use SCN in step 3 to take an incremental backup on disk on primary database</li>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p116694"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code" id="p1166code94"><pre class="language" style="font-family:monospace;">{PRIMARY} /u01/ora10g/backup $ export ORACLE_SID=PRODDB
{PRIMARY} /u01/ora10g/backup $ rman target /
.... 
RMAN&gt; BACKUP INCREMENTAL FROM SCN 7765466164256 DATABASE FORMAT '/u01/ora10g/backup/proddb_standby_%U' tag 'proddb_standby';
Starting backup at 19-MAY-10
using channel ORA_DISK_1
RMAN-06755: WARNING: datafile 5: incremental-start SCN is too recent; using checkpoint SCN 7765465268142 instead
RMAN-06755: WARNING: datafile 6: incremental-start SCN is too recent; using checkpoint SCN 7765465268142 instead
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00003 name=/restorevol/BACKUPREST/PRODDB/data/PRODDB_SYSAUX_01.dbf
input datafile fno=00005 name=/restorevol/BACKUPREST/PRODDB/data/PRODDB_TS_LMTDATA_01
skipping datafile 00005 because it has not changed
input datafile fno=00006 name=/restorevol/BACKUPREST/PRODDB/data/PRODDB_TS_LMTDATA_02.dbf
skipping datafile 00006 because it has not changed
input datafile fno=00001 name=/restorevol/BACKUPREST/PRODDB/data/PRODDB_SYSTEM_01.dbf
input datafile fno=00002 name=/restorevol/BACKUPREST/PRODDB/data/PRODDB_UNDOTBS_01.dbf
input datafile fno=00004 name=/restorevol/BACKUPREST/PRODDB/data/PRODDB_TOOLS_01.dbf
channel ORA_DISK_1: starting piece 1 at 19-MAY-10
channel ORA_DISK_1: finished piece 1 at 19-MAY-10
piece handle=/u01/ora10g/backup/proddb_standby_fjle2nl3_1_1 tag=proddb_standby comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:55
Finished backup at 19-MAY-10</pre></td></tr></table></div>

<li>Copy backupiece to standby database server and catalog in standby controlfile</li>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p116695"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code" id="p1166code95"><pre class="language" style="font-family:monospace;">{STBYHOST} /u01/ora10g/backup/PRODDB $ scp ora10r3@PRIMARY:/u01/ora10g/backup/proddb_standby_fjle2nl3_1_1 .                
Password: 
Password: 
proddb_standby_fjle2nl3_ 100% |********************************************************************************************|  5848 KB    00:00    
{STBYHOST} /misuatdata/PRODDB $ pwd
/misuatdata/PRODDB
{STBYHOST} /u01/PRODDB $ rman target / 
&nbsp;
Recovery Manager: Release 10.2.0.3.0 - Production on Wed May 19 13:04:30 2010
&nbsp;
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
&nbsp;
connected to target database: PRODDB (DBID=2326455671, not open)
&nbsp;
RMAN&gt; CATALOG START WITH '/u01/ora10g/backup/PRODDB/proddb_standby';           
&nbsp;
searching for all files that match the pattern /u01/ora10g/backup/PRODDB/proddb_standby
&nbsp;
List of Files Unknown to the Database
=====================================
File Name: /u01/ora10g/backup/PRODDB/proddb_standby_fjle2nl3_1_1
&nbsp;
Do you really want to catalog the above files (enter YES or NO)? YES
cataloging files...
cataloging done
&nbsp;
List of Cataloged Files
=======================
File Name: /u01/ora10g/backup/PRODDB/proddb_standby_fjle2nl3_1_1
&nbsp;
RMAN&gt; exit
&nbsp;
&nbsp;
Recovery Manager complete.</pre></td></tr></table></div>

<li> Recover standby from RMAN</li>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p116696"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code" id="p1166code96"><pre class="language" style="font-family:monospace;">RMAN&gt; RECOVER DATABASE NOREDO
2&gt; ;
&nbsp;
Starting recover at 19-MAY-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=148 devtype=DISK
datafile 5 not processed because file is read-only
datafile 6 not processed because file is read-only
channel ORA_DISK_1: starting incremental datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00001: /u02/PRODDB/oradata/data/PRODDB_SYSTEM_01.dbf
destination for restore of datafile 00002: /u02/PRODDB/oradata/data/PRODDB_UNDOTBS_01.dbf
destination for restore of datafile 00003: /u02/PRODDB/oradata/data/PRODDB_SYSAUX_01.dbf
destination for restore of datafile 00004: /u02/PRODDB/oradata/data/PRODDB_TOOLS_01.dbf
channel ORA_DISK_1: reading from backup piece /u01/ora10g/backup/PRODDB/proddb_standby_fjle2nl3_1_1
channel ORA_DISK_1: restored backup piece 1
piece handle=/u01/ora10g/backup/PRODDB/proddb_standby_fjle2nl3_1_1 tag=proddb_standby
channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
Finished recover at 19-MAY-10
&nbsp;
RMAN&gt;</pre></td></tr></table></div>

<li>Refresh controlfile of standby from production</li>
<p>On production</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p116697"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p1166code97"><pre class="language" style="font-family:monospace;">SQL&gt; alter database create standby controlfile as '/tmp/proddb_stby.ctl';
&nbsp;
Database altered.
&nbsp;
SQL&gt;</pre></td></tr></table></div>

<p>On standby, copy the controlfile from production</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p116698"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p1166code98"><pre class="language" style="font-family:monospace;">{STBYHOST} /u02/PRODDB/oradata/cntrl $ scp ora10r3@PRIMARY:/tmp/proddb_stby.ctl .
Password: 
proddb_stby.ctl        100% |********************************************************************************************| 14096 KB    00:01    
{STBYHOST} /u02/PRODDB/oradata/cntrl $</pre></td></tr></table></div>

<p>Change init.ora</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p116699"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1166code99"><pre class="language" style="font-family:monospace;">control_files = ('/u02/PRODDB/oradata/cntrl/proddb_stby.ctl')</pre></td></tr></table></div>

<li>Startup and see recovery point</li>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1166&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1166100"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p1166code100"><pre class="language" style="font-family:monospace;">STBYHOST(PRODDB)SQL &gt;recover standby database;
ORA-00279: change 7765466166167 generated at 05/19/2010 12:54:59 needed for
thread 1
ORA-00289: suggestion : /u02/PRODDB/arch/PRODDB_1_717173775_62.arc
ORA-00280: change 7765466166167 for thread 1 is in sequence #62
&nbsp;
&nbsp;
Specify log: {&lt;RET&gt;=suggested | filename | AUTO | CANCEL}</pre></td></tr></table></div>

<p>You can see that the recovery has skipped archive 60 and 61, which were part of the incremental backup.</p>
</ol>
</div>
</div>
<img src="http://www.oraclemasters.in/?ak_action=api_record_view&id=1166&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.oraclemasters.in/?feed=rss2&amp;p=1166</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Part 4 &#8211; Oracle 10gR2 RAC Solaris 10 &#8211; Installation and configuration of RAC database</title>
		<link>http://www.oraclemasters.in/?p=1111</link>
		<comments>http://www.oraclemasters.in/?p=1111#comments</comments>
		<pubDate>Sat, 08 May 2010 06:08:40 +0000</pubDate>
		<dc:creator>Ramesh Menon</dc:creator>
				<category><![CDATA[HA - RAC, Dataguard]]></category>

		<guid isPermaLink="false">http://www.oraclemasters.in/?p=1111</guid>
		<description><![CDATA[With CRS successfully installed and running, we can proceed with installation of Oracle RAC binaries and configure a RAC database. In this section we will see the screenshots for Oracle RAC database creation. Pre requisite check Install ASM Binary Configure ASM Diskgroups using dbca Install Oracle Home Binary Install and configure RAC database Perform Pre [...]]]></description>
			<content:encoded><![CDATA[<div class="article">
<p>
With CRS successfully installed and running, we can proceed with installation of Oracle RAC binaries and configure a RAC database. In this section we will see the screenshots for Oracle RAC database creation.
</p>
<p><span id="more-1111"></span></p>
<ul>
<li><a href="#prechecks">Pre requisite check</a></li>
<li><a href="#asmhome">Install ASM Binary </a></li>
<li><a href="#confasm">Configure ASM Diskgroups using dbca</a></li>
<li><a href="#oraclehome">Install Oracle Home Binary</a></li>
<li><a href="#dbinstall">Install and configure RAC database</a></li>
</ul>
</div>
<div class="article">
<a name="prechecks"></a></p>
<h2>Perform Pre requisite checks</h2>
<p>
At this stage, we can run the cluvfy utility (stage is pre database installation) as follows<br />
If you get the same errors as I get, you can ignore them as I have successfully installed and configured RAC DB. However, do not proceed on production servers in case of errors or missing patches.
</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.oraclemasters.in/wp-content/plugins/wp-codebox/wp-codebox.php?p=1111&amp;download=text">text</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1111102"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
</pre></td><td class="code" id="p1111code102"><pre class="language" style="font-family:monospace;">$ ./runcluvfy.sh stage -pre dbinst -r 10gR2 -osdba dba -n rac-10g-node-01,rac-10g-node-02 -verbose 
&nbsp;
&nbsp;
Performing pre-checks for database installation
&nbsp;
Checking node reachability...
&nbsp;
Check: Node reachability from node &quot;rac-10g-node-01&quot;
  Destination Node                      Reachable?
  ------------------------------------  ------------------------
  rac-10g-node-01                       yes
  rac-10g-node-02                       yes
Result: Node reachability check passed from node &quot;rac-10g-node-01&quot;.
&nbsp;
&nbsp;
Checking user equivalence...
&nbsp;
Check: User equivalence for user &quot;oracle&quot;
  Node Name                             Comment
  ------------------------------------  ------------------------
  rac-10g-node-02                       passed
  rac-10g-node-01                       passed
Result: User equivalence check passed for user &quot;oracle&quot;.
&nbsp;
Checking administrative privileges...
&nbsp;
Check: Existence of user &quot;oracle&quot;
  Node Name     User Exists               Comment
  ------------  ------------------------  ------------------------
  rac-10g-node-02  yes                       passed
  rac-10g-node-01  yes                       passed
Result: User existence check passed for &quot;oracle&quot;.
&nbsp;
Check: Existence of group &quot;dba&quot;
  Node Name     Status                    Group ID
  ------------  ------------------------  ------------------------
  rac-10g-node-02  exists                    100
  rac-10g-node-01  exists                    100
Result: Group existence check passed for &quot;dba&quot;.
&nbsp;
Check: Membership of user &quot;oracle&quot; in group &quot;dba&quot; [as Primary]
  Node Name         User Exists   Group Exists  User in Group  Primary       Comment
  ----------------  ------------  ------------  ------------  ------------  ------------
  rac-10g-node-02   yes           yes           yes           no            failed
  rac-10g-node-01   yes           yes           yes           yes           passed
Result: Membership check for user &quot;oracle&quot; in group &quot;dba&quot; [as Primary] failed.
&nbsp;
Administrative privileges check failed.
&nbsp;
Checking node connectivity...
&nbsp;
&nbsp;
Interface information for node &quot;rac-10g-node-02&quot;
  Interface Name                  IP Address                      Subnet
  ------------------------------  ------------------------------  ----------------
  e1000g0                         192.168.1.101                   192.168.1.0
  e1000g0                         192.168.1.103                   192.168.1.0
  e1000g1                         10.10.10.2                      10.0.0.0
&nbsp;
&nbsp;
Interface information for node &quot;rac-10g-node-01&quot;
  Interface Name                  IP Address                      Subnet
  ------------------------------  ------------------------------  ----------------
  e1000g0                         192.168.1.100                   192.168.1.0
  e1000g0                         192.168.1.102                   192.168.1.0
  e1000g1                         10.10.10.1                      10.0.0.0
&nbsp;
&nbsp;
Check: Node connectivity of subnet &quot;192.168.1.0&quot;
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  rac-10g-node-02:e1000g0         rac-10g-node-02:e1000g0         yes
  rac-10g-node-02:e1000g0         rac-10g-node-01:e1000g0         yes
  rac-10g-node-02:e1000g0         rac-10g-node-01:e1000g0         yes
  rac-10g-node-02:e1000g0         rac-10g-node-01:e1000g0         yes
  rac-10g-node-02:e1000g0         rac-10g-node-01:e1000g0         yes
  rac-10g-node-01:e1000g0         rac-10g-node-01:e1000g0         yes
Result: Node connectivity check passed for subnet &quot;192.168.1.0&quot; with node(s) rac-10g-node-02,rac-10g-node-01.
&nbsp;
Check: Node connectivity of subnet &quot;10.0.0.0&quot;
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  rac-10g-node-02:e1000g1         rac-10g-node-01:e1000g1         yes
Result: Node connectivity check passed for subnet &quot;10.0.0.0&quot; with node(s) rac-10g-node-02,rac-10g-node-01.
&nbsp;
Suitable interfaces for the private interconnect on subnet &quot;192.168.1.0&quot;:
rac-10g-node-02 e1000g0:192.168.1.101 e1000g0:192.168.1.103
rac-10g-node-01 e1000g0:192.168.1.100 e1000g0:192.168.1.102
&nbsp;
Suitable interfaces for the private interconnect on subnet &quot;10.0.0.0&quot;:
rac-10g-node-02 e1000g1:10.10.10.2
rac-10g-node-01 e1000g1:10.10.10.1
&nbsp;
ERROR:
Could not find a suitable set of interfaces for VIPs.
&nbsp;
Result: Node connectivity check failed.
&nbsp;
&nbsp;
Checking system requirements for 'database'...
&nbsp;
Check: Total memory
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  1.5GB (1572864KB)         512MB (524288KB)          passed
  rac-10g-node-01  1.5GB (1572864KB)         512MB (524288KB)          passed
Result: Total memory check passed.
&nbsp;
Check: Free disk space in &quot;/tmp&quot; dir
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  2.14GB (2242460KB)        400MB (409600KB)          passed
  rac-10g-node-01  1.88GB (1966732KB)        400MB (409600KB)          passed
Result: Free disk space check passed.
&nbsp;
Check: Swap space
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  2.5GB (2617048KB)         512MB (524288KB)          passed
  rac-10g-node-01  2.5GB (2617048KB)         512MB (524288KB)          passed
Result: Swap space check passed.
&nbsp;
Check: System architecture
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  64-bit                    64-bit                    passed
  rac-10g-node-01  64-bit                    64-bit                    passed
Result: System architecture check passed.
&nbsp;
Check: Operating system version
  Node Name     Available                 Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  SunOS 5.10                SunOS 5.10                passed
  rac-10g-node-01  SunOS 5.10                SunOS 5.10                passed
Result: Operating system version check passed.
&nbsp;
Check: Operating system patch for &quot;118345-03&quot;
  Node Name     Applied                   Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  unknown                   118345-03                 failed
  rac-10g-node-01  unknown                   118345-03                 failed
Result: Operating system patch check failed for &quot;118345-03&quot;.
&nbsp;
Check: Operating system patch for &quot;119961-01&quot;
  Node Name     Applied                   Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  119961-05                 119961-01                 passed
  rac-10g-node-01  119961-05                 119961-01                 passed
Result: Operating system patch check passed for &quot;119961-01&quot;.
&nbsp;
Check: Operating system patch for &quot;117837-05&quot;
  Node Name     Applied                   Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  unknown                   117837-05                 failed
  rac-10g-node-01  unknown                   117837-05                 failed
Result: Operating system patch check failed for &quot;117837-05&quot;.
&nbsp;
Check: Operating system patch for &quot;117846-08&quot;
  Node Name     Applied                   Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  unknown                   117846-08                 failed
  rac-10g-node-01  unknown                   117846-08                 failed
Result: Operating system patch check failed for &quot;117846-08&quot;.
&nbsp;
Check: Operating system patch for &quot;118682-01&quot;
  Node Name     Applied                   Required                  Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  unknown                   118682-01                 failed
  rac-10g-node-01  unknown                   118682-01                 failed
Result: Operating system patch check failed for &quot;118682-01&quot;.
&nbsp;
Check: Group existence for &quot;dba&quot;
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  rac-10g-node-02  exists                    passed
  rac-10g-node-01  exists                    passed
Result: Group existence check passed for &quot;dba&quot;.
&nbsp;
Check: Group existence for &quot;oinstall&quot;
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  rac-10g-node-02  exists                    passed
  rac-10g-node-01  exists                    passed
Result: Group existence check passed for &quot;oinstall&quot;.
&nbsp;
Check: User existence for &quot;oracle&quot;
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  rac-10g-node-02  exists                    passed
  rac-10g-node-01  exists                    passed
Result: User existence check passed for &quot;oracle&quot;.
&nbsp;
Check: User existence for &quot;nobody&quot;
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  rac-10g-node-02  exists                    passed
  rac-10g-node-01  exists                    passed
Result: User existence check passed for &quot;nobody&quot;.
&nbsp;
System requirement failed for 'database'
&nbsp;
Checking CRS integrity...
&nbsp;
Checking daemon liveness...
&nbsp;
Check: Liveness for &quot;CRS daemon&quot;
  Node Name                             Running
  ------------------------------------  ------------------------
  rac-10g-node-02                       yes
  rac-10g-node-01                       yes
Result: Liveness check passed for &quot;CRS daemon&quot;.
&nbsp;
Checking daemon liveness...
&nbsp;
Check: Liveness for &quot;CSS daemon&quot;
  Node Name                             Running
  ------------------------------------  ------------------------
  rac-10g-node-02                       yes
  rac-10g-node-01                       yes
Result: Liveness check passed for &quot;CSS daemon&quot;.
&nbsp;
Checking daemon liveness...
&nbsp;
Check: Liveness for &quot;EVM daemon&quot;
  Node Name                             Running
  ------------------------------------  ------------------------
  rac-10g-node-02                       yes
  rac-10g-node-01                       yes
Result: Liveness check passed for &quot;EVM daemon&quot;.
&nbsp;
Liveness of all the daemons
  Node Name     CRS daemon                CSS daemon                EVM daemon
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  yes                       yes                       yes
  rac-10g-node-01  yes                       yes                       yes
&nbsp;
Checking CRS health...
&nbsp;
Check: Health of CRS
  Node Name                             CRS OK?
  ------------------------------------  ------------------------
  rac-10g-node-02                       yes
  rac-10g-node-01                       yes
Result: CRS health check passed.
&nbsp;
CRS integrity check passed.
&nbsp;
Checking node application existence...
&nbsp;
&nbsp;
Checking existence of VIP node application
  Node Name     Required                  Status                    Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  yes                       exists                    passed
  rac-10g-node-01  yes                       exists                    passed
Result: Check passed.
&nbsp;
Checking existence of ONS node application
  Node Name     Required                  Status                    Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  no                        exists                    passed
  rac-10g-node-01  no                        exists                    passed
Result: Check passed.
&nbsp;
Checking existence of GSD node application
  Node Name     Required                  Status                    Comment
  ------------  ------------------------  ------------------------  ----------
  rac-10g-node-02  no                        exists                    passed
  rac-10g-node-01  no                        exists                    passed
Result: Check passed.
&nbsp;
&nbsp;
Pre-check for database installation was unsuccessful on all the nodes.
$</pre></td></tr></table></div>

</div>
<div class="article">
<a name="asmhome"></a></p>
<h2> Install Oracle ASM Binary </h2>
<p>Ideally, Oracle ASM and Oracle homes should be separate, to avoid conflicts when applying patches. In this section we see how to install Oracle ASM binary separately.</p>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm01.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm01.png" alt="" title="Start runinstaller" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Start runinstaller</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm02.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm02.png" alt="" title="Runinstaller" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Runinstaller</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm03.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm03.png" alt="" title="Installation Type" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Installation Type</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm04.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm04.png" alt="" title="ASM Home" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">ASM Home</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm05.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm05.png" alt="" title="Nodes Selection" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Nodes Selection</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm06.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm06.png" alt="" title="Prerequisite Checks" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Prerequisite Checks</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm07.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm07.png" alt="" title="Install Software Only" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Install Software Only</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm08.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm08.png" alt="" title="Summary" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Summary</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm09.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm09.png" alt="" title="Progress" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Progress</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm10.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm10.png" alt="" title="Run script as root" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Run script as root</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm11.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm11.png" alt="" title="Completed" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Completed</p></div></div>
</div>
<div class="article">
<a name="confasm"></p>
<h2> Configure ASM </h2>
<p>This section shows how to create the ASM instance and diskgroups to be used by the database using dbca. You could also create the group using the CREATE DISKGROUP command</p>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf01.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf01.png" alt="" title="Start runinstaller" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Start dbca</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf02.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asm02conf.png" alt="" title="Runinstaller" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">DBCA</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf03.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf03.png" alt="" title="Installation Type" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Configure ASM</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf04.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf04.png" alt="" title="ASM Home" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Select Nodes</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf05.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf05.png" alt="" title="Nodes Selection" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">ASM Parameter file</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf06.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf06.png" alt="" title="Prerequisite Checks" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Alert Box</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf07.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf07.png" alt="" title="Install Software Only" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Listener Information</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf08.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf08.png" alt="" title="Summary" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Alert Box</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf09.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf09.png" alt="" title="Progress" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Create Data Diskgroup</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf10.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf10.png" alt="" title="Run script as root" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Diskgroup creation</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf11.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf11.png" alt="" title="Completed" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Post diskgroup creation</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf12.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf12.png" alt="" title="Completed" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Create FRA Diskgroup</p></div></div>
<div><div id="attachment_991" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf13.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/asmconf13.png" alt="" title="Completed" width="450" height="338" class="alignleft size-full wp-image-1113" /></a><p class="wp-caption-text">Post FRA Diskgroup creation</p></div></div>
</div>
<div class="article">
<a name="oraclehome"></p>
<h2>Install Oracle Home</h2>
<p>Follow the same steps as installation of Oracle ASM home, but choose /oracle10g as the base directory for Oracle home</p>
</div>
<div class="article">
<a name="dbinstall"></a></p>
<h2> Configure RAC Database </h2>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf01.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf01.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Start DBCA</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf02.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf02.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Create Database</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf03.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf03.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Select Nodes</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf04.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf04.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Database Type</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf05.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf05.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Database Name</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf06.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf06.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Enterprise Manager Configuration</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf07.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf07.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Passwords</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf08.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf08.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Use ASM for Database</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf09.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf09.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Choose Diskgroup for datafiles</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf10.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf10.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Common Location</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf11.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf11.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Choose FRA</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf12.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf12.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Install Sample Schemas</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf13.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf13.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Service</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf14.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf14.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Parameters</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf15.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf15.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">File Locations</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf16.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf16.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Create Database</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf17.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf17.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Summary</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf18.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf18.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Progress</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf22.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf22.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Completed</p></div></div>
<div><div id="attachment_1142" class="wp-caption alignleft" style="width: 460px"><a href="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf23.png"><img src="http://www.oraclemasters.in/wp-content/uploads/2010/05/dbconf23.png" alt="" title="Start DBCA" width="450" height="338" class="size-full wp-image-1142" /></a><p class="wp-caption-text">Starting Database</p></div></div>
</div>
</div>
</div>
<img src="http://www.oraclemasters.in/?ak_action=api_record_view&id=1111&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.oraclemasters.in/?feed=rss2&amp;p=1111</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<series:name><![CDATA[10gR2 RAC on x86 64bit Solaris 10 x86 - 64]]></series:name>
	</item>
	</channel>
</rss>
