<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mani's Oracle Scratchpad</title>
	<atom:link href="http://manib.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://manib.wordpress.com</link>
	<description>Things I learn ( Both Tech and non-Tech)</description>
	<lastBuildDate>Thu, 27 Mar 2008 09:26:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='manib.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mani's Oracle Scratchpad</title>
		<link>http://manib.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://manib.wordpress.com/osd.xml" title="Mani&#039;s Oracle Scratchpad" />
	<atom:link rel='hub' href='http://manib.wordpress.com/?pushpress=hub'/>
		<item>
		<title>More on Compress/Uncompress</title>
		<link>http://manib.wordpress.com/2008/03/27/more-on-compressuncompress/</link>
		<comments>http://manib.wordpress.com/2008/03/27/more-on-compressuncompress/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 09:13:55 +0000</pubDate>
		<dc:creator>Mani Balasubramanian</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://manib.wordpress.com/?p=26</guid>
		<description><![CDATA[Only very lately I figured out that there is a way to compress/uncompress files to a different directory / location/ folder on UNIX.  This is very important while taking a compressed OS backup or restoring compressed files from backup. To compress to a different folder / locaiton : compress -c /appl01/orabkup/system01.dbf &#62; /u01/oradata/ORCL/ORCL_system01.dbf.Z or compress [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=26&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Only very lately I figured out that there is a way to compress/uncompress files to a different directory / location/ folder on UNIX.  This is very important while taking a compressed OS backup or restoring compressed files from backup.</p>
<p>To compress to a different folder / locaiton :</p>
<p><code>compress -c /appl01/orabkup/system01.dbf &gt; /u01/oradata/ORCL/ORCL_system01.dbf.Z</code><br />
or<br />
<code>compress &lt; /appl01/orabkup/system01.dbf &gt; /u01/oradata/ORCL/ORCL_system01.dbf.Z</code></p>
<p>To uncompress to a different folder / locaiton :</p>
<p><code>uncompress -c /appl01/orabkup/ORCL_system01.dbf.Z &gt; /u01/oradata/ORCL/system01.dbf </code><br />
or<br />
<code>uncompress &lt; /appl01/orabkup/ORCL_system01.dbf.Z &gt; /u01/oradata/ORCL/system01.dbf </code></p>
<p>This may be a very primitive one, but I learned it very recently. Hope it helps you!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/manib.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/manib.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manib.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manib.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manib.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manib.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manib.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manib.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manib.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manib.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manib.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manib.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manib.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manib.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manib.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manib.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=26&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manib.wordpress.com/2008/03/27/more-on-compressuncompress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/58ae6bd2bd86f70ad24c90290fa71ad8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manib</media:title>
		</media:content>
	</item>
		<item>
		<title>10g Upgrade &#8211; issues with DBMS_STATS package</title>
		<link>http://manib.wordpress.com/2008/01/28/10g-upgrade-issues-with-dbms_stats-package/</link>
		<comments>http://manib.wordpress.com/2008/01/28/10g-upgrade-issues-with-dbms_stats-package/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 05:48:10 +0000</pubDate>
		<dc:creator>Mani Balasubramanian</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://manib.wordpress.com/2008/01/28/10g-upgrade-issues-with-dbms_stats-package/</guid>
		<description><![CDATA[Last week, one of our clients production database was upgraded from 9i to 10g.  Since then they were facing lot of performance problems.  They cannot pin point the problem at a particular place, so the problem seems to be &#8220;overall&#8221;.  I did not have access to the production box, all I had was an AWR [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=25&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week, one of our clients production database was upgraded from 9i to 10g.  Since then they were facing lot of performance problems.  They cannot pin point the problem at a particular place, so the problem seems to be &#8220;overall&#8221;.  I did not have access to the production box, all I had was an AWR report generated during the time of performance degradation.  When I dug into the report, I found that the instance performance is generally ok.  The problem was with most of the application queries &#8211; too many physical reads.</p>
<p>I remember I read an article from Jonathan Lewis on his blog regarding performance degradation after 10g upgrade.  I quickly went there and did a search and found out this URL <a href="http://jonathanlewis.wordpress.com/2007/02/02/10g-upgrade/">http://jonathanlewis.wordpress.com/2007/02/02/10g-upgrade/</a>, excellently explaining the change in the behaviour of dbms_stats package.  In short.</p>
<p><em>&#8220;If you didn’t specify a method_opt in your scripts under 9i you were not generating histograms; but under 10g you will be collecting histograms on any columns that Oracle thinks might be suitable candidates.&#8221;</em> </p>
<p>I then checked the AWR report to see if there was anything recorded regarding DBMS_STATS, indeed I found out that they were using defualt method_opt<br />
<code><br />
dbms_stats.gather_table_stats(<br />
OwnName =&gt; 'ADMIN',tabname=&gt;'T2838',estimate_percent =&gt; dbms_stats.auto_sample_size,<br />
Granularity =&gt; 'DEFAULT',Degree =&gt; 4)</code></p>
<p>Which means they were generating histograms, but on 9i the same script would not have generated them.  This could be having a major impact on generating execution plans on 10g.  I replied them this, providing the Jonathan Lewis&#8217; URL.</p>
<p>Later, they did reset the METHOD_OPT to 9i levels.</p>
<p><code>exec dbms_stats.set_param('METHOD_OPT', 'FOR ALL COLUMNS SIZE 1');</code></p>
<p>I am waiting to hear from them on whether there is any improvement in performance.</p>
<p>Note:  I later found Richard Foote has also written an excellent article on this : <a href="http://richardfoote.wordpress.com/2008/01/04/dbms_stats-method_opt-default-behaviour-changed-in-10g-be-careful/">http://richardfoote.wordpress.com/2008/01/04/dbms_stats-method_opt-default-behaviour-changed-in-10g-be-careful/</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/manib.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/manib.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manib.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manib.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manib.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manib.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manib.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manib.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manib.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manib.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manib.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manib.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manib.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manib.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manib.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manib.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=25&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manib.wordpress.com/2008/01/28/10g-upgrade-issues-with-dbms_stats-package/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/58ae6bd2bd86f70ad24c90290fa71ad8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manib</media:title>
		</media:content>
	</item>
		<item>
		<title>Database refresh using cold backup</title>
		<link>http://manib.wordpress.com/2008/01/28/database-refresh-using-cold-backup/</link>
		<comments>http://manib.wordpress.com/2008/01/28/database-refresh-using-cold-backup/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 05:16:18 +0000</pubDate>
		<dc:creator>Mani Balasubramanian</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://manib.wordpress.com/?p=24</guid>
		<description><![CDATA[Sometime, you will be asked to refresh an UAT database using an coldbackup of production one.  Here are the steps : 1.  Prepare controlfile creation script.  This can be done by alter database backup controlfile to trace as '/export/home/oracle/ctlfile.sql'; 2.  View the edit ctlfile.sql, so that it should contain the following CREATE CONTROLFILE SET DATABASE [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=24&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometime, you will be asked to refresh an UAT database using an coldbackup of production one.  Here are the steps :</p>
<p>1.  Prepare controlfile creation script.  This can be done by</p>
<p><code>alter database backup controlfile to trace as '/export/home/oracle/ctlfile.sql';</code></p>
<p>2.  View the edit ctlfile.sql, so that it should contain the following</p>
<p><code>CREATE CONTROLFILE SET DATABASE "UATDB" RESETLOGS NOARCHIVELOG<br />
  MAXLOGFILES 16<br />
  MAXLOGMEMBERS 3<br />
  MAXDATAFILES 100<br />
  MAXINSTANCES 1<br />
  MAXLOGHISTORY 453<br />
LOGFILE<br />
  GROUP 1 '/u01/oradata/UATDB/redo01.log' SIZE 200M,<br />
  GROUP 2 '/u02/oradata/UATDB/redo02.log' SIZE 200M,<br />
  GROUP 3 '/u03/oradata/UATDB/redo03.log' SIZE 200M<br />
-- STANDBY LOGFILE<br />
DATAFILE<br />
  '/u01/oradata/UATDB/system01.dbf',<br />
  '/u01/oradata/UATDB/undotbs01.dbf',<br />
  '/u01/oradata/UATDB/users01.dbf',<br />
  '/u01/oradata/UATDB/data01.dbf',<br />
  '/u01/oradata/UATDB/tools01.dbf',<br />
  '/u01/oradata/UATDB/perfstat01.dbf',<br />
  '/u01/oradata/UATDB/sysaux01.dbf'<br />
CHARACTER SET WE8ISO8859P1<br />
;</code></p>
<p>3. Gernerate script to create TEMP tablespace</p>
<p><code>set long 2000<br />
select DBMS_METADATA.GET_DDL('TABLESPACE','TEMP') from dual;</code></p>
<p>4. Shutdown UATDB cleanly</p>
<p><code>shutdown immediate</code></p>
<p>5. Copy the cold backup files from production to UAT box.</p>
<p>6. Start the database in nomount state<br />
 <br />
<code>startup nomount</code></p>
<p>7. Run the create control file script</p>
<p><code>@/export/home/oracle/ctlfile.sql</code></p>
<p>8. Open the database with resetlogs</p>
<p><code>alter database open resetlogs;</code></p>
<p>9. Create temp tablespace from the script generated from step 3:</p>
<p><code>CREATE TEMPORARY TABLESPACE "TEMP1" TEMPFILE<br />
'/u01/oradata/UATDB/TEMP01.dbf' SIZE 5242880000<br />
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1048576</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/manib.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/manib.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manib.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manib.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manib.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manib.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manib.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manib.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manib.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manib.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manib.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manib.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manib.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manib.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manib.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manib.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=24&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manib.wordpress.com/2008/01/28/database-refresh-using-cold-backup/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/58ae6bd2bd86f70ad24c90290fa71ad8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manib</media:title>
		</media:content>
	</item>
		<item>
		<title>Extracting one or more files from compressed tar archive</title>
		<link>http://manib.wordpress.com/2008/01/26/extracting-one-or-more-files-from-compressed-tar-archive/</link>
		<comments>http://manib.wordpress.com/2008/01/26/extracting-one-or-more-files-from-compressed-tar-archive/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 12:05:05 +0000</pubDate>
		<dc:creator>Mani Balasubramanian</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://manib.wordpress.com/?p=23</guid>
		<description><![CDATA[As a oracle DBA you will come across extracting files from compressed tar archive files like *.gz/*.Z normally compressed through gzip or UNIX compress utility.  You can uncompress them and extract the tar file.  But it is a two step process and you need more diskspace to do this (twice the amount nearly) .  Instead you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=23&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As a oracle DBA you will come across extracting files from compressed tar archive files like *.gz/*.Z normally compressed through gzip or UNIX compress utility.  You can uncompress them and extract the tar file.  But it is a two step process and you need more diskspace to do this (twice the amount nearly) .  Instead you can do them in one step. </p>
<p>How to do this with gzip is clearly demonstrated in here in this URL <a href="http://www.sron.rug.nl/didac/didac_tips.html">http://www.sron.rug.nl/didac/didac_tips.html</a>.</p>
<p><code>gzip -dc t.tar.gz | tar -tvf -</code></p>
<p>That saves you lot of disk space. </p>
<p> Now lets try the same with UNIX uncompress utility.</p>
<p>I have 3 text files and I add them to t.tar<br />
<code>$ ls -ltr<br />
total 146<br />
-rw-r--r-- 1 oracle dba 6 Jan 26 05:28 t1.txt<br />
-rw-r--r-- 1 oracle dba 6 Jan 26 05:28 t2.txt<br />
-rw-r--r-- 1 oracle dba 6 Jan 26 05:28 t3.txt<br />
$ tar -cvf t.tar *.txt<br />
a t1.txt 1K<br />
a t2.txt 1K<br />
a t3.txt 1K<br />
</code></p>
<p>Now compress them using UNIX compress command</p>
<p><code>$ compress t.tar<br />
$ ls -ltr<br />
total 148<br />
-rw-r--r-- 1 oracle dba 296 Jan 26 05:31 t.tar.Z<br />
</code></p>
<p>Try the uncompress command</p>
<p><code>$ uncompress -c t.tar.Z | tar -tvf -<br />
tar: blocksize = 8<br />
-rw-r--r-- 101/201 6 Jan 26 05:28 2008 t1.txt<br />
-rw-r--r-- 101/201 6 Jan 26 05:28 2008 t2.txt<br />
-rw-r--r-- 101/201 6 Jan 26 05:28 2008 t3.txt<br />
</code></p>
<p>Yes!! it really works!  If you want to extract just one file, you can do the below</p>
<p><code>$ uncompress -c t.tar.Z | tar -xvf - t1.txt<br />
tar: blocksize = 8<br />
x t1.txt, 6 bytes, 1 tape blocks<br />
$ ls -ltr<br />
total 144<br />
-rw-r--r-- 1 oracle dba 6 Jan 26 05:28 t1.txt<br />
-rw-r--r-- 1 oracle dba 296 Jan 26 05:31 t.tar.Z<br />
</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/manib.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/manib.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manib.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manib.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manib.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manib.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manib.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manib.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manib.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manib.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manib.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manib.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manib.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manib.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manib.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manib.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=23&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manib.wordpress.com/2008/01/26/extracting-one-or-more-files-from-compressed-tar-archive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/58ae6bd2bd86f70ad24c90290fa71ad8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manib</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring wireless network</title>
		<link>http://manib.wordpress.com/2008/01/11/configuring-wireless-network/</link>
		<comments>http://manib.wordpress.com/2008/01/11/configuring-wireless-network/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 13:45:45 +0000</pubDate>
		<dc:creator>Mani Balasubramanian</dc:creator>
				<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://manib.wordpress.com/2008/01/11/configuring-wireless-network/</guid>
		<description><![CDATA[I have my ADSL modem and PC on the upstairs of my home. It is good, because I am isolated and work in peace when needed.  But carrying laptop to upstairs can sometime be tough, especially you need to work for a short duration.  So I thought of configuring wireless network for this purpose. Yesterday [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=20&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have my ADSL modem and PC on the upstairs of my home. It is good, because I am isolated and work in peace when needed.  But carrying laptop to upstairs can sometime be tough, especially you need to work for a short duration.  So I thought of configuring wireless network for this purpose. Yesterday I did configure my HUAWEI modem WA1003A &#8211; BSNL broad band to work wireless.  Just thought I would give it in steps so that it can help someone.  </p>
<p><strong>Router/Modem configuration:</strong></p>
<p>1.  Router type WA1003A HUAWEI.  Brodband vendor &#8211; BSNL Chennai<br />
2.  Log on to the admin website from a PC that is connected to network.  Usually it will be <a href="http://192.168.1.1/">http://192.168.1.1</a>.<br />
3.  On the top menu, click &#8220;Setup&#8221;.  On the left-hand side menu click &#8220;Wireless&#8221;. <br />
4.  Check &#8220;Enable AP&#8221;. Give a name for SSID.  The SSID uniquely identifies your wireless network. Click &#8220;Apply&#8221;<br />
5.  On the top menu, click &#8220;Advanced&#8221;.  On the left-hand side menu click &#8220;Wireless Security&#8221;.<br />
6.  Select the kind of security you wish to have.  Though this is optional, it is absolutely necessary to have this.<br />
    You don&#8217;t want an intruder connected to your router.<br />
7.  Check &#8220;WEP&#8221; option.<br />
8.  Check &#8220;Enable WEP Wireless Security&#8221;<br />
9.  Select Authentication Type &#8220;Shared&#8221;<br />
10. Give an encryption key in hexa decimal.  Select cipher as &#8220;64 bits&#8221;<br />
11. Apply the changes.<br />
12. Go to Tool (top menu) -&gt; System commands (side menu) -&gt; Save all.  After saving, click restart.<br />
13. Now your router will be restarted.  The wireless LED on the modem should be on now.</p>
<p><strong>Laptop Configuration:</strong></p>
<p>1.  Enable wireless.  On my Dell D610 laptop it is the combination of &#8220;Fn&#8221; + &#8220;F2&#8243; keys.<br />
2.  Go to Start -&gt; My Network Places.<br />
3.  Right click &#8220;Wireless Network Connection&#8221; -&gt; View available wireless networks.<br />
4.  You should find your wireless network there. Select it and click connect.<br />
5.  You will be asked to enter the key.  Enter the hexa decimal key you have set while configuring the modem.<br />
6.  That&#8217;s it, you are done!!! I always use DHCP, so no need to bother about IP addresses.</p>
<p>Hope this helps you!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/manib.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/manib.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manib.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manib.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manib.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manib.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manib.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manib.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manib.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manib.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manib.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manib.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manib.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manib.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manib.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manib.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=20&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manib.wordpress.com/2008/01/11/configuring-wireless-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/58ae6bd2bd86f70ad24c90290fa71ad8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manib</media:title>
		</media:content>
	</item>
		<item>
		<title>It served the purpose..</title>
		<link>http://manib.wordpress.com/2008/01/08/it-served-the-purpose/</link>
		<comments>http://manib.wordpress.com/2008/01/08/it-served-the-purpose/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 04:35:41 +0000</pubDate>
		<dc:creator>Mani Balasubramanian</dc:creator>
				<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://manib.wordpress.com/2008/01/08/it-served-the-purpose/</guid>
		<description><![CDATA[Couple of months back, I was asked to run a script on UAT as part of a change deployment.  When I looked into it, I got shocked.  You can see yourself why.. REM    REM    NAME REM    abc.sql - Delete Contact REM REM       ******************************************************** PROMPT    *** abc.sql ...                                      *** set define off set serveroutput on delete [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=19&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Couple of months back, I was asked to run a script on UAT as part of a change deployment.  When I looked into it, I got shocked.  You can see yourself why..<br />
<code><br />
REM   <br />
REM    NAME<br />
REM    abc.sql - Delete Contact<br />
REM<br />
REM       ********************************************************<br />
PROMPT    *** abc.sql ...                                      ***<br />
set define off<br />
set serveroutput on<br />
delete from XXXXXXXX where <a href="mailto:EMAIL='abc.xys@oracle.com'">EMAIL='abc.xys@oracle.com'</a>;<br />
dbms_output.put_line('*** Script Confirmation : Property Deleted from XXXXXXXX ***');<br />
commit;<br />
exception<br />
  when others then<br />
    dbms_output.put_line('*** Error: sqlcode: ' || sqlcode || '; sqlerrm: ' || substr(sqlerrm, 1, 100) || ' ***');<br />
PROMPT    *** abc.sql ... completed                            ***<br />
REM       ********************************************************<br />
EXIT<br />
</code><br />
If you notice, there is no DECLARE block, no BEGIN block, only exception block!!!!<br />
I asked the developer how it didn&#8217;t give errors on development environment? He told &#8220;yes, but the record got deleted and commit was done.  That&#8217;s all I want.  It served the purpose.&#8221;<br />
He was one among those who attended training on PL/SQL earlier that month.  Needless to say, he has learnt the &#8220;Error handling&#8221; very well, at least.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/manib.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/manib.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manib.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manib.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manib.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manib.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manib.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manib.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manib.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manib.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manib.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manib.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manib.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manib.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manib.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manib.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=19&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manib.wordpress.com/2008/01/08/it-served-the-purpose/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/58ae6bd2bd86f70ad24c90290fa71ad8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manib</media:title>
		</media:content>
	</item>
		<item>
		<title>OEL on VMWare</title>
		<link>http://manib.wordpress.com/2008/01/08/oel-on-vmware/</link>
		<comments>http://manib.wordpress.com/2008/01/08/oel-on-vmware/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 04:30:51 +0000</pubDate>
		<dc:creator>Mani Balasubramanian</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://manib.wordpress.com/2008/01/08/oel-on-vmware/</guid>
		<description><![CDATA[Finally sometime back, I have completed installing Oracle Enterprise Linux on VMWare server.  The installation is quite simple and straight forward.  I just followed the steps given by Frederik (Frikkie) Visser in http://startoracle.com/2007/09/30/so-you-want-to-play-with-oracle-11gs-rac-heres-how/ .  It is an excellent article that tells you step by step not only how to install linux on VMWare but also configuring [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=18&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Finally sometime back, I have completed installing Oracle Enterprise Linux on VMWare server.  The installation is quite simple and straight forward.  I just followed the steps given by Frederik (Frikkie) Visser in <a href="http://startoracle.com/2007/09/30/so-you-want-to-play-with-oracle-11gs-rac-heres-how/">http://startoracle.com/2007/09/30/so-you-want-to-play-with-oracle-11gs-rac-heres-how/</a> .  It is an excellent article that tells you step by step not only how to install linux on VMWare but also configuring RAC.  A must read for a DBA. Thanks Frikkie.</p>
<p>My first reaction to OEL is, it is bulky and a bit slow.  But I have allocated only 800 MB or memory to it.  May be I should throw more memory to it and see how it behaves.</p>
<p>My next step would be to download Oracle 11g for Linux ans start installing it.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/manib.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/manib.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manib.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manib.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manib.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manib.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manib.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manib.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manib.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manib.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manib.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manib.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manib.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manib.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manib.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manib.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=18&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manib.wordpress.com/2008/01/08/oel-on-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/58ae6bd2bd86f70ad24c90290fa71ad8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manib</media:title>
		</media:content>
	</item>
		<item>
		<title>VMServer 2.0 Beta 1</title>
		<link>http://manib.wordpress.com/2007/12/15/vmserver-20-beta-1/</link>
		<comments>http://manib.wordpress.com/2007/12/15/vmserver-20-beta-1/#comments</comments>
		<pubDate>Sat, 15 Dec 2007 02:43:30 +0000</pubDate>
		<dc:creator>Mani Balasubramanian</dc:creator>
				<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://manib.wordpress.com/2007/12/15/vmserver-20-beta-1/</guid>
		<description><![CDATA[I downloaded VMServer 2.0 Beta 1 today from here and installed it.   It has a web interface for creating and administering VM images.  It uses Tomcat webserver for this purpose.  For several minutes I struggled to log in to the web console, because it is asking for username and password.  It never asked me these details [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=17&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I downloaded VMServer 2.0 Beta 1 today from <a href="http://www.vmware.com/products/server/">here</a> and installed it.   It has a web interface for creating and administering VM images.  It uses Tomcat webserver for this purpose. </p>
<p>For several minutes I struggled to log in to the web console, because it is asking for username and password.  It never asked me these details while installing.  The username and passwords on tomcat-users.xml didn&#8217;t work.  Finally in the <a href="http://www.vmware.com/products/beta/vmware_server/releasenotes_vmserver2.html">release note</a>, I figured it out, that it uses OS authentication. </p>
<p>But, again there is a small issue for me.  Since I only use my PC, i do not have passwords for the OS accounts.  But the VMWare web console doesn&#8217;t take an empty password. hmmmmmmm&#8230;&#8230; quite frustrating..  Finally I gave up and set password for my Windows OS account&#8230; Grrrrrrrr&#8230;</p>
<p>Finally, I could able to get into VMWare console.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/manib.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/manib.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manib.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manib.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manib.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manib.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manib.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manib.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manib.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manib.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manib.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manib.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manib.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manib.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manib.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manib.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=17&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manib.wordpress.com/2007/12/15/vmserver-20-beta-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/58ae6bd2bd86f70ad24c90290fa71ad8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manib</media:title>
		</media:content>
	</item>
		<item>
		<title>Nice X-Window emulator</title>
		<link>http://manib.wordpress.com/2007/12/07/nice-x-window-emulator/</link>
		<comments>http://manib.wordpress.com/2007/12/07/nice-x-window-emulator/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 15:06:34 +0000</pubDate>
		<dc:creator>Mani Balasubramanian</dc:creator>
				<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://manib.wordpress.com/2007/12/07/nice-x-window-emulator/</guid>
		<description><![CDATA[On Windows, at-least, once in a while DBAs need to remotely access the UNIX/Linux GUI tools such as OUI, DBCA etc from putty or an SSH client.   Tools like Exceed are very expensive and VNC port forwarding is a bit of complex solution (also you need vnc software).   To overcome this, you can try this tiny [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=16&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On Windows, at-least, once in a while DBAs need to remotely access the UNIX/Linux GUI tools such as OUI, DBCA etc from putty or an SSH client.   Tools like Exceed are very expensive and VNC port forwarding is a bit of complex solution (also you need vnc software).  </p>
<p>To overcome this, you can try this tiny little software called <a href="http://freedesktop.org/wiki/Xming">Xming</a>.  The setup file is only about 2MB of size and very easy to install.  All you need to do is to start the Xming, open a putty session and check &#8220;Enable X11 Forwarding&#8221; option under SSH-&gt;X11.   Log into the Linux/Unix sever and straight away you can test it by running xlogo/xclock.  No need to even set the DISPLAY env variable.  Very nice indeed.</p>
<p>I just tried it and it is absolutely working fine <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/manib.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/manib.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manib.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manib.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manib.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manib.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manib.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manib.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manib.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manib.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manib.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manib.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manib.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manib.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manib.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manib.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=16&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manib.wordpress.com/2007/12/07/nice-x-window-emulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/58ae6bd2bd86f70ad24c90290fa71ad8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manib</media:title>
		</media:content>
	</item>
		<item>
		<title>Standby v$archived_log</title>
		<link>http://manib.wordpress.com/2007/12/07/standby-varchived_log/</link>
		<comments>http://manib.wordpress.com/2007/12/07/standby-varchived_log/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 14:30:13 +0000</pubDate>
		<dc:creator>Mani Balasubramanian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://manib.wordpress.com/2007/12/07/standby-varchived_log/</guid>
		<description><![CDATA[It happened last week, that one of my colleague came to me in a hurry and said that the archived logs are not getting applied on standby (Oracle 10gR1).  When I went and checked the standby database, everything was OK.  It applied till the last archived log.  On the primary database side though, the status [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=15&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It happened last week, that one of my colleague came to me in a hurry and said that the archived logs are not getting applied on standby (Oracle 10gR1).  When I went and checked the standby database, everything was OK.  It applied till the last archived log.  On the primary database side though, the status was &#8216;NO&#8217; for few of the archive logs</p>
<p><strong>Standby:</strong></p>
<p><em>SQL&gt; SELECT SEQUENCE#, ARCHIVED, APPLIED FROM V$ARCHIVED_LOG WHERE SEQUENCE# &gt; 11210 ORDER BY SEQUENCE#;</em></p>
<p><em>SEQUENCE# DEST_ID ARC APP<br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;<br />
11211 YES YES<br />
11212 YES YES<br />
11213 YES YES<br />
11214 YES YES<br />
11215 YES YES<br />
11216 YES YES<br />
11217 YES YES<br />
11218 YES YES<br />
11219 YES YES</em></p>
<p><strong>Primary:</strong></p>
<p><em>SQL&gt; SELECT SEQUENCE#, ARCHIVED, APPLIED FROM V$ARCHIVED_LOG WHERE DEST_ID = 2 AND SEQUENCE# &gt; 11210 ORDER BY SEQUENCE#;</em></p>
<p><em>SEQUENCE# DEST_ID ARC APP<br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;<br />
11211  YES YES<br />
11212  YES YES<br />
11213  YES NO<br />
11214  YES YES<br />
11215  YES NO<br />
11216  YES YES<br />
11217  YES YES<br />
11218  YES NO<br />
11219  YES YES </em></p>
<p> I did a search on metalink and came across this document &#8216;<strong>Note:263994.1</strong>&#8216;<strong>.  </strong>This is what mentioned as cause :</p>
<p><em>&#8220;The cause of the problem is that the APPLIED column of V$ARCHIVED_LOG on the primary is not always updated. If the sequence number you look at was actually sent as a GAP (could not be sent originally and was later sent by an ARCH process as part of a FAL request).</p>
<p>In such a case the APPLIED column for that sequence number will not be updated. &#8220;</em></p>
<p>The conclusion is that, we cannot fully trust the v$archived_log on primary server.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/manib.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/manib.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/manib.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/manib.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/manib.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/manib.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/manib.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/manib.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/manib.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/manib.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/manib.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/manib.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/manib.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/manib.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/manib.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/manib.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=manib.wordpress.com&amp;blog=2129038&amp;post=15&amp;subd=manib&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://manib.wordpress.com/2007/12/07/standby-varchived_log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/58ae6bd2bd86f70ad24c90290fa71ad8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">manib</media:title>
		</media:content>
	</item>
	</channel>
</rss>
