<?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/"
	>

<channel>
	<title>naroah.com</title>
	<atom:link href="http://www.naroah.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.naroah.com</link>
	<description>naroah is haoran</description>
	<lastBuildDate>Sun, 01 Jan 2012 05:59:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<!-- added to the content header -->	<item>
		<title>2012,新的一年</title>
		<link>http://www.naroah.com/2012%e6%96%b0%e7%9a%84%e4%b8%80%e5%b9%b4/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=2012%25e6%2596%25b0%25e7%259a%2584%25e4%25b8%2580%25e5%25b9%25b4</link>
		<comments>http://www.naroah.com/2012%e6%96%b0%e7%9a%84%e4%b8%80%e5%b9%b4/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 05:53:31 +0000</pubDate>
		<dc:creator>naroah</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.naroah.com/?p=219</guid>
		<description><![CDATA[<p><p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>新年占位。祝愿我们在新的一年里都能心想事成;-) 随机文章2011 年 1 月 11 日 - Oracle 使用exp/imp导入导出注意事项 (0)2011 年 5 月 18 日 - install vmware-player on sabayon linux (1)2011 年 2 月 15 日 - Oracle分区表move table partitions (0)2011 年 2 月 18 日 - Oracle Linux 6尝鲜 (0)2011 年 2 月 15 日 - 分享几张Oracle架构图片 (0)2011 年 4 月 1 [...]</p></p><p><a href="http://www.naroah.com/2012%e6%96%b0%e7%9a%84%e4%b8%80%e5%b9%b4/">2012,新的一年</a></p>]]></description>
			<content:encoded><![CDATA[<p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>新年占位。祝愿我们在新的一年里都能心想事成;-)</p>
<h2 >随机文章</h2><ul><li>2011 年 1 月 17 日 - <a href="http://www.naroah.com/meditation/" title="冥想">冥想</a> (0)</li><li>2011 年 2 月 15 日 - <a href="http://www.naroah.com/oracle-architecture-images/" title="分享几张Oracle架构图片">分享几张Oracle架构图片</a> (0)</li><li>2010 年 12 月 31 日 - <a href="http://www.naroah.com/newyear-2011-open/" title="2011新年开篇">2011新年开篇</a> (0)</li><li>2011 年 4 月 1 日 - <a href="http://www.naroah.com/gentoo-linux-ibus-sunpinyin-setup/" title="Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置">Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置</a> (0)</li><li>2011 年 1 月 28 日 - <a href="http://www.naroah.com/wm_concat-return-clob/" title="wmsys.wm_concat函数返回CLOB类型">wmsys.wm_concat函数返回CLOB类型</a> (0)</li><li>2011 年 11 月 29 日 - <a href="http://www.naroah.com/tns-12543/" title="TNS-12543: TNS:destination host unreachable">TNS-12543: TNS:destination host unreachable</a> (0)</li><li>2011 年 11 月 25 日 - <a href="http://www.naroah.com/wordpress-memory-limit/" title="WordPress Memory Limit问题">WordPress Memory Limit问题</a> (0)</li><li>2011 年 4 月 2 日 - <a href="http://www.naroah.com/send-html-email-using-plsql/" title="使用PLSQL发送HTML邮件">使用PLSQL发送HTML邮件</a> (0)</li></ul><p><a href="http://www.naroah.com/2012%e6%96%b0%e7%9a%84%e4%b8%80%e5%b9%b4/">2012,新的一年</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.naroah.com/2012%e6%96%b0%e7%9a%84%e4%b8%80%e5%b9%b4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下开发测试环境的部署</title>
		<link>http://www.naroah.com/deploy-oracle-or-lamp-under-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=deploy-oracle-or-lamp-under-linux</link>
		<comments>http://www.naroah.com/deploy-oracle-or-lamp-under-linux/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 08:26:40 +0000</pubDate>
		<dc:creator>naroah</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[oraToolKit]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[开发环境]]></category>

		<guid isPermaLink="false">http://www.naroah.com/linux%e4%b8%8b%e5%bc%80%e5%8f%91%e6%b5%8b%e8%af%95%e7%8e%af%e5%a2%83%e7%9a%84%e9%83%a8%e7%bd%b2/</guid>
		<description><![CDATA[<p><p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>有时候为了学习或者测试的用途，我经常需要在虚拟机(感谢虚拟机的发明)安装操作系统和相应的软件，非常耗时并且没有一点乐趣。 自己也曾想过写个自动化的脚本，手头上也有一些简便的代码，可是总不成系统，而安装时仍不是很方便。现在好了，通过强大的Google(感谢google.com)，让我找到了非常好用的脚本（感谢互联网和这些脚本作者），现在搭建开发测试环境简直是傻瓜操作了，终于解放了。 以下列几个找到的很方便的工具脚本： Oracle数据库的安装 oraToolKit &#8211; The Swiss Army Knife for Oracle (针对RHEL系) LNMP和LAMP环境的搭建TuxLite Nginx和TuxLite Apache (针对Debian系) 真的是很省力啊!!!分享一下，也让需要的同学省点时间搜索。 相关文章2011 年 4 月 2 日 - 使用PLSQL发送HTML邮件 (0)2011 年 3 月 7 日 - 一句SQL解5*5棋盘难题 (2)2011 年 3 月 3 日 - ORA-00845: MEMORY_TARGET not supported on this system (0)2011 年 3 月 3 日 - [...]</p></p><p><a href="http://www.naroah.com/deploy-oracle-or-lamp-under-linux/">Linux下开发测试环境的部署</a></p>]]></description>
			<content:encoded><![CDATA[<p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>有时候为了学习或者测试的用途，我经常需要在虚拟机(感谢虚拟机的发明)安装操作系统和相应的软件，非常耗时并且没有一点乐趣。</p>
<p>自己也曾想过写个自动化的脚本，手头上也有一些简便的代码，可是总不成系统，而安装时仍不是很方便。现在好了，通过强大的Google(感谢google.com)，让我找到了非常好用的脚本（感谢互联网和这些脚本作者），现在搭建开发测试环境简直是傻瓜操作了，终于解放了。</p>
<p>以下列几个找到的很方便的工具脚本：</p>
<p>Oracle数据库的安装 <a class="external" href="https://www.oratoolkit.ch/" target="_blank">oraToolKit &#8211; The Swiss Army Knife for Oracle</a> (针对RHEL系)</p>
<p>LNMP和LAMP环境的搭建<a class="external" href="http://tuxlite.com/download/" target="_blank">TuxLite Nginx和TuxLite Apache</a> (针对Debian系)</p>
<p>真的是很省力啊!!!分享一下，也让需要的同学省点时间搜索。</p>
<h2 >相关文章</h2><ul><li>2011 年 4 月 2 日 - <a href="http://www.naroah.com/send-html-email-using-plsql/" title="使用PLSQL发送HTML邮件">使用PLSQL发送HTML邮件</a> (0)</li><li>2011 年 3 月 7 日 - <a href="http://www.naroah.com/sql-soloving-problems-1/" title="一句SQL解5*5棋盘难题">一句SQL解5*5棋盘难题</a> (2)</li><li>2011 年 3 月 3 日 - <a href="http://www.naroah.com/ora-00845-memory_target-not-supported-on-this-system/" title="ORA-00845: MEMORY_TARGET not supported on this system">ORA-00845: MEMORY_TARGET not supported on this system</a> (0)</li><li>2011 年 3 月 3 日 - <a href="http://www.naroah.com/oel6-installoracle11gr2/" title="OEL6 安装Oracle11gR2">OEL6 安装Oracle11gR2</a> (2)</li><li>2011 年 1 月 28 日 - <a href="http://www.naroah.com/wm_concat-return-clob/" title="wmsys.wm_concat函数返回CLOB类型">wmsys.wm_concat函数返回CLOB类型</a> (0)</li><li>2011 年 1 月 19 日 - <a href="http://www.naroah.com/ora-12805/" title="ORA-12805:parallel query server died unexpectedly">ORA-12805:parallel query server died unexpectedly</a> (0)</li><li>2011 年 1 月 11 日 - <a href="http://www.naroah.com/oracle-exp-and-imp-usage-notice/" title="Oracle 使用exp/imp导入导出注意事项">Oracle 使用exp/imp导入导出注意事项</a> (0)</li></ul><p><a href="http://www.naroah.com/deploy-oracle-or-lamp-under-linux/">Linux下开发测试环境的部署</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.naroah.com/deploy-oracle-or-lamp-under-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TNS-12543: TNS:destination host unreachable</title>
		<link>http://www.naroah.com/tns-12543/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tns-12543</link>
		<comments>http://www.naroah.com/tns-12543/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 03:30:27 +0000</pubDate>
		<dc:creator>naroah</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[Oracle Linux 6]]></category>
		<category><![CDATA[Oracle11gR2]]></category>
		<category><![CDATA[TNS-12543]]></category>

		<guid isPermaLink="false">http://www.naroah.com/tns-12543-tnsdestination-host-unreachable/</guid>
		<description><![CDATA[<p><p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>Oracle Linux 6 上面安装了Oracle 11g R2，在服务器上tnsping，没有问题， 但是在客户机上tnsping的时候却遇到TNS-12543: TNS:destination host unreachable的错误， 检查服务器端listener配置没有问题，而且最近客户机终端登录连接时间过长，因此怀疑是Linux上iptables在起作用。 因为是自己开发测试用的服务器，所以果断在服务器上关闭iptables： chkconfig --level 12345 iptables off chkconfig --level 12345 ip6tables off 然后再测试，果然，问题解决 相关文章2011 年 3 月 3 日 - OEL6 安装Oracle11gR2 (2)2011 年 2 月 18 日 - Oracle Linux 6尝鲜 (0)</p></p><p><a href="http://www.naroah.com/tns-12543/">TNS-12543: TNS:destination host unreachable</a></p>]]></description>
			<content:encoded><![CDATA[<p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>Oracle Linux 6 上面安装了Oracle 11g R2，在服务器上tnsping，没有问题，</p>
<p>但是在客户机上tnsping的时候却遇到TNS-12543: TNS:destination host unreachable的错误，</p>
<p>检查服务器端listener配置没有问题，而且最近客户机终端登录连接时间过长，因此怀疑是Linux上iptables在起作用。</p>
<p>因为是自己开发测试用的服务器，所以果断在服务器上关闭iptables：</p>
<pre>chkconfig --level 12345 iptables off
chkconfig --level 12345 ip6tables off</pre>
<p>然后再测试，果然，问题解决</p>
<h2 >相关文章</h2><ul><li>2011 年 3 月 3 日 - <a href="http://www.naroah.com/oel6-installoracle11gr2/" title="OEL6 安装Oracle11gR2">OEL6 安装Oracle11gR2</a> (2)</li><li>2011 年 2 月 18 日 - <a href="http://www.naroah.com/oracle-linux-6/" title="Oracle Linux 6尝鲜">Oracle Linux 6尝鲜</a> (0)</li></ul><p><a href="http://www.naroah.com/tns-12543/">TNS-12543: TNS:destination host unreachable</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.naroah.com/tns-12543/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Memory Limit问题</title>
		<link>http://www.naroah.com/wordpress-memory-limit/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-memory-limit</link>
		<comments>http://www.naroah.com/wordpress-memory-limit/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 07:50:52 +0000</pubDate>
		<dc:creator>naroah</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 3.2.1]]></category>
		<category><![CDATA[WordPress Memory Limit]]></category>

		<guid isPermaLink="false">http://www.naroah.com/blog/wordpress-memory-limit%e9%97%ae%e9%a2%98/</guid>
		<description><![CDATA[<p><p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>今天登陆控制面板的时候突然间报错Fatal error: Allowed memory size of 33554432 bytes exhausted， Google了一下，针对我使用的WordPress 3.2.1版本，修改/wordpress/wp-includes/default-constants.php即可解决。 将如下内容: function wp_initial_constants( ) { global $blog_id; // set memory limits if ( !defined('WP_MEMORY_LIMIT') ) { if( is_multisite() ) { define('WP_MEMORY_LIMIT', '64M'); } else { define('WP_MEMORY_LIMIT', '32M'); } } 修改为: function wp_initial_constants( ) { global $blog_id; // set memory limits if ( !defined('WP_MEMORY_LIMIT') ) [...]</p></p><p><a href="http://www.naroah.com/wordpress-memory-limit/">WordPress Memory Limit问题</a></p>]]></description>
			<content:encoded><![CDATA[<p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>今天登陆控制面板的时候突然间报错Fatal error: Allowed memory size of 33554432 bytes exhausted，<br />
Google了一下，针对我使用的WordPress 3.2.1版本，修改/wordpress/wp-includes/default-constants.php即可解决。<br />
<span id="more-209"></span><br />
将如下内容:</p>
<pre>function wp_initial_constants( ) {
	global $blog_id;

	// set memory limits
	if ( !defined('WP_MEMORY_LIMIT') ) {
		if( is_multisite() ) {
			define('WP_MEMORY_LIMIT', '64M');
		} else {
			define('WP_MEMORY_LIMIT', '32M');
		}
	}</pre>
<p>修改为:</p>
<pre>function wp_initial_constants( ) {
	global $blog_id;

	// set memory limits
	if ( !defined('WP_MEMORY_LIMIT') ) {
		if( is_multisite() ) {
			define('WP_MEMORY_LIMIT', '128M');
		} else {
			define('WP_MEMORY_LIMIT', '64M');
		}
	}</pre>
<h2 >随机文章</h2><ul><li>2011 年 11 月 29 日 - <a href="http://www.naroah.com/tns-12543/" title="TNS-12543: TNS:destination host unreachable">TNS-12543: TNS:destination host unreachable</a> (0)</li><li>2011 年 1 月 7 日 - <a href="http://www.naroah.com/talking-about-things/" title="说事">说事</a> (0)</li><li>2011 年 2 月 15 日 - <a href="http://www.naroah.com/oracle-move-table-partitions/" title="Oracle分区表move table partitions">Oracle分区表move table partitions</a> (0)</li><li>2011 年 2 月 18 日 - <a href="http://www.naroah.com/oracle-linux-6/" title="Oracle Linux 6尝鲜">Oracle Linux 6尝鲜</a> (0)</li><li>2011 年 3 月 3 日 - <a href="http://www.naroah.com/oel6-installoracle11gr2/" title="OEL6 安装Oracle11gR2">OEL6 安装Oracle11gR2</a> (2)</li><li>2011 年 3 月 7 日 - <a href="http://www.naroah.com/sql-soloving-problems-1/" title="一句SQL解5*5棋盘难题">一句SQL解5*5棋盘难题</a> (2)</li><li>2011 年 4 月 1 日 - <a href="http://www.naroah.com/gentoo-linux-ibus-sunpinyin-setup/" title="Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置">Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置</a> (0)</li><li>2011 年 1 月 28 日 - <a href="http://www.naroah.com/wm_concat-return-clob/" title="wmsys.wm_concat函数返回CLOB类型">wmsys.wm_concat函数返回CLOB类型</a> (0)</li></ul><p><a href="http://www.naroah.com/wordpress-memory-limit/">WordPress Memory Limit问题</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.naroah.com/wordpress-memory-limit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install JDK6 on Solaris Sparc</title>
		<link>http://www.naroah.com/install-jdk6-on-solaris-sparc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-jdk6-on-solaris-sparc</link>
		<comments>http://www.naroah.com/install-jdk6-on-solaris-sparc/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 08:28:25 +0000</pubDate>
		<dc:creator>naroah</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JDK6]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sparc]]></category>

		<guid isPermaLink="false">http://www.naroah.com/blog/install-jdk6-on-solaris-sparc/</guid>
		<description><![CDATA[<p><p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>1.安装： 下载jdk-6u24-solaris-sparc.sh 下载jdk-6u24-solaris-sparcv9.sh 执行安装 chmod +x ./*.sh 2.设置环境变量: export JAVA_HOME=/home/me/jdk1.6.0_24 export PATH=${JAVA_HOME}/bin/sparcv9:${PATH} export LD_LIBRARY_PATH_64=${LD_LIBRARY_PATH_64}:${JAVA_HOME}/jre/lib/sparcv9/server 设置LD_LIBRARY_PATH_64已解决&#34;ld.so.1: fatal: libjvm.so: open failed: No such file or directory” 随机文章2011 年 1 月 17 日 - 冥想 (0)2011 年 1 月 11 日 - Oracle 使用exp/imp导入导出注意事项 (0)2011 年 4 月 1 日 - Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置 (0)2011 年 1 月 19 [...]</p></p><p><a href="http://www.naroah.com/install-jdk6-on-solaris-sparc/">Install JDK6 on Solaris Sparc</a></p>]]></description>
			<content:encoded><![CDATA[<p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>1.安装：</p>
<p>下载jdk-6u24-solaris-sparc.sh </p>
<p>下载jdk-6u24-solaris-sparcv9.sh</p>
<p> 执行安装 chmod +x ./*.sh </p>
<p>2.设置环境变量: </p>
<pre>
export JAVA_HOME=/home/me/jdk1.6.0_24
export PATH=${JAVA_HOME}/bin/sparcv9:${PATH}
export LD_LIBRARY_PATH_64=${LD_LIBRARY_PATH_64}:${JAVA_HOME}/jre/lib/sparcv9/server</pre>
<p>设置LD_LIBRARY_PATH_64已解决&quot;ld.so.1: fatal: libjvm.so: open failed: No such file or directory”</p>
<h2 >随机文章</h2><ul><li>2011 年 2 月 16 日 - <a href="http://www.naroah.com/pentaho-kettle-4-1-requires-jdk6/" title="Pentaho Kettle 4.1 requires JDK 1.6">Pentaho Kettle 4.1 requires JDK 1.6</a> (0)</li><li>2010 年 12 月 31 日 - <a href="http://www.naroah.com/newyear-2011-open/" title="2011新年开篇">2011新年开篇</a> (0)</li><li>2011 年 1 月 19 日 - <a href="http://www.naroah.com/ora-12805/" title="ORA-12805:parallel query server died unexpectedly">ORA-12805:parallel query server died unexpectedly</a> (0)</li><li>2011 年 5 月 18 日 - <a href="http://www.naroah.com/install-vmware-player-on-sabayon-linux/" title="install vmware-player on sabayon linux">install vmware-player on sabayon linux</a> (1)</li><li>2011 年 4 月 1 日 - <a href="http://www.naroah.com/gentoo-linux-ibus-sunpinyin-setup/" title="Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置">Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置</a> (0)</li><li>2011 年 2 月 18 日 - <a href="http://www.naroah.com/oracle-linux-6/" title="Oracle Linux 6尝鲜">Oracle Linux 6尝鲜</a> (0)</li><li>2011 年 2 月 15 日 - <a href="http://www.naroah.com/oracle-architecture-images/" title="分享几张Oracle架构图片">分享几张Oracle架构图片</a> (0)</li><li>2011 年 1 月 12 日 - <a href="http://www.naroah.com/jdbc-connecting-oracle-10g-rac/" title="JDBC连接Oracle 10g RAC问题">JDBC连接Oracle 10g RAC问题</a> (0)</li></ul><p><a href="http://www.naroah.com/install-jdk6-on-solaris-sparc/">Install JDK6 on Solaris Sparc</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.naroah.com/install-jdk6-on-solaris-sparc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>install vmware-player on sabayon linux</title>
		<link>http://www.naroah.com/install-vmware-player-on-sabayon-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-vmware-player-on-sabayon-linux</link>
		<comments>http://www.naroah.com/install-vmware-player-on-sabayon-linux/#comments</comments>
		<pubDate>Wed, 18 May 2011 14:08:08 +0000</pubDate>
		<dc:creator>naroah</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[sabayon linux]]></category>
		<category><![CDATA[vmware player]]></category>

		<guid isPermaLink="false">http://www.naroah.com/?p=163</guid>
		<description><![CDATA[<p><p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>最近3天参加PowerCenter的一个Workshop，上课时的实验环境用的是虚拟机。那个虚拟机的环境已经是预先配置好的，非常好用，但是有一个问题，就是内存消耗较大（现在随便一个软件都这样。。。），对于我的那台逐渐老去的Asus A8He Notebook来讲，真是一个挑战啊。 先说一下我的笔记本电脑配置： 品牌：Asus A8He CPU：Intel Celeron M520 1.60GHz 内存：2*1G 硬盘：80G WD IDE （硬盘空间非常紧张，目前USB外拖一个250G日立的盘） 系统：Windows 7 + Sabayon Linux（kernel-2.6.38-r6） 散热：CoolMaster 5228E （没办法，不用这个，很快键盘就烫手了） 有一段时间没用win7系统了，因为受不了键盘的热，使用linux时倒是凉快很多。 交待了这么多，就是想说一个想法，在linux下运行发下来的实验环境（VMWare虚拟机，win2003系统），尝试使用Virtualbox 4.0.6挂vmdk文件，结果报错&#8217;Error Loading Operating System&#8217;,导致虚拟硬盘在Win7下也无法使用了。Google了下，发现原因可能是Virtualbox和VMware虚拟硬件不同导致，解决方法很多也很麻烦，但是不保证成功，于是放弃。 又想了一个方法，就是在linux下面安装vmware-player，到vmware官方网站上下载最新的vmware-player，得到文件VMware-Player-3.1.4-385536.i386.bundle,该文件在ubuntu之类的发行版里面安装非常方便，但是在sabayon linux或是gentoo里面直接安装就不能成功，提示缺少linux header文件和无rc*.d目录。。。blabla 非常不爽，后来在sabayon论坛上看到一个老帖，受到启发，最终使了个小手段，安装顺利并且成功运行。 分享一下我的解决方法如下： 首先，不是提示说缺少rc*.d风格的目录嘛，我就给它建出来,建好后执行vmware-player的安装并指定目录。 #mkdir -p /etc/vmware/init.d #mkdir /etc/vmware/init.d/{rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d} #sh ./VMware-Player-3.1.4-385536.i386.bundle --console --custom -I ... System service runlevel directory (contains rc?.d directories). Use an [...]</p></p><p><a href="http://www.naroah.com/install-vmware-player-on-sabayon-linux/">install vmware-player on sabayon linux</a></p>]]></description>
			<content:encoded><![CDATA[<p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>最近3天参加PowerCenter的一个Workshop，上课时的实验环境用的是虚拟机。那个虚拟机的环境已经是预先配置好的，非常好用，但是有一个问题，就是内存消耗较大（现在随便一个软件都这样。。。），对于我的那台逐渐老去的Asus A8He Notebook来讲，真是一个挑战啊。<br />
<span id="more-163"></span><br />
先说一下我的笔记本电脑配置：<br />
品牌：Asus A8He<br />
CPU：Intel Celeron M520 1.60GHz<br />
内存：2*1G<br />
硬盘：80G WD IDE （硬盘空间非常紧张，目前USB外拖一个250G日立的盘）<br />
系统：Windows 7 + Sabayon Linux（kernel-2.6.38-r6）<br />
散热：CoolMaster 5228E （没办法，不用这个，很快键盘就烫手了）<br />
有一段时间没用win7系统了，因为受不了键盘的热，使用linux时倒是凉快很多。<br />
交待了这么多，就是想说一个想法，在linux下运行发下来的实验环境（VMWare虚拟机，win2003系统），尝试使用Virtualbox 4.0.6挂vmdk文件，结果报错&#8217;Error Loading Operating System&#8217;,导致虚拟硬盘在Win7下也无法使用了。Google了下，发现原因可能是Virtualbox和VMware虚拟硬件不同导致，解决方法很多也很麻烦，但是不保证成功，于是放弃。<br />
又想了一个方法，就是在linux下面安装vmware-player，到vmware官方网站上下载最新的vmware-player，得到文件VMware-Player-3.1.4-385536.i386.bundle,该文件在ubuntu之类的发行版里面安装非常方便，但是在sabayon linux或是gentoo里面直接安装就不能成功，提示缺少linux header文件和无rc*.d目录。。。blabla<br />
非常不爽，后来在sabayon论坛上看到一个老帖，受到启发，最终使了个小手段，安装顺利并且成功运行。<br />
分享一下我的解决方法如下：<br />
首先，不是提示说缺少rc*.d风格的目录嘛，我就给它建出来,建好后执行vmware-player的安装并指定目录。</p>
<pre class="bash">#mkdir -p /etc/vmware/init.d
#mkdir /etc/vmware/init.d/{rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d}
#sh ./VMware-Player-3.1.4-385536.i386.bundle --console --custom -I
...
System service runlevel directory (contains rc?.d directories).  Use
an empty directory if your system does not support rc?.d style
directories: <strong>/etc/vmware/init.d</strong>
...</pre>
<p>上面把/etc/vmware/init.d目录告诉vmware-installer，最后成功安装。</p>
<h2 >随机文章</h2><ul><li>2011 年 3 月 3 日 - <a href="http://www.naroah.com/ora-00845-memory_target-not-supported-on-this-system/" title="ORA-00845: MEMORY_TARGET not supported on this system">ORA-00845: MEMORY_TARGET not supported on this system</a> (0)</li><li>2011 年 1 月 17 日 - <a href="http://www.naroah.com/meditation/" title="冥想">冥想</a> (0)</li><li>2011 年 3 月 7 日 - <a href="http://www.naroah.com/sql-soloving-problems-1/" title="一句SQL解5*5棋盘难题">一句SQL解5*5棋盘难题</a> (2)</li><li>2011 年 1 月 19 日 - <a href="http://www.naroah.com/ora-12805/" title="ORA-12805:parallel query server died unexpectedly">ORA-12805:parallel query server died unexpectedly</a> (0)</li><li>2012 年 1 月 1 日 - <a href="http://www.naroah.com/2012%e6%96%b0%e7%9a%84%e4%b8%80%e5%b9%b4/" title="2012,新的一年">2012,新的一年</a> (0)</li><li>2011 年 4 月 6 日 - <a href="http://www.naroah.com/2011-enjoy-sakura-tour/" title="naroah和doudou的顾村公园樱花赏">naroah和doudou的顾村公园樱花赏</a> (0)</li><li>2011 年 1 月 11 日 - <a href="http://www.naroah.com/oracle-exp-and-imp-usage-notice/" title="Oracle 使用exp/imp导入导出注意事项">Oracle 使用exp/imp导入导出注意事项</a> (0)</li><li>2011 年 2 月 16 日 - <a href="http://www.naroah.com/pentaho-kettle-4-1-requires-jdk6/" title="Pentaho Kettle 4.1 requires JDK 1.6">Pentaho Kettle 4.1 requires JDK 1.6</a> (0)</li></ul><p><a href="http://www.naroah.com/install-vmware-player-on-sabayon-linux/">install vmware-player on sabayon linux</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.naroah.com/install-vmware-player-on-sabayon-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>naroah和doudou的顾村公园樱花赏</title>
		<link>http://www.naroah.com/2011-enjoy-sakura-tour/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=2011-enjoy-sakura-tour</link>
		<comments>http://www.naroah.com/2011-enjoy-sakura-tour/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 14:40:29 +0000</pubDate>
		<dc:creator>naroah</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Cherry Bloosom]]></category>
		<category><![CDATA[Sakura]]></category>

		<guid isPermaLink="false">http://www.naroah.com/blog/naroah%e5%92%8cdoudou%e7%9a%84%e9%a1%be%e6%9d%91%e5%85%ac%e5%9b%ad%e6%a8%b1%e8%8a%b1%e8%b5%8f/</guid>
		<description><![CDATA[<p><p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>去了被过分宣传的今年上海樱花节&#8211;顾村公园，结果发现是凑热闹去，其排队场面堪比上海世博会。我(naroah)和doudou费尽辛苦终于踏入园内，樱花林内的人堪比樱花树，赏樱氛围殆尽，而且园内连上厕所都要排队。于是和doudou只随便看了看，拍了几张照片就出来了。 随机文章2011 年 4 月 1 日 - Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置 (0)2011 年 3 月 3 日 - ORA-00845: MEMORY_TARGET not supported on this system (0)2011 年 4 月 2 日 - 使用PLSQL发送HTML邮件 (0)2011 年 1 月 11 日 - Oracle 使用exp/imp导入导出注意事项 (0)2011 年 1 月 28 日 - wmsys.wm_concat函数返回CLOB类型 (0)2011 年 11 月 29 日 [...]</p></p><p><a href="http://www.naroah.com/2011-enjoy-sakura-tour/">naroah和doudou的顾村公园樱花赏</a></p>]]></description>
			<content:encoded><![CDATA[<p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>去了被过分宣传的今年上海樱花节&#8211;顾村公园，结果发现是凑热闹去，其排队场面堪比上海世博会。我(naroah)和doudou费尽辛苦终于踏入园内，樱花林内的人堪比樱花树，赏樱氛围殆尽，而且园内连上厕所都要排队。<span id="more-120"></span>于是和doudou只随便看了看，拍了几张照片就出来了。</p>
<p><iframe title ="Preview" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="width:320px;height:240px;padding:0;background-color:#fcfcfc;" src="http://cid-d81cd09d8c24d3c0.office.live.com/embedphoto.aspx/.Public/2011%e6%a8%b1%e8%8a%b1%e8%b5%8f%e4%b9%8b1.jpg"></iframe> </p>
<p><iframe title ="Preview" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="width:320px;height:240px;padding:0;background-color:#fcfcfc;" src="http://cid-d81cd09d8c24d3c0.office.live.com/embedphoto.aspx/.Public/2011%e6%a8%b1%e8%8a%b1%e8%b5%8f%e4%b9%8b2.jpg"></iframe> </p>
<h2 >随机文章</h2><ul><li>2011 年 2 月 18 日 - <a href="http://www.naroah.com/oracle-linux-6/" title="Oracle Linux 6尝鲜">Oracle Linux 6尝鲜</a> (0)</li><li>2011 年 2 月 16 日 - <a href="http://www.naroah.com/pentaho-kettle-4-1-requires-jdk6/" title="Pentaho Kettle 4.1 requires JDK 1.6">Pentaho Kettle 4.1 requires JDK 1.6</a> (0)</li><li>2011 年 3 月 3 日 - <a href="http://www.naroah.com/oel6-installoracle11gr2/" title="OEL6 安装Oracle11gR2">OEL6 安装Oracle11gR2</a> (2)</li><li>2011 年 2 月 15 日 - <a href="http://www.naroah.com/oracle-architecture-images/" title="分享几张Oracle架构图片">分享几张Oracle架构图片</a> (0)</li><li>2011 年 2 月 15 日 - <a href="http://www.naroah.com/oracle-move-table-partitions/" title="Oracle分区表move table partitions">Oracle分区表move table partitions</a> (0)</li><li>2011 年 7 月 19 日 - <a href="http://www.naroah.com/install-jdk6-on-solaris-sparc/" title="Install JDK6 on Solaris Sparc">Install JDK6 on Solaris Sparc</a> (0)</li><li>2011 年 1 月 7 日 - <a href="http://www.naroah.com/talking-about-things/" title="说事">说事</a> (0)</li><li>2010 年 12 月 31 日 - <a href="http://www.naroah.com/newyear-2011-open/" title="2011新年开篇">2011新年开篇</a> (0)</li></ul><p><a href="http://www.naroah.com/2011-enjoy-sakura-tour/">naroah和doudou的顾村公园樱花赏</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.naroah.com/2011-enjoy-sakura-tour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用PLSQL发送HTML邮件</title>
		<link>http://www.naroah.com/send-html-email-using-plsql/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=send-html-email-using-plsql</link>
		<comments>http://www.naroah.com/send-html-email-using-plsql/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 05:43:25 +0000</pubDate>
		<dc:creator>naroah</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[utl_smtp]]></category>

		<guid isPermaLink="false">http://www.naroah.com/?p=118</guid>
		<description><![CDATA[<p><p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>有时需要使用PLSQL发送HTML格式的电子邮件，代码如下： CREATE OR REPLACE PROCEDURE send_mail(p_smtp_hostname IN VARCHAR2, p_smtp_portnum IN VARCHAR2, p_smtp_username IN VARCHAR2, p_smtp_userpass IN VARCHAR2, p_to IN VARCHAR2, p_from IN VARCHAR2, p_subject IN VARCHAR2, p_data IN OUT NOCOPY CLOB) IS v_mail_conn utl_smtp.connection; MAX_BASE64_LINE_WIDTH CONSTANT PLS_INTEGER := 76 / 4 * 3; i PLS_INTEGER; len PLS_INTEGER; BEGIN v_mail_conn := utl_smtp.open_connection(p_smtp_hostname,p_smtp_portnum); utl_smtp.ehlo(v_mail_conn, p_smtp_hostname); utl_smtp.command(v_mail_conn, 'AUTH [...]</p></p><p><a href="http://www.naroah.com/send-html-email-using-plsql/">使用PLSQL发送HTML邮件</a></p>]]></description>
			<content:encoded><![CDATA[<p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>有时需要使用PLSQL发送HTML格式的电子邮件，代码如下：<span id="more-118"></span></p>
<pre name="code" class="sql">CREATE OR REPLACE PROCEDURE send_mail(p_smtp_hostname  IN VARCHAR2,
                          p_smtp_portnum   IN VARCHAR2,
                          p_smtp_username  IN VARCHAR2,
                          p_smtp_userpass  IN VARCHAR2,
                          p_to             IN VARCHAR2,
                          p_from           IN VARCHAR2,
                          p_subject        IN VARCHAR2,
                          p_data           IN OUT NOCOPY CLOB) IS
    v_mail_conn utl_smtp.connection;
    MAX_BASE64_LINE_WIDTH CONSTANT PLS_INTEGER := 76 / 4 * 3;
    i   PLS_INTEGER;
    len PLS_INTEGER;
  BEGIN
    v_mail_conn := utl_smtp.open_connection(p_smtp_hostname,p_smtp_portnum);
    utl_smtp.ehlo(v_mail_conn, p_smtp_hostname);
    utl_smtp.command(v_mail_conn, 'AUTH LOGIN');
    utl_smtp.command(v_mail_conn, utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw(p_smtp_username))));
    utl_smtp.command(v_mail_conn, utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw(p_smtp_userpass))));
    utl_smtp.mail(v_mail_conn, p_from);
    utl_smtp.rcpt(v_mail_conn, p_to);
    utl_smtp.open_data(v_mail_conn);
    utl_smtp.write_data(v_mail_conn,
                        'From' || ':=?ZHS16GBK?B?' ||
                        utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.
                                                                          cast_to_raw(convert(p_from,
                                                                                              'ZHS16GBK')))) || '?=' ||
                        utl_tcp.crlf);
    utl_smtp.write_data(v_mail_conn,
                        'To' || ':=?ZHS16GBK?B?' ||
                        utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.
                                                                          cast_to_raw(convert(p_to,
                                                                                              'ZHS16GBK')))) || '?=' ||
                        utl_tcp.crlf);
    utl_smtp.write_data(v_mail_conn,
                        'Subject' || ':=?ZHS16GBK?B?' ||
                        utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.
                                                                          cast_to_raw(convert(p_subject,
                                                                                              'ZHS16GBK')))) || '?=' ||
                        utl_tcp.crlf);
    UTL_SMTP.write_data(v_mail_conn,
                        'Date: ' ||
                        TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS') ||
                        Chr(13) || chr(10));
    utl_smtp.write_data(v_mail_conn,
                        'MIME-Version: 1.0' || chr(13) || chr(10));
    utl_smtp.write_data(v_mail_conn,
                        'Content-type: text/html;Charset=ZHS16GBK;' ||
                        chr(13) || chr(10));
    utl_smtp.write_data(v_mail_conn,
                        'Content-Transfer-Encoding: base64' || chr(13) ||
                        chr(10));
    utl_smtp.write_data(v_mail_conn, chr(13) || chr(10));
    i   := 1;
    len := utl_raw.length(utl_raw.cast_to_raw(convert(P_data, 'ZHS16GBK')));
    WHILE (i &lt; len) LOOP
      IF (i + MAX_BASE64_LINE_WIDTH &lt; len) THEN
        utl_smtp.write_data(v_mail_conn,
                            utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.substr(utl_raw.cast_to_raw(convert(P_data,
                                                                                                                         'ZHS16GBK')),
                                                                                             i,
                                                                                             MAX_BASE64_LINE_WIDTH))));
      ELSE
        utl_smtp.write_data(v_mail_conn,
                            utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.substr(utl_raw.cast_to_raw(convert(P_data,
                                                                                                                         'ZHS16GBK')),
                                                                                             i))));
      END IF;
      utl_smtp.write_data(v_mail_conn, utl_tcp.CRLF);
      i := i + MAX_BASE64_LINE_WIDTH;
    END LOOP;
    utl_smtp.close_data(v_mail_conn);
    utl_smtp.quit(v_mail_conn);
  END;
</pre>
<p>上面的代码在发送的HTML内容较大时会出现错误，修正后代码如下
<pre name="code" class="plsql">  PROCEDURE pro_send_mail(p_app_flag VARCHAR2, --  应用标识
                          p_subject  VARCHAR2, -- 邮件标题
                          p_message  IN OUT NOCOPY CLOB -- 邮件正文HTML
                          ) IS
    v_mail_conn utl_smtp.connection;
    MAX_BASE64_LINE_WIDTH CONSTANT PLS_INTEGER := 76 / 4 * 3;
    i                PLS_INTEGER;
    len              PLS_INTEGER;
    v_mail_def       mail_sender_def%ROWTYPE;
    v_recipient_list VARCHAR2(300);
    v_conv_message   BLOB;
    l_lang           NUMBER := DBMS_LOB.default_lang_ctx;
    i_dest_offset    NUMBER := 1;
    i_src_offset     NUMBER := 1;
    l_warning        NUMBER;
    CURSOR cur_recipient IS
      SELECT t.mail_recipient
        FROM mail_recipient_def t
       WHERE t.app_flag = p_app_flag
       ORDER BY t.create_date;
  BEGIN
    SELECT app_flag,
           mail_host,
           mail_host_port,
           mail_user,
           mail_user_pass,
           mail_sender,
           create_date,
           modified_date
      FROM mail_sender_def t
     WHERE t.app_flag = p_app_flag
       AND rownum = 1;

    v_mail_conn := utl_smtp.open_connection(v_mail_def.mail_host,
                                            v_mail_def.mail_host_port);
    utl_smtp.ehlo(v_mail_conn, v_mail_def.mail_host);
    utl_smtp.command(v_mail_conn, 'AUTH LOGIN');
    utl_smtp.command(v_mail_conn,
                     utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw(v_mail_def.mail_user))));
    utl_smtp.command(v_mail_conn,
                     utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw(v_mail_def.mail_user_pass))));
    utl_smtp.mail(v_mail_conn, v_mail_def.mail_sender);
    FOR v_recipient IN cur_recipient LOOP
      utl_smtp.rcpt(v_mail_conn, v_recipient.mail_recipient); --设置收件人
      v_recipient_list := v_recipient.mail_recipient || ';' ||
                          v_recipient_list;
    END LOOP;
    utl_smtp.open_data(v_mail_conn);
    utl_smtp.write_data(v_mail_conn,
                        'From' || ':=?ZHS16GBK?B?' ||
                        utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.
                                                                          cast_to_raw(convert(v_mail_def.mail_sender,
                                                                                              'ZHS16GBK')))) || '?=' ||
                        utl_tcp.crlf);
    utl_smtp.write_data(v_mail_conn,
                        'To' || ':=?ZHS16GBK?B?' ||
                        utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.
                                                                          cast_to_raw(convert(v_recipient_list,
                                                                                              'ZHS16GBK')))) || '?=' ||
                        utl_tcp.crlf);
    utl_smtp.write_data(v_mail_conn,
                        'Subject' || ':=?ZHS16GBK?B?' ||
                        utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.
                                                                          cast_to_raw(convert(p_subject,
                                                                                              'ZHS16GBK')))) || '?=' ||
                        utl_tcp.crlf);
    UTL_SMTP.write_data(v_mail_conn,
                        'Date: ' ||
                        TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS') ||
                        Chr(13) || chr(10));
    utl_smtp.write_data(v_mail_conn,
                        'MIME-Version: 1.0' || chr(13) || chr(10));
    utl_smtp.write_data(v_mail_conn,
                        'Content-type: text/html;Charset=ZHS16GBK;' ||
                        chr(13) || chr(10));
    utl_smtp.write_data(v_mail_conn,
                        'Content-Transfer-Encoding: base64' || chr(13) ||
                        chr(10));
    utl_smtp.write_data(v_mail_conn, chr(13) || chr(10));
    --注意utl_raw.cast_to_raw支持的CLOB字节数最大16383=32767/2(一个汉字只当一个字符长度)
    --不超过32767个字节使用utl_raw.cast_to_raw,超过32767个字节时需要使用dbms_lob.convertToBlob转换
    --by naroah 2011.04.15
    dbms_lob.CREATETEMPORARY(v_conv_message, TRUE, 2);
    dbms_lob.convertToBlob(v_conv_message,
                           convert(p_message, 'ZHS16GBK'),
                           dbms_lob.lobmaxsize,
                           i_dest_offset,
                           i_src_offset,
                           DBMS_LOB.default_csid,
                           l_lang,
                           l_warning);
    len := dbms_lob.getlength(v_conv_message);
    i := 1;
    WHILE (i < len) LOOP
      IF (i + MAX_BASE64_LINE_WIDTH < len) THEN
        --DBMS_OUTPUT.PUT_LINE(i);
        utl_smtp.write_data(v_mail_conn,
                            utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.substr(v_conv_message,
                                                                                             i,
                                                                                             MAX_BASE64_LINE_WIDTH))));
      ELSE
        utl_smtp.write_data(v_mail_conn,
                            utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.substr(v_conv_message,
                                                                                             i))));
      END IF;
      utl_smtp.write_data(v_mail_conn, utl_tcp.CRLF);
      i := i + MAX_BASE64_LINE_WIDTH;
    END LOOP;
    utl_smtp.close_data(v_mail_conn);
    utl_smtp.quit(v_mail_conn);
  EXCEPTION
    WHEN OTHERS THEN
      pkg_common.log_error('发送Email失败,应用:' || p_app_flag || '主题:' ||
                           p_subject);
  END;
</pre>
<h2 >相关文章</h2><ul><li>2011 年 11 月 30 日 - <a href="http://www.naroah.com/deploy-oracle-or-lamp-under-linux/" title="Linux下开发测试环境的部署">Linux下开发测试环境的部署</a> (0)</li><li>2011 年 3 月 7 日 - <a href="http://www.naroah.com/sql-soloving-problems-1/" title="一句SQL解5*5棋盘难题">一句SQL解5*5棋盘难题</a> (2)</li><li>2011 年 3 月 3 日 - <a href="http://www.naroah.com/ora-00845-memory_target-not-supported-on-this-system/" title="ORA-00845: MEMORY_TARGET not supported on this system">ORA-00845: MEMORY_TARGET not supported on this system</a> (0)</li><li>2011 年 3 月 3 日 - <a href="http://www.naroah.com/oel6-installoracle11gr2/" title="OEL6 安装Oracle11gR2">OEL6 安装Oracle11gR2</a> (2)</li><li>2011 年 1 月 28 日 - <a href="http://www.naroah.com/wm_concat-return-clob/" title="wmsys.wm_concat函数返回CLOB类型">wmsys.wm_concat函数返回CLOB类型</a> (0)</li><li>2011 年 1 月 19 日 - <a href="http://www.naroah.com/ora-12805/" title="ORA-12805:parallel query server died unexpectedly">ORA-12805:parallel query server died unexpectedly</a> (0)</li><li>2011 年 1 月 11 日 - <a href="http://www.naroah.com/oracle-exp-and-imp-usage-notice/" title="Oracle 使用exp/imp导入导出注意事项">Oracle 使用exp/imp导入导出注意事项</a> (0)</li></ul><p><a href="http://www.naroah.com/send-html-email-using-plsql/">使用PLSQL发送HTML邮件</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.naroah.com/send-html-email-using-plsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置</title>
		<link>http://www.naroah.com/gentoo-linux-ibus-sunpinyin-setup/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gentoo-linux-ibus-sunpinyin-setup</link>
		<comments>http://www.naroah.com/gentoo-linux-ibus-sunpinyin-setup/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 16:16:43 +0000</pubDate>
		<dc:creator>naroah</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Chromium]]></category>
		<category><![CDATA[Firefox4]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[IBus]]></category>
		<category><![CDATA[ibus输入法光标跟随]]></category>
		<category><![CDATA[kernel 2.6.38]]></category>
		<category><![CDATA[LibreOffice]]></category>
		<category><![CDATA[Sabayon]]></category>
		<category><![CDATA[SunPinYin]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://www.naroah.com/?p=117</guid>
		<description><![CDATA[<p><p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>干掉了之前的Ubuntu 10.10后,安装了最新的kernel 2.6.38的sabayon linux, 装好后默认是英文界面，而且非常漂亮，3D效果也堪称完美，硬件支持也很好，不需要自己再去调整即可。唯一美中不足的是默认没有中文输入法，这两天晚上在网上搜索了很久，并且不断的尝试，终于搞定了。安装的是最新的ibus 1.3.9和sunpinyin 2.0.3，从sunrise overlay中拉下来的。编译安装后发现输入法不能使用，但是google就是强大，我最终配置完成，现在系统默认的输入法就是ibus,只要直接Ctrl Space即可，没有出现问题，LibreOffice 3.3.2和Firefox 4，Chromium 11都完美支持。经验不敢独享，列在后面方便没配置好的同学。 适用的发行版： Sabayon Linux, Gentoo Linux 首先参考Gentoo Linux Localization Guide和Using UTF-8 with Gentoo两篇文档配置locale。 1.修改/etc/locale.gen并保存 en_US.UTF-8 UTF-8 en_US ISO-8859-1 zh_CN GB2312 zh_CN GBK zh_CN.UTF-8 UTF-8 2.修改/etc/env.d/02locale并保存 LANG="en_US.UTF-8" LC_CTYPE="zh_CN.UTF-8" LC_NUMERIC="zh_CN.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="zh_CN.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="zh_CN.UTF-8" LC_NAME="zh_CN.UTF-8" LC_ADDRESS="zh_CN.UTF-8" LC_TELEPHONE="zh_CN.UTF-8" LC_MEASUREMENT="zh_CN.UTF-8" LC_IDENTIFICATION="zh_CN.UTF-8" SYSFONT="latarcyrheb-sun16" 3.生成locale并更新环境变量 # locale-gen # env-update &#38;&#38; [...]</p></p><p><a href="http://www.naroah.com/gentoo-linux-ibus-sunpinyin-setup/">Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置</a></p>]]></description>
			<content:encoded><![CDATA[<p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>干掉了之前的Ubuntu 10.10后,安装了最新的kernel 2.6.38的sabayon linux, 装好后默认是英文界面，而且非常漂亮，3D效果也堪称完美，硬件支持也很好，不需要自己再去调整即可。唯一美中不足的是默认没有中文输入法，这两天晚上在网上搜索了很久，并且不断的尝试，终于搞定了。安装的是最新的ibus 1.3.9和sunpinyin 2.0.3，从sunrise overlay中拉下来的。编译安装后发现输入法不能使用，但是google就是强大，我最终配置完成，现在系统默认的输入法就是ibus,只要直接Ctrl Space即可，没有出现问题，LibreOffice 3.3.2和Firefox 4，Chromium 11都完美支持。经验不敢独享，列在后面方便没配置好的同学。<span id="more-117"></span><br />
适用的发行版： Sabayon Linux, Gentoo Linux<br />
首先参考Gentoo Linux Localization Guide和Using UTF-8 with Gentoo两篇文档配置locale。<br />
1.修改/etc/locale.gen并保存</p>
<pre class="sql">en_US.UTF-8 UTF-8
en_US ISO-8859-1
zh_CN GB2312
zh_CN GBK
zh_CN.UTF-8 UTF-8</pre>
<p>2.修改/etc/env.d/02locale并保存</p>
<pre class="sql">LANG="en_US.UTF-8"
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
SYSFONT="latarcyrheb-sun16"</pre>
<p>3.生成locale并更新环境变量</p>
<pre class="sql"># locale-gen
# env-update &amp;&amp; source /etc/profile
# /usr/bin/gtk-query-immodules-2.0 &gt; /etc/gtk-2.0/gtk.immodules</pre>
<p>4.修改/etc/make.conf文件中的LINGUAS变量以备使用emerge时不出问题</p>
<pre class="sql">LINGUAS= en en_US zh_CN zh</pre>
<p>5.在/etc/X11/xinit/xinitrc.d目录新建一个文件，文件名为85-ibus，内容如下</p>
<pre class="sql">export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS= @im=ibus</pre>
<p>再设置755权限</p>
<pre class="sql"># chmod 755 /etc/X11/xinit/xinitrc.d/85-ibus</pre>
<p>6.在System-》Preference-》Startup Applications中找到IBus一项，修改Command为</p>
<pre class="sql">ibus-daemon -x -r -d</pre>
<p>7.重新启动系统，^_^<br />
不出意外的话，你将拥有一个非常好用的中文输入法环境。</p>
<p>补充一点关于ibus光标跟随的解决办法：<br />
1.修改/etc/gtk-2.0/gtk.immodules,解决ibus输入法在gtk程序中的光标跟随</p>
<pre>"/usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so"
"ibus" "IBus (Intelligent Input Bus)" "gtk20" "/usr/share/locale" "en:zh"</pre>
<p>2.使用qtconfig解决ibus输入法在gnome环境下qt程序中的光标跟随</p>
<pre>qtconfig</pre>
<p>找到“界面”（Interface）标签下的XIM输入风格一项，修改为“Over The Spot”<br />
重启ibus输入法或者注销即可。</p>
<h2 >随机文章</h2><ul><li>2011 年 4 月 2 日 - <a href="http://www.naroah.com/send-html-email-using-plsql/" title="使用PLSQL发送HTML邮件">使用PLSQL发送HTML邮件</a> (0)</li><li>2011 年 3 月 3 日 - <a href="http://www.naroah.com/oel6-installoracle11gr2/" title="OEL6 安装Oracle11gR2">OEL6 安装Oracle11gR2</a> (2)</li><li>2012 年 1 月 1 日 - <a href="http://www.naroah.com/2012%e6%96%b0%e7%9a%84%e4%b8%80%e5%b9%b4/" title="2012,新的一年">2012,新的一年</a> (0)</li><li>2011 年 2 月 15 日 - <a href="http://www.naroah.com/oracle-architecture-images/" title="分享几张Oracle架构图片">分享几张Oracle架构图片</a> (0)</li><li>2011 年 2 月 18 日 - <a href="http://www.naroah.com/oracle-linux-6/" title="Oracle Linux 6尝鲜">Oracle Linux 6尝鲜</a> (0)</li><li>2011 年 2 月 15 日 - <a href="http://www.naroah.com/oracle-move-table-partitions/" title="Oracle分区表move table partitions">Oracle分区表move table partitions</a> (0)</li><li>2011 年 3 月 7 日 - <a href="http://www.naroah.com/sql-soloving-problems-1/" title="一句SQL解5*5棋盘难题">一句SQL解5*5棋盘难题</a> (2)</li><li>2011 年 3 月 9 日 - <a href="http://www.naroah.com/informatica-data-quality-matching-theory/" title="最近三天IDQ培训的一点意外收获">最近三天IDQ培训的一点意外收获</a> (0)</li></ul><p><a href="http://www.naroah.com/gentoo-linux-ibus-sunpinyin-setup/">Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.naroah.com/gentoo-linux-ibus-sunpinyin-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>最近三天IDQ培训的一点意外收获</title>
		<link>http://www.naroah.com/informatica-data-quality-matching-theory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=informatica-data-quality-matching-theory</link>
		<comments>http://www.naroah.com/informatica-data-quality-matching-theory/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 14:05:29 +0000</pubDate>
		<dc:creator>naroah</dc:creator>
				<category><![CDATA[Data Warehousing]]></category>
		<category><![CDATA[Informatica Data Quality]]></category>
		<category><![CDATA[Matching Theory]]></category>
		<category><![CDATA[NYSIIS]]></category>
		<category><![CDATA[Soundex]]></category>

		<guid isPermaLink="false">http://www.naroah.com/blog/%e6%9c%80%e8%bf%91%e4%b8%89%e5%a4%a9idq%e5%9f%b9%e8%ae%ad%e7%9a%84%e4%b8%80%e7%82%b9%e6%84%8f%e5%a4%96%e6%94%b6%e8%8e%b7/</guid>
		<description><![CDATA[<p><p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>最近三天参加Informatica的一个Workshop，关于Data Quality的。说是培训，其实上也就是一个简略的介绍，好在发下来的资料文档挺详尽，对于掌握一件工具的简单使用足矣。在Matching Theory部分提到了几种算法，倒是让我有点意外，虽然不是很深入地介绍了下，而且只是算法的使用，可也是一点收获。 在Grouping时Create Key的Strategy使用了Soundex和NYSIIS两个算法，其中Soundex在Kunth的书中有详细介绍。在Matching的Strategy中也提到5中经典的匹配算法策略，分别是Jaro Distance，Bigram Distance，Hamming Distance，Edit Distance和Reverse Hamming Distance，都是比较简单的算法。 随机文章2011 年 2 月 16 日 - Pentaho Kettle 4.1 requires JDK 1.6 (0)2011 年 4 月 1 日 - Gentoo/Sabayon Linux中文环境与IBus+SunPinyin输入法配置 (0)2011 年 5 月 18 日 - install vmware-player on sabayon linux (1)2011 年 3 月 7 日 - 一句SQL解5*5棋盘难题 (2)2011 年 [...]</p></p><p><a href="http://www.naroah.com/informatica-data-quality-matching-theory/">最近三天IDQ培训的一点意外收获</a></p>]]></description>
			<content:encoded><![CDATA[<p><a rel="author" href="http://www.naroah.com/author/naroah/">naroah</a></p><p>最近三天参加Informatica的一个Workshop，关于Data Quality的。说是培训，其实上也就是一个简略的介绍，好在发下来的资料文档挺详尽，对于掌握一件工具的简单使用足矣。在Matching Theory部分提到了几种算法，倒是让我有点意外，虽然不是很深入地介绍了下，而且只是算法的使用，可也是一点收获。</p>
<p>在Grouping时Create Key的Strategy使用了Soundex和NYSIIS两个算法，其中Soundex在Kunth的书中有详细介绍。在Matching的Strategy中也提到5中经典的匹配算法策略，分别是Jaro Distance，Bigram Distance，Hamming Distance，Edit Distance和Reverse Hamming Distance，都是比较简单的算法。</p>
<h2 >随机文章</h2><ul><li>2011 年 7 月 19 日 - <a href="http://www.naroah.com/install-jdk6-on-solaris-sparc/" title="Install JDK6 on Solaris Sparc">Install JDK6 on Solaris Sparc</a> (0)</li><li>2011 年 2 月 16 日 - <a href="http://www.naroah.com/pentaho-kettle-4-1-requires-jdk6/" title="Pentaho Kettle 4.1 requires JDK 1.6">Pentaho Kettle 4.1 requires JDK 1.6</a> (0)</li><li>2011 年 1 月 17 日 - <a href="http://www.naroah.com/meditation/" title="冥想">冥想</a> (0)</li><li>2011 年 2 月 15 日 - <a href="http://www.naroah.com/oracle-architecture-images/" title="分享几张Oracle架构图片">分享几张Oracle架构图片</a> (0)</li><li>2010 年 12 月 31 日 - <a href="http://www.naroah.com/newyear-2011-open/" title="2011新年开篇">2011新年开篇</a> (0)</li><li>2011 年 2 月 18 日 - <a href="http://www.naroah.com/oracle-linux-6/" title="Oracle Linux 6尝鲜">Oracle Linux 6尝鲜</a> (0)</li><li>2011 年 11 月 30 日 - <a href="http://www.naroah.com/deploy-oracle-or-lamp-under-linux/" title="Linux下开发测试环境的部署">Linux下开发测试环境的部署</a> (0)</li><li>2011 年 5 月 18 日 - <a href="http://www.naroah.com/install-vmware-player-on-sabayon-linux/" title="install vmware-player on sabayon linux">install vmware-player on sabayon linux</a> (1)</li></ul><p><a href="http://www.naroah.com/informatica-data-quality-matching-theory/">最近三天IDQ培训的一点意外收获</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.naroah.com/informatica-data-quality-matching-theory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<!-- added to the content footer --></channel>
</rss>
<!-- www.Host1Free.com Counter Code -->
<script type="text/javascript" src="http://stats.host1free.com/track.php"></script>
<noscript>
<a href="http://www.host1free.com/" title="Free Hosting">Free Hosting</a>
<a href="http://www.host1free.com/web-hosting/" title="Free Web Hosting Service">Free Hosting</a>
<a href="http://www.host1plus.com/" title="Web Hosting">Web Hosting</a>
<a href="http://www.host1plus.com/vps-hosting/" title="VPS Hosting">VPS Hosting</a>
</noscript>
<!-- End of www.Host1Free.com Counter Code -->


