<?xml version="1.0" encoding="utf-8"?>

			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Against All Odds - Oracle</title>
			<link>http://www.ppshein.net/index.cfm</link>
			<description>A blog for ColdFusion, Android, jQuery, jQueryMobile, Oracle, HL7 and other Web-based programming languages, Web Server like IIS7 and RDMS like Oracle, Microsoft SQL and MySQL.</description>
			<language>en-us</language>
			<pubDate>Wed, 19 Jun 2013 00:08:07 -0700</pubDate>
			<lastBuildDate>Tue, 24 Apr 2012 09:32:00 -0700</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>pyaephyoeshein@gmail.com</managingEditor>
			<webMaster>pyaephyoeshein@gmail.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>pyaephyoeshein@gmail.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>Parsing List Value in Oracle</title>
				<link>http://www.ppshein.net/index.cfm/2012/4/24/Parsing-List-Value-in-Oracle</link>
				<description>
				
				Being Coldfusion programmer, parsing list value in coldfusion is very simple. If list value is &quot;list1|list2|list3|list4&quot;, we can parse with ListToArray in Coldfusion as follow.

&lt;code&gt;
&lt;cfset MyListValue = &quot;list1|list2|list3|list4&quot;&gt;
&lt;cfset getListDump = ListToArray(MyListValue, &quot;|&quot;, true)&gt;
&lt;cfdump var=&quot;#getListDump#&quot;&gt;
&lt;/code&gt;

Above coding, we must need to assign true for &lt;b&gt;includeEmptyFields&lt;/b&gt; if list value will contain empty. In Oracle, it&apos;s touch to parse and we need to write Oracle function.
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Tue, 24 Apr 2012 09:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2012/4/24/Parsing-List-Value-in-Oracle</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Wrap Oracle script</title>
				<link>http://www.ppshein.net/index.cfm/2012/3/25/Wrap-Oracle-script</link>
				<description>
				
				Today, I know how to wrap Oracle objects called stored procedure, functions, views and so on. It&apos;s because I want to make secure for our project source.

How-to-do is very simple.

1) Open common prompt
2) and go to Bin folder under Oracle just like &quot;C:\Oracle\Bin&quot;
3) Then type following script

&lt;code&gt;
C:\Oracle\Bin\wrap iname=/SP/mysp.sql oname=/SP/wrap_mysp.sql
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<pubDate>Sun, 25 Mar 2012 18:44:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2012/3/25/Wrap-Oracle-script</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Share tables of schema in same SID</title>
				<link>http://www.ppshein.net/index.cfm/2012/2/27/Share-tables-of-schema-in-same-SID</link>
				<description>
				
				Today, I need to sync data of different schema in same SID (same database). Honestly, I&apos;m not very good at Oracle but I gotta develop this kind of project. That&apos;s why I&apos;ve asked in StackOverFlow and @Luck Woodwords and he replied good solution.

&lt;a href=&quot;http://stackoverflow.com/questions/9452488/how-to-create-oracle-dblink-in-same-sid#comment11957843_9452488&quot; target=&quot;_blank&quot;&gt;http://stackoverflow.com/questions/9452488/how-to-create-oracle-dblink-in-same-sid#comment11957843_9452488&lt;/a&gt;
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<pubDate>Mon, 27 Feb 2012 01:05:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2012/2/27/Share-tables-of-schema-in-same-SID</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Backup Oracle database with bat file</title>
				<link>http://www.ppshein.net/index.cfm/2012/1/12/Backup-Oracle-database-with-bat-file</link>
				<description>
				
				Today, I&apos;ve found how to backup/export Oracle database with bat file. I&apos;ve just created it for only one schema first. Why I&apos;m using to import Oracle with bat file because of there is no auto backup feature in Oracle (as far as I know). That&apos;s why  it&apos;s needed to create bat file and integrate with window task scheduler (&lt;b&gt;run daily&lt;/b&gt;).

First of all, open Notepad and save as OracleBackup.bat first. Then, paste following  code into this file.

&lt;code&gt;
@echo off
echo Importing Oracle Start
echo =======================
exp system/password file=C:/ppshein.dmp grants=y owner=&apos;ppshein&apos;;
echo ==========================
echo Importing Oracle End
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<pubDate>Thu, 12 Jan 2012 05:57:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2012/1/12/Backup-Oracle-database-with-bat-file</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Get free exam simulator from uCertify</title>
				<link>http://www.ppshein.net/index.cfm/2011/11/29/Get-free-exam-simulator-from-uCertify</link>
				<description>
				
				&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
	&lt;a href=&quot;http://www.ucertify.com/&quot; target=&quot;_blank&quot;&gt;uCertify&lt;/a&gt;, leading IT certification provider company is willing to spring for a license, that&amp;#39;s a full license, for any of their test prep kits for one of my blog readers. The only requirement to get the full license is that you write a review of the software, within 30 days, that will be a guest post here on this blog.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	So, I am offering this to all of my blog readers. Today is Nov 30, 2011. To get a chance to win the prep kit license, &lt;a href=&quot;http://www.ucertify.com/download/&quot; target=&quot;_blank&quot;&gt;go to the ucertify&lt;/a&gt; site and take a look at the available tests. Decide which you would like to take.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Once you&amp;#39;ve made your choice, come back here and post a comment about which you would like and why you want to take it. Doesn&amp;#39;t have to be anything big; just a couple of sentences is fine.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Make sure you either leave a real email address or you are signed in when you leave the comment. You don&amp;#39;t need to leave your email address in the text of your comment if you are signed in. I can send you a message via the it toolbox messaging system in that case.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	I will randomly choose the winner from the comments on Dec 10, 2011. So, you have about 10 days to post a comment.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Once I have notified the winner and they agree to review the software in a guest post here on this blog, I will give the info to Ucertify and they&amp;#39;ll hand out the license.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	The guest post doesn&amp;#39;t need to be huge. At least a few hundred words which is just a page or two of double spaced text. As an example, this &amp;nbsp;blog post is over 400 words. I&amp;#39;ll be glad to proofread and edit it if you would like me to mail me (pyaephyoeshein[at]gmail[dot]com).&lt;/div&gt;
				
				</description>
				
				
				<category>Oracle</category>
				
				<category>PHP</category>
				
				<category>Coldfusion</category>
				
				<category>uCertify</category>
				
				<category>MsSql</category>
				
				<pubDate>Tue, 29 Nov 2011 20:15:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/11/29/Get-free-exam-simulator-from-uCertify</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Oracle Database SQL Expert</title>
				<link>http://www.ppshein.net/index.cfm/2011/11/15/Oracle-Database-SQL-Expert</link>
				<description>
				
				&lt;p&gt;
	Being developer, we must need to know how to write SQL query, functions, views and stored procedures for our development as long as we are not using &lt;strong&gt;ORM&lt;/strong&gt;. I&amp;#39;m not sure using ORM is kinda useful or not in our development life cycle but we shouldn&amp;#39;t forget our writing query skill. That&amp;#39;s why I need to practise&amp;nbsp;&lt;strong&gt;1Z0-047&lt;/strong&gt;&amp;nbsp;for enhancing my Oracle query skill with&amp;nbsp;&lt;a href=&quot;http://www.ucertify.com/download/1Z0-047.html&quot; target=&quot;_blank&quot;&gt;1Z0-047 exam simulator of ucertify&lt;/a&gt;,&lt;/p&gt;
				 [More]
				</description>
				
				
				<category>Exam</category>
				
				<category>Oracle</category>
				
				<category>Review</category>
				
				<pubDate>Tue, 15 Nov 2011 23:38:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/11/15/Oracle-Database-SQL-Expert</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Oracle 11g: SQL Fundamentals (1Z0-051) exam guide</title>
				<link>http://www.ppshein.net/index.cfm/2011/10/19/1Z0051-Database-11g-SQL-Fundamentals-exam-guide</link>
				<description>
				
				&lt;p&gt;
	In this 2011, I feel like myself to take almost certification of what I know and what I&amp;#39;m using in my development space. Being programmer, I didn&amp;#39;t say almost certificates are needed but just like non-computer science graduated like me, those certificate are very needed. Because almost people won&amp;#39;t know why I&amp;#39;m surviving in IT without having computer science graduate. That&amp;#39;s why I believe I&amp;#39;m not wrong to take certificate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	When I was in Myanmar, we use Microsoft SQL as our database because which is simple and easy to use with their UI. When I started working in Singapore (2009), our company use Oracle as database system instead of Microsoft SQL. Since that time, I&amp;#39;m addictive at Oracle because of the way of writing stored procedure, functions and views. That&amp;#39;s why I think I need to have at least one Oracle certificate to let people know that I know Oracle.&lt;/p&gt;
&lt;p&gt;
	That&amp;#39;s why I decided to take &lt;strong&gt;1Z0-051&lt;/strong&gt; exam of Oracle. It&amp;#39;s called &lt;strong&gt;SQL&amp;nbsp;Fundamentals exam&amp;nbsp;&lt;/strong&gt;which is suitable for me to take as beginner state of Oracle developer. Below is the exam topic of &lt;strong&gt;1Z0-051&lt;/strong&gt;.&lt;/p&gt;
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<category>Coldfusion</category>
				
				<category>Review</category>
				
				<category>MsSql</category>
				
				<pubDate>Wed, 19 Oct 2011 06:51:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/10/19/1Z0051-Database-11g-SQL-Fundamentals-exam-guide</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Create new Listener and TNS in Oracle</title>
				<link>http://www.ppshein.net/index.cfm/2011/9/23/Create-new-Listener-and-TNS-in-Oracle</link>
				<description>
				
				Yesterday, I knew how to create new Listener and TNS in Oracle. It&apos;s kinda simple if you know how to do. If not, so complicated

&lt;h4&gt;Create new Listener in Oracle&lt;/h4&gt;

First of all, we need to go Oracle first. Then, we need to go &lt;b&gt;Configuration and migration tools &gt; Net Manager&lt;/b&gt;.
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<pubDate>Fri, 23 Sep 2011 06:16:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/9/23/Create-new-Listener-and-TNS-in-Oracle</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>My first web based mobile project</title>
				<link>http://www.ppshein.net/index.cfm/2011/7/22/My-first-web-based-mobile-project</link>
				<description>
				
				Here is my first web-based project for my company. Our target is for customer who want to register Patient thru online. This project is based for iPad but it can work either on Android based tablet. For this project, I&apos;ve used jQueryMobile framework, Coldfusion 9 and Oracle 11g. For jQueryMobile part, I&apos;ve created our own customize theme for this project and added some JS coding into jQueryMobile existing scripts. Just example: my boss want me to highlight which field has been filled up by users and need to categorize for mandatory field. As you know, it&apos;s difficult to change or add some JS coding into their existing core JS file because we need to know the flow of existing JS coding. Likewise, what we add or change JS coding will impact the whole existing JS coding. I took 2 days to study the whole existing JS coding but it&apos;s not enough time honestly for it.

Below is some of my change logs into jQueryMobile existing JS coding for this project.
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<category>Project</category>
				
				<category>Coldfusion</category>
				
				<category>jQueryMobile</category>
				
				<pubDate>Fri, 22 Jul 2011 18:28:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/7/22/My-first-web-based-mobile-project</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>The powerful of DECODE in Oracle</title>
				<link>http://www.ppshein.net/index.cfm/2011/6/24/The-powerful-of-DECODE-in-Oracle</link>
				<description>
				
				In these days, I needed to manipulate Query statement in Oracle. Because, for database part, we don&apos;t want our CF to calculate the amount of our system. That&apos;s why we just let Oracle to do as much as database part can do. Because we don&apos;t want JRun can be more loaded because of such calculation and minor cases and we are always try to assign less process for our CF. Today, I need to develop some calculation in our projects for the following cases. 

&lt;code&gt;
&lt;cfif ONHAND_QTY + PROJECTED_QTY GT MIN_QTY&gt;
	&lt;!--- ONHAND_QTY + PROJECTED_QTY ARE GREATER THAN MIN_QTY ---&gt;
	&lt;cfset IsReplenish = &quot;Y&quot;&gt;
&lt;cfelse&gt;
	&lt;!--- ONHAND_QTY + PROJECTED_QTY ARE NOT GREATER THAN MIN_QTY ---&gt;
	&lt;cfset IsReplenish = &quot;N&quot;&gt;
&lt;/cfif&gt;
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Fri, 24 Jun 2011 00:55:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/6/24/The-powerful-of-DECODE-in-Oracle</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>MAX function is kinda slow in Oracle</title>
				<link>http://www.ppshein.net/index.cfm/2011/6/7/MAX-function-is-kinda-slow-in-Oracle</link>
				<description>
				
				In these days, I&apos;m on HL7 project for my company. In this project, most of processes are created within Oracle Stored Procedure. Most of Oracle stored procedure, we need to retrieve the last record from table. At that time, we sometimes use &quot;&lt;b&gt;MAX&lt;/b&gt;&quot; built-in function of Oracle. Using &quot;&lt;b&gt;MAX&lt;/b&gt;&quot; function in Oracle is very simple and cannot write complicated query to get last record from table like &lt;a href=&quot;http://www.ppshein.net/index.cfm/2011/2/22/Display-the-latest-record-with-descending-in-Oracle&quot; target=&quot;_blank&quot;&gt;query after query method with RomNUM&lt;/a&gt;. But the one I haven&apos;t noticed is the performance of retrieving data.

That&apos;s why I&apos;ve wrote two query statements and test in PLSQL developer.

&lt;b&gt;Using MAX function&lt;/b&gt;
&lt;code&gt;
SELECT MAX(PATIENT_ID) FROM NH_PATIENT

&lt;!--- executing time ---&gt;
0.047 seconds
&lt;/code&gt;

&lt;b&gt;Using query and query&lt;/b&gt;
&lt;b&gt;Using MAX function&lt;/b&gt;
&lt;code&gt;
SELECT PATIENT_ID FROM
    (SELECT PATIENT_ID FROM NH_PATIENT
    ORDER BY PATIENT_ID DESC) CLONE_USER
WHERE ROWNUM = 1

&lt;!--- executing time ---&gt;
0.031 seconds
&lt;/code&gt;

So, we should avoid using &quot;&lt;b&gt;MAX&lt;/b&gt;&quot; function if we really don&apos;t need to use.
				
				</description>
				
				
				<category>Oracle</category>
				
				<category>HL7</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Tue, 07 Jun 2011 21:06:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/6/7/MAX-function-is-kinda-slow-in-Oracle</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Usage of cursor and non-cursor in Oracle</title>
				<link>http://www.ppshein.net/index.cfm/2011/5/30/Usage-of-cursor-and-noncursor-in-Oracle</link>
				<description>
				
				Today I oddly found the different between using non-cursor and cursor in Oracle. Generally, using these two usages are same but kind of different memory usage and error handling.

&lt;b&gt;Advantage and disadvantage Of Cursor&lt;/b&gt;

Using so many cursors in stored procedures, functions and views can be high memory usage in Server. Because every cursors take individual space in memory while creating and processing. If return value is NULL from this cursor, Oracle will not throw error message to application.

Example coding of using cursor

&lt;code&gt;
CREATE OR REPLACE PROCEDURE PPS_TEST
       (P_PERSON_ID IN NUMBER)
IS
     L_MENU              VARCHAR2(50);
     L_ERR_MSG           VARCHAR2(200);

     CURSOR C_PP (P_PERSON_ID NUMBER) IS
     SELECT NAME FROM PERSON
     WHERE PERSON_ID = P_PERSON_ID;       
       
BEGIN
    OPEN C_PP(P_PERSON_ID);
         FETCH C_PP INTO L_MENU;
    CLOSE C_PP;
EXCEPTION
	WHEN OTHERS THEN
	   L_ERR_MSG := SQLERRM;
		RAISE_APPLICATION_ERROR(-20000, L_ERR_MSG);
END;
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Mon, 30 May 2011 23:21:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/5/30/Usage-of-cursor-and-noncursor-in-Oracle</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Create List String in Oracle</title>
				<link>http://www.ppshein.net/index.cfm/2011/5/3/Create-List-String-in-Oracle</link>
				<description>
				
				Create list string in Coldfusion is very simple. We just use &lt;a href=&quot;http://www.ppshein.net/index.cfm/2010/5/28/valuelist&quot; target=&quot;_blank&quot;&gt;ValueList&lt;/a&gt; function of Coldfusion. What we can do it in Oracle? As we all know, there are a lot of built-in functions in Oracle and new more functions are including whenever upgrading Oracle version. Being not DBA (database administrator), I cannot know how many built-in functions are in Oracle and how many new functions are added into each version.

Today, I need to create list string in Oracle. My first though, I would search built-in function like &lt;a href=&quot;http://www.ppshein.net/index.cfm/2010/5/28/valuelist&quot; target=&quot;_blank&quot;&gt;ValueList&lt;/a&gt; in Oracle. As my though, I&apos;ve search again and again but have no result at all. That&apos;s why, I decided myself to create new function for creating list string as follow:
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Tue, 03 May 2011 01:46:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/5/3/Create-List-String-in-Oracle</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>How to avoid using Trunc Function in Oracle</title>
				<link>http://www.ppshein.net/index.cfm/2011/4/19/How-to-avoid-using-Trunc-Function-in-Oracle</link>
				<description>
				
				There are so many &lt;b&gt;Date Function&lt;/b&gt; in Oracle. Some are very efficient to use when filtering date and others are not quite suitable to use for Oracle Tuning. Among them, &lt;b&gt;Trunc&lt;/b&gt; function isn&apos;t good enough to use for Oracle Tuning. The description of the &lt;b&gt;Trunc&lt;/b&gt; function returns a date truncated to a specific unit of measure. 

How does &lt;b&gt;Trunc&lt;/b&gt; function work? It&apos;s a bit complicated to describe how Trunc works. The fastest way to describe is &lt;b&gt;&quot;it collect all of (selected) records from table and change Date Format. So, when we use Trunc function, Oracle must do those process.&quot;&lt;/b&gt;

The following coding is I&apos;ve wrote when I didn&apos;t consider for Oracle tuning.

&lt;code&gt;
&lt;cfquery name=&quot;getResult&quot; datasource=&quot;mydsn&quot;&gt;
	SELECT user_id, user_name, user_rank FROM tblLogs
	WHERE user_login_time &lt;= &lt;cfqueryparam 
								value=&quot;#from_date#&quot; 
								cfsqltype=&quot;cf_sql_varchar&quot;&gt; 
	AND user_login_time &gt;= &lt;cfqueryparam 
								value=&quot;#to_date#&quot; 
								cfsqltype=&quot;cf_sql_varchar&quot;&gt;
&lt;/cfquery&gt;
&lt;/code&gt;

Above coding, &lt;u&gt;user_login_time&lt;/u&gt; has been saved as &lt;b&gt;SYSDATE&lt;/b&gt; of Oracle. That&apos;s why current date and time have been included in &lt;u&gt;user_login_time&lt;/u&gt;. So, I must need to use &lt;b&gt;Trunc&lt;/b&gt; function to change Date format from Date/time format. If I do so, Oracle collect all data from &lt;b&gt;tblLogs&lt;/b&gt; table and change format to Date string then get records by &lt;u&gt;from_date&lt;/u&gt; and &lt;u&gt;to_date&lt;/u&gt;. So, it&apos;s not good if our table has over 1 million records.

How to avoid using &lt;b&gt;Trunc&lt;/b&gt; function for filter our date/time data field? It&apos;s very simple. Please see the following coding.

&lt;code&gt;
&lt;cfquery name=&quot;getResult&quot; datasource=&quot;mydsn&quot;&gt;
	SELECT user_id, user_name, user_rank FROM tblLogs
	WHERE user_login_time &lt;= &lt;cfqueryparam 
								value=&quot;#from_date#&quot; 
								cfsqltype=&quot;cf_sql_varchar&quot;&gt; 
	AND user_login_time &gt; to_date(&lt;cfqueryparam 
									value=&quot;#to_date#&quot; 
									cfsqltype=&quot;cf_sql_varchar&quot;&gt;, &apos;MM-DD-YY&apos;) + 1
&lt;/cfquery&gt;
&lt;/code&gt;
				
				</description>
				
				
				<category>Oracle</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Tue, 19 Apr 2011 05:06:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/4/19/How-to-avoid-using-Trunc-Function-in-Oracle</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Repeat String Function in Oracle</title>
				<link>http://www.ppshein.net/index.cfm/2011/3/22/Repeat-String-Function-in-Oracle</link>
				<description>
				
				Now, I&apos;m fixing the coding of HL7 interface project and clean any unnecessary coding and function from Coldfusion and Oracle Stored Procedure for performance. Among them, I&apos;ve found that I&apos;ve used looping in Oracle Stored Procedure for concatenating string as like follow.

&lt;code&gt;         
V_FIRST_STRING := &apos;PPSHEIN&apos;;
V_LOOP := 10;
FOR LCOUNT IN 1.. V_LOOP
LOOP
	V_ZERO := V_ZERO || &apos;0&apos;;
END LOOP;
V_FINAL_STRING := V_FIRST_STRING  || V_ZERO; 
&lt;/code&gt;

When I developed this coding, I didn&apos;t know there is &lt;a href=&quot;http://www.ppshein.net/index.cfm/2009/11/12/repeatstring&quot; target=&quot;_blank&quot;&gt;RepeatString&lt;/a&gt; built-in function like Coldfusion in Oracle. My senior told me that there is &lt;a href=&quot;http://www.ppshein.net/index.cfm/2009/11/12/repeatstring&quot; target=&quot;_blank&quot;&gt;RepeatString&lt;/a&gt; in Oracle but he forgot it. In this time, I was in rush and I decided to try with &lt;b&gt;Looping&lt;/b&gt;.

Now, it&apos;s time for me to consider the performance of my HL7 interface project. In Coldfusion, Every CF developers know repeat string in Coldfusion is &lt;a href=&quot;http://www.ppshein.net/index.cfm/2009/11/12/repeatstring&quot; target=&quot;_blank&quot;&gt;RepeatString&lt;/a&gt; function. In Oracle, &lt;a href=&quot;http://www.ppshein.net/index.cfm/2009/11/12/repeatstring&quot; target=&quot;_blank&quot;&gt;RepeatString&lt;/a&gt; build-in function is what? So, I&apos;ve kept searching around Oracle forums and documentations. Finally, I found there is &lt;a href=&quot;http://www.techonthenet.com/oracle/functions/rpad.php&quot; target=&quot;_blank&quot;&gt;RPAD&lt;/a&gt; function in Oracle acts like &lt;a href=&quot;http://www.ppshein.net/index.cfm/2009/11/12/repeatstring&quot; target=&quot;_blank&quot;&gt;RepeatString&lt;/a&gt; in Coldfusion. Usage is slightly like Coldfusion.
				 [More]
				</description>
				
				
				<category>Oracle</category>
				
				<category>HL7</category>
				
				<category>CF Function</category>
				
				<pubDate>Tue, 22 Mar 2011 18:51:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/3/22/Repeat-String-Function-in-Oracle</guid>
				
				
			</item>
			
		 	
			</channel></rss>