<?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>Tue, 23 Jun 2009 14:02:20 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<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>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>
		<item>
		<title>Oracle Enterprise Manager Standalone Notes</title>
		<link>http://repettas.wordpress.com/2009/04/05/oracle-enterprise-manager-standalone-notes/</link>
		<comments>http://repettas.wordpress.com/2009/04/05/oracle-enterprise-manager-standalone-notes/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 19:41:06 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Enterprise Manager]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/?p=654</guid>
		<description><![CDATA[Standalone Enterprise Manager Administrative Notes
10.1.0.2 to 11.1.0.0
DB Control Options
DB Control Options:
Delete DB Control Objects:
Delete DB control configuration files with EMCA scripts
Delete DB control configuration files Manually
Delete DB control repository objects using RepManager
Delete DB control repository objects Manually
Delete DB control 
DB Control Options:
Delete DB Control Objects:
1. Delete DB control configuration files with EMCA scripts
2. Delete DB [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=654&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2>Standalone Enterprise Manager Administrative Notes</h2>
<p>10.1.0.2 to 11.1.0.0</p>
<p>DB Control Options</p>
<p>DB Control Options:</p>
<p>Delete DB Control Objects:</p>
<p>Delete DB control configuration files with EMCA scripts<br />
Delete DB control configuration files Manually<br />
Delete DB control repository objects using RepManager<br />
Delete DB control repository objects Manually<br />
Delete DB control </p>
<p>DB Control Options:</p>
<p>Delete DB Control Objects:</p>
<p>1. Delete DB control configuration files with EMCA scripts<br />
2. Delete DB control configuration files Manually<br />
3. Delete DB control repository objects using RepManager<br />
4. Delete DB control repository objects Manually<br />
5. Delete DB control configuration files and repository objects using EMCA</p>
<p>Option 1 using EMCA scripts</p>
<p>10.1.x run $ORACLE_HOME/bin/emca -x<br />
10.2.x run $ORACLE_HOME/bin/emca -deconfig dbcontrol db</p>
<p>The option -deconfig removes the EM jobs from Scheduling before the DB Control<br />
is deconfigured, otherwise, the repository, which is not dropped, could be<br />
corrupted or inconsistent if EM jobs were scheduled as the time the DB control<br />
is dropped. It could also cause some errors during the DB Control deletion.</p>
<p>Option 2 manually remove configuration files</p>
<p>Remove the following directories from your filesystem:</p>
<p>$ORACLE_HOME/<br />
$ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole__</p>
<p>Note: On Windows you also need to delete the DB Console service:</p>
<p>run regedit<br />
navigate to HKEY_LOCAL_MACHINE/SYTEM/CurrentControlSet/Services<br />
locate the OracleDBConsole entry and delete it</p>
<p>Alternatively on Windows XP and Windows Server 2003 you can run the following<br />
from the command line:</p>
<p>sc delete </p>
<p>- where  is the DB Control service name (typically: OracleDBConsole)</p>
<p>Also available from Microsoft is the delsrv.exe command.</p>
<p>Option 3 &#8211; delete DB control repository using RepManager</p>
<p>This option is not as complete as the other options. You may find that dropping the repository using the commandline options is a better solution. Also, note RepManager is not used to create a DB Control Repository.</p>
<p>10g R1 and R2 execute: </p>
<p>$ORACLE_HOME/sysman/admin/emdrep/bin/RepManager    -action drop</p>
<p>Warning: this command puts the database in Quiesce Mode. Check note 375946.1</p>
<p>Option 4 &#8211; delete the DB Control Repository Objects Manually</p>
<p>step 1: drop AQ related objects in the SYSMAN schema, logon SQL*Plus as user<br />
SYSMAN:</p>
<p>sql&gt; exec DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=&gt;&#8217;MGMT_NOTIFY_QTABLE&#8217;,force=&gt;TRUE);</p>
<p>step 2: drop the DB control repository objects by logging on as SYS or SYSTEM, via SQL*Plus and drop the sysman account and management objects:</p>
<p>sql&gt; shutdown immediate;<br />
sql&gt; startup restrict;<br />
sql&gt; exec sysman.emd_maintenance.remove_em_dbms_jobs;<br />
sql&gt; exec sysman.setEMUserContext(&#8221;,5);<br />
sql&gt; revoke dba from sysman;<br />
sql&gt; declare cursor c1 is select owner, synonym_name name from dba_synonyms<br />
where table_owner = &#8216;SYSMAN&#8217;;<br />
begin<br />
for r1 in C1 LOOP<br />
if r1.owner = &#8216;PUBLIC&#8217; then<br />
execute immediate &#8216;DROP PUBLIC SYNONYM &#8216;||r1.name;<br />
else<br />
execute immediate &#8216;DROP SYNONYM &#8216;||r1.owner||&#8217;.'||r1.name;<br />
end if;<br />
end loop;<br />
end;<br />
/</p>
<p>sql&gt; drop user mgmt_view cascade;<br />
sql&gt; drop role mgmt_user;<br />
sql&gt; drop user sysman cascade;<br />
sql&gt; alter system disable restricted session;</p>
<p>Note: The above will completely delete the DB Control repository from the database; under certain circumstances (e.g. you want to recreate the repository later on) the following statements may be sufficient to remove the repository:</p>
<p>Logon SQL*Plus as user SYS or SYSTEM, and drop the sysman account and management objects:</p>
<p>sql&gt; drop user sysman cascade;<br />
sql&gt; drop role mgmt_user;<br />
sql&gt; drop user mgmt_view cascade;<br />
sql&gt; drop public synonym MGMT_TARGET_BLACKOUTS;<br />
sql&gt; drop public synonym SETEMVIEWUSERCONTEXT;</p>
<p>Option 5 &#8211; delete the db control configuration files and repository objects using EMCA</p>
<p>for DB control 10.1.x, dropping both the configuration files and the repository objects is a two step process. Run the following two commands:</p>
<p>$ORACLE_HOME/bin/emca -x<br />
$ORACLE_HOME/sysman/admin/emdrep/bin/RepManager    -action drop</p>
<p>for DB Control 10.2.x, both configuration files and repository objects can be<br />
deleted with a single command. Run the command:</p>
<p>$ORACLE_HOME/bin/emca -deconfig dbcontrol db -repos drop</p>
<p>Create the DB Control Objects</p>
<p>Option 1. Create the DB Control Configuration Files<br />
Option 2. Create the DB Control Repository Objects and Configuration Files</p>
<p>Option 1. Create the DB Control Configuration Files &#8211; to create only the DB<br />
Control configuration files, skipping the repository creation (this would be done for instance if you dropped only the files and left the repository in place)</p>
<p>for 10.1.x, run $ORACLE_HOME/bin/emca -r<br />
for 10.2.x, run $ORACLE_HOME/bin/emca -config dbcontrol db</p>
<p>Option 2. Create the DB Control Repository Objects and Configuration Files</p>
<p>for 10.1.x, run $ORACLE_HOME/bin/emca<br />
for 10.2.x, run $ORACLE_HOME/bin/emca -config dbcontrol db -repos create </p>
<p>Recreate / ReConfig DB Control</p>
<p>Option 1. Recreate the DB Control Configuration Files only (leave Repository intact)<br />
Option 2. Recreate the DB Control Configuration Files and Repository</p>
<p>Option 1 &#8211; recreate the DB Control Configuration Files and Repository</p>
<p>for 10.2, the EMCA commands can be used to reconfigure the existing installs<br />
without removing them first.</p>
<p>$ORACLE_HOME/bin/emca -config dbcontrol db</p>
<p>Option 2 &#8211; recreate the DB Control Configuration Files and Repository</p>
<p>for DB Control 10.2.x, run the command:</p>
<p>$ORACLE_HOME/bin/emca -config dbcontrol db -repos recreate</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/654/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=654&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/04/05/oracle-enterprise-manager-standalone-notes/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 Incremental Merge 10g+</title>
		<link>http://repettas.wordpress.com/2009/02/25/649/</link>
		<comments>http://repettas.wordpress.com/2009/02/25/649/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 02:06:26 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PeopleSoft]]></category>
		<category><![CDATA[RMAN]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/?p=649</guid>
		<description><![CDATA[New feature from 10g+ allows incremental backups to be applied to the base image copy on the fly. Which means each incremental backup cycle will roll forward the database image copy to a later point in time. Then when there is a need to do a restore and recover there will be an updated image [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=649&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div><span style="color:#0e017f;">New feature from 10g+ allows incremental backups to be applied to the base image copy on the fly. Which means each incremental backup cycle will roll forward the database image copy to a later point in time. Then when there is a need to do a restore and recover there will be an updated image copy of the database available on disk.</span></p>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">If MTTR is a constraint then SWITCH DATABASE TO COPY can be used to switch the datafiles to the updated image copy available on disk and there is no need to restore!</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">Even if the database is restored, fewer archive log files will be required to roll the database forward. For example, less than 24 hours of archivelog files will be required if the latest incremental backup is executed on a daily basis. This is the suggested or Oracle Backup Strategy.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">One limitation in using this approach is that more disk space will be required as a full image copy of the database will reside in the backup location and another limit is that point in time recovery of the database can not be performed before the last application of the incremental backup (meaning before the time that the last incremental backup was executed). </span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">The last limitation is dependent upon how frequent the incremental backups are taken and the application of the incremental changes on the image copies.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">There are some considerations:</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">1. At any given time what is the fallback duration? The time which will be required to perform an incomplete recovery on the database.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">2. Depending on the time needed for fall back there will be a requirement for additional disk space.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">With this approach “Incremental Merge” approach, the daily RMAN incremental backup script will be similar to the following:</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">RMAN&gt; BACKUP AS INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG WEEKLY DATABASE;</span></div>
<div><span style="color:#0e017f;">RMAN&gt; RECOVER COPY OF DATABASE WITH TAG WEEKLY;</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">When the above command is executed every day, the incremental backups are applied to the Level 0 backup with the tag WEEKLY. Each incremental backup is merged with the current full backup, making it a complete up-to-date backup as of that moment in time.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">Example:</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">Day One &#8211; Sunday:</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">The first time this script runs, it creates the level 0 backup of the datafiles needed to begin the cycle of incremental updates. Since, Sunday is the first Incremental Merge Backup RMAN will take a level 0 backup of all the datafiles.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">RMAN&gt; BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG WEEKLY DATABASE;</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">This will create an image copy of all the datafiles that can be seen by issuing the RMAN command &#8216;list copy of database&#8217;;. The &#8216;RECOVER COPY OF DATABASE WITH TAG&#8230;&#8217; command instructs RMAN to apply any incremental level 1 backups to a set of datafile copies with the same tag. At this time, there is no incremental backup to apply, so the command generates a message for each datafile in the database that looks like the following:</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">no copy of datafile 1 found to recover</span></div>
<div><span style="color:#0e017f;">no copy of datafile 2 found to recover</span></div>
<div><span style="color:#0e017f;">no copy of datafile 3 found to recover</span></div>
<div><span style="color:#0e017f;">&#8230;..</span></div>
<div><span style="color:#0e017f;">no copy of datafile x found to recover</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">Day 2 &#8211; Monday</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">This will constitute the second execution of the Incremental Merge approach and RMAN will produce a level 1 incremental backup of the datafiles:</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">RMAN&gt; BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY;</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">The &#8216;RECOVER COPY OF DATABASE WITH TAG&#8230;&#8217; command will cause RMAN to apply Monday&#8217;s incremental level 1 backups to the set of datafile copies with the tag WEEKLY on SUNDAY.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">RMAN&gt; RECOVER COPY OF DATABASE WITH TAG WEEKLY;</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">Here the recover command applies the incremental backup on Image copy and thus rolling forward the image copy of the database to the time of the backup. If there is a need to fall back to a time in the past, it can not be done as there is no datafile backup old enough available to restore.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">This Incremental Backup can be delayed to achieve a larger fall back window using commands like:</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">RECOVER COPY OF DATABASE WITH TAG WEEKLY until time &#8217;sysdate-1&#8242; or</span></div>
<div><span style="color:#0e017f;">RECOVER COPY OF DATABASE WITH TAG WEEKLY until time &#8217;sysdate-2&#8242;</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">Day 3 &#8211; Tuesday</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">On Tuesday, the DBA adds a new tablespace to the database and this results in the scenario where the current level 0 backup does not have an image copy of the newly created datafile for the new tablespace. The next RMAN backup will create an image copy of the datafile belonging to this tablespace and will take an incremental backup for other datafiles.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">&#8216;RECOVER COPY OF DATABASE WITH TAG&#8230;.&#8217; causes RMAN to apply Tuesday&#8217;s incremental level 1 backups on the previously updated backup of Monday making it a complete up-to-date backup as of Tuesday&#8217;s backup execution time. However, for the new tablespace (datafile) it is a newly created image copy so no update is required.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">RMAN&gt; RECOVER COPY OF DATABASE WITH TAG WEEKLY;</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">Day 4 &#8211; Wednesday</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">RMAN&gt; BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG WEEKLY DATABASE;</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">The incremental applies the updates to all datafiles including the newly added tablespace on Tuesday.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">Day 5 &#8211; Thursday</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">The database crashes and all datafiles are destroyed.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">The DBA can restore the INCREMENTAL MERGE backup as of Wednesday and apply all of the archivelogs generated since the backup to recover the database.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">RMAN&gt; restore database;</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">In order to save time for the restore you can switch the database to copy command with:</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">RMAN&gt; switch database to copy;</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">All datafile pointers will be pointed to the image backup copies of the datafiles.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">RMAN&gt; recover database;</span></div>
<div><span style="color:#0e017f;">RMAN&gt; alter database open;</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">The database is recovered much faster than the traditional method of recovery.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">The Traditional Approach to Recovering from the same scenario compared to the above method:</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">1. Restore Database &#8211; the traditional approach calls for the restoration of the level 0 backup taken on Sunday and by using the Merge Incremental approach you start with the restore of the backup that took place on Wednesday by issuing the &#8217;switch database&#8217; command&#8217;.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">2. Recover Database &#8211; using the traditional approach you would apply all of the incremental backups starting with Monday&#8217;s while there aren&#8217;t any incremental backups to apply using the Incremental Merge method.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">3. Media Recovery &#8211; using the traditional approach you would apply all of the archivelogs since the last incremental backup while using the Incremental Merge you perform the same process but you are are skipping the steps 1 and 2 and thereby dramatically reducing the overall elapsed time to restore and recover from a database failure.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">The RMAN documentation uses the Incremental Merge as one of the examples in the 10g and 11g Basic Concepts Oracle document.</span></div>
<div><span style="color:#0e017f;"><br />
</span></div>
<div><span style="color:#0e017f;">The Incremental Merge is an excellent solution and I&#8217;ve used it several times, the downside is the amount of disk space it consumes. You need to allow for a set of datafiles the exact same size as the source database plus archivelogs and the other key consideration is the window between incremental executions. You need to execute the incremental (level 1) backups everyday but map out whether you need to use the &#8216;until time sysdate-x&#8217; and determine what &#8216;x&#8217; should be set to. The Basic RMAN 10g and 11g Oracle Manual provides other examples and offers some formulas for calculating the amount of disk required to support the various approaches including the Incremental Merge. I&#8217;ll post the formulas over the next few days.</span></div>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/649/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=649&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/02/25/649/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>Recreate EM DB Configuration and Repository</title>
		<link>http://repettas.wordpress.com/2009/02/24/recreate-em-db-configuration-and-repository/</link>
		<comments>http://repettas.wordpress.com/2009/02/24/recreate-em-db-configuration-and-repository/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 16:46:46 +0000</pubDate>
		<dc:creator>repettas</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[EMCA]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://repettas.wordpress.com/2009/02/24/recreate-em-db-configuration-and-repository/</guid>
		<description><![CDATA[DB Control Options:
Delete DB Control Objects:
1. Delete DB control configuration files with EMCA scripts
2. Delete DB control configuration files Manually
3. Delete DB control repository objects using RepManager
4. Delete DB control repository objects Manually
5. Delete DB control configuration files and repository objects using EMCA
Option 1 using EMCA scripts
10.1.x run $ORACLE_HOME/bin/emca -x &#60;sid&#62;
10.2.x run $ORACLE_HOME/bin/emca -deconfig dbcontrol [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=641&subd=repettas&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>DB Control Options:</p>
<p>Delete DB Control Objects:</p>
<p>1. Delete DB control configuration files with EMCA scripts<br />
2. Delete DB control configuration files Manually<br />
3. Delete DB control repository objects using RepManager<br />
4. Delete DB control repository objects Manually<br />
5. Delete DB control configuration files and repository objects using EMCA</p>
<p>Option 1 using EMCA scripts</p>
<p>10.1.x run $ORACLE_HOME/bin/emca -x &lt;sid&gt;<br />
10.2.x run $ORACLE_HOME/bin/emca -deconfig dbcontrol db</p>
<p>The option -deconfig removes the EM jobs from Scheduling before the DB Control<br />
is deconfigured, otherwise, the repository, which is not dropped, could be corrupted or inconsistent if EM jobs were scheduled as the time the DB control is dropped. It could also cause some errors during the DB Control deletion.</p>
<p>Option 2 manually remove configuration files</p>
<p>Remove the following directories from your filesystem:</p>
<p>$ORACLE_HOME/&lt;hostname&gt;<br />
$ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_&lt;hostname&gt;_&lt;sid&gt;</p>
<p>Note: On Windows you also need to delete the DB Console service:</p>
<p>run regedit<br />
navigate to HKEY_LOCAL_MACHINE/SYTEM/CurrentControlSet/Services<br />
locate the OracleDBConsole entry and delete it.</p>
<p>Alternatively on Windows XP and Windows Server 2003 you can run the following<br />
from the command line:</p>
<p>sc delete</p>
<p>- where  is the DB Control service name (typically: OracleDBConsole)</p>
<p>Also available from Microsoft is the delsrv.exe command.</p>
<p>Option 3 &#8211; delete DB control repository using RepManager</p>
<p>This option is not as complete as the other options. You may find that dropping the repository using the commandline options is a better solution. Also, note RepManager is not used to create a DB Control Repository.</p>
<p>10g R1 and R2 execute:</p>
<p>$ORACLE_HOME/sysman/admin/emdrep/bin/RepManager -action drop</p>
<p>Warning: this command puts the database in Quiesce Mode.</p>
<p>Option 4 &#8211; delete the DB Control Repository Objects Manually</p>
<p>step 1: drop AQ related objects in the SYSMAN schema, logon SQL*Plus as user SYSMAN:</p>
<p>sql&gt; exec DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=&gt;&#8217;MGMT_NOTIFY_QTABLE&#8217;,force=&gt;TRUE);</p>
<p>step 2: drop the DB control repository objects by logging on as SYS or SYSTEM, via SQL*Plus and drop the sysman account and management objects:</p>
<p>sql&gt; shutdown immediate;<br />
sql&gt; startup restrict;<br />
sql&gt; exec sysman.emd_maintenance.remove_em_dbms_jobs;<br />
sql&gt; exec sysman.setEMUserContext(&#8221;,5);<br />
sql&gt; revoke dba from sysman;<br />
sql&gt; declare cursor c1 is select owner, synonym_name name from dba_synonyms<br />
where table_owner = &#8216;SYSMAN&#8217;;<br />
begin<br />
for r1 in C1 LOOP<br />
if r1.owner = &#8216;PUBLIC&#8217; then<br />
execute immediate &#8216;DROP PUBLIC SYNONYM &#8216;||r1.name;<br />
else<br />
execute immediate &#8216;DROP SYNONYM &#8216;||r1.owner||&#8217;.'||r1.name;<br />
end if;<br />
end loop;<br />
end;<br />
/</p>
<p>sql&gt; drop user mgmt_view cascade;<br />
sql&gt; drop role mgmt_user;<br />
sql&gt; drop user sysman cascade;<br />
sql&gt; alter system disable restricted session;</p>
<p>Note: The above will completely delete the DB Control repository from the database; under certain circumstances (e.g. you want to recreate the repository later on) the following statements may be sufficient to remove the repository:</p>
<p>Logon SQL*Plus as user SYS or SYSTEM, and drop the sysman account and management objects:</p>
<p>sql&gt; drop user sysman cascade;<br />
sql&gt; drop role mgmt_user;<br />
sql&gt; drop user mgmt_view cascade;<br />
sql&gt; drop public synonym MGMT_TARGET_BLACKOUTS;<br />
sql&gt; drop public synonym SETEMVIEWUSERCONTEXT;</p>
<p>Option 5 &#8211; delete the db control configuration files and repository objects using EMCA</p>
<p>for DB control 10.1.x, dropping both the configuration files and the repository objects is a two step process. Run the following two commands:</p>
<p>$ORACLE_HOME/bin/emca -x &lt;sid&gt;<br />
$ORACLE_HOME/sysman/admin/emdrep/bin/RepManager    -action drop</p>
<p>for DB Control 10.2.x, both configuration files and repository objects can be<br />
deleted with a single command. Run the command:</p>
<p>$ORACLE_HOME/bin/emca -deconfig dbcontrol db -repos drop</p>
<p>Create the DB Control Objects</p>
<p>Option 1. Create the DB Control Configuration Files<br />
Option 2. Create the DB Control Repository Objects and Configuration Files</p>
<p>Option 1. Create the DB Control Configuration Files &#8211; to create only the DB<br />
Control configuration files, skipping the repository creation (this would be done for instance if you dropped only the files and left the repository in place)</p>
<p>for 10.1.x, run $ORACLE_HOME/bin/emca -r<br />
for 10.2.x, run $ORACLE_HOME/bin/emca -config dbcontrol db</p>
<p>Option 2. Create the DB Control Repository Objects and Configuration Files</p>
<p>for 10.1.x, run $ORACLE_HOME/bin/emca<br />
for 10.2.x, run $ORACLE_HOME/bin/emca -config dbcontrol db -repos create</p>
<p>Recreate / ReConfig DB Control</p>
<p>Option 1. Recreate the DB Control Configuration Files only (leave Repository intact)<br />
Option 2. Recreate the DB Control Configuration Files and Repository</p>
<p>Option 1 &#8211; recreate the DB Control Configuration Files and Repository</p>
<p>for 10.2, the EMCA commands can be used to reconfigure the existing installs<br />
without removing them first.</p>
<p>$ORACLE_HOME/bin/emca -config dbcontrol db</p>
<p>Option 2 &#8211; recreate the DB Control Configuration Files and Repository</p>
<p>for DB Control 10.2.x, run the command:</p>
<p>$ORACLE_HOME/bin/emca -config dbcontrol db -repos recreate</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/repettas.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/repettas.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/repettas.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/repettas.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/repettas.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/repettas.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/repettas.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/repettas.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/repettas.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/repettas.wordpress.com/641/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=repettas.wordpress.com&blog=709229&post=641&subd=repettas&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://repettas.wordpress.com/2009/02/24/recreate-em-db-configuration-and-repository/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>