<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>PeopleSoft</title>
	<atom:link href="http://repettas.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://repettas.wordpress.com</link>
	<description>PeopleSoft and Oracle weblog</description>
	<lastBuildDate>Thu, 05 Nov 2009 22:56:01 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='repettas.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/9585ea693a138619329a4fcdd2caeb8b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>PeopleSoft</title>
		<link>http://repettas.wordpress.com</link>
	</image>
			<item>
		<title>Oracle Enqueues</title>
		<link>http://repettas.wordpress.com/2009/11/05/oracle-enqueues/</link>
		<comments>http://repettas.wordpress.com/2009/11/05/oracle-enqueues/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 22:05:09 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[DBA]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/?p=717</guid>
		<description><![CDATA[A Latch as used in Oracle is a low-level mechanism for serializing concurrent access to memory structures such as cache buffer headers. A latch is a simple memory structure that averages 100 to 200 bytes in size (actual size is dependent upong the version of Oracle, Operating System and hardware platform). Latches are contained in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=717&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A Latch as used in Oracle is a low-level mechanism for serializing concurrent access to memory structures such as cache buffer headers. A latch is a simple memory structure that averages 100 to 200 bytes in size (actual size is dependent upong the version of Oracle, Operating System and hardware platform). Latches are contained in a state object structure and reside in either fixed SGA (parent latches) or the shared pool. They are set via the hardware-atomic compare-and-swap (CAS) instructions &#8211; LOCK CMPXCHG for Intel. Latches can be shared and are used for some AQ operations. </p>
<p>Latch Contention occurs when a process attempts to get a latch but fails because another process already has control of it. If the attempt (get) was issue with in no-wait mode, then return to the calling process with a failure result. If the get was issued in a willing-to-wait mode then continue attempting to obtain the latch until x number of tries is reached.</p>
<p>The term to describe a get that is executed in a willing-to-wait mode that tries repeatedly without acquiring the latch is spinning &#8211; the process issues the get, if the latch is already held then the process will sleep, wake up after x amount of time expires and attempts to acquire the latch again. </p>
<p>The process attempting to acquire a latch may be waken by the process that releases the latch but this method isn&#8217;t used for all latches. </p>
<p>The following views are used to troubleshoot contention issues:</p>
<ul>
<li>v$session_event</li>
<li>v$session_wait</li>
<li>v$latchholder</li>
</ul>
<p>Troubleshooting latch contention consists of first identifying the session(s) that are currently experiencing problems and then identify the latch the session is waiting for and determine if the wait time is significant enough to warrant attention. Identifying the child latch that is involved will help determine if the contention is concentrated on a particular child latch or are many child latches involved.</p>
<p>As of Oracle 10.2 KGX Mutexes replace latches (Kernel Generic MuteX &#8211; KGX). Mutexes resemble latches (a physical allocation of memory) only they are lighter weight and consume less memory space. They can also be embedded inside other structures, they have flexible spin/yield/wait strategies defined by the client process and they do not factor into the accounting for GETS,SPINS or YIELDS, only WAITS.</p>
<p>Keep in mind that KGX mutexes are not OS mutexes.</p>
<p>In 11g+ mutexes are used instead of library cache latches. The default for pinning library cache cursors and parent examination for 10.2.0.2+ is mutexes &#8211; _kks_use_mutex_pin=true.</p>
<p>Some known mutex types in 11g:</p>
<ul>
<li>Cursor Parent</li>
<li>Cursor Pin</li>
<li>Cursor Stat</li>
<li>Library Cache</li>
<li>hash table</li>
</ul>
<p>Mutex Troubleshooting &#8211; involves querying the views: v$session_wait, v$mutex_sleep and v$mutex_sleep_history among others. The mutex sleeps are well instrumented in the wait interface and the P1, P2, P3 values contain the hash value of the library cache objects experiencing contention, the session holding the mutex, etc. The views v$event_name and v$session_wait &#8220;text&#8221; columns document the meaning of P1, P2 and P3. The v$mutex_sleep view shows the wait time and the number of sleeps for each combination of mutex type and location while the v$mutex_sleep_history view shows the last individual occurences of mutex sleeps based on a circular buffer and this view contains the highest level of detail.</p>
<p>Enqueues &#8211; Terminology and Views</p>
<p>Locks are called enqueues because the locking mechanism implements an ordered queuing structure for lock waiters. Latches and mutexes do not have sophisticated queuing mechanisms.</p>
<p>Enqueue Resources &#8211; v$resource(X$KSQRS)</p>
<p>Enqueue Locks &#8211; v$lock(X$KSQEQ)</p>
<p>Enqueue resource types &#8211; v$lock_type has two meanings &#8211; ID1 and ID2 </p>
<p>Slots in a hash table identify a resource. Resources are not locks, they are placeholders that reference the object that can be locked. The unique identifier (primarykey) for a resource will consists of the following:</p>
<ul>
<li>Resource type (TM, TX, MR, &#8230;)</li>
<li>Resource identifier 1 (ID1)</li>
<li>Resource identified 2 (ID2)</li>
<li>Example:</li>
<li> TM-XXXXXXXX-XXXXXXXX </li>
</ul>
<p>The resource identifiers are used to break down a resource class into individual objects. An example of this would be two tables that both have a TM resource allocated to them in memory. The ID1 specifies the object_id of the table (v$lock_type which contains the meaning of ID1/2 for each resource type).</p>
<p>Locks &#8211; provide the link between the resource locked and the holder of that resource. If there are many lock holders on a single resource (assuming compatible mode) then it follows that there will be multiple lock structures pointing to that one resource.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/717/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/717/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/717/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/717/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/717/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/717/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/717/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/717/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/717/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/717/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=717&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/11/05/oracle-enqueues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4aa2e5cad2122b5718a955342b3b99d9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">stan</media:title>
		</media:content>
	</item>
		<item>
		<title>Explain Plan Evolution from 9.2 to 11g</title>
		<link>http://repettas.wordpress.com/2009/10/28/explain-plan-evolution-from-9-2-to-11g/</link>
		<comments>http://repettas.wordpress.com/2009/10/28/explain-plan-evolution-from-9-2-to-11g/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 23:12:56 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/?p=713</guid>
		<description><![CDATA[Starting with Oracle 9.2 the typical method for generating explain plans were:
1. explain plan for &#60;statement&#62;
2. select * from table(dbms_xplan.display)

Oracle 10g:

1. autotrace uses dbms_xplan
2. set autotrace on
3. select * from table(dbms_xplan.display_cursor())

Oracle 11g:

Introduced DBMS_SQLTUNE.REPORT_SQL_MONITOR

Inherent issues when using explain plan for &#8211; all bind variables are treated as VARCHAR2 and you may not see the actual (real) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=713&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Starting with Oracle 9.2 the typical method for generating explain plans were:</p>
<address>1. explain plan for &lt;statement&gt;</address>
<address>2. select * from table(dbms_xplan.display)</address>
<address></address>
<address><span style="font-style:normal;">Oracle 10g:</span></address>
<address></address>
<address><span style="font-style:normal;">1. autotrace uses dbms_xplan</span></address>
<address><span style="font-style:normal;">2. set autotrace on</span></address>
<address><span style="font-style:normal;">3. select * from table(dbms_xplan.display_cursor())</span></address>
<address></address>
<address><span style="font-style:normal;">Oracle 11g:</span></address>
<address></address>
<address><span style="font-style:normal;">Introduced DBMS_SQLTUNE.REPORT_SQL_MONITOR</span></address>
<address></address>
<address><span style="font-style:normal;">Inherent issues when using explain plan for &#8211; all bind variables are treated as VARCHAR2 and you may not see the actual (real) execution plan Oracle used.</span></address>
<address></address>
<address><span style="font-style:normal;">An alternative method is to query the view V$SQL_PLAN_STATISTICS or use DBMS_XPLAN.DISPLAY_CURSOR.</span></address>
<address></address>
<address><span style="font-style:normal;">Common Terminology Definitions</span></address>
<address></address>
<address><span style="font-style:normal;">Access Path &#8211; physical data storage access to read data from tables, indexes, external tables and database links. Only access paths can access physical data and return the row sources.</span></address>
<address></address>
<address><span style="font-style:normal;">Row Source &#8211; virtual stream of data via access paths or from child row sources</span></address>
<address><span style="font-style:normal;">Filter Predicate &#8211; row source property &#8211; rows can be discarded based on defined conditions. Row sources can be cascading, non-cascading or semi-cascading.</span></address>
<address><span style="font-style:normal;"><br />
</span></address>
<address><span style="font-style:normal;">Join &#8211; rows are filtered and merged based on rows that match from child row sources. Matching is determined by join predicates. Join operators can only operate on two inputs while other operations can combine the result of more than two row sources.</span></address>
<address></address>
<address><span style="font-style:normal;">Oracle Kernel functions are responsible for execution plan steps.</span></address>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/713/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/713/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/713/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=713&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/10/28/explain-plan-evolution-from-9-2-to-11g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4aa2e5cad2122b5718a955342b3b99d9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">stan</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle Cloud Computing</title>
		<link>http://repettas.wordpress.com/2009/08/12/oracle-cloud-computing/</link>
		<comments>http://repettas.wordpress.com/2009/08/12/oracle-cloud-computing/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 15:53:53 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PeopleSoft]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/?p=709</guid>
		<description><![CDATA[Discovering as much as I can about Oracle Cloud Computing. I haven&#8217;t been able to determine if it is possible to run PeopleSoft using this architecture but from just reading through the Oracle documentation i see that you can run an Oracle Database and a Web Server (Web Logic) so that leaves the Application Server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=709&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Discovering as much as I can about Oracle Cloud Computing. I haven&#8217;t been able to determine if it is possible to run PeopleSoft using this architecture but from just reading through the Oracle documentation i see that you can run an Oracle Database and a Web Server (Web Logic) so that leaves the Application Server and Process Scheduler.</p>
<p>It would be great if you could set up your initial PeopleSoft delivered environments in this type of infrastructure to jump start projects while you wait for hardware to be delivered or you just don&#8217;t want to own hardware anymore.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/709/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/709/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/709/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/709/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/709/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/709/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/709/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/709/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/709/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/709/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=709&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/08/12/oracle-cloud-computing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4aa2e5cad2122b5718a955342b3b99d9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">stan</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Blat on Windows</title>
		<link>http://repettas.wordpress.com/2009/06/23/install-blat-on-windows/</link>
		<comments>http://repettas.wordpress.com/2009/06/23/install-blat-on-windows/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 13:43:55 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Windows DBA Oracle PeopleSoft]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/2009/06/23/install-blat-on-windows/</guid>
		<description><![CDATA[blat -install localhost
blat -install &#60;smtp host&#62;  &#60;email address&#62;
blat -install &#60;smtp host&#62;  &#60;email address&#62; 3 25
number of times to send message (3)
TCP/IP port to use (26)

blat -install localhost &#60;email adress&#62;  3 25 FromStan1
store the settings in a Profile named: FromStan1
blat -install &#60;smtp server&#62; &#60;email address&#62; &#8211; - FromStan2
store the settings in a profile named: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=704&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="clear:both;">blat -install localhost<br />
blat -install &lt;smtp host&gt;  &lt;email address&gt;<br />
blat -install &lt;smtp host&gt;  &lt;email address&gt; 3 25</p>
<p style="clear:both;">number of times to send message (3)<br />
TCP/IP port to use (26)
</p>
<p style="clear:both;">blat -install localhost &lt;email adress&gt;  3 25 FromStan1</p>
<p style="clear:both;">store the settings in a Profile named: FromStan1</p>
<p style="clear:both;">blat -install &lt;smtp server&gt; &lt;email address&gt; &#8211; - FromStan2</p>
<p style="clear:both;">store the settings in a profile named: FromStan2, default number of tries and port</p>
<p style="clear:both;">blat -to -from -subject -body -server -q</p>
<p style="clear:both;">blat -profile (executed on ERAC2 lists)</p>
<p style="clear:both;">SMTP: 10.160.225.30 &#8220;email address&#8221; 3 25</p>
<p><br class="final-break" style="clear:both;" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/704/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/704/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=704&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/06/23/install-blat-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4aa2e5cad2122b5718a955342b3b99d9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">stan</media:title>
		</media:content>
	</item>
		<item>
		<title>Updated HP-UX 11i v3 Kernel List</title>
		<link>http://repettas.wordpress.com/2009/06/15/updated-hp-ux-11i-v3-kernel-list/</link>
		<comments>http://repettas.wordpress.com/2009/06/15/updated-hp-ux-11i-v3-kernel-list/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 17:40:39 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PeopleSoft]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Oracle11g DBA PeopleSoft]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/2009/06/15/updated-hp-ux-11i-v3-kernel-list/</guid>
		<description><![CDATA[The following is a list of non-default kernel parameters for a Production PS HCM 9.0, PeopleTools 8.49 environment running on a rx7640 in a VPAR with 15.5 GB of memory. The list of kernel parameters is for the VPAR containing the Production Database Instance:
Tunable                   Value  Expression [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=693&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="clear:both;">The following is a list of non-default kernel parameters for a Production PS HCM 9.0, PeopleTools 8.49 environment running on a rx7640 in a VPAR with 15.5 GB of memory. The list of kernel parameters is for the VPAR containing the Production Database Instance:</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">Tunable                   Value  Expression    Changes</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">dnlc_hash_locks            4096  4096</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">filecache_max         138412032  132MB         Imm (auto disabled)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">filecache_min         138412032  132MB         Imm (auto disabled)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">ftable_hash_locks          4096  4096</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">lcpu_attr                     0  0             Imm (auto disabled)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">max_thread_proc            1200  1200          Immed</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">maxdsiz_64bit        2147483648  2147483648    Immed</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">maxssiz               134217728  134217728     Immed</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">maxssiz_64bit        1073741824  1073741824    Immed</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">maxuprc                    3780  3780          Immed</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">msgmni                     4200  nproc         Immed</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">msgtql                     4200  nproc         Immed</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">ncsize                    36672  36672</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">nflocks                    2048  2048          Imm (auto disabled)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">ninode                    35648  8*nproc+2048</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">npty                        256  256</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">nstrpty                     256  256</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">nstrtel                     256  256</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">semmni                     4200  nproc</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">semmns                     8400  semmni*2</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">semmnu                     4196  nproc-4</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">shmmax               7516192768  7516192768    Immed</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">shmmni                      512  512           Immed</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">swchunk                    4096  4096</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">vnode_cd_hash_locks        4096  4096</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">vnode_hash_locks           4096  4096</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">vps_ceiling                  64  64            Immed</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">vx_ninode                100000  100000        Immed</div>
<pre>Tunable                   Value  Expression    Changes
dnlc_hash_locks            4096  4096
filecache_max         138412032  132MB         Imm (auto disabled)
filecache_min         138412032  132MB         Imm (auto disabled)
ftable_hash_locks          4096  4096
lcpu_attr                     0  0             Imm (auto disabled)
max_thread_proc            1200  1200          Immed
maxdsiz_64bit        2147483648  2147483648    Immed
maxssiz               134217728  134217728     Immed
maxssiz_64bit        1073741824  1073741824    Immed
maxuprc                    3780  3780          Immed
msgmni                     4200  nproc         Immed
msgtql                     4200  nproc         Immed
ncsize                    36672  36672
nflocks                    2048  2048          Imm (auto disabled)
ninode                    35648  8*nproc+2048
npty                        256  256
nstrpty                     256  256
nstrtel                     256  256
semmni                     4200  nproc
semmns                     8400  semmni*2
semmnu                     4196  nproc-4
shmmax               7516192768  7516192768    Immed
shmmni                      512  512           Immed
swchunk                    4096  4096
vnode_cd_hash_locks        4096  4096
vnode_hash_locks           4096  4096
vps_ceiling                  64  64            Immed
vx_ninode                100000  100000        Immed</pre>
<div><span style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:small;"><span style="line-height:18px;white-space:pre;"><br />
</span></span></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/693/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/693/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/693/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/693/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/693/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/693/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=693&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/06/15/updated-hp-ux-11i-v3-kernel-list/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4aa2e5cad2122b5718a955342b3b99d9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">stan</media:title>
		</media:content>
	</item>
		<item>
		<title>RMAN Backup RAC Example</title>
		<link>http://repettas.wordpress.com/2009/05/15/rman-backup-rac-example/</link>
		<comments>http://repettas.wordpress.com/2009/05/15/rman-backup-rac-example/#comments</comments>
		<pubDate>Fri, 15 May 2009 16:23:14 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle DBA]]></category>
		<category><![CDATA[Oracle11g DBA PeopleSoft]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/2009/05/15/rman-backup-rac-example/</guid>
		<description><![CDATA[
RAC Backup and Recovery using RMAN
Objectives:===========
1. Verify the database mode and archive destination.2. Verify connectivity using sqlnet for target and catalog.3. Determine your backup device4. Understand how to create an RMAN persistent configuration for a RAC env.5. Create backups to disk using6. Backupset Maintenance using the configured retention policy7. Restore and Recover a. complete b. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=691&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="clear:both;">
<p>RAC Backup and Recovery using RMAN</p>
<p style="clear:both;">Objectives:<br />===========</p>
<p style="clear:both;">1. Verify the database mode and archive destination.<br />2. Verify connectivity using sqlnet for target and catalog.<br />3. Determine your backup device<br />4. Understand how to create an RMAN persistent configuration for a RAC env.<br />5. Create backups to disk using<br />6. Backupset Maintenance using the configured retention policy<br />7. Restore and Recover<br /> a. complete<br /> b. incomplete<br />8. Review and understand the impact of resetlogs on the catalog.<br />9. RMAN Sample Commands</p>
<p style="clear:both;">
<p>Configuration:<br />==============</p>
<p style="clear:both;">This discussion is for a 2-node Oracle RAC Cluster.<br />The logs are being archived to their respective node.<br />We are allocating channels to each node to enable the autolocate feature<br />of RMAN in a RAC env.</p>
<p style="clear:both;">1. Verify the databases are in archivelog mode and archive destination.</p>
<p style="clear:both;"> a. NODE 1: thread 1</p>
<p style="clear:both;">SQL&gt; archive log list;<br />Database log mode Archive Mode<br />Automatic archival Enabled<br />Archive destination /opt/app/oracle/product/10.2.0/dbs/arch<br />Oldest online log sequence 20<br />Next log sequence to archive 21<br />Current log sequence 21</p>
<p style="clear:both;"> b. NODE 2: thread 2</p>
<p style="clear:both;">SQL&gt; archive log list<br />Database log mode Archive Mode<br />Automatic archival Enabled<br />Archive destination /opt/app/oracle/product/10.2.0/dbs/arch<br />Oldest online log sequence 8<br />Next log sequence to archive 9<br />Current log sequence 9</p>
<p style="clear:both;">2. Verify connectivity to the target nodes and catalog if used.</p>
<p style="clear:both;"> a. % setenv TNS_ADMIN $ORACLE_HOME/network/admin<br /> b. % sqlplus /nolog<br /> c. SQL&gt; connect sys/pwd@node1 as sysdba<br /> d. SQL&gt; connect sys/pwd@node2 as sysdba<br /> e. SQL&gt; connect rman/rman@rcat</p>
<p style="clear:both;">3. Set your testing areas.</p>
<p style="clear:both;">Testing HOME for logs: /opt/app/oracle/admin/usupport/rman</p>
<p style="clear:both;">Backups HOME Location: /opt/app/oracle/admin/backup/rman/V1020</p>
<p style="clear:both;">4. Connect using RMAN to verify and set the controlfile persistent configuration.<br /> The controlfiles are shared between the instances so configuring the control-file on node 1 also sets it for all nodes in the RAC cluster.</p>
<p style="clear:both;"> a. Alway note the target DBID connected to target database: V1020 (DBID=228033884)</p>
<p style="clear:both;"> b. Default Configuration</p>
<p style="clear:both;">RMAN configuration parameters are:<br />CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default<br />CONFIGURE BACKUP OPTIMIZATION OFF; # default<br />CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default<br />CONFIGURE CONTROLFILE AUTOBACKUP ON;<br />CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO &#8216;%F&#8217;; # default<br />CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default<br />CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default<br />CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default<br />CONFIGURE MAXSETSIZE TO UNLIMITED; # default<br />CONFIGURE SNAPSHOT CONTROLFILE NAME TO &#8216;/opt/app/oracle/product/10.2.0/dbs/snapcf_V1020.f&#8217;; # default</p>
<p style="clear:both;"> c. Make changes to the default that fit your business requirements.<br /> Note the retention policy can be set &#8220;TO REDUNDANCY x&#8221; or it can<br /> be set &#8220;TO RECOVERY WINDOW OF x DAYS&#8221;, this is new in Oracle9i.</p>
<p style="clear:both;"> In this example, using PARALLELISM 2 as 2 nodes are used.<br /> The PARALLELISM will than automaticly start 2 channels and will<br /> use the related CONFIGURE CHANNEL for additional clauses.</p>
<p style="clear:both;">CONFIGURE RETENTION POLICY TO REDUNDANCY 3;<br />CONFIGURE BACKUP OPTIMIZATION OFF; <br />CONFIGURE DEFAULT DEVICE TYPE TO DISK; <br />CONFIGURE CONTROLFILE AUTOBACKUP ON; <br />CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO &#8216;/opt/app/oracle/admin/backup/rman/V1020/%F&#8217;; <br />CONFIGURE DEVICE TYPE DISK PARALLELISM 2; <br />CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; <br />CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; <br />CONFIGURE MAXSETSIZE TO UNLIMITED; <br />CONFIGURE SNAPSHOT CONTROLFILE NAME TO &#8216;/opt/app/oracle/admin/backup/rman/V1020/snapcf_V102009xx.f&#8217;;<br />CONFIGURE CHANNEL 1 DEVICE TYPE DISK connect &#8216;SYS/rac@node1&#8242;;<br />CONFIGURE CHANNEL 2 DEVICE TYPE DISK connect &#8216;SYS/rac@node2&#8242;;</p>
<p style="clear:both;"> d. Review/Verify your new configuration.</p>
<p style="clear:both;">RMAN configuration parameters are:<br />CONFIGURE RETENTION POLICY TO REDUNDANCY 3;<br />CONFIGURE BACKUP OPTIMIZATION OFF;<br />CONFIGURE DEFAULT DEVICE TYPE TO DISK;<br />CONFIGURE CONTROLFILE AUTOBACKUP ON;<br />CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO &#8216;/opt/app/oracle/admin/backup/rman/V1020/%F&#8217;;<br />CONFIGURE DEVICE TYPE DISK PARALLELISM 2;<br />CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;<br />CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;<br />CONFIGURE CHANNEL 1 DEVICE TYPE DISK CONNECT &#8216;SYS/rac@node1&#8242;;<br />CONFIGURE CHANNEL 2 DEVICE TYPE DISK CONNECT &#8216;SYS/rac@node2&#8242;;<br />CONFIGURE MAXSETSIZE TO UNLIMITED;<br />CONFIGURE SNAPSHOT CONTROLFILE NAME TO &#8216;/opt/app/oracle/admin/backup/rman/V1020/snapcf_V92321.f&#8217;;</p>
<p style="clear:both;">5. Make a backup using the new persistent configuration parameters.</p>
<p style="clear:both;"> a. Backup database with differential incremental 0 and then archived logs<br /> using the delete input option.</p>
<p style="clear:both;"> backup incremental level 0<br /> format &#8216;/opt/app/oracle/admin/backup/rman/V1020/%d_LVL0_%T_%u_s%s_p%p&#8217;<br /> database;<br /> backup archivelog all format &#8216;/opt/app/oracle/admin/backup/rman/V1020/%d_AL_%T_%u_s%s_p%p&#8217;<br /> delete input;</p>
<p style="clear:both;"> b. Backup again using differential inremental level 1</p>
<p style="clear:both;"> backup incremental level 1<br /> format &#8216;/opt/app/oracle/admin/backup/rman/V1020/%d_LVL1_%T_%u_s%s_p%p&#8217;<br /> database;<br /> backup archivelog all format &#8216;/opt/app/oracle/admin/backup/rman/V1020/%d_AL_%T_%u_s%s_p%p&#8217;<br /> delete input;</p>
<p style="clear:both;"> c. To simplify this in Oracle9i we can also use PLUS ARCHIVELOG<br /> Note: This uses a different alorithm then backup database and<br /> backup archivelog in separate commands.</p>
<p style="clear:both;"> BACKUP incremental level 0<br /> format &#8216;/opt/app/oracle/admin/backup/rman/V1020/%d_LVL0_%T_%u_s%s_p%p&#8217;<br /> database PLUS ARCHIVELOG format &#8216;/opt/app/oracle/admin/backup/rman/V1020/%d_AL_%T_%u_s%s_p%p&#8217;<br /> delete input;</p>
<p style="clear:both;"> Algorithm for PLUS ARCHIVELOG:</p>
<p style="clear:both;"> 1. Archive log current<br /> 2. Backup archived logs<br /> 3. Backup database level 0<br /> 4. Archive log current<br /> 5. Backup any remaining archived log created during backup</p>
<p style="clear:both;">6. Backupset Maintenance using the configured retention policy</p>
<p style="clear:both;"> RMAN&gt; list backup summary;<br /> list backup by datafile;<br /> list backup of database;<br /> list backup of archivelog all;<br /> list backup of controlfile;</p>
<p style="clear:both;"> Note: these above can be enhanced with the &#8220;until time&#8221; clause as well as<br /> the archivelog backups using &#8220;not backed up x times&#8221; to cut down on<br /> many copies of a log in several backupsets. Then continuing with SMR<br /> Server Managed Recovery use the change archivelog from&#8230;until&#8230;delete<br /> to remove old logs no longer needed on disk.</p>
<p style="clear:both;"> RMAN&gt; report obsolete;</p>
<p style="clear:both;"> RMAN&gt; delete obsolete;<br /> or<br /> delete noprompt obsolete;</p>
<p style="clear:both;"> RMAN&gt; report schema;</p>
<p style="clear:both;">7. Restore and Recover</p>
<p style="clear:both;">Complete Recovery</p>
<p style="clear:both;"> a. With the database mounted on the node1 and nomount on node2 connect<br /> to the target and catalog using RMAN.</p>
<p style="clear:both;"> rman target / catalog rman/rman@rcat</p>
<p style="clear:both;"> This script will restore and recover the database completely and open.<br /> All previous backup will still be available for use because there was<br /> not RESETLOGS command given.</p>
<p style="clear:both;"> run {<br /> restore database;<br /> recover database;<br /> alter database open;<br /> }</p>
<p style="clear:both;">Incomplete Recovery</p>
<p style="clear:both;">Note: If you are using instance registration the database must be mounted to<br /> register with the listener. This means you must use the current control<br /> file for restore and recovery or setup a dedicated listener if not<br /> already done. RMAN requires a dedicated server connection and does not<br /> work with using instance registration before mounting the controlfile.<br /> Using the autobackup controlfile feature requires the DBID of the<br /> TARGET database. It must be set when the database is not mounted and<br /> only the controlfile and spfile (in 9.2&gt;) can be restored this way.</p>
<p style="clear:both;"> a. shutdown node1 and node2</p>
<p style="clear:both;"> b. startup nomount node2 and node1</p>
<p style="clear:both;"> c. start rman</p>
<p style="clear:both;"> &gt; rman trace reco1.log</p>
<p style="clear:both;"> RMAN&gt; connect catalog rman/rman@rcat</p>
<p style="clear:both;"> RMAN&gt; set dbid=228033884;</p>
<p style="clear:both;"> RMAN&gt; connect target</p>
<p style="clear:both;"> d. Restore the controlfile from autobackup</p>
<p style="clear:both;"> % rman trace recocf.log</p>
<p style="clear:both;"> RMAN&gt; SET DBID=228033884;</p>
<p style="clear:both;"> RMAN&gt; CONNECT TARGET</p>
<p style="clear:both;"> RUN <br /> {<br /> SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE disk TO &#8216;/opt/app/oracle/admin/backup/rman/V1020/%F&#8217;;<br /> ALLOCATE CHANNEL d1 DEVICE TYPE disk; <br /> RESTORE CONTROLFILE FROM AUTOBACKUP<br /> MAXSEQ 5 # start at sequence 5 and count down (optional)<br /> MAXDAYS 5; # start at UNTIL TIME and search back 5 days (optional)<br /> MOUNT DATABASE;<br /> }</p>
<p style="clear:both;"> e. Verify what is available for incomplete recovery. We will recover to the<br /> highest scn log sequence and thread. We will use the log sequence in this<br /> case. Your options are &#8220;until time&#8221;, &#8220;until scn&#8221;, or &#8220;until sequence&#8221;.</p>
<p style="clear:both;"> SQL&gt; select max(sequence#) from v$archived_log<br /> 2 where thread#=1;</p>
<p style="clear:both;"> MAX(SEQUENCE#)<br /> &#8212;&#8212;&#8212;&#8212;&#8211;<br /> 25</p>
<p style="clear:both;"> SQL&gt; select max(sequence#) from v$archived_log<br /> 2 where thread#=2;</p>
<p style="clear:both;"> MAX(SEQUENCE#)<br /> &#8212;&#8212;&#8212;&#8212;&#8211;<br /> 13</p>
<p style="clear:both;">Note: In this case the scn is greater in thread 2 sequence# 13 then in<br /> sequence 25 from thread 1. So we will set the seqeunce to 14 for<br /> rman recovery because log recovery is always sequence+1 to end<br /> at +1 after applying the prior sequence.</p>
<p style="clear:both;"> SQL&gt; select sequence#, thread#, first_change#, next_change#<br /> 2 from v$archived_log<br /> 3 where sequence# in (13,25);</p>
<p style="clear:both;"> SEQUENCE# THREAD# FIRST_CHANGE# NEXT_CHANGE#<br /> &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;<br /> 25 1 1744432 1744802<br /> 13 2 1744429 1744805</p>
<p style="clear:both;"> SQL&gt; select sequence#, thread#, first_change#, next_change#<br /> 2 from v$backup_redolog<br /> 3 where sequence# in (13,25);</p>
<p style="clear:both;"> SEQUENCE# THREAD# FIRST_CHANGE# NEXT_CHANGE#<br /> &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;<br /> 25 1 1744432 1744802<br /> 13 2 1744429 1744805</p>
<p style="clear:both;"> f. If using LMT Temporary tablespace the controlfile will have the syntax<br /> to add the tempfile after recovery is complete.</p>
<p style="clear:both;"> SQL&gt; alter database backup controlfile to trace;</p>
<p style="clear:both;"> Example:<br /> # Commands to add tempfiles to temporary tablespaces.<br /> # Online tempfiles have complete space information.<br /> # Other tempfiles may require adjustment.<br /> ALTER TABLESPACE TEMP ADD TEMPFILE &#8216;/dev/usupport_vg/rV92B_temp_01.dbf&#8217;<br /> SIZE 41943040 REUSE AUTOEXTEND OFF;<br /> # End of tempfile additions.<br /> #</p>
<p style="clear:both;"> g. Since log sequence 13 thread 2 next_change# is 3 changes ahead of thread 1<br /> sequence 25 we are using dequence 14 to stop recovery. This will restore<br /> the datafiles and recover them completely using the online logs.</p>
<p style="clear:both;"> run {<br /> set until sequence 14 thread 2;<br /> restore database;<br /> recover database;<br /> alter database open resetlogs;<br /> }</p>
<p style="clear:both;">8. Review and understand the impact of resetlogs on the catalog.</p>
<p style="clear:both;"> RMAN&gt; list incarnation of database V1020;</p>
<p style="clear:both;">Note: After resetlogs there are 2 incarnations in the recovery catalog. Only<br /> one incarnation can be current at one time for a given dbid. The Inc Key<br /> keeps track of the database incarnations.</p>
<p style="clear:both;">List of Database Incarnations<br />DB Key Inc Key DB Name DB ID CUR Reset SCN Reset Time<br />&#8212;&#8212;- &#8212;&#8212;- &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;- &#8212; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<br />2656 2657 V1020 228033884 NO 1 29-MAY-03<br />2656 3132 V1020 228033884 YES 1744806 13-JUN-03</p>
<p style="clear:both;">9. RMAN Sample Commands</p>
<p style="clear:both;"> a. With a dedicated listener (not using instance registration)<br /> restoring the controlfile.</p>
<p style="clear:both;"> run {<br /> allocate channel d1 type disk connect &#8217;sys/rac@node1&#8242;;<br /> allocate channel d2 type disk connect &#8217;sys/rac@node2&#8242;;<br /> set until sequence 14 thread 2;<br /> restore controlfile;<br /> alter database mount;<br /> release channel d1;<br /> release channel d2;<br /> }</p>
<p style="clear:both;"> b. Backup Archivelog</p>
<p style="clear:both;"> backup archivelog all not backed up 3 times; <br /> backup archivelog until time &#8217;sysdate-2&#8242; not backed up 2 times;</p>
<p><br class="final-break" style="clear:both;" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/691/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/691/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/691/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/691/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/691/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/691/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/691/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/691/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/691/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/691/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=691&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/05/15/rman-backup-rac-example/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4aa2e5cad2122b5718a955342b3b99d9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">stan</media:title>
		</media:content>
	</item>
		<item>
		<title>Automatic Memory Management (AMM) 11g</title>
		<link>http://repettas.wordpress.com/2009/04/25/automatic-memory-management-amm-11g/</link>
		<comments>http://repettas.wordpress.com/2009/04/25/automatic-memory-management-amm-11g/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 15:58:21 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Managment]]></category>
		<category><![CDATA[Oracle DBA]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/?p=679</guid>
		<description><![CDATA[Autmatic Memory Management AMM
The basic memory structures associated with Oracle Database include:
System Global Area (SGA)
The SGA is a group of shared memory structures, known as SGA components that contain data and control information for one Oracle Database Instance. The SGA is shared by all server and background processes.
Program Global Area (PGA)
A PGA is a memory [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=679&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2 align="left">Autmatic Memory Management AMM</h2>
<p>The basic memory structures associated with Oracle Database include:</p>
<h3 align="left">System Global Area (SGA)</h3>
<p>The SGA is a group of shared memory structures, known as SGA components that contain data and control information for one Oracle Database Instance. The SGA is shared by all server and background processes.</p>
<h3 align="left">Program Global Area (PGA)</h3>
<p>A PGA is a memory region that contains data and control information for a server process. It is a nonshared memory region created by Oracle when a server process is started. Access to the PGA is exclusive to the server process that was instantiated. There is one PGA for each server process. Background processes also allocate their own PGAs and the total PGA memory allocated for all background and server processes attached to an Oracle Instance is referred to as the total Instance PGA memory and the collection of the individual PGAs is referred to as the total instance PGA or just Instance PGA.</p>
<p>This memory region is the one that contains the global variables, data structures and control information for a server process. An example of this type of data is the runtime area of a cursor. Each time that a cursor s executed a new runtime area is generated for that cursor in the PGA memory region of the server process mapped to that cursor.</p>
<p>Performance of complex long running queries typical of PeeopleSoft depend to a large extent on the memory available in the Program Global Area (PGA) which is known as the work area.</p>
<p>Below is a figure that attempts to illustrate the relationships among Oracle memory structures:</p>
<div style="text-align:center;"><img src="http://repettas.files.wordpress.com/2009/04/amm-figure1.jpg?w=555&#038;h=327" alt="AMM figure1.jpg" border="0" width="555" height="327" /></div>
<h2 align="left">Evolution of Memory Management Features</h2>
<p>Memory Management has evovled with each new Oracle Database version. </p>
<h3 align="left">Oracle 9i</h3>
<p>Beginning with Oracle 9i which introduced the dynamic SGA infrastructure that allowed for the sizing of the Buffer Cache, Shared Pool and the Large Pool without having to shutdown and restart the Oralce Database. Key features introduced in this version:</p>
<ul type="circle">
<li>Dynamic Memory resizing</li>
</ul>
<ul type="circle">
<li>DB_CACHE_SIZE instead of DB_BLOCK_BUFFERS</li>
</ul>
<ul type="circle">
<li>DB_nK_CACHE_SIZE for multiple block sizes</li>
</ul>
<ul type="circle">
<li>PGA_AGGREGATE_TARGET this is the initial version of Automatic PGA Memory Management</li>
</ul>
<h3 align="left">Oracle Database 10g</h3>
<p>Automatic Shared Memory Management known as ASMM was introduced in Oracle version 10g. You have the option of enabling automatic shared memory management feature by setting the SGA_TARGET parameter to a non-zero value. The degree of how much control you give Oracle for ASMM is control by supplying zero values for several key Oracle initialization parameters. You can permit Oracle to have full control or you can elect to manually control the minimimum size of several memory structures.</p>
<h3 align="left">Oracle Database 11g</h3>
<p>Automatic Memory Management (AMM) was introduced in Oracle verion 11g. Note the missing &#8220;S&#8221; in the acronym. The new Oracle initialization parameters were created for use with AMM &#8211; MEMORY_MAX_TARGET and MEMORY_TARGET.</p>
<p>The most important SGA components are described below:</p>
<div style="text-align:center;"><img src="http://repettas.files.wordpress.com/2009/04/amm-figure3.jpg?w=661&#038;h=96" alt="AMM figure3.jpg" border="0" width="661" height="96" /></div>
<div style="text-align:center;"><img src="http://repettas.files.wordpress.com/2009/04/amm-figure4.jpg?w=660&#038;h=342" alt="AMM figure4.jpg" border="0" width="660" height="342" /></div>
<p>Notes: RESULT_CACHE_MAX_SIZE is a new parameter that was introduced as part of the 11g Memory Architecture. The result cache is comprised of the SQL query result cache and PL/SQL function result cache, which share the same memory structures. Results of queries and query fragments can now be cached in memory in the SQL query result cache. The database can then use those cached results to answer future executions of those queries and query fragments. Similarly the PL/SQL Function Result can also be cached.</p>
<p>In order to these features you have to set the Oracle Initialization Parameter &#8211; RESULT_CACHE_MODE which determines the behavior of the SQL query result cache behavior. The possible values are MANUAL and FORCE.</p>
<p><b>Oracle Database 11g</b> supports various memory management methods, which are set by choosing values for the Oracle initialization parameter settings. Oracle recommends that you use the Automatic Memory Management method and the following lists illustrates their recommendations:</p>
<p>1. Automatic Memory Management &#8211; for both the SGA and Instance PGA<br />
2. Automatic Shared Memory Management &#8211; for the SGA<br />
3. Manual Shared Memory Management &#8211; for the SGA<br />
4. Automatic PGA Memory Management &#8211; for the Instance PGA<br />
5. Manaual PGA Memory Management &#8211; for the Instance PGA</p>
<h4 align="left">1. Automatic Memory Management &#8211; for both the SGA and Instance PGA</h4>
<p>Starting with Oracle 11g, Oracle can now manage both the SGA memory and the instance PGA memory completely automatically. You set the value for the total memory size that is to be dedicated to the Oracle Instance and Oracle takes that value and dynamically sets the values for the various memory structures and manages the exchange of memory between the SGA and the Instance PGA as needed to meet processing demands. This capability is referred to as Automatic Memory Management. By using this method the database also dynamically tunes the sizes of the individual SGA components and the sizes of the individual PGAs.</p>
<p>Two new parameters were introduced in Oracle 11g named MEMORY_MAX_TARGET and MEMORY_TARGET. You set only a target memory size (MEMORY_TARGET) and optionally a maximum memory size initialization parameter (MEMORY_MAX_TARGET).</p>
<p>If you create a database with the Database Configuration Assistant (DBCA) and choose the basic installation option, automatic memory management is enabled. If you choose advanced installation, the DBCA enables you to select memory management.</p>
<h4 align="left">Switching to Automatic Memory Management</h4>
<p>1. Check the current values configured for SGA_TARGET and PGA_AGGREGATE_TARGET.</p>
<p>In SQL*Plus connect as SYSDBA and display the following values for SGA_TARGET and PGA_AGGREGATE_TARGET:</p>
<p>SQL&gt; show parameter target </p>
<p>archive_lag_target<br />
db_flashback_retention_target<br />
fast_start_io_target<br />
fast_start_mttr_target<br />
memory_max_target<br />
memory_target<br />
pga_aggregate_target<br />
sga_target </p>
<p>Add the values together for pga_aggregate_target and sga_target.</p>
<p>2. Decide on a maximum amount of memory that you want to allocate to the database which will determine the maximum value for the sum of the SGA and instance PGA sizes. </p>
<p>3. Change the parameter in the Oracle initialization parameter file using spfile and for our example 1800M for MEMORY_MAX_TARGET and 400M for the PGA_AGGREGATE_TARGET.</p>
<p>SQL&gt;<br />
alter system set memory_max_target = 1800M scope=spfile;<br />
alter system set memory_target = 1800M scope=spfile;<br />
alter system set sga_target = 0 scope=spfile;<br />
alter system set pga_aggregate_target = 0 scope=spfile;</p>
<p>If you have decided to not implement the spfile parameter file and still use a pfile (which you should move away from) then edit the initORCLSID.ora and set the parameters manually:</p>
<p>MEMORY_MAX_TARGET=1800M<br />
MEMORY_TARGET=1800M<br />
SGA_TARGET=0<br />
PGA_AGGREGATE_TARGET=0</p>
<p>In the event that you do not specify any value for MEMORY_MAX_TARGET and decide to only use the MEMORY_TARGET then Oracle automatically sets MEMORY_MAX_TARGET to the value of MEMORY_TARGET. </p>
<p>If you omit the MEMORY_TARGET and include a value for MEMORY_MAX_TARGET, the MEMORY_TARGET parameter parameter defaults to zero. After startup you can then change the value for MEMORY_TARGET to a non-zero value and provide that the number does not exceed the value of MEMORY_MAX_TARGET this allows you to dynamically set the value for MEMORY_TARGET without having the restart Oracle.</p>
<p>MEMORY_MAX_TARGET however is not a dynamic parameter, it is a static one and if you desire to change its value then you will have to bounce the Oracle DB to affect the change.</p>
<p>4. Shutdown and startup the database:</p>
<p>SQL&gt; shutdown immediate;<br />
startup mount<br />
show parameter</p>
<p>The above steps suggest setting the values for SGA_TARGET and PGA_AGGREGATE_TARGET to zero so that the sizes of the SGA and Instance PGA are tuned up and down dynamically as Oracle determines they need to be without restrictions. You can omit the statements that set these parameter values to zero and leave either or both of the values as positive numbers. If you do this then these values act as minimum values for the sizes of the SGA or Instance PGA.</p>
<p><b>Note:</b> In the case you set any parameter value to a value which is higher than MEMORY_TARGET, then you will get the following error when attempting to start up Oracle:</p>
<h4 align="left">Monitoring and Tuning Automatic Memory Management</h4>
<p>The dynamic performance view <b><i>v$memory_dynamic_components</i></b> displays the current sizes of all dynamically tuned memory components including the total sizes of the SGA and Instance PGA. The view <b><i>v$memory_target_advice</i></b> provices tuning advice for the MEMORY_TARGET initialization parameter.</p>
<p>sql&gt; select * from v$memory_target_advice order by memory_size;</p>
<p>You can also query the <b><i>v$memory_resize_ops</i></b> which has a circular history buffer of the last 800 SGA resize requests.</p>
<h4 align="left">3. Automatic Shared Memory Management &#8211; for the SGA</h4>
<p>If you want to exercise more direct control over the size of the SGA, you can choose not to use AMM (Automatic Memory Management) 11g&#8217;s Memory Model and enable Automatic Shared Memory Management (ASMM) 10g&#8217;s Memory Model. This feature was introduced in 10g with a parameter known as SGA_TARGET. When automatic SGA memory is enabled, the sizes of the different SGA components are flexible and can adapt to the needs of the current workload without requiring any additional or manual intervention and/or configuration.</p>
<p>If you enabled AMM and you decide you want to switch to ASMM you can follow the steps below:</p>
<p>SQL&gt; alter system set memory_target = 0 scope=both;<br />
SQL&gt; alter system set sga_target = 500M scope=both;</p>
<h4 align="left">4. Manual Shared Memory Management &#8211; for the SGA</h4>
<p>To gain complete control over the individual SGA component sizes you can disable both auto automatic memory management and automatic shared memory management. In this mode you have to set the sizes of several individual SGA components, thereby determing the overall SGA size. You then manually tune these individual SGA components on an ongoing basis.</p>
<p>In this case you set SGA_TARGET and MEMORY_TARGET to 0 and set the value for other SGA components up to the value of SGA_MAX_SIZE.</p>
<h4 align="left">&lt;4. Automatic PGA Memory Management &#8211; for the Instance PGA</h4>
<p>With using Automatic Memory Management, PGA memory is allocated based upon the value of MEMORY_TARGET. In case you enable Automatic Shared Memory Management (ASMM) or manual Shared Memory Management, you also implicitly enable Automatic PGA Memory Management.</p>
<p>Automatic/Manual PGA Memory Management is decided by the inialization parameter <b>WORKAREA_SIZE_POLICY</b> which is a session- and system-level parameter that can take one of two values MANUAL or AUTO, the default is AUTO.</p>
<p>With Automatic PGA Memory Management, you set a target size for the Instance PGA by defining a value for PGA_AGGREGATE_TARGET and the sizing of the SQL work areas is determined automaitically and all *_AREA_SIZE Oracle Initialization parameters are ignored for these sessions. This feature is available from 9i onwards.</p>
<p>At any given time, the total amount of PGA memory available to active work areas on the instance is automatically derived from the parameter PGA_AGGREGATE_TARGET. This amount is set to the value of PGA_AGGREGATE_TARGET minus the PGA memory allocated for other purposes like session memory. The resulting PGA memory is then alloted to individual active work areas based on their specific memory requirements.</p>
<h4>5. Manual PGA Memory Management &#8211; for the Instance PGA</h4>
<p>In the case where you want to manually specify the maximum work area size for each type of SQL operator such as sort or hash-join then you can enable Manual PGA Memory Management.</p>
<p>To accomplish this set the WORKAREA_SIZE_POLICY value to MANUAL and also specify values for *_area_size such as SORT_AREA_SIZE, HASH_AREA_SIZE, BITMAP_MERGE_AREA_SIZE AND CREATE_BITMAP_AREA_SIZE, etc.</p>
<p>The Oracle 11g Database supports Manual PGA Memory Management but Oracle strongly recommends against using that model and leave Automatic PGA Memory Managemnet to Oracle itself.</p>
<p>The following table summarizes the various Memory Management Models that are available in Oracle 11g:</p>
<div style="text-align:center;"><img src="http://repettas.files.wordpress.com/2009/04/amm-figure2.jpg?w=660&#038;h=456" alt="AMM figure2.jpg" border="0" width="660" height="456" /></div>
<p>The Automatic Memory Management (AMM) Model feature uses background processes named Memory Managment (MMAN) which was introduced in Oracle 10g and which participated in Automatic Shared Memory Management (ASMM) using SGA_TARGET. MMAN serves as the SGA Memory Broker and is responsible for coordinating all of the memory activies including the sizing of the memory components. The SGA Memory Broker keeps track of the sizes of the components and maintains the pending memory resize operations and queues.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/679/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/679/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/679/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=679&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/04/25/automatic-memory-management-amm-11g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4aa2e5cad2122b5718a955342b3b99d9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">stan</media:title>
		</media:content>

		<media:content url="http://repettas.files.wordpress.com/2009/04/amm-figure1.jpg" medium="image">
			<media:title type="html">AMM figure1.jpg</media:title>
		</media:content>

		<media:content url="http://repettas.files.wordpress.com/2009/04/amm-figure3.jpg" medium="image">
			<media:title type="html">AMM figure3.jpg</media:title>
		</media:content>

		<media:content url="http://repettas.files.wordpress.com/2009/04/amm-figure4.jpg" medium="image">
			<media:title type="html">AMM figure4.jpg</media:title>
		</media:content>

		<media:content url="http://repettas.files.wordpress.com/2009/04/amm-figure2.jpg" medium="image">
			<media:title type="html">AMM figure2.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Where to find EMCA log files</title>
		<link>http://repettas.wordpress.com/2009/04/17/where-to-find-emca-log-files/</link>
		<comments>http://repettas.wordpress.com/2009/04/17/where-to-find-emca-log-files/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 03:32:40 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Managment]]></category>
		<category><![CDATA[Oracle DBA]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/?p=673</guid>
		<description><![CDATA[Where to find the logs:
EMCA 10.1
In 10.1 the emca log files are located in the $ORACLE_HOME/cfgtoollogs directory and are in the format they are in is emca.log.X.
EMCA creates the log file if it does not exist (usually the first time it is launched) and then it appends to this each time it runs.
EMCA 10.2
In 10.2 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=673&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2>Where to find the logs:</h2>
<h2>EMCA 10.1</h2>
<p>In 10.1 the emca log files are located in the $ORACLE_HOME/cfgtoollogs directory and are in the format they are in is emca.log.X.</p>
<p>EMCA creates the log file if it does not exist (usually the first time it is launched) and then it appends to this each time it runs.</p>
<h2>EMCA 10.2</h2>
<p>In 10.2 the emca log files are located in the $ORACLE_HOME/cfgtoollogs/emca directory. The filename is in the format emca_timestamp.log where timestamp is in the format: YYYY-MM-DD_HH12-MI-AMP/PM.log.</p>
<p>A new file is created each time emca is run. Then for each database, a sub-directory is creatd under $ORACLE_HOME/cfgtoollogs/emca in the format: $ORACLE_HOME/cfgtoollogs/emca/$ORACLE_SID.</p>
<h2>RAC:</h2>
<li>If the database is a RAC database, for some specific operations like add and remove of an instance a new subdirectory is created for each instance under the $ORACLE_HOME/cfgtoollogs/emca/db_unique_name directory.</li>
<li>emca creates the log files only on the node of the cluster from where emca is running from</li>
<li>For example, for a RAC database with two instances there will be emca log files in the following locations:</li>
<ol type="1">
<li>$ORACLE_HOME/cfgtoologs/emca</li>
<li>$ORACLE_HOME/cfgtoollogs/emca/prod</li>
<li>$ORACLE_HOME/cfgtoollogs/emca/prod/prod1 (SID of the first RAC instance on the database prod)</li>
<li>$ORACLE_HOME/cfgtoollogs/emca/prod/prod2 (SID of the second RAC instance on the database prod)</li>
</ol>
<h2>EMCA 11.1</h2>
<p>In 11.1 the emca log files are located in the $ORACLE_BASE/cfgtoollogs/emca directory. The filename is the format emca_timestamp.log where timestamp is in the format: YYYY-MM-DD_HH12-MI-AMP/PM.log. An example of a filename is: emca_2009-04-17_10-45-10-AM.log. A new fiile is created each time emca is executed. Then for each database a sub-directory is created under $ORACLE_BASE/cfgtoollogs/emca &#8211; $ORACLE_HOME/cfgtoollogs/emca/db_unique_name.</p>
<h3>How to get additional data into the emca.log?</h3>
<ol type="2">
<li>Backup the file emcalog.properties in $ORACLE_HOME/sysman/config</li>
<li>Edit the file emcalog.properties to change the value of the parameter shown below:</li>
</ol>
<p>oracle.sysman.emcp.level = CONFIG to oracle.sysman.emcp.level = FINER</p>
<h2>RAC Databases on Clustered Nodes (valid for emca 10.1, 10.2 and 11.1)</h2>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/673/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/673/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/673/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/673/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/673/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=673&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/04/17/where-to-find-emca-log-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4aa2e5cad2122b5718a955342b3b99d9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">stan</media:title>
		</media:content>
	</item>
		<item>
		<title>What is managed in Oracle 10g ASMM</title>
		<link>http://repettas.wordpress.com/2009/04/17/what-is-managed-in-oracle-10g-asmm/</link>
		<comments>http://repettas.wordpress.com/2009/04/17/what-is-managed-in-oracle-10g-asmm/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 18:19:43 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle DBA]]></category>
		<category><![CDATA[Oracle11g DBA PeopleSoft]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/?p=662</guid>
		<description><![CDATA[What is Managed Automatically through 10g ASMM
The Automatic Shared Memory Management functionality is enabled when you set SGA_TARGET to a value greater than 0 in 10g+. ASMM will then attempt to manage what it thinks is the best size for the following components in the SGA:
Shared Pool
Large Pool
Java Pool
Buffer Cache (the default on managed by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=662&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2>What is Managed Automatically through 10g ASMM</h2>
<p>The Automatic Shared Memory Management functionality is enabled when you set SGA_TARGET to a value greater than 0 in 10g+. ASMM will then attempt to manage what it thinks is the best size for the following components in the SGA:</p>
<p>Shared Pool<br />
Large Pool<br />
Java Pool<br />
Buffer Cache (the default on managed by db_cache_size)<br />
Streams Pool (10g R2+)</p>
<p>The other buffer caches (managed through parameters DB_nK_CACHE_SIZE, DB_KEEP_CACHE_SIZE, DB_RECYCLE_CACHE_SIZE), Log Buffer and Fixed SGA areas are not automatically tuned by MMAN. However these settings do affect the actual memory available to MMAN in the SGA_TARGET setting.</p>
<p>The SGA_TARGET can be changed dynamically up to the setting for SGA_MAX_SIZE. However, keep in mind there are limitations for some platforms on how LOCK_SGA works with memory at the OS level.</p>
<p>As an illustration how this works we&#8217;ll use an example where the SGA_TARGET is set to 4 GB.</p>
<p>In addition to specifying a value for SGA_TARGET you have also set values for DB_KEEP_CACHE_SIZE, LOG_BUFFER and DB_4K_CACHE_SIZE and for this example we&#8217;ll use the values 256M for db_keep_cache_size, 200M for the log_buffer size and 512M for the db_4k_cache_size.</p>
<p>We also elected to manually set the size for the shared pool to 1 GB (SHARED_POOL_SIZE=1G).</p>
<p>Now you want to know how does this affect MMAN. Well this means that MMAN can not manage or auto-tune the memory components will all 4 GB of memory. MMAN can only access 2,206,203,904 bytes.</p>
<p>The following breakdown serves to illustrate how the memory is allocated in the SGA:</p>
<address>
Log Buffers                             		209,715,200<br />
Keep Buffer Cache	                	268,435,456<br />
4K Buffer Cache                     		536,870,912<br />
Shared Pool                        	     1,073,741,824<br />
==============================<br />
Total                                             2,088,763,393<br />
</address>
<address>Note: (by manually assigning a value to the shared pool you are telling Oracle that the size of the shared pool can not shrink below this value)</address>
<p>There are benefits to manually choosing a value for the auto-tuned components of the SGA. However it does have an impact on the amount of memory that MMAN has access to when it needs to grow and shrink the various components.</p>
<p>The following is a general rule of thumb for setting up ASMM:</p>
<p>SGA_TARGET = 256M* # of CPUs</p>
<p>The above rule of thumb makes a number of assumptions about your application&#8217;s memory usage. It is simply a starting point, you should identify a starting point and run queries to determine the appropriate size of the pools for your specific application. Some of the following assumptions are:</p>
<ul>
<li> Run queries and observe the memory trends to determine the minimum size for the various pools to meet the needs of your application</li>
<li>Set the SGA_TARGET to 25% above the sum of the fixed and hard-coded settings</li>
<li>Start with a set of hard-coded values for the pool parameter settings in your initial Oracle init file.</li>
<li>Select a value for the SGA_MAX_SIZE equal to 25% above the setting for SGA_TARGET. This valuue won&#8217;t work for every environment. Memory for SGA_MAX_SIZE is allocated by Oracle at startup. By setting it to a value lower than SGA_MAX_SIZE it will provide you will the ability to bump up the size of the SGA_TARGET which may benefit your application performance.</li>
</ul>
<p>After a reading a tremendous amount of articles, books and papers I&#8217;ve found that it is best to set a value as the minimum size for the above pools in your spfile rather than permitting Oracle to set them for you. You need to identify the base values as your starting point as you query, observe and determine what the values should be for your environment going forward.</p>
<p>As a starting point review the data returned by querying v$sga_dynamic_components and manually assign values to the pools at 70 to 75% of the current size. If there are indications of failed attempts to shrink the shared pool below that number over time, then decrease the default setting by another 10% and monitor the environment to determine if that value is more appropriate.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/662/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=662&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/04/17/what-is-managed-in-oracle-10g-asmm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4aa2e5cad2122b5718a955342b3b99d9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">stan</media:title>
		</media:content>
	</item>
		<item>
		<title>ASM Datafile Copy</title>
		<link>http://repettas.wordpress.com/2009/04/16/use-asm-to-move-datafile/</link>
		<comments>http://repettas.wordpress.com/2009/04/16/use-asm-to-move-datafile/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 02:13:20 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/?p=656</guid>
		<description><![CDATA[How to copy ASM datafile from primary database to standby database on ASM using RMAN
There are two options to achieve the same solution. Assume in this scenario file # 15 on Standby has corruption or is reported NO LOGGING operation error.
Location of file # 15 is in Primary database at &#8216;+ps90hr_disk3/ps90hrpd/datafile/users.xxx.xxxxxx&#8217; and that  standby [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=656&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>How to copy ASM datafile from primary database to standby database on ASM using RMAN</p>
<p>There are two options to achieve the same solution. Assume in this scenario file # 15 on Standby has corruption or is reported NO LOGGING operation error.<br />
Location of file # 15 is in Primary database at &#8216;+ps90hr_disk3/ps90hrpd/datafile/users.xxx.xxxxxx&#8217; and that  standby and primary databases are on two separate servers:</p>
<p>Option 1:<br />
On the primary database server take a copy of the file and put it in a flat filesystem:</p>
<p>rman&gt; copy datafile &#8216;+ps90hr_disk3/ps90hrpd/datafile/users.xxx.xxxxxx&#8217; to &#8216;/tmp/users01.dbf&#8217;;</p>
<p>FTP or copy the datafile to the standby server at /tmp/users01.dbf.</p>
<p>On the Standby Catalog this copy using RMAN.</p>
<p>rman&gt; catalog datafilecopy &#8216;/tmp/users01.dbf&#8217;;</p>
<p>Switch the datafile to point to copy on the standby and stop the recovery.</p>
<p>sql&gt; alter database recover managed standby database cancel;</p>
<p>rman&gt; switch datafile  to copy;      &#8211;            (ex switch datafile 15 to COPY;)</p>
<p>Now we copy this datafile to the ASM disk group on the standby server.</p>
<p>rman&gt; backup as copy datafile  format &#8221;;</p>
<p>Switch to point the Backup copy created in ASM disk group.</p>
<p>rman&gt; switch datafile  to copy;</p>
<p>example: rman&gt; switch datafile 15 to COPY;</p>
<p>Start the recovery and you&#8217;re done.</p>
<p>sql&gt; alter database recover managed standby database disconnect from session;</p>
<p>Option 2:</p>
<p>On the Primary Database:</p>
<p>1. take a copy of the file and put it on a flat filesystem as in Option 1.</p>
<p>rman&gt; copy datafile &#8216;+ps90hr_disk3/ps90hrpd/datafile/users.xxx.xxxxxx&#8217; to &#8216;/tmp/users01.dbf&#8217;;</p>
<p>FTP or copy the file users01.dbf from the primary to the standby server and put it in the same locatiion.</p>
<p>2. On the Standby Server:</p>
<p>sql&gt; shutdown immediate;<br />
sql&gt; startup mount;                (note we are not starting the recovery)</p>
<p>Please note that if dataguard broker is running on the stanby server then it might start the recovery automatically at step 2 so you would need to stop it if that happens)</p>
<p>3. select name from v$datafile where file# = ;</p>
<p>This will return the location of the file that is to be restored.</p>
<p>4. Catalog the datafilecopy on the Standby server using RMAN:</p>
<p>rman&gt; catalog datafilecopy &#8216;/tmp/users01.dbf&#8217;;</p>
<p>5. Connect to the target and copy the datafile using RMAN:</p>
<p>rman&gt; connect target<br />
rman&gt; copy datafile &#8216;/tmp/users01.dbf&#8217; to &#8216;+ps90hr_disk3&#8242;;</p>
<p>This will report the new location/name of the original file #.</p>
<p>6. Using SQL*Plus on the Standby server:</p>
<p>sql&gt; select name from v$datafile where file# = 15;</p>
<p>This will show the original name/location of the datafile. We would need to rename this file to the new filename show above from RMAN. However, we need to set standby_file_management=manual temporarily for this operation:</p>
<p>sql&gt; alter system set standby_file_management=manual scope=spfile;<br />
sql&gt; alter database rename file &#8216; to &#8216;;</p>
<p>example:</p>
<p>alter database rename file &#8216;+ps90hr_disk3/ps90hrpd/users.xxx.xxxxxx&#8217; to &#8216;+ps90hr_disk3/ps90hrpd/datafile/users.xxx.xxxxxx&#8217;;</p>
<p>sql&gt; alter system set standby_file_management = auto scope=spfile;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/656/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=656&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/04/16/use-asm-to-move-datafile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4aa2e5cad2122b5718a955342b3b99d9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">stan</media:title>
		</media:content>
	</item>
	</channel>
</rss>