<?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>Mon, 16 Jan 2012 00:12:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vicker313.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>vicker313 tech blog</title>
		<link>http://vicker313.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vicker313.wordpress.com/osd.xml" title="vicker313 tech blog" />
	<atom:link rel='hub' href='http://vicker313.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Setup CRON job to Trigger an URL</title>
		<link>http://vicker313.wordpress.com/2011/11/26/setup-cron-job-to-trigger-an-url/</link>
		<comments>http://vicker313.wordpress.com/2011/11/26/setup-cron-job-to-trigger-an-url/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 11:42:03 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Cron]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=509</guid>
		<description><![CDATA[The following CRON script can be used to trigger an URL (example below is schedule to run every minute, for other schedule setting please refer to other CRON tutorial). 0 * * * * wget -q -O - http://www.example.com/notify.php &#62;/tmp/cron 2&#62;&#38;1 In Linux, wget is used to download file from internet (or network). -q option [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=509&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following CRON script can be used to trigger an URL (example below is schedule to run every minute, for other schedule setting please refer to other CRON tutorial).</p>
<p><code>0 * * * * wget -q -O - http://www.example.com/notify.php &gt;/tmp/cron 2&gt;&amp;1</code></p>
<p>In Linux, wget is used to download file from internet (or network). -q option means quiet, -O means output file. It is important to put the -O option so that your server won&#8217;t end up with annoying CRON output file.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/509/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/509/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vicker313.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vicker313.wordpress.com/509/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vicker313.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vicker313.wordpress.com/509/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/509/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/509/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/509/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=509&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2011/11/26/setup-cron-job-to-trigger-an-url/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>Make Tomcat Auto Start in Linux</title>
		<link>http://vicker313.wordpress.com/2011/08/12/make-tomcat-auto-start-in-linux/</link>
		<comments>http://vicker313.wordpress.com/2011/08/12/make-tomcat-auto-start-in-linux/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 23:50:01 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[service]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=498</guid>
		<description><![CDATA[Here is another method to install tomcat startup script in Linux (there is another method in my earlier post) Download tomcat and rename the file name from tomcat.doc to tomcat only (remove the extension) Put the file under /etc/inid.d Give execute privilege to the file (chmod +x /etc/init.d/tomcat) Adjust 2 parameters in the file, TOMCAT and JAVA_HOME. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=498&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is another method to install tomcat startup script in Linux (there is another method in my earlier <a title="Install Tomcat Startup Script in Linux" href="http://vicker313.wordpress.com/2010/01/21/install-tomcat-startup-script-in-linux/" target="_blank">post</a>)</p>
<ol>
<li>Download <a href="http://vicker313.files.wordpress.com/2011/08/tomcat.doc">tomcat</a> and rename the file name from tomcat.doc to tomcat only (remove the extension)</li>
<li>Put the file under /etc/inid.d</li>
<li>Give execute privilege to the file (chmod +x /etc/init.d/tomcat)</li>
<li>Adjust 2 parameters in the file, TOMCAT and JAVA_HOME.</li>
<li>Add the file into service list (chkconfig &ndash;&ndash;add tomcat)</li>
<li>Done!</li>
</ol>
<div>Now you can double check whether tomcat is inside your service list or not by using &#8220;chkconfig &ndash;&ndash;list tomcat&#8221;. To start or stop tomcat, simply &#8220;service tomcat start&#8221; and &#8220;service tomcat stop&#8221;.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/498/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/498/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/498/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/498/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vicker313.wordpress.com/498/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vicker313.wordpress.com/498/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vicker313.wordpress.com/498/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vicker313.wordpress.com/498/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/498/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/498/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/498/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/498/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/498/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/498/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=498&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2011/08/12/make-tomcat-auto-start-in-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>Copy or Move Oracle Database</title>
		<link>http://vicker313.wordpress.com/2011/06/11/copy-or-move-oracle-database/</link>
		<comments>http://vicker313.wordpress.com/2011/06/11/copy-or-move-oracle-database/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 04:18:44 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[move]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=494</guid>
		<description><![CDATA[Consider the following scenario: I got a oracle database that reside in /db/mydb. For some reason I need to copy or move the database to somewhere else, let&#8217;s say /db2/mydb2. To do this, follow the steps: Shutdown the database either using service or sql statement: shutdown immediate. Copy or move the database to /db2 and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=494&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Consider the following scenario: I got a oracle database that reside in <code>/db/mydb</code>. For some reason I need to copy or move the database to somewhere else, let&#8217;s say <code>/db2/mydb2</code>.</p>
<p>To do this, follow the steps:</p>
<ol>
<li>Shutdown the database either using service or sql statement: <code>shutdown immediate</code>.</li>
<li>Copy or move the database to <code>/db2</code> and rename the new database directory to <code>mydb2</code>.</li>
<li>Edit the initialize parameter file in the <code>mydb2</code> (something like initxxx.ora), change the all the paths to the new path (from <code>/db/mydb</code> to <code>/db2/mydb2</code>)</li>
<li>Log in to sqlplus with NOLOG (run in terminal): <code>sqlplus /nolog</code></li>
<li>Connect to empty instance (run in SQLPLUS): <code>connection / as sysdba</code></li>
<li>Create SPFILE, aware that the path of the initialize parameter file might be vary (run in SQLPLUS): <code>create spfile from pfile='/db2/mydb2/admin/pfile/initxxx.ora';</code></li>
<li>Start database in mount mode (run in SQLPLUS): <code>startup mount;</code></li>
<li>Change the data file path to the new path (run in SQLPLUS): <code>alter database rename file '/db/mydb/data.dbf', '/db/mydb/system.dbf' to '/db2/mydb2/data.dbf', '/db2/mydb2/system.dbf';</code></li>
<li>Ensure you change all the data file path! Or else it will cause the orginal database cannot be startup!</li>
<li>Open your database (run in SQLPLUS): <code>alter database open;</code></li>
<li>Now it is good to go.</li>
</ol>
<div>If you want to run both databases in the same time, you need to rename the new database. Follow the following steps:</div>
<div>
<ol>
<li><a title="Change Oracle 10g DB name in Linux" href="http://vicker313.wordpress.com/2009/04/27/change-oracle-10g-db-name-in-linux/" target="_blank">Rename the new database to mydb2</a></li>
<li>Remember to change the database name in <code>mydb2</code> parameter file as well.</li>
<li>Log into SQLPLUS. At this point, you need to aware the <code>SID_NAME</code> in your environment parameter, need to be point to the database that you want to log in. Now we want to log in to the original, so we set the <code>SID_NAME</code> to <code>mydb</code> (terminal): <code>export SID_NAME=mydb</code></li>
<li>Connect to empty instance (SQLPLUS): <code>connect / as sysdba</code></li>
<li>Create the SPFILE again using the original parameter file (SQLPLUS): <code>create spfile from pfile='/db/mydb/admin/pfile/initxxx.ora';</code></li>
<li>Now you should able to start your database (SQLPLUS): <code>startup</code></li>
</ol>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vicker313.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vicker313.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vicker313.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vicker313.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/494/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/494/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/494/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=494&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2011/06/11/copy-or-move-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>Recover Root Password in RHEL6</title>
		<link>http://vicker313.wordpress.com/2011/06/08/recover-root-password-in-rhel6/</link>
		<comments>http://vicker313.wordpress.com/2011/06/08/recover-root-password-in-rhel6/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 14:59:43 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[RHEL6]]></category>
		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=485</guid>
		<description><![CDATA[There are a lot of guide lines on recovering ROOT password in a Red Hat or Fedora, by entering single user mode and change the ROOT password using passwd command. However the trick isn&#8217;t work in RHEL 6 any more, where issuing the passwd command in single user mode will not prompt you to enter [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=485&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are a lot of guide lines on recovering ROOT password in a Red Hat or Fedora, by entering single user mode and change the ROOT password using <code>passwd</code> command. However the trick isn&#8217;t work in RHEL 6 any more, where issuing the <code>passwd</code> command in single user mode will not prompt you to enter the new password.</p>
<p>Here is a trick where I discover in order to recover the ROOT password in RHEL6.</p>
<ol>
<li>First enter single user mode. To do this, boot your machine and wait until the message to enter GRUB (the one with a counter). Press any key to enter GRUB, then press e to edit the boot argument. Just append the word single at the back of the arguments and press enter to continue boot.</li>
<li>You should enter single user mode, with the root prompt. Instead of using entering only <code>passwd</code>, enter the following command:<code>passwd -d root</code></li>
<li>&#8220;-d&#8221; is meant for making the password blank. Now your root password should be blank. Reboot your machine and change your ROOT password.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vicker313.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vicker313.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vicker313.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vicker313.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/485/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=485&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2011/06/08/recover-root-password-in-rhel6/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>Rebuild Partition after Change Hard Disk in Disk Array of HPUX Machine</title>
		<link>http://vicker313.wordpress.com/2011/06/08/rebuild-partition-after-change-hard-disk-in-disk-array-of-hpux-machine/</link>
		<comments>http://vicker313.wordpress.com/2011/06/08/rebuild-partition-after-change-hard-disk-in-disk-array-of-hpux-machine/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 14:38:25 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[HPUX]]></category>
		<category><![CDATA[armdiscover]]></category>
		<category><![CDATA[armdsp]]></category>
		<category><![CDATA[vgreduce]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=482</guid>
		<description><![CDATA[A little experience on dealing with Disk Array in HPUX machine to be shared. It is happened at an old HPUX machine with disk array attached. After 2 of the hard disks in the disk array are being replaced, the new hard disks cannot be seen in SAM. To discover back the missing hard disks, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=482&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A little experience on dealing with Disk Array in HPUX machine to be shared.</p>
<p>It is happened at an old HPUX machine with disk array attached. After 2 of the hard disks in the disk array are being replaced, the new hard disks cannot be seen in SAM. To discover back the missing hard disks, issue the following command:</p>
<p><code>armdiscover &lt;array alias&gt;</code></p>
<p>After the command, you should able to see the hard disks in SAM, and even can see the unmounted partitions. However you wouldn&#8217;t able to do anything with it, either mount it, remove it or recreate it. You should get some errors like &#8220;can&#8217;t find /dev/dsk/cxtxdx&#8221;. Then issue the following command:</p>
<p><code>armdsp -s &lt;array alias&gt;</code></p>
<p>This command will show the hard disks path in the disk array. You will see that the path is not the same inside the error. The unmounted partitions are actually still referring to the old hard disk path, where you need to remove it using the following command:</p>
<p><code>vgreduce -l /dev/vgxx /dev/dsk/cxtxdx</code></p>
<p>You must include &#8220;-l&#8221; in the command to remove the missing path. After that you need to add back the actual hard disk path either using SAM or <code>vgextend</code> command, and everything should be back to normal.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/482/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/482/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/482/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/482/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vicker313.wordpress.com/482/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vicker313.wordpress.com/482/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vicker313.wordpress.com/482/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vicker313.wordpress.com/482/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/482/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/482/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/482/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/482/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/482/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/482/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=482&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2011/06/08/rebuild-partition-after-change-hard-disk-in-disk-array-of-hpux-machine/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>Turn on MYSQL Trace Feature</title>
		<link>http://vicker313.wordpress.com/2011/04/08/turn-on-mysql-trace-feature/</link>
		<comments>http://vicker313.wordpress.com/2011/04/08/turn-on-mysql-trace-feature/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 06:34:02 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[general_log]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=479</guid>
		<description><![CDATA[To turn on MySQL trace feature, simply issue following command in MySQL console (OFF to turn off) SET GLOBAL general_log = 'ON'; Or add following option to MySQL start up command (to turn off use 0): mysqld --general_log=1 You can find the trace log at the database folder. The file name is something like host_name.log.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=479&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To turn on MySQL trace feature, simply issue following command in MySQL console (OFF to turn off)</p>
<p><code>SET GLOBAL general_log = 'ON';</code></p>
<p>Or add following option to MySQL start up command (to turn off use 0):</p>
<p><code>mysqld --general_log=1</code></p>
<p>You can find the trace log at the database folder. The file name is something like host_name.log.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vicker313.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vicker313.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vicker313.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vicker313.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/479/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=479&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2011/04/08/turn-on-mysql-trace-feature/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>Setup Customized User Access Trace Log in Oracle Database</title>
		<link>http://vicker313.wordpress.com/2011/04/08/setup-customized-user-access-trace-log-in-oracle-database/</link>
		<comments>http://vicker313.wordpress.com/2011/04/08/setup-customized-user-access-trace-log-in-oracle-database/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 06:26:34 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[trigger]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=473</guid>
		<description><![CDATA[Here is a simple way to trace user access (log in and log out) in Oracle, by using trigger and table. Create a trace log table. For example: CREATE TABLE TRACELOG ( SESSION_ID NUMBER(20), SESSION_USER VARCHAR2(30 BYTE), OS_USER VARCHAR2(30 BYTE), HOST VARCHAR2(30 BYTE), IP_ADDRESS VARCHAR2(30 BYTE), TERMINAL VARCHAR2(30 BYTE), MODULE VARCHAR2(30 BYTE), LAST_ACTION VARCHAR2(32 BYTE), [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=473&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a simple way to trace user access (log in and log out) in Oracle, by using trigger and table.</p>
<ol>
<li>Create a trace log table. For example:
<pre>CREATE TABLE TRACELOG
(
   SESSION_ID        NUMBER(20),
   SESSION_USER      VARCHAR2(30 BYTE),
   OS_USER           VARCHAR2(30 BYTE),
   HOST              VARCHAR2(30 BYTE),
   IP_ADDRESS        VARCHAR2(30 BYTE),
   TERMINAL          VARCHAR2(30 BYTE),
   MODULE            VARCHAR2(30 BYTE),
   LAST_ACTION       VARCHAR2(32 BYTE),
   LAST_ACTION_DATE  DATE,
   LOGON_DATE        DATE,
   LOGOFF_DATE       DATE
)</pre>
</li>
<li>Grand privilege to public to update the TRACELOG table
<pre>GRANT INSERT, UPDATE, SELECT ON TEMP_TRACE TO PUBLIC;</pre>
</li>
<li>Create Log On Trigger. For example:
<pre>CREATE OR REPLACE TRIGGER on_logon_trigger
after logon on database
begin
   insert into tracelog(session_id, session_user, os_user, host, ip_address, terminal, module, logon_date)
   SELECT sys_context('USERENV', 'sessionid'),
   user,
   sys_context('USERENV', 'os_user'),
   sys_context('USERENV', 'host'),
   sys_context('USERENV', 'ip_address'),
   sys_context('USERENV', 'terminal'),
   sys_context('USERENV', 'module'),
   sysdate
   FROM dual;
   commit;
end;</pre>
</li>
<li>Create Log Off Trigger. For example:
<pre>CREATE OR REPLACE TRIGGER on_logoff_trigger
before logoff on database
begin
   update tracelog
   set logoff_date = sysdate
   where session_id = sys_context('USERENV', 'sessionid')
   and logoff_date is null;
   commit;
end;</pre>
</li>
</ol>
<p>Now you can trace user access by querying the TRACELOG table.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vicker313.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vicker313.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vicker313.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vicker313.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/473/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=473&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2011/04/08/setup-customized-user-access-trace-log-in-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>How Flashing in Android Works?</title>
		<link>http://vicker313.wordpress.com/2011/02/19/how-flashing-in-android-works/</link>
		<comments>http://vicker313.wordpress.com/2011/02/19/how-flashing-in-android-works/#comments</comments>
		<pubDate>Sat, 19 Feb 2011 13:00:15 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=467</guid>
		<description><![CDATA[After rooting your Android phone, flashing is just a piece of cake. Put your new android installation file in SD Card (it will be in ZIP file) Boot your phone in Recover Tool Do a Backup, just in case (it will backup everything inside your internal memory) Wipe your phone internal memory (normally MUST if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=467&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After rooting your Android phone, flashing is just a piece of cake.</p>
<ol>
<li>Put your new android installation file in SD Card (it will be in ZIP file)</li>
<li>Boot your phone in Recover Tool</li>
<li>Do a Backup, just in case (it will backup everything inside your internal memory)</li>
<li>Wipe your phone internal memory (normally MUST if you are flashing a completely different Android, but if it is upgrade or downgrade of the same Android, probably can skip)</li>
<li>Then install zip file from SD Card</li>
<li>Reboot and done</li>
</ol>
<p>The only painful thing of flashing is that you might need to reconfigure everything and install back what application you want (just like format a PC). So the more tricky part is to pick the correct one. You can only know this version of Android is your favorite or not until you use it, and switching between different Android is troublesome.</p>
<p>The customized Android is roughly divided by 2 types: Android with HTC Sense UI, and Android with AOSP UI. After choosing the UI that you want, then choose the version based on the application that come with it.</p>
<p>Some major player of customized Android include cyanogenmod, defrost, oxygen and some more.</p>
<p><a href="https://spreadsheets.google.com/ccc?key=0As0sg9AKQwCpdHRIcjNKbGZIUVk1VE9mYjVJNENnTHc&amp;hl=fr&amp;authkey=CJ3e6NQB&amp;pli=1#gid=0" target="_blank">My favorite comparison chart on customized Android</a></p>
<p><a title="Basic Understanding on How Android Works" href="http://vicker313.wordpress.com/2011/02/19/basic-understanding-on-how-android-works/" target="_blank">Basic Understanding on How Android Works</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vicker313.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vicker313.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vicker313.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vicker313.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/467/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=467&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2011/02/19/how-flashing-in-android-works/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>Basic Understanding on How Android Works</title>
		<link>http://vicker313.wordpress.com/2011/02/19/basic-understanding-on-how-android-works/</link>
		<comments>http://vicker313.wordpress.com/2011/02/19/basic-understanding-on-how-android-works/#comments</comments>
		<pubDate>Sat, 19 Feb 2011 12:35:21 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=464</guid>
		<description><![CDATA[Playing with my new Android Smart Phone for 3 months, from rooting, to ROM flashing, then S-OFF, I have roughly came out with some basic understanding on how Android really works. Following are based on my experiences, some might based on some references, and might have some misunderstanding. Anything not right feel free to comment. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=464&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Playing with my new Android Smart Phone for 3 months, from rooting, to ROM flashing, then S-OFF, I have roughly came out with some basic understanding on how Android really works. Following are based on my experiences, some might based on some references, and might have some misunderstanding. Anything not right feel free to comment.</p>
<p><strong>Android is Linux</strong></p>
<p>This might be obvious but I point this out any way. So if you browse the file system using any file manager, you can see the file structure is following Linux style: /system, /data, /cache, /mnt and some more. Since it is Linux, Android is using EXT as hard disk format (Froyo using EXT3 while Gingerbread using EXT4).</p>
<p><strong>ROM, Internal Memory, Memory and SD Card</strong></p>
<p>We always heard of flashing ROM in Android, which the term is not exactly correct. Most of the time we are actually flashing the internal memory. Like a PC, Android boots from HBOOT (equivalent to BIOS) that stay at ROM, then loads the system files from Internal Memory, and lastly loads any applications that installed to SD Card.</p>
<p>Not sure what kind of format is used in ROM, but roughly it is partitioned into few partitions like HBOOT, RECOVERY and SPLASH1</p>
<p>Internal Memory is definitely in EXT format that partitioned into few partitions as well. The main partitions are SYSTEM (basically where Android files stay), CACHE and DATA (where application installed). So if you check the Internal Memory size from Settings, you might be confused by the size of it (much lower than the specification). Actually the size showed is the size of DATA partition, while the rest of the size is used by other partitions.</p>
<p>Lastly SD Card is in FAT format.</p>
<p><strong>Rooting, Recovering and Flashing</strong></p>
<p>Rooting in Android is more than gaining back the root privilege. In order to protect the phone from user, manufacturer puts a lot of security features to the ROM and Internal Memory. So rooting is actually mean disable the security features.</p>
<p>Aside from disable the security, rooting also includes step to install a recover tools in ROM. By using the recover tools, user can flash the internal memory with other version of Android (just boot into HBOOT and select to boot from recover, like multi boot in PC).</p>
<p><a title="Unrevoked" href="http://unrevoked.com/" target="_blank">Unrevoked</a> provides tool to do rooting for HTC.</p>
<p><strong>S-OFF and Repartition</strong></p>
<p>However flashing the internal memory only put in the new system files, but it cannot repartition it (you might want to have a bigger size of DATA partition to install more application). To do repartition, we need to do S-OFF and patch HBOOT. After S-OFF and the patching, we now can have the options to repartition by flashing HBOOT in ROM.</p>
<p><a title="AlphaRev" href="http://alpharev.nl/" target="_blank">AlphaRev</a> provides tool to do S-OFF and repartition for HTC.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vicker313.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vicker313.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vicker313.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vicker313.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/464/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/464/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/464/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=464&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2011/02/19/basic-understanding-on-how-android-works/feed/</wfw:commentRss>
		<slash:comments>1</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>Setup SSL Certificate at Tomcat</title>
		<link>http://vicker313.wordpress.com/2010/12/23/setup-ssl-certificate-at-tomcat/</link>
		<comments>http://vicker313.wordpress.com/2010/12/23/setup-ssl-certificate-at-tomcat/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 01:12:55 +0000</pubDate>
		<dc:creator>vicker313</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://vicker313.wordpress.com/?p=459</guid>
		<description><![CDATA[The method here is to implement CA certified SSL certificate in Tomcat Service. Generate a key store file using keytool utility (installed together with JDK). It will ask for a password to generate the key store file. keytool -genkey -alias &#60;any alias name&#62; -keyalg RSA -keystore &#60;output file&#62; For example: keytool -genkey -alias tomcat -keyalg [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=459&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The method here is to implement CA certified SSL certificate in Tomcat Service.</p>
<ol>
<li>Generate a key store file using keytool utility (installed together with JDK). It will ask for a password to generate the key store file.<br />
<code>keytool -genkey -alias &lt;any alias name&gt; -keyalg RSA -keystore &lt;output file&gt;</code><br />
For example:<br />
<code>keytool -genkey -alias tomcat -keyalg RSA -keystore tomcat.key</code></li>
<li>Generate a certificate request file.<br />
<code>keytool -certreq -keyalg RSA -alias &lt;alias&gt; -file &lt;output file&gt; -keystore &lt;keystore file&gt;</code><br />
Example:<br />
<code>keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr -keystore tomcat.key</code></li>
<li>Then submit the certificate request to your CA. Normally you just need to submit the content of the request file.</li>
<li>As a result you will get the content of the certificate. Copy the content and save it as a certificate file (for example tomcat.cer)</li>
<li>For some CA (like Thawte), you need to download the CA trusted certificate from the their website in order to complete the implementation (EV_Root.cer and EV_intermediate.cer)</li>
<li>Finally import the certificates using command below:<br />
<code>keytool -import -alias &lt;alias name&gt; -keystore &lt;keystore file&gt; -trustcacerts -file &lt;certificate&gt;</code><br />
For example:<br />
<code>keytool -import -alias EV_Root -keystore online.key -trustcacerts -file EV_Root.cer<br />
keytool -import -alias EV_intermediate -keystore online.key -trustcacerts -file EV_intermediate.cer<br />
keytool -import -alias tomcat -keystore tomcat.key -trustcacerts -file tomcat.cer</code></li>
</ol>
<p>Some <a title="Exporting the Private Key from a JKS keystore" href="http://www.anandsekar.com/2006/01/19/exporting-the-private-key-from-a-jks-keystore/" target="_blank">references </a>to retrieve private key from the key store that you generate.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vicker313.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vicker313.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vicker313.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vicker313.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vicker313.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vicker313.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vicker313.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vicker313.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vicker313.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vicker313.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vicker313.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vicker313.wordpress.com/459/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vicker313.wordpress.com/459/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vicker313.wordpress.com/459/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vicker313.wordpress.com&amp;blog=3267716&amp;post=459&amp;subd=vicker313&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vicker313.wordpress.com/2010/12/23/setup-ssl-certificate-at-tomcat/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>
