 




<?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>IT Answers &#187; PL/SQL</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/plsql/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 13:14:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Code coverage tool suggestion for PL/SQL</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/code-coverage-tool-suggestion-for-pl-sql/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/code-coverage-tool-suggestion-for-pl-sql/#comments</comments>
		<pubDate>Sun, 27 Jan 2013 08:36:38 +0000</pubDate>
		<dc:creator>merkancam</dc:creator>
				<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[PL/SQL attributes]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/code-coverage-tool-suggestion-for-pl-sql/</guid>
		<description><![CDATA[New Answer by Michael Tidmarsh]]></description>
				<content:encoded><![CDATA[New Answer by Michael Tidmarsh]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/code-coverage-tool-suggestion-for-pl-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advise in shifting from Iseries to PL/SQL developer</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/advise-in-shifting-from-iseries-to-plsql-developer/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/advise-in-shifting-from-iseries-to-plsql-developer/#comments</comments>
		<pubDate>Thu, 22 Nov 2012 14:04:14 +0000</pubDate>
		<dc:creator>asastr09</dc:creator>
				<category><![CDATA[iSeries]]></category>
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/advise-in-shifting-from-iseries-to-plsql-developer/</guid>
		<description><![CDATA[New Answer by TomLiotta]]></description>
				<content:encoded><![CDATA[New Answer by TomLiotta]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/advise-in-shifting-from-iseries-to-plsql-developer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Is PL/SQL a right choice form performing operations on a databse and display the final result.?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/is-plsql-a-right-choice-form-performing-operations-on-a-databse-and-display-the-final-result-2/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/is-plsql-a-right-choice-form-performing-operations-on-a-databse-and-display-the-final-result-2/#comments</comments>
		<pubDate>Tue, 03 Jul 2012 18:01:45 +0000</pubDate>
		<dc:creator>hussain22juzer</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/is-plsql-a-right-choice-form-performing-operations-on-a-databse-and-display-the-final-result-2/</guid>
		<description><![CDATA[New Answer by carlosdl]]></description>
				<content:encoded><![CDATA[New Answer by carlosdl]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/is-plsql-a-right-choice-form-performing-operations-on-a-databse-and-display-the-final-result-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pl/sql fixed file creation</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/plsql-fixed-file-creation/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/plsql-fixed-file-creation/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 12:48:26 +0000</pubDate>
		<dc:creator>Bordenatemple</dc:creator>
				<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am new to the pl/sql world. I&#8217;m ok with writing out a comma delimited file but I can&#8217;t figure out how to write out a file where the fields are fixed length. I could use some examples. thanks,]]></description>
				<content:encoded><![CDATA[<p>I am new to the pl/sql world. I&#8217;m ok with writing out a comma delimited file but I can&#8217;t figure out how to write out a file where the fields are fixed length. I could use some examples. thanks,</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/plsql-fixed-file-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle (PL/SQL) fuction won&#8217;t work</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/oracle-plsql-fuction-wont-work/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/oracle-plsql-fuction-wont-work/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 20:53:44 +0000</pubDate>
		<dc:creator>pforos</dc:creator>
				<category><![CDATA[APEX]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Apex]]></category>
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;m trying to run the following script: function create_new_password (p_email in varchar2) return varchar2 as l_password varchar2(12); l_encrypted_password varchar2(32); begin select dbms_random.string('A', 8) into l_password from dual; l_encrypted_password := password_hashing(p_username =&#62; upper(p_email), p_password =&#62; l_password); update customer set encrypted_password=l_encrypted_password where upper(customer.email)=upper(p_email); return l_password; end; and i&#8217;m getting the following error: Error at line 10: PL/SQL: [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m trying to run the following script:</p>
<div>
<pre></div>
<div>
<div>function create_new_password (p_email in varchar2)</div>
<div>return varchar2</div>
<div>as</div>
<div>l_password varchar2(12);</div>
<div>l_encrypted_password varchar2(32);</div>
<div>begin</div>
<div>select dbms_random.string('A', 8)</div>
<div>into l_password</div>
<div>from dual;</div>
<div>l_encrypted_password := password_hashing(p_username =&gt; upper(p_email), p_password =&gt; l_password);</div>
<div>update customer</div>
<div>set encrypted_password=l_encrypted_password</div>
<div>where upper(customer.email)=upper(p_email);</div>
<div>return l_password;</div>
<div>end;</div>
</div>
<div></pre>
</div>
<div></div>
<div></div>
<div>and i&#8217;m getting the following error:</div>
<div></div>
<div>Error at line 10: PL/SQL: Statement ignored<br />
[table style="empty-cells: show;" cellspacing="0" cellpadding="0" border="0"><br />
[tbody]<br />
[tr]<br />
[td style="padding: 0px;"><br />
<b>1. create function create_new_password (p_email in varchar2)</b><br />
2. return varchar2<br />
3. as[/pre]<br />
[/td]<br />
[/tr]<br />
[/tbody]<br />
[/table]
</div>
<div><b><br />
</b></div>
<div><b>What&#8217;s wrong?!?!? <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </b></div>
<div><b>Note that the password_hashing is a function from a custom</b></div>
<div><b>package(customer_authentication)&#8230; Does oracle have an import feature that could</b></div>
<div><b>help? I tried </b></div>
<div><b>l_encrypted_password := customer_authentication.password_hashing(p_username =&gt; upper(p_email), p_password =&gt; l_password);</p>
<p>but still nothing!! <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </b></div>
<div><b><br />
</b></div>
<div><b>Thanx in advance</b></div>
<div><b>Peter</b></div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/oracle-plsql-fuction-wont-work/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Can I use then Forms 6i DDE build-in package to generate 2010 EXCEL File?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/can-i-use-then-forms-6i-dde-build-in-package-to-generate-2010-excel-file/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/can-i-use-then-forms-6i-dde-build-in-package-to-generate-2010-excel-file/#comments</comments>
		<pubDate>Tue, 24 May 2011 08:41:52 +0000</pubDate>
		<dc:creator>Wangakai</dc:creator>
				<category><![CDATA[excel]]></category>
		<category><![CDATA[Oracle Forms]]></category>
		<category><![CDATA[Oracle Forms 6i]]></category>
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi All, My company&#8217; application is used Oracle FORMS 6i Solution,Client /Server environment to generated EXCEL file I coding the PL/SQL in the Oracle FORM , it&#8217;s succeed generated EXCEL file in MS office Excel 2007/2003/2000. Now I have problem in MS office Excel 2010 , It&#8217;s just open the Excel file but no data [...]]]></description>
				<content:encoded><![CDATA[<p>Hi All,</p>
<p>   My company&#8217; application is used Oracle FORMS 6i Solution,Client /Server environment to generated EXCEL file</p>
<p>I coding the PL/SQL in the Oracle FORM , it&#8217;s succeed  generated EXCEL file in  MS office Excel 2007/2003/2000.</p>
<p>Now I have problem in MS office Excel 2010 , It&#8217;s just open the Excel file but no data can write into excel file,</p>
<p>It&#8217;s always raise the error exception  &#8220;dde.dmlerr_no_conv_established&#8221;</p>
<p>some one can help me,thanks !!</p>
<p>my pl/sql code wrote in Button Item&#8217;s trigger WHEN-BUTTON-PRESSED</p>
<p>[hr /><br />
declare</p>
<p>   obj            ole2.obj_type;</p>
<p>   path           varchar2(256);</p>
<p>   p_excel_path   varchar2(255);</p>
<p>   appid          pls_integer;</p>
<p>   convid         pls_integer;  </p>
<p>begin</p>
<p>   begin</p>
<p>      obj  := ole2.create_obj(&#8216;excel.application&#8217;);</p>
<p>      path := ole2.get_char_property(obj,&#8217;path&#8217;);</p>
<p>      ole2.release_obj(obj);</p>
<p>      ole2.invoke(obj,&#8217;quit&#8217;);</p>
<p>   exception</p>
<p>      when others then</p>
<p>        message(&#8216;office excel not found!&#8217;);</p>
<p>        return;</p>
<p>   end; </p>
<p>   p_excel_path := path||&#8217;excel.exe&#8217;;  </p>
<p>   synchronize;     </p>
<p>   appid := dde.app_begin(p_excel_path, dde.app_mode_normal);</p>
<p>   dde.app_focus(appid);</p>
<p>   convid := dde.initiate(&#8216;excel&#8217;,'book1&#8242;);    <br/><br/><br />
dde.poke(convid,&#8217;r1c1&#8242;,&#8217;abc&#8217;,dde.cf_text,100000);</p>
<p>   dde.poke(convid,&#8217;r2c2&#8242;,&#8217;abc&#8217;,dde.cf_text,100000);</p>
<p>exception</p>
<p>  when dde.dmlerr_no_conv_established then  </p>
<p>    message(&#8216;dmlerr_no_conv_established&#8217;);</p>
<p>    raise form_trigger_failure;  </p>
<p>  when others then</p>
<p>    null;</p>
<p>end;</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/can-i-use-then-forms-6i-dde-build-in-package-to-generate-2010-excel-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Excel File from PL/SQL Procedure</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/excel-file-from-plsql-procedure/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/excel-file-from-plsql-procedure/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 12:44:10 +0000</pubDate>
		<dc:creator>HeatherM</dc:creator>
				<category><![CDATA[excel]]></category>
		<category><![CDATA[Oracle 10i]]></category>
		<category><![CDATA[Oracle PL/SQL]]></category>
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I have an Oracle PL/SQL procedure that creates a csv file with output. I would like to create an Excel spreadsheet with multiple tabs, seperate information in each tab. Can you advise how I achive this in PL/SQL. Thanks Heather]]></description>
				<content:encoded><![CDATA[<p>Hi, <br/><br/> I have an Oracle PL/SQL procedure that creates a csv file with output. <br/><br/> I would like to create an Excel spreadsheet with multiple tabs, seperate information in each tab. <br/><br/> Can you advise how I achive this in PL/SQL. <br/><br/> Thanks Heather<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/excel-file-from-plsql-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How can I generate an output file from two input files choosing data from each files using utl_file package or any other way?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-can-i-generate-an-ouput-file-from-two-input-files-choosing-data-from-each-files-using-utl_file-package-or-any-other-way/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-can-i-generate-an-ouput-file-from-two-input-files-choosing-data-from-each-files-using-utl_file-package-or-any-other-way/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 21:20:42 +0000</pubDate>
		<dc:creator>Techguys</dc:creator>
				<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle 10g administration]]></category>
		<category><![CDATA[Oracle PL/SQL]]></category>
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have two html files one is a template with certain data that must be transferred to the output file and the other file is also an html file which contains the most data that must be transferred to the same out put file. I have tried to write from both files to the output [...]]]></description>
				<content:encoded><![CDATA[<p>I have two html files one is a template with certain data<br />
that must be transferred to the output file and the other file is also an html<br />
file which contains the most data that must be transferred to the same out put<br />
file.</p>
<p>I have tried to write from both files to the output file inside two loops. The outer<br />
loop reads from the template file and the inner loop reads from the input file<br />
and writes to the output file.  My<br />
problem is the inner loop for some reason does not loop through the input file<br />
for each iteration of the outer loop. <br/><br/><br />
One file has 235 lines of records and the second file has<br />
148 lines. The total looping that the two loops have to go through must be 235<br />
x 148 which is about 34780 loops.  But<br />
mine has only 235 + 148 which is about 383.   <br/><br/><br />
Please, help me out.<br />
Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-can-i-generate-an-ouput-file-from-two-input-files-choosing-data-from-each-files-using-utl_file-package-or-any-other-way/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>PL/SQL Query</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/plsql-query/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/plsql-query/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 05:31:57 +0000</pubDate>
		<dc:creator>FaheemNawaz</dc:creator>
				<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[PL/SQL Multiple Session]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL tables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Create table other_sess( s_name varchar2(10)); insert into other_sess values(&#8216;s2007&#8242;); insert into other_sess values(&#8216;s2009&#8242;); insert into other_sess values(&#8216;s2009&#8242;); commit; now i want to write a PL to retrive data from these sessions (s2007, s2008, s2009). from my current session. declare mold_session varchar2(10); cursor c1 is select s_name from other_sess order by s_name; begin open C1; loop [...]]]></description>
				<content:encoded><![CDATA[<p>Create table other_sess( s_name varchar2(10)); insert into other_sess values(&#8216;s2007&#8242;); insert into other_sess values(&#8216;s2009&#8242;); insert into other_sess values(&#8216;s2009&#8242;); commit; now i want to write a PL to retrive data from these sessions (s2007, s2008, s2009). from my current session. declare mold_session varchar2(10); cursor c1 is select s_name from other_sess order by s_name; begin open C1; loop fetch c1 into mold_session; exit when c1%notfound; declare mtotal_sale number(16,2); cursor c2 is select nvl(sum(total_sale),0) from mold_session.sale_table; begin open c2; fetch c2 into mtotal_sale; close c2; dbms_output.put_line(&#8216;Total Sale of &#8216;||mold_session||&#8217;= &#8216;||mtotal_sale; end; end loop; close C1; end; but its shows error&#8230;&#8230;. Please Help me.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/plsql-query/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>search string in oracle DMP file</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/search-string-in-oracle-dmp-file/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/search-string-in-oracle-dmp-file/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 00:01:29 +0000</pubDate>
		<dc:creator>Balajikalai</dc:creator>
				<category><![CDATA[DMP Importing]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle PL/SQL]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[Search string]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[hi , i would like to write a pl/sql oracle code to search a string from Oralce DMP file. e.g &#60;OWNER_NAME&#62;[strong]xxx[/strong]&#60;/OWNER_NAME&#62; i want to get  [strong]XXX[/strong] as output . any help would be really really appreciated      ]]></description>
				<content:encoded><![CDATA[<p>hi , i would like to write a pl/sql oracle code to search a string from Oralce DMP file.<br/><br/> e.g <br/><br/> &lt;OWNER_NAME&gt;[strong]xxx[/strong]&lt;/OWNER_NAME&gt;<br/><br/> i want to get  [strong]XXX[/strong] as output . <br/><br/> any help would be really really appreciated<br/><br/>  <br/><br/>  <br/><br/>  <br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/search-string-in-oracle-dmp-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/26 queries in 0.036 seconds using memcached
Object Caching 922/1020 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 14:54:00 -->