<?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>tyson記事本 &#187; Oracle</title>
	<atom:link href="http://blog.tcchen.org/archives/category/2database/oracle/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.tcchen.org</link>
	<description>Google &#38; man(Unix) are your best friends!</description>
	<lastBuildDate>Thu, 16 Apr 2009 04:33:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Oracle: Funtion return cursor values</title>
		<link>http://blog.tcchen.org/archives/255</link>
		<comments>http://blog.tcchen.org/archives/255#comments</comments>
		<pubDate>Fri, 23 Nov 2007 06:35:20 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/255</guid>
		<description><![CDATA[SQL&#62; &#8212; ref cursor
SQL&#62; create or replace package pkg_types as
2   type refcursor is ref cursor;
3  end;
4  /
Package created.SQL&#62; create or replace function f_return_refcursor
2  return pkg_types.refcursor
3  as
4    refcur pkg_types.refcursor;
5  begin
6    open refcur for select * from emp;
7    return refcur;
8  [...]]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/255/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(M$) Oracle: ORA-12705</title>
		<link>http://blog.tcchen.org/archives/250</link>
		<comments>http://blog.tcchen.org/archives/250#comments</comments>
		<pubDate>Tue, 16 Oct 2007 07:52:20 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/250</guid>
		<description><![CDATA[error "ORA-12705: Cannot access NLS data files or invalid environment specified"
解法:
至 \HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE 下有一個 NLS_LANG 機碼
請把這個值, 改成你想要的字符集.
就Taiwan BIG5, 可改為 TRADITIONAL CHINESE_TAIWAN.ZHT16BIG5]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/250/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL*Plus: trimspool</title>
		<link>http://blog.tcchen.org/archives/96</link>
		<comments>http://blog.tcchen.org/archives/96#comments</comments>
		<pubDate>Mon, 28 May 2007 09:08:40 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/96</guid>
		<description><![CDATA[當你在SQL*Plus裡, 做的任何動作.. 包括指令,及output的訊息等等
都會spool寫入到你指定的檔案裡]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/96/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>亂數取記錄</title>
		<link>http://blog.tcchen.org/archives/77</link>
		<comments>http://blog.tcchen.org/archives/77#comments</comments>
		<pubDate>Fri, 02 Feb 2007 05:45:10 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/77</guid>
		<description><![CDATA[selecting random record.
select employees,name from
(select employees,name from usertable order by dbms_random.value)
where rownum < = 5
update: ref: http://forums.oracle.com/
]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/77/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle: url</title>
		<link>http://blog.tcchen.org/archives/16</link>
		<comments>http://blog.tcchen.org/archives/16#comments</comments>
		<pubDate>Tue, 02 Jan 2007 08:29:22 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/16</guid>
		<description><![CDATA[1. http://www.adp-gmbh.ch/
2. http://www.psoug.org/library.html
]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>exp and imp in Oracle</title>
		<link>http://blog.tcchen.org/archives/15</link>
		<comments>http://blog.tcchen.org/archives/15#comments</comments>
		<pubDate>Tue, 02 Jan 2007 08:23:12 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/15</guid>
		<description><![CDATA[ref: http://www.adp-gmbh.ch/ora/admin/imp_exp.html

exp and imp in Oracle

exp and imp are the executables that allow to make  exports and imports of data objects (such as tables). Therefore, logical  backups can be made with exp.
exp/imp allow to transfer the data accross databases that reside  on different hardware plattforms and/or on different Oracle versions. If the [...]]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/15/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle: 如何在 SQL 敘述中使用包含 &amp; 字元的字串常數</title>
		<link>http://blog.tcchen.org/archives/14</link>
		<comments>http://blog.tcchen.org/archives/14#comments</comments>
		<pubDate>Tue, 02 Jan 2007 08:19:27 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/14</guid>
		<description><![CDATA[ref: http://www.cine.idv.tw/Learning/ComputerScience/Database/oracle/AppNotes/appnote-59824f555728-sql-65588ff04e2d4f7f75285305542b-5b57514376845b574e325e386578/

shortie 發現 TOAD 的 SQL Editor ，會把 &#8216;&#038;&#8217;  字元後的字串，當成變數名稱，造成無法直接將欄位之值，更新為包含 &#8216;&#038;&#8217; 字元的字串&#8230;

問題描述
INSERT INTO DTBDRG (
DRG_CODE, DRG_NHI_CODE, DRG_NAME, DRG_JD_FLAG,
DRG_SPEC, DRG_UNIT, DRG_CHARACTER, DRG_TEST_FLAG, DRG_BRAND)
VALUES (
'1CL100', 'A042448100', 'CLOPINE  100mg (Clozapine)    ', ' ',
'100mg  ', 'Tab   ', '   ', ' ', '瑞士[1.2.2.1&#038;~2]');
在 TOAD 中無法執行。
解決方案
這嚴格說起來並不能算是 PL/SQL 問題，而是 TOAD 的 SQL [...]]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/14/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can one drop a column from a table?</title>
		<link>http://blog.tcchen.org/archives/59</link>
		<comments>http://blog.tcchen.org/archives/59#comments</comments>
		<pubDate>Fri, 30 Dec 2005 03:29:53 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/59</guid>
		<description><![CDATA[Can one drop a column from a table?
Can one drop a column from a table?From Oracle8i one can DROP a column from a table. Look at this sample script, demonstrating the ALTER TABLE table_name DROP COLUMN column_name; command.
Other workarounds: 1. SQL> update t1 set column_to_drop = NULL;
SQL> rename t1 to t1_base;
SQL> create view t1 as [...]]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/59/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>當預約日期小於今天就不要show</title>
		<link>http://blog.tcchen.org/archives/30</link>
		<comments>http://blog.tcchen.org/archives/30#comments</comments>
		<pubDate>Sat, 15 Jan 2005 04:34:58 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/30</guid>
		<description><![CDATA[select * from tt where to_date(&#8217;2004&#8242; &#124;&#124; &#8216;/&#8217; &#124;&#124; tmonth &#124;&#124; &#8216;/&#8217; &#124;&#124; tday,&#8217;yyyy/mm/dd&#8217;) > mdate
]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/30/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>給我整個月,其餘免談</title>
		<link>http://blog.tcchen.org/archives/29</link>
		<comments>http://blog.tcchen.org/archives/29#comments</comments>
		<pubDate>Sat, 15 Jan 2005 04:34:32 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/29</guid>
		<description><![CDATA[
select create_date from break_report
where create_date between to_date('2004/07/01 00:00:00','YYYY/MM/DD HH24:MI:SS')
and last_day(to_date('2004/07/01 23:59:59','YYYY/MM/DD HH24:MI:SS'))


]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/29/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
