<?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>vicker313 tech blog</title>
	<atom:link href="http://vicker313.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vicker313.wordpress.com</link>
	<description>Technical tips about Linux, Oracle, Windows...</description>
	<lastBuildDate>Tue, 01 Dec 2009 00:00:43 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='vicker313.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/20c504a47a088a722387f097ee423a7f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>vicker313 tech blog</title>
		<link>http://vicker313.wordpress.com</link>
	</image>
			<item>
		<title>Tape Drive Hardware Compression</title>
		<link>http://vicker313.wordpress.com/2009/12/01/tape-drive-hardware-compression/</link>
		<comments>http://vicker313.wordpress.com/2009/12/01/tape-drive-hardware-compression/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 00:00:43 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[hardware compression]]></category>
		<category><![CDATA[mt]]></category>
		<category><![CDATA[Tape drive]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=319</guid>
		<description><![CDATA[Tape drive normally come with hardware compression feature. For example an LTO3 tape can store 400GB data with the hardware compression feature disabled, and able to store 800GB data with hardware compression feature enabled. Hardware compression is done at the tape drive, instead of using TAR or ZIP command.
By default, the hardware compression is enabled. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=319&subd=vicker313&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Tape drive normally come with hardware compression feature. For example an LTO3 tape can store 400GB data with the hardware compression feature disabled, and able to store 800GB data with hardware compression feature enabled. Hardware compression is done at the tape drive, instead of using TAR or ZIP command.</p>
<p>By default, the hardware compression is enabled. To disable it, you can issue command below:</p>
<p><code>mt -f /dev/st0 compress 0</code></p>
<p>To enable back the compression feature:</p>
<p><code>mt -f /dev/st0 compress 1</code></p>
<p>To disable the default option of hardware compression:</p>
<p><code>mt -f /dev/st0 defcompression -1</code></p>
<p>To enable back the default option:</p>
<p><code>mt -f /dev/st0 defcompression 1</code></p>
<p>Transfer rate is much higher with hardware compression enabled.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/319/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=319&subd=vicker313&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2009/12/01/tape-drive-hardware-compression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c5d76bf46dd7a1469743d64e2985647?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vicker313</media:title>
		</media:content>
	</item>
		<item>
		<title>Solve Gnome Desktop Missing Problem</title>
		<link>http://vicker313.wordpress.com/2009/11/28/solve-gnome-desktop-missing-problem/</link>
		<comments>http://vicker313.wordpress.com/2009/11/28/solve-gnome-desktop-missing-problem/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 00:00:04 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=325</guid>
		<description><![CDATA[Sometime after you do something on your Linux (such as distribution upgrade), your Gnome desktop will turn into black color and showing nothing. If you create anything on the black desktop, it will actually go to your home directory.
This indicates your desktop path is point to your home directory instead of your desktop directory, to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=325&subd=vicker313&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sometime after you do something on your Linux (such as distribution upgrade), your Gnome desktop will turn into black color and showing nothing. If you create anything on the black desktop, it will actually go to your home directory.</p>
<p>This indicates your desktop path is point to your home directory instead of your desktop directory, to solve this problem:</p>
<ol>
<li>Edit <code>~/.config/users.dirs.dirs</code> with your favorite editor (aware that <code>.config</code> is hidden).</li>
<li>Look for the keyword <code>XDG_DESKTOP_DIR</code>, it might point to <code>$HOME</code>. Edit it to <code>$HOME/Desktop</code>.<br />
<code>XDG_DESKTOP_DIR="$HOME/Desktop"</code></li>
<li>Log out and log in again to see the changes.</li>
</ol>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/325/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=325&subd=vicker313&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2009/11/28/solve-gnome-desktop-missing-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c5d76bf46dd7a1469743d64e2985647?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vicker313</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrade Ubuntu Platform from ISO without Burning a CD</title>
		<link>http://vicker313.wordpress.com/2009/11/21/upgrade-ubuntu-platform-from-iso-without-burning-a-cd/</link>
		<comments>http://vicker313.wordpress.com/2009/11/21/upgrade-ubuntu-platform-from-iso-without-burning-a-cd/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 00:00:38 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=322</guid>
		<description><![CDATA[Dozen of methods to upgrade Ubuntu Platform, either through Update Manager or through CD. Steps below show you how to upgrade Ubuntu Platform (for example from 9.04 to 9.10) from ISO without burning to CD:

Download the Alternate version of Ubuntu Installation CD from Ubuntu Official Website. The differences between Alternate version and the normal version [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=322&subd=vicker313&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Dozen of methods to upgrade Ubuntu Platform, either through Update Manager or through CD. Steps below show you how to upgrade Ubuntu Platform (for example from 9.04 to 9.10) from ISO without burning to CD:</p>
<ol>
<li>Download the Alternate version of Ubuntu Installation CD from <a title="Ubuntu Official Website" href="http://www.ubuntu.com" target="_blank">Ubuntu Official Website</a>. The differences between Alternate version and the normal version include:
<ol type="i">
<li>Alternate version doesn&#8217;t have Live CD features.</li>
<li>Alternate version is text based.</li>
<li>Alternate version has CD upgrade features (and the normal one does not have).</li>
</ol>
</li>
<li>Mount the ISO using command below (assume that the name of your ISO is <code>ubuntu-alternate.iso</code>, located at <code>/home/james</code> and the mount point you want to set is <code>/mnt/iso</code>)<br />
<code>mount -o loop /home/james/ubuntu-alternate.iso /mnt/iso</code></li>
<li>Change directory to <code>/mnt/iso</code><br />
<code>cd /mnt/iso</code></li>
<li>Run <code>cdromupgrade</code> as ROOT user (and key in your password) and continue with the upgrade.<br />
<code>sudo ./cdromupgrade</code></li>
</ol>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/322/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/322/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/322/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=322&subd=vicker313&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2009/11/21/upgrade-ubuntu-platform-from-iso-without-burning-a-cd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c5d76bf46dd7a1469743d64e2985647?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vicker313</media:title>
		</media:content>
	</item>
		<item>
		<title>Ultrium Tape Drive Performance Issue</title>
		<link>http://vicker313.wordpress.com/2009/11/14/ultrium-tape-drive-performance-issue/</link>
		<comments>http://vicker313.wordpress.com/2009/11/14/ultrium-tape-drive-performance-issue/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 00:00:32 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[ultrium tape drive]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=311</guid>
		<description><![CDATA[Recently I have setup a server to backup some data using Ultrium Tape Drive (Ultrium 960). The cartridge that I used was LTO3, able to store 800GB compressed data and 400GB uncompressed data. According to the specification, Ultrium Tape Drive was able to write  160MB data to tape in one second.
I installed a SCSI card [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=311&subd=vicker313&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I have setup a server to backup some data using <strong>Ultrium Tape Drive</strong> (Ultrium 960). The cartridge that I used was <strong>LTO3</strong>, able to store 800GB compressed data and 400GB uncompressed data. According to the specification, Ultrium Tape Drive was able to write  160MB data to tape in one second.</p>
<p>I installed a SCSI card to the server (PCI Express slot) and connected the tape drive to the server using a SCSI cable. First attempt was disappointed, the server cannot even detect the tape drive. Originally the server was <strong>Fedora Core 6</strong>, so I reinstalled it with <strong>Red Hat Enterprise 5.3</strong> and OK, server was able to detect the tape drive. Now I used a simple TAR command to backup the data:</p>
<p><code>tar cvf /dev/st0 /backup</code></p>
<p>However the writing speed is very slow (around 30MB/s), few times slower than what the specification mentioned. First I suspected the bottle net might be the PCI Express, but no since the transfer rate was more than 160MB according to Google. Than I tested out the transfer rate of the SATA hard disk and it was the bottle neck. I used command below to benchmark the transfer rate of the hard disk:</p>
<p><code>dd if=/dev/zero of=test.bin bs=1M count=1000</code></p>
<p>The command basically will write 1GB of dummy data to your hard disk, and it will summarize the time and transfer rate after it finished (you can remove the dummy data afterward). It turned out the transfer rate was way to slow for a SATA hard disk (it should be around 160MB/s, but it turned out to be 30MB/s). After some digging, I found out that the server is using <strong>RAID 5</strong>, which potentially will result a performance bottle neck. Once again, I reinstalled the server with <strong>RAID 0+1</strong>.</p>
<p>Now I ran again command above and the result was positive, around 350MB/s. However I tried out the TAR command to backup data to the Ultrium Tape Drive, it was still slow, around 40MB/s. Lastly I tried to use a different block size in the TAR command:</p>
<p><code>tar cvfb /dev/st0 128 /backup</code></p>
<p>Option <strong>b</strong> in the TAR command referred to <strong>block factor</strong>, which 1 block factor equal to 512 bytes. Since I am using 128 block factor, it will result block size of 64KB. The default block factor is 20, which the block size will be 10KB. At last the transfer rate seemed great, around 100MB/s. While reading from tape was around 150MB/s.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/311/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=311&subd=vicker313&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2009/11/14/ultrium-tape-drive-performance-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c5d76bf46dd7a1469743d64e2985647?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vicker313</media:title>
		</media:content>
	</item>
		<item>
		<title>Drop Data File from Oracle Database</title>
		<link>http://vicker313.wordpress.com/2009/11/07/drop-data-file-from-oracle-database/</link>
		<comments>http://vicker313.wordpress.com/2009/11/07/drop-data-file-from-oracle-database/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 01:29:42 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[data file]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=304</guid>
		<description><![CDATA[You want to start an Oracle Database, but fail because of 1 particular data file is missing (for some reason). And you want to drop the data file in order to start the database:

Log in SQLPLUS as SYSDBA
sqlplus / as sysdba
Start database in mount mode
start mount
Then remove the missing data file with statement below
alter database [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=304&subd=vicker313&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>You want to start an Oracle Database, but fail because of 1 particular data file is missing (for some reason). And you want to drop the data file in order to start the database:</p>
<ol>
<li>Log in SQLPLUS as SYSDBA<code><br />
sqlplus / as sysdba</code></li>
<li>Start database in mount mode<code><br />
start mount</code></li>
<li>Then remove the missing data file with statement below<code><br />
alter database datafile 'missing datafile' offline drop</code></li>
</ol>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/304/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/304/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/304/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=304&subd=vicker313&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2009/11/07/drop-data-file-from-oracle-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c5d76bf46dd7a1469743d64e2985647?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vicker313</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Oracle in Text Mode For Linux</title>
		<link>http://vicker313.wordpress.com/2009/11/01/install-oracle-in-text-mode-for-linux/</link>
		<comments>http://vicker313.wordpress.com/2009/11/01/install-oracle-in-text-mode-for-linux/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 01:22:19 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[install oracle]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[text mode]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=298</guid>
		<description><![CDATA[Basically Oracle Installer doesn&#8217;t support text mode installation, which the Oracle Universal Installer need to be run on GUI. So to install Oracle in machine with Linux without GUI:

Find another Linux machine with GUI (must be Linux, Windows will not work)
SSH to the machine (let&#8217;s say IP is 192.168.1.2) that you want to install Oracle, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=298&subd=vicker313&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Basically Oracle Installer doesn&#8217;t support text mode installation, which the Oracle Universal Installer need to be run on GUI. So to install Oracle in machine with Linux without GUI:</p>
<ol>
<li>Find another Linux machine with GUI (must be Linux, Windows will not work)</li>
<li>SSH to the machine (let&#8217;s say IP is 192.168.1.2) that you want to install Oracle, with the -X (X11 forward) option:<br />
<code>ssh -X oracle@192.168.1.2</code></li>
<li>Run the installer, and the OUI will run on the machine that you&#8217;re using (the one with GUI)<br />
<code>./runInstaller</code></li>
</ol>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/298/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=298&subd=vicker313&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2009/11/01/install-oracle-in-text-mode-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c5d76bf46dd7a1469743d64e2985647?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vicker313</media:title>
		</media:content>
	</item>
		<item>
		<title>Trace Oracle Database Transactions with LogMiner</title>
		<link>http://vicker313.wordpress.com/2009/10/28/trace-oracle-database-transactions-with-logminer/</link>
		<comments>http://vicker313.wordpress.com/2009/10/28/trace-oracle-database-transactions-with-logminer/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 00:54:21 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[archive log]]></category>
		<category><![CDATA[logminer]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=273</guid>
		<description><![CDATA[In Oracle file structure, there is one type of file called redo log file, which record down all the transactions done to the database. There will be a finite number of redo log files, which will keep on reusing the files in a Mary Go Round way. As the database is enabled with archived log, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=273&subd=vicker313&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In Oracle file structure, there is one type of file called redo log file, which record down all the transactions done to the database. There will be a finite number of redo log files, which will keep on reusing the files in a Mary Go Round way. As the database is enabled with archived log, the redo log file will be duplicated into a copy of archived log before it is being reused.</p>
<p>Aside from recovering purpose, archived log can also be served as a transaction tracking material. However the log itself is in binary form, which we need a utility called LogMiner to decode the log file.</p>
<ol>
<li>Before you can use LogMiner you need to install the package by executing the following SQL file as SYS user:<br />
<code>$ORACLE_HOME/rdbms/admin/dbmslm.sql</code></li>
<li>Then grant necessary privilege to user who can execute LogMiner package (Let&#8217;s say user James):<br />
<code>grant execute_catalog_role to james;</code></li>
<li>Then create synonym for the LogMiner package:<br />
<code>create public synonym dbms_logmnr for sys.dbms_logmnr;</code></li>
<li>You can query the list of archived log:<br />
<code>SELECT distinct member LOGFILENAME FROM V$LOGFILE;</code></li>
</ol>
<p>There is 2 ways to read the archived log, one is to read the archived log at the database with the archived log, or move the archived log to another database and read it there. To read the log at the same database:</p>
<ol>
<li>Check where is your archived log placed (you may check it from the parameter file <code>log_archive_dest</code>). Assume that it is <code>/u01/db/archive</code> and the log you want to encode is <code>123.arc</code>.</li>
<li>Run statement below to add the archived log to the dictionary:<code><br />
exec DBMS_LOGMNR.ADD_LOGFILE('/u01/db/archive/123.arc');</code></li>
<li>Then run statement below to start the LogMiner:<br />
<code>exec DBMS_LOGMNR.START_LOGMNR(options =&gt; dbms_logmnr.dict_from_online_catalog);</code></li>
</ol>
<p>To read the log at a different database:</p>
<ol>
<li>Move the archived logs to another database server (let&#8217;s say you placed in at <code>/u01/temp</code>)</li>
<li>Run statement below to build a data dictionary for the archived log (you can change the file and directory):<code><br />
exec dbms_logmnr.build('logmnr.dat','/u01/temp');</code></li>
<li>The run statement below to add the log file into the dictionary:<br />
<code>exec DBMS_LOGMNR.ADD_LOGFILE('/u01/temp/123.arc');</code></li>
<li>Start the LogMiner:<br />
<code>exec DBMS_LOGMNR.START_LOGMNR(dictfilename =&gt; '/u01/temp/logmnr.dat');</code></li>
</ol>
<p>Either way, you can query the log content through this view <code>v$logmnr_contents</code>. However the data in the view will be wiped off after you close the session, which mean you need to add the log file and start the LogMiner again in order to get back the data. Some useful columns include:</p>
<ol>
<li>username: database user used</li>
<li>timestamp: when it is happened</li>
<li>sql_redo: SQL statement of what actually been done</li>
<li>sql_undo: SQL statement to undo the transaction</li>
<li>scn: system change number, the unique id of this transaction</li>
<li>seg_type_name: object type</li>
<li>table_space: from which tablespace</li>
<li>session#</li>
<li>seg_owner: object owner</li>
<li>table_name: table name</li>
<li>operation: update, insert, delete, commit or rollback</li>
<li>session_info: include info such as from which machine</li>
</ol>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/273/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=273&subd=vicker313&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2009/10/28/trace-oracle-database-transactions-with-logminer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c5d76bf46dd7a1469743d64e2985647?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vicker313</media:title>
		</media:content>
	</item>
		<item>
		<title>Recover Strategy of Oracle Database with Archive Log Enabled</title>
		<link>http://vicker313.wordpress.com/2009/10/21/recover-strategy-of-oracle-database-with-archive-log-enabled/</link>
		<comments>http://vicker313.wordpress.com/2009/10/21/recover-strategy-of-oracle-database-with-archive-log-enabled/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 00:00:20 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[archive log]]></category>
		<category><![CDATA[recover]]></category>
		<category><![CDATA[tape catridge]]></category>
		<category><![CDATA[untar]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=270</guid>
		<description><![CDATA[After we setup the Backup Strategy, we need to prepare for recovering. Basically it involves 2 major steps: restore and recover.
Restore database simply means uncompress (such as UNTAR) the full backup from the backup tape:

Uncompressed the full backup from tape (assume the tape is known as /dev/st0)
tar xvf /dev/st0
Don&#8217;t try to start the database first [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=270&subd=vicker313&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After we setup the <a title="Backup Strategy of Oracle Database with Archived Log Enabled" href="http://vicker313.wordpress.com/2009/10/14/backup-strategy-of-oracle-database-with-archive-log-enabled/" target="_blank">Backup Strategy</a>, we need to prepare for recovering. Basically it involves 2 major steps: restore and recover.</p>
<p>Restore database simply means uncompress (such as UNTAR) the full backup from the backup tape:</p>
<ol>
<li>Uncompressed the full backup from tape (assume the tape is known as <code>/dev/st0</code>)<br />
<code>tar xvf /dev/st0</code></li>
<li>Don&#8217;t try to start the database first before you finish the next step, recovering database.</li>
</ol>
<p>Different between restore and recover is that: restore is directly extracted from a backup, while recover is rebuilding data of an outdated database (such as from a full backup) to a status of particular moment.</p>
<ol>
<li>Remove all the archived log in the archived log directory (assume it is <code>/u01/oracle/archive</code>)<br />
<code>rm -fv /u01/oracle/archive/*</code></li>
<li>Uncompressed the daily backup (which is the archived log) .<br />
<code>tar xvf /dev/st0</code></li>
<li>Start SQLPLUS as SYSDBA.<br />
<code>sqlplus / as sysdba</code></li>
<li>Start database in mount mode<br />
<code>startup mount;</code></li>
<li>In case you have problem in startup the database because of the parameter file is not set, issue the command below and try again:<br />
<code>create spfile from pfile = 'dest_of_your_parameter_file';</code></li>
<li>Then issue command below to start recover from archived log:<br />
<code>recover database using backup controlfile until cancel</code></li>
<li>It will keep asking for your comfirmation on the name of the archived log to be recovered. Either press <strong>Enter</strong>, the location of the archived log, or key in <strong>cancel</strong> to stop the recover.</li>
<li>After recover open the database by issuing command below, aware that you won&#8217;t able the continue recover the archived log after issue this command, or else you need to start all over again from restoring database:<br />
<code>alter database open resetlogs;</code></li>
<li>In case you face problem in open the database, add <code>_allow_resetlogs_corruption=true</code> to the parameter file, issue command below and try again.<br />
<code>create sp file from pfile = '</code><code>dest_of_your_parameter_file</code><code>';</code></li>
</ol>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/270/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=270&subd=vicker313&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2009/10/21/recover-strategy-of-oracle-database-with-archive-log-enabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c5d76bf46dd7a1469743d64e2985647?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vicker313</media:title>
		</media:content>
	</item>
		<item>
		<title>Backup Strategy of Oracle Database with Archived Log Enabled</title>
		<link>http://vicker313.wordpress.com/2009/10/14/backup-strategy-of-oracle-database-with-archive-log-enabled/</link>
		<comments>http://vicker313.wordpress.com/2009/10/14/backup-strategy-of-oracle-database-with-archive-log-enabled/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 03:03:56 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[archive log]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[tape catridge]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=267</guid>
		<description><![CDATA[Below is a backup strategy of Oracle Database with the conditions:

The database is Archived Log Enabled.
The database can be shutdown during weekend.

Archived log records down all the transactions that be performed in the database, which can serve as backup or trace log. It can even be backup when the database is up (hot backup). This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=267&subd=vicker313&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Below is a backup strategy of Oracle Database with the conditions:</p>
<ol>
<li>The database is Archived Log Enabled.</li>
<li>The database can be shutdown during weekend.</li>
</ol>
<p>Archived log records down all the transactions that be performed in the database, which can serve as backup or trace log. It can even be backup when the database is up (hot backup). This strategy is using Linux environment, but you may apply the method to other OS. It involves 2 parts: daily backup (the hot backup) and weekend backup (or full backup, cold backup):</p>
<p><strong>Daily Backup</strong>: AKA hot backup, which the backup is performed when database is up.</p>
<ol>
<li>This will be performed every night of weekday.</li>
<li>Identify where is your archived log placed (refer to <code>log_archive_dest</code> parameter in the parameter file).</li>
<li>Set CRON job to TAR all the archived log into Tape (assume <code>/dev/st0</code> is your tape drive and <code>/u01/oracle/archive</code> is your archive log directory):<br />
<code>tar cvf /dev/st0 /u01/oracle/archive</code></li>
<li>You may check the status of the Tape using command below:<br />
<code>mt status</code><br />
Try to install <code>mt-st</code> package in case the command is not installed.</li>
<li>To verify the content of the tape and save it as a log by using command below:<br />
<code>tar tvf /dev/st0 &gt; dailybackup.log<br />
</code></li>
</ol>
<p><strong>Weekend Backup</strong>: AKA cold backup because it is performed when the database is shutdown.</p>
<ol>
<li>This will be performed during weekend.</li>
<li>Shutdown the database (command might be different depend on your Oracle Environment Setting).<br />
<code>service dbora stop</code></li>
<li>TAR the whole database directory (assume <code>/u01/oracle</code> is where your database placed).<br />
<code>tar cvf /dev/st0 /u01/oracle</code></li>
<li>Verify the tape and save it as log.<br />
<code>tar tvf /dev/st0 &gt; fullbackup.log<br />
</code></li>
<li>Remove the archived log (or the archived log will getting more and more until take out all your spaces).<br />
<code>rm -fv /u01/oracle/archive/*</code></li>
<li>Start the database.<br />
<code>service dbora start</code></li>
</ol>
<p>Continue to <a title="Recover Strategy of Oracle Database with Archive Log Enabled" href="http://vicker313.wordpress.com/2009/10/21/recover-strategy-of-oracle-database-with-archive-log-enabled/" target="_blank">Recover Strategy</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=267&subd=vicker313&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2009/10/14/backup-strategy-of-oracle-database-with-archive-log-enabled/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c5d76bf46dd7a1469743d64e2985647?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vicker313</media:title>
		</media:content>
	</item>
		<item>
		<title>Create Search Engine Friendly URL at Apache</title>
		<link>http://vicker313.wordpress.com/2009/10/07/create-search-engine-friendly-url-at-apache/</link>
		<comments>http://vicker313.wordpress.com/2009/10/07/create-search-engine-friendly-url-at-apache/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 00:35:38 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[query string]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=263</guid>
		<description><![CDATA[URL Query String is the string append to the web page URL. For example http://www.google.com/search?q=url+query+string, the string after the question mark (?) is the query string.
Most of the surfers will not care about the URL, which they consider them as alien language. However it would be nice if the URL can be translated into something [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=263&subd=vicker313&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>URL Query String is the string append to the web page URL. For example <a href="http://www.google.com.my/search?q=url+query+string">http://www.google.com/search?q=url+query+string</a>, the string after the question mark (?) is the query string.</p>
<p>Most of the surfers will not care about the URL, which they consider them as <em>alien language</em>. However it would be nice if the URL can be translated into something more friendly to surfers, and most important to the search engine.</p>
<p>If your web server is Apache, you might follow the steps below to rewrite the URL (assume the folder of your website is <em>webdir</em> inside your document root):</p>
<ol>
<li>Enable the <em>rewrite module</em> in Apache. To do this, you need to edit the configuration file <em>conf\httpd.conf</em>.</li>
<li>Find the following line and uncomment it.<br />
<code>LoadModule rewrite_module modules/mod_rewrite.so</code></li>
<li>In some scenario, you need to set the <em>AllowOverride </em>parameter to <em>All</em> as well.<br />
<code> &lt;Directory "document roots"&gt;<br />
...<br />
AllowOverride All<br />
...<br />
&lt;/Directory&gt;<br />
</code></li>
<li>Then restart the server.</li>
<li>Create a file called <em>.htaccess</em> at <em>webdir</em>.</li>
<li>Add the following coding or sample to <em>.htaccess</em>.<br />
<code>RewriteEngine On<br />
RewriteBase /webdir/<br />
</code><br />
<code>RewriteRule index.html$ index.php [NC]<br />
RewriteRule index/([^/]+)$ index.php?a=$1 [NC]<br />
RewriteRule index/([^/]+)/([^/]+)$ index.php?a=$1&amp;b=$2 [NC]</code></li>
</ol>
<p>Now when you type:</p>
<ul>
<li>index.html, it will translate to index.php</li>
<li>index/category, it will translate to index.php?a=category</li>
<li>index/cateogory/linux, it will translate to index.php?a=category&amp;b=linux</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&blog=3267716&post=263&subd=vicker313&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2009/10/07/create-search-engine-friendly-url-at-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3c5d76bf46dd7a1469743d64e2985647?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vicker313</media:title>
		</media:content>
	</item>
	</channel>
</rss>