 




<?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; ORA-06550</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/ora-06550/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 00:58:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>ORA-06550 and PLS-00103 error</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550-and-pls-00103-error/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550-and-pls-00103-error/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 17:24:00 +0000</pubDate>
		<dc:creator>Kuranharuka</dc:creator>
				<category><![CDATA[ORA-06550]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Error Codes]]></category>
		<category><![CDATA[Oracle error messages]]></category>
		<category><![CDATA[Oracle errors]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[declare  rent_paid_date DATE;  rent_due_date DATE; create or replace procedure due_date(in_rn_ssn NUMBER, in_home_id NUMBER, in_rent_paid_date DATE, in_rent_due_date DATE, in_rental_fees NUMBER) as  fees rent_collector.late_fees%TYPE;  new_fees number := 0; begin  select sum(late_fees) into fees  from rent_collector  where rn_ssn = in_rn_ssn and  home_id = in_home_id and  rent_paid_date = in_rent_paid_date and  rent_due_date = in_rent_due_date and  rental_fees = in_rental_fees;  if rent_paid_date [...]]]></description>
				<content:encoded><![CDATA[<p>declare  rent_paid_date DATE;  rent_due_date DATE; create or replace procedure due_date(in_rn_ssn NUMBER, in_home_id NUMBER, in_rent_paid_date DATE, in_rent_due_date DATE, in_rental_fees NUMBER) as  fees rent_collector.late_fees%TYPE;  new_fees number := 0; begin  select sum(late_fees) into fees  from rent_collector  where rn_ssn = in_rn_ssn and  home_id = in_home_id and  rent_paid_date = in_rent_paid_date and  rent_due_date = in_rent_due_date and  rental_fees = in_rental_fees;  if rent_paid_date &gt;= rent_due_date then   new_fees := rental_fees + (rental_fees*(10/100));   insert into rent_collector   values(in_rn_ssn, in_home_id, in_rent_paid_date, in_rent_due_date, in_rental_fees , new_fees);   insert into activity   values(fred_num.nextval, &#8216;F&#8217;, &#8216;Added to Inventory&#8217;);  else rent_paid_date &lt; rent_due_date then   new_fees := rental_fees + 0;   insert into rent_collector   values(in_rn_ssn, in_home_id, in_rent_paid_date, in_rent_due_date, in_rental_fees , new_fees);   insert into activity   values(fred_num.nextval, &#8216;F&#8217;, &#8216;Added to Inventory&#8217;);  end if; end; / <br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550-and-pls-00103-error/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>database problem  ORA-06550</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/database-problem/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/database-problem/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 22:26:22 +0000</pubDate>
		<dc:creator>Aiman111</dc:creator>
				<category><![CDATA[ORA-06550]]></category>
		<category><![CDATA[Oracle Error Codes]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[declare type x is ref cursor; d x; r varchar(300); begin open d for select *from departments loop fetch d into r.last_name; exit when d%notfound; dbms_output.put_line(r); end loop; close d; end;   fetch d into r.last_name; * [/pre] يوجد خطأ عند سطر 8: ORA-06550: ¿¿¿ 7 ¿ ¿¿¿¿ 6 : PL/SQL: ORA-00933: ¿¿¿ SQL ¿¿ [...]]]></description>
				<content:encoded><![CDATA[<p>declare type x is ref cursor; d x; r varchar(300); begin open d for select *from departments loop fetch d into r.last_name; exit when d%notfound; dbms_output.put_line(r); end loop; close d; end;<br/><br/>  <br/><br/> fetch d into r.last_name; * [/pre] يوجد خطأ عند سطر 8: ORA-06550: ¿¿¿ 7 ¿ ¿¿¿¿ 6 : PL/SQL: ORA-00933: ¿¿¿ SQL ¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿ ORA-06550: ¿¿¿ 6 ¿ ¿¿¿¿ 12 : PL/SQL: SQL Statement ignored ORA-06550: ¿¿¿ 12 ¿ ¿¿¿¿ 1 : PLS-00103: ¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿ &#8220;CLOSE&#8221; <br/><br/>
<div></div>
<p> [table border="0" width="100%" cellpadding="0" cellspacing="0"> [tbody] [tr] [td align="right">[/td] [/tr] [/tbody] [/table]
<div></div>
<p> [table border="0" width="100%" cellpadding="0" cellspacing="0"> [tbody] [tr] [td colspan="3"> [script][/script] <img width="1" src="http://itknowledgeexchange.techtarget.com/isqlplus/cabo/images/t.gif" height="9" />[/td] [/tr] [tr] [td colspan="2"> [script][/script] <img width="1" src="http://itknowledgeexchange.techtarget.com/isqlplus/cabo/images/t.gif" height="14" />[/td] [td rowspan="2"><img width="14" src="http://itknowledgeexchange.techtarget.com/isqlplus/cabo/images/cache/c-skir.gif" height="15" />[/td] [/tr] [tr] [td colspan="2" width="100%" class="x9">[/td] [/tr] [tr] [td colspan="3"> [script][/script] <img width="1" src="http://itknowledgeexchange.techtarget.com/isqlplus/cabo/images/t.gif" height="2" />[/td] [/tr] [tr] [td][/td] [/tr] [/tbody] [/table] fetch d into r.last_name; * [/pre] يوجد خطأ عند سطر 8: ORA-06550: ¿¿¿ 7 ¿ ¿¿¿¿ 6 : PL/SQL: ORA-00933: ¿¿¿ SQL ¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿ ORA-06550: ¿¿¿ 6 ¿ ¿¿¿¿ 12 : PL/SQL: SQL Statement ignored ORA-06550: ¿¿¿ 12 ¿ ¿¿¿¿ 1 : PLS-00103: ¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿ &#8220;CLOSE&#8221;
<div></div>
<p> [table border="0" width="100%" cellpadding="0" cellspacing="0"> [tbody] [tr] [td align="right">[/td] [/tr] [/tbody] [/table]
<div></div>
<p> [table border="0" width="100%" cellpadding="0" cellspacing="0"> [tbody] [tr] [td colspan="3"> [script][/script] <img width="1" src="http://itknowledgeexchange.techtarget.com/isqlplus/cabo/images/t.gif" height="9" />[/td] [/tr] [tr] [td colspan="2"> [script][/script] <img width="1" src="http://itknowledgeexchange.techtarget.com/isqlplus/cabo/images/t.gif" height="14" />[/td] [td rowspan="2"><img width="14" src="http://itknowledgeexchange.techtarget.com/isqlplus/cabo/images/cache/c-skir.gif" height="15" />[/td] [/tr] [tr] [td colspan="2" width="100%" class="x9">[/td] [/tr] [tr] [td colspan="3"> [script][/script] <img width="1" src="http://itknowledgeexchange.techtarget.com/isqlplus/cabo/images/t.gif" height="2" />[/td] [/tr] [tr] [td][/td] [/tr] [/tbody] [/table]</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/database-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-06550: line 224, column 7: error running in SQLPLUS</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550-line-224-column-7-error-running-in-sqlplus/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550-line-224-column-7-error-running-in-sqlplus/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 01:13:19 +0000</pubDate>
		<dc:creator>Catch93</dc:creator>
				<category><![CDATA[ORA-06550]]></category>
		<category><![CDATA[Oracle Error Codes]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[SQL Execution]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Im getting the following error when running the code below: SQL&#62; @n377d_load_tfdscpm_sxb.sql       exception       * ERROR at line 224: ORA-06550: line 224, column 7: PLS-00103: Encountered the symbol &#8220;EXCEPTION&#8221; when expecting one of the following: begin case declare end exit for goto if loop mod null pragma raise return select update while with &#60;an [...]]]></description>
				<content:encoded><![CDATA[<p>Im getting the following error when running the code below:<br/><br/> SQL&gt; @n377d_load_tfdscpm_sxb.sql       exception       * ERROR at line 224: ORA-06550: line 224, column 7: PLS-00103: Encountered the symbol &#8220;EXCEPTION&#8221; when expecting one of the following: begin case declare end exit for goto if loop mod null pragma raise return select update while with &lt;an identifier&gt; &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; &lt;&lt; close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe ORA-06550: line 235, column 5: PLS-00103: Encountered the symbol &#8220;DBMS_OUTPUT&#8221; when expecting one of the following: end not pragma final instantiable order overriding static member constructor map ORA-06550: line 235, column 63: PLS-00103: Encountered the symbol &#8220;;&#8221; when expecting one of the following: . ( , * % &#038; &#8211; + / at mod remainder rem &lt;an identifier&gt; &lt;a double-quoted delimited-identifier&gt; &lt;an exponent (**)&gt; as from into || multiset bulk ORA-06550: line 451, column 3: PLS-00103: Encountered the symbol &#8220;DBMS_OUTPUT&#8221; ORA-06550: line 451, column 101: PLS-00103: Encountered the symbol &#8220;;&#8221;<br/><br/>  Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 &#8211; 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options<br/><br/>  <br/><br/> declare   cursor c_tfdscpm_sxb_ext is     select dt_dri_nr              ,ogz_dfl_psl_dri_nr              ,src_rec_udt_ts              ,unv_cny_cd              ,unv_ogz_nr              ,unv_reg_nr              ,unv_dis_nr              ,unv_div_nr              ,ctr_wrk_sxb_qy              ,ctr_wrk_tmp_qy              ,scv_wkh_qy              ,scv_otc_lon_hr_qy              ,scv_bor_hr_qy              ,scv_prl_owk_alh_qy              ,scv_ls_owk_alh_qy              ,scv_clk_owk_alh_qy              ,scv_oth_owk_alh_qy              ,scv_del_pkg_qy              ,scv_net_del_pkg_qy              ,scv_pu_pkg_qy              ,scv_ds_qy              ,scv_pu_stp_qy              ,scv_drr_stp_qy              ,scv_tlr_pu_pal_qy              ,scv_tlr_los_pkg_qy              ,scv_spc_cnt_a_qy              ,scv_spc_cnt_b_qy              ,scv_spc_cnt_c_qy              ,scv_spc_cnt_d_qy              ,scv_spc_cnt_e_qy              ,scv_spc_cnt_f_qy              ,scv_spc_cnt_g_qy              ,scv_spc_cnt_h_qy              ,scv_spc_cnt_i_qy              ,scv_spc_cnt_j_qy              ,scv_spc_cnt_k_qy              ,scv_1da_del_pkg_qy              ,scv_2da_del_pkg_qy              ,scv_mss_del_pkg_qy              ,scv_cod_sag_pkg_qy              ,scv_sag_pd_pkg_qy              ,cod_pkg_clt_qy              ,scv_ctg_del_pkg_qy              ,pvs_rec_del_pkg_qy              ,scv_pmm_mss_tm_qy              ,scv_pm_rcr_pkg_qy              ,scv_bef_230_pus_qy              ,scv_bef_230_ppk_qy              ,scv_dbx_qy              ,scv_dbx_isd_pus_qy              ,scv_dbx_osd_pus_qy              ,scv_ppy_pu_pkg_qy              ,scv_dmd_pu_pkg_qy              ,scv_dmd_pu_air_qy              ,scv_pu_stp_mss_qy              ,scv_hi_vlu_ppk_qy              ,scv_owt_pkg_qy              ,scv_xps_pls_ppk_qy              ,scv_xps_ppk_qy              ,scv_xps_sav_ppk_qy              ,scv_xpi_pu_pkg_qy              ,scv_3ds_pu_pkg_qy              ,scv_std_pu_pkg_qy              ,scv_ecn_pu_pkg_qy              ,scv_inl_pu_pkg_qy              ,scv_xps_pls_pkd_qy              ,scv_xps_del_pkg_qy              ,scv_xps_sav_pkd_qy              ,scv_xpi_del_pkg_qy              ,scv_3ds_del_pkg_qy              ,scv_std_pkd_qy              ,scv_ecn_pkd_qy              ,scv_inl_pkd_qy              ,scv_spc_cnt_1_qy              ,scv_spc_cnt_2_qy              ,scv_spc_cnt_3_qy              ,scv_spc_cnt_4_qy              ,scv_spc_cnt_5_qy              ,scv_spc_cnt_6_qy              ,scv_spc_cnt_7_qy              ,scv_spc_cnt_8_qy              ,scv_spc_cnt_9_qy              ,scv_spc_cnt_10_qy              ,scv_spc_cnt_11_qy              ,scv_spc_cnt_12_qy              ,scv_spc_cnt_13_qy              ,scv_spc_cnt_14_qy              ,scv_spc_cnt_15_qy              ,scv_spc_cnt_16_qy              ,scv_spc_cnt_17_qy              ,scv_spc_cnt_18_qy              ,scv_spc_cnt_19_qy              ,scv_spc_cnt_20_qy     from   tfdscpm_sxb_ext;   L_ext_rec_cnt     PLS_INTEGER := 0;   L_ins_rec_cnt     PLS_INTEGER := 0;   L_upd_rec_cnt     PLS_INTEGER := 0;   L_commit_cnt      PLS_INTEGER := 0;   L_rec_inserted    BOOLEAN := FALSE;   L_rec_insert_disp  VARCHAR2(1);   L_start_time      DATE;   L_end_time        DATE;   L_elap_time       NUMBER;   L_elap_time_c     VARCHAR2(30);   L_dt_dri_nr       NUMBER;   L_tmp_ctr         NUMBER;   L_pgm_name        CONSTANT VARCHAR2(20) := &#8216;n377d_load_tfdscpm_sxb&#8217;;   I2                PLS_INTEGER := 0; begin   L_start_time := sysdate;   dbms_output.put_line( &#8216;PGM BEGIN DATE/TIME :         &#8216;||TO_CHAR(sysdate,&#8217;YYYY-MM-DD  HH24:MI:SS&#8217;));   dbms_output.put_line(&#8216;********************************************&#8217;);   stat_pkg.report_status(L_pgm_name,0,&#8217;***PGM START***&#8217;);   L_tmp_ctr := to_number(to_char(sysdate,&#8217;sssss&#8217;));   for extrec in c_tfdscpm_sxb_ext loop     L_ext_rec_cnt := L_ext_rec_cnt + 1;     L_rec_inserted  := FALSE;     L_rec_insert_disp := &#8216;N&#8217;;  &#8211; dbms_output.put_line(&#8216;***&#8217; );  &#8211; dbms_output.put_line(&#8216;record count      : &#8216;||L_ext_rec_cnt );  &#8211; dbms_output.put_line(&#8216;input data&#8217; );  &#8211; dbms_output.put_line(&#8216;dt dri            : &#8216;||extrec.dt_dri_nr );  &#8211; dbms_output.put_line(&#8216;ogz               : &#8216;||extrec.unv_ogz_nr );  &#8211; dbms_output.put_line(&#8216;cny               : &#8216;||extrec.unv_cny_cd );  &#8211; dbms_output.put_line(&#8216;***&#8217; );     update tfdscpm_sxb t1        set    ogz_dfl_psl_dri_nr  = extrec.ogz_dfl_psl_dri_nr              ,src_rec_udt_ts  = extrec.src_rec_udt_ts               ,unv_cny_cd  = extrec.unv_cny_cd               ,unv_ogz_nr  = extrec.unv_ogz_nr               ,unv_reg_nr  = extrec.unv_reg_nr               ,unv_dis_nr  = extrec.unv_dis_nr               ,unv_div_nr  = extrec.unv_div_nr               ,ctr_wrk_sxb_qy  = extrec.ctr_wrk_sxb_qy               ,ctr_wrk_tmp_qy  = extrec.ctr_wrk_tmp_qy               ,scv_wkh_qy  = extrec.scv_wkh_qy               ,scv_otc_lon_hr_qy  = extrec.scv_otc_lon_hr_qy              ,scv_bor_hr_qy  = extrec.scv_bor_hr_qy               ,scv_prl_owk_alh_qy = extrec.scv_prl_owk_alh_qy              ,scv_ls_owk_alh_qy  = extrec.scv_ls_owk_alh_qy              ,scv_clk_owk_alh_qy = extrec.scv_clk_owk_alh_qy              ,scv_oth_owk_alh_qy = extrec.scv_oth_owk_alh_qy              ,scv_del_pkg_qy  = extrec.scv_del_pkg_qy               ,scv_net_del_pkg_qy = extrec.scv_net_del_pkg_qy              ,scv_pu_pkg_qy  = extrec.scv_pu_pkg_qy               ,scv_ds_qy          = extrec.scv_ds_qy               ,scv_pu_stp_qy  = extrec.scv_pu_stp_qy               ,scv_drr_stp_qy  = extrec.scv_drr_stp_qy               ,scv_tlr_pu_pal_qy  = extrec.scv_tlr_pu_pal_qy              ,scv_tlr_los_pkg_qy = extrec.scv_tlr_los_pkg_qy              ,scv_spc_cnt_a_qy  = extrec.scv_spc_cnt_a_qy              ,scv_spc_cnt_b_qy  = extrec.scv_spc_cnt_b_qy              ,scv_spc_cnt_c_qy  = extrec.scv_spc_cnt_c_qy              ,scv_spc_cnt_d_qy  = extrec.scv_spc_cnt_d_qy              ,scv_spc_cnt_e_qy  = extrec.scv_spc_cnt_e_qy              ,scv_spc_cnt_f_qy  = extrec.scv_spc_cnt_f_qy              ,scv_spc_cnt_g_qy  = extrec.scv_spc_cnt_g_qy              ,scv_spc_cnt_h_qy  = extrec.scv_spc_cnt_h_qy              ,scv_spc_cnt_i_qy  = extrec.scv_spc_cnt_i_qy              ,scv_spc_cnt_j_qy  = extrec.scv_spc_cnt_j_qy              ,scv_spc_cnt_k_qy  = extrec.scv_spc_cnt_k_qy              ,scv_1da_del_pkg_qy = extrec.scv_1da_del_pkg_qy              ,scv_2da_del_pkg_qy = extrec.scv_2da_del_pkg_qy              ,scv_mss_del_pkg_qy = extrec.scv_mss_del_pkg_qy              ,scv_cod_sag_pkg_qy = extrec.scv_cod_sag_pkg_qy              ,scv_sag_pd_pkg_qy  = extrec.scv_sag_pd_pkg_qy              ,cod_pkg_clt_qy  = extrec.cod_pkg_clt_qy               ,scv_ctg_del_pkg_qy = extrec.scv_ctg_del_pkg_qy              ,pvs_rec_del_pkg_qy = extrec.pvs_rec_del_pkg_qy              ,scv_pmm_mss_tm_qy  = extrec.scv_pmm_mss_tm_qy              ,scv_pm_rcr_pkg_qy  = extrec.scv_pm_rcr_pkg_qy              ,scv_bef_230_pus_qy = extrec.scv_bef_230_pus_qy              ,scv_bef_230_ppk_qy = extrec.scv_bef_230_ppk_qy              ,scv_dbx_qy  = extrec.scv_dbx_qy               ,scv_dbx_isd_pus_qy = extrec.scv_dbx_isd_pus_qy              ,scv_dbx_osd_pus_qy = extrec.scv_dbx_osd_pus_qy              ,scv_ppy_pu_pkg_qy  = extrec.scv_ppy_pu_pkg_qy              ,scv_dmd_pu_pkg_qy  = extrec.scv_dmd_pu_pkg_qy              ,scv_dmd_pu_air_qy  = extrec.scv_dmd_pu_air_qy              ,scv_pu_stp_mss_qy  = extrec.scv_pu_stp_mss_qy              ,scv_hi_vlu_ppk_qy  = extrec.scv_hi_vlu_ppk_qy              ,scv_owt_pkg_qy  = extrec.scv_owt_pkg_qy              ,scv_xps_pls_ppk_qy = extrec.scv_xps_pls_ppk_qy              ,scv_xps_ppk_qy  = extrec.scv_xps_ppk_qy              ,scv_xps_sav_ppk_qy = extrec.scv_xps_sav_ppk_qy              ,scv_xpi_pu_pkg_qy  = extrec.scv_xpi_pu_pkg_qy              ,scv_3ds_pu_pkg_qy  = extrec.scv_3ds_pu_pkg_qy              ,scv_std_pu_pkg_qy  = extrec.scv_std_pu_pkg_qy              ,scv_ecn_pu_pkg_qy  = extrec.scv_ecn_pu_pkg_qy              ,scv_inl_pu_pkg_qy  = extrec.scv_inl_pu_pkg_qy              ,scv_xps_pls_pkd_qy = extrec.scv_xps_pls_pkd_qy              ,scv_xps_del_pkg_qy = extrec.scv_xps_del_pkg_qy              ,scv_xps_sav_pkd_qy = extrec.scv_xps_sav_pkd_qy              ,scv_xpi_del_pkg_qy = extrec.scv_xpi_del_pkg_qy              ,scv_3ds_del_pkg_qy = extrec.scv_3ds_del_pkg_qy              ,scv_std_pkd_qy  = extrec.scv_std_pkd_qy               ,scv_ecn_pkd_qy  = extrec.scv_ecn_pkd_qy              ,scv_inl_pkd_qy  = extrec.scv_inl_pkd_qy               ,scv_spc_cnt_1_qy  = extrec.scv_spc_cnt_1_qy              ,scv_spc_cnt_2_qy  = extrec.scv_spc_cnt_2_qy              ,scv_spc_cnt_3_qy  = extrec.scv_spc_cnt_3_qy              ,scv_spc_cnt_4_qy  = extrec.scv_spc_cnt_4_qy              ,scv_spc_cnt_5_qy  = extrec.scv_spc_cnt_5_qy              ,scv_spc_cnt_6_qy  = extrec.scv_spc_cnt_6_qy              ,scv_spc_cnt_7_qy  = extrec.scv_spc_cnt_7_qy              ,scv_spc_cnt_8_qy  = extrec.scv_spc_cnt_8_qy              ,scv_spc_cnt_9_qy  = extrec.scv_spc_cnt_9_qy              ,scv_spc_cnt_10_qy  = extrec.scv_spc_cnt_10_qy              ,scv_spc_cnt_11_qy  = extrec.scv_spc_cnt_11_qy              ,scv_spc_cnt_12_qy  = extrec.scv_spc_cnt_12_qy              ,scv_spc_cnt_13_qy  = extrec.scv_spc_cnt_13_qy              ,scv_spc_cnt_14_qy  = extrec.scv_spc_cnt_14_qy              ,scv_spc_cnt_15_qy  = extrec.scv_spc_cnt_15_qy              ,scv_spc_cnt_16_qy  = extrec.scv_spc_cnt_16_qy              ,scv_spc_cnt_17_qy  = extrec.scv_spc_cnt_17_qy              ,scv_spc_cnt_18_qy  = extrec.scv_spc_cnt_18_qy              ,scv_spc_cnt_19_qy  = extrec.scv_spc_cnt_19_qy              ,scv_spc_cnt_20_qy  = extrec.scv_spc_cnt_20_qy              ,rec_udt_ts                = sysdate         where dt_dri_nr                 = extrec.dt_dri_nr         and   unv_cny_cd                = extrec.unv_cny_cd         and   unv_ogz_nr                = extrec.unv_ogz_nr;       exception         when others then           dbms_output.put_line( &#8216;&#8212;&#8212;&#8212;&#8212;- EXCEPTION 2 &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8217; );           dbms_output.put_line( &#8216;ERROR UPDATING TFDSCPM_SXB row&#8217; );           dbms_output.put_line( &#8216;EXTERNAL ROW = &#8216;||L_ext_rec_cnt );           dbms_output.put_line( &#8216;SQLCODE = &#8216;||SQLCODE );           dbms_output.put_line( &#8216;SQL Text = &#8216;||SQLERRM );           dbms_output.put_line( &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8217; );           stat_pkg.report_status( L_pgm_name, SQLCODE, SQLERRM );           raise_application_error(-20002,&#8217;ERROR EXIT CODE=&#8217;||sqlcode );       end;   &#8211;  dbms_output.put_line( &#8216;insert sw1 : &#8216;||L_rec_insert_disp );     if sql%rowcount = 0 then       begin         insert into tfdscpm_sxb (               dt_dri_nr              ,ogz_dfl_psl_dri_nr              ,rec_udt_ts              ,rec_ins_ts              ,src_rec_udt_ts              ,unv_cny_cd              ,unv_ogz_nr              ,unv_reg_nr              ,unv_dis_nr              ,unv_div_nr              ,ctr_wrk_sxb_qy              ,ctr_wrk_tmp_qy              ,scv_wkh_qy              ,scv_otc_lon_hr_qy              ,scv_bor_hr_qy              ,scv_prl_owk_alh_qy              ,scv_ls_owk_alh_qy              ,scv_clk_owk_alh_qy              ,scv_oth_owk_alh_qy              ,scv_del_pkg_qy              ,scv_net_del_pkg_qy              ,scv_pu_pkg_qy              ,scv_ds_qy              ,scv_pu_stp_qy              ,scv_drr_stp_qy              ,scv_tlr_pu_pal_qy              ,scv_tlr_los_pkg_qy              ,scv_spc_cnt_a_qy              ,scv_spc_cnt_b_qy              ,scv_spc_cnt_c_qy              ,scv_spc_cnt_d_qy              ,scv_spc_cnt_e_qy              ,scv_spc_cnt_f_qy              ,scv_spc_cnt_g_qy              ,scv_spc_cnt_h_qy              ,scv_spc_cnt_i_qy              ,scv_spc_cnt_j_qy              ,scv_spc_cnt_k_qy              ,scv_1da_del_pkg_qy              ,scv_2da_del_pkg_qy              ,scv_mss_del_pkg_qy              ,scv_cod_sag_pkg_qy              ,scv_sag_pd_pkg_qy              ,cod_pkg_clt_qy              ,scv_ctg_del_pkg_qy              ,pvs_rec_del_pkg_qy              ,scv_pmm_mss_tm_qy              ,scv_pm_rcr_pkg_qy              ,scv_bef_230_pus_qy              ,scv_bef_230_ppk_qy              ,scv_dbx_qy              ,scv_dbx_isd_pus_qy              ,scv_dbx_osd_pus_qy              ,scv_ppy_pu_pkg_qy              ,scv_dmd_pu_pkg_qy              ,scv_dmd_pu_air_qy              ,scv_pu_stp_mss_qy              ,scv_hi_vlu_ppk_qy              ,scv_owt_pkg_qy              ,scv_xps_pls_ppk_qy              ,scv_xps_ppk_qy              ,scv_xps_sav_ppk_qy              ,scv_xpi_pu_pkg_qy              ,scv_3ds_pu_pkg_qy              ,scv_std_pu_pkg_qy              ,scv_ecn_pu_pkg_qy              ,scv_inl_pu_pkg_qy              ,scv_xps_pls_pkd_qy              ,scv_xps_del_pkg_qy              ,scv_xps_sav_pkd_qy              ,scv_xpi_del_pkg_qy              ,scv_3ds_del_pkg_qy              ,scv_std_pkd_qy              ,scv_ecn_pkd_qy              ,scv_inl_pkd_qy              ,scv_spc_cnt_1_qy              ,scv_spc_cnt_2_qy              ,scv_spc_cnt_3_qy              ,scv_spc_cnt_4_qy              ,scv_spc_cnt_5_qy              ,scv_spc_cnt_6_qy              ,scv_spc_cnt_7_qy              ,scv_spc_cnt_8_qy              ,scv_spc_cnt_9_qy              ,scv_spc_cnt_10_qy              ,scv_spc_cnt_11_qy              ,scv_spc_cnt_12_qy              ,scv_spc_cnt_13_qy              ,scv_spc_cnt_14_qy              ,scv_spc_cnt_15_qy              ,scv_spc_cnt_16_qy              ,scv_spc_cnt_17_qy              ,scv_spc_cnt_18_qy              ,scv_spc_cnt_19_qy              ,scv_spc_cnt_20_qy         values(  extrec.dt_dri_nr                  ,extrec.ogz_dfl_psl_dri_nr                 ,sysdate                 ,sysdate                 ,extrec.src_rec_udt_ts                  ,extrec.unv_cny_cd                  ,extrec.unv_ogz_nr                  ,extrec.unv_reg_nr                  ,extrec.unv_dis_nr                  ,extrec.unv_div_nr                  ,extrec.ctr_wrk_sxb_qy                  ,extrec.ctr_wrk_tmp_qy                  ,extrec.scv_wkh_qy                  ,extrec.scv_otc_lon_hr_qy                 ,extrec.scv_bor_hr_qy                  ,extrec.scv_prl_owk_alh_qy                 ,extrec.scv_ls_owk_alh_qy                 ,extrec.scv_clk_owk_alh_qy                 ,extrec.scv_oth_owk_alh_qy                 ,extrec.scv_del_pkg_qy                  ,extrec.scv_net_del_pkg_qy                 ,extrec.scv_pu_pkg_qy                  ,extrec.scv_ds_qy                  ,extrec.scv_pu_stp_qy                  ,extrec.scv_drr_stp_qy                  ,extrec.scv_tlr_pu_pal_qy                 ,extrec.scv_tlr_los_pkg_qy                 ,extrec.scv_spc_cnt_a_qy                 ,extrec.scv_spc_cnt_b_qy                 ,extrec.scv_spc_cnt_c_qy                 ,extrec.scv_spc_cnt_d_qy                 ,extrec.scv_spc_cnt_e_qy                 ,extrec.scv_spc_cnt_f_qy                 ,extrec.scv_spc_cnt_g_qy                 ,extrec.scv_spc_cnt_h_qy                 ,extrec.scv_spc_cnt_i_qy                 ,extrec.scv_spc_cnt_j_qy                 ,extrec.scv_spc_cnt_k_qy                 ,extrec.scv_1da_del_pkg_qy                 ,extrec.scv_2da_del_pkg_qy                 ,extrec.scv_mss_del_pkg_qy                 ,extrec.scv_cod_sag_pkg_qy                 ,extrec.scv_sag_pd_pkg_qy                 ,extrec.cod_pkg_clt_qy                  ,extrec.scv_ctg_del_pkg_qy                 ,extrec.pvs_rec_del_pkg_qy                 ,extrec.scv_pmm_mss_tm_qy                 ,extrec.scv_pm_rcr_pkg_qy                 ,extrec.scv_bef_230_pus_qy                 ,extrec.scv_bef_230_ppk_qy                 ,extrec.scv_dbx_qy                  ,extrec.scv_dbx_isd_pus_qy                 ,extrec.scv_dbx_osd_pus_qy                 ,extrec.scv_ppy_pu_pkg_qy                 ,extrec.scv_dmd_pu_pkg_qy                 ,extrec.scv_dmd_pu_air_qy                 ,extrec.scv_pu_stp_mss_qy                 ,extrec.scv_hi_vlu_ppk_qy                 ,extrec.scv_owt_pkg_qy                 ,extrec.scv_xps_pls_ppk_qy                 ,extrec.scv_xps_ppk_qy                 ,extrec.scv_xps_sav_ppk_qy                 ,extrec.scv_xpi_pu_pkg_qy                 ,extrec.scv_3ds_pu_pkg_qy                 ,extrec.scv_std_pu_pkg_qy                 ,extrec.scv_ecn_pu_pkg_qy                 ,extrec.scv_inl_pu_pkg_qy                 ,extrec.scv_xps_pls_pkd_qy                 ,extrec.scv_xps_del_pkg_qy                 ,extrec.scv_xps_sav_pkd_qy                 ,extrec.scv_xpi_del_pkg_qy                 ,extrec.scv_3ds_del_pkg_qy                 ,extrec.scv_std_pkd_qy                  ,extrec.scv_ecn_pkd_qy                 ,extrec.scv_inl_pkd_qy                  ,extrec.scv_spc_cnt_1_qy                 ,extrec.scv_spc_cnt_2_qy                 ,extrec.scv_spc_cnt_3_qy                 ,extrec.scv_spc_cnt_4_qy                 ,extrec.scv_spc_cnt_5_qy                 ,extrec.scv_spc_cnt_6_qy                 ,extrec.scv_spc_cnt_7_qy                 ,extrec.scv_spc_cnt_8_qy                 ,extrec.scv_spc_cnt_9_qy                 ,extrec.scv_spc_cnt_10_qy                 ,extrec.scv_spc_cnt_11_qy                 ,extrec.scv_spc_cnt_12_qy                 ,extrec.scv_spc_cnt_13_qy                 ,extrec.scv_spc_cnt_14_qy                 ,extrec.scv_spc_cnt_15_qy                 ,extrec.scv_spc_cnt_16_qy                 ,extrec.scv_spc_cnt_17_qy                 ,extrec.scv_spc_cnt_18_qy                 ,extrec.scv_spc_cnt_19_qy                 ,extrec.scv_spc_cnt_20_qy);       L_rec_inserted   := TRUE;       exception         when others then           dbms_output.put_line( &#8216;&#8212;&#8212;&#8212; EXCEPTION 1 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8217; );           dbms_output.put_line( &#8216;ERROR INSERTING TFDSCPM_SXB row&#8217; );           dbms_output.put_line( &#8216;EXTERNAL ROW = &#8216;||L_ext_rec_cnt );           dbms_output.put_line( &#8216;SQLCODE = &#8216;||SQLCODE );           dbms_output.put_line( &#8216;SQL Text = &#8216;||SQLERRM );           dbms_output.put_line( &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8217; );           stat_pkg.report_status( L_pgm_name, SQLCODE, SQLERRM );           raise_application_error(-20001,&#8217;ERROR EXIT CODE=&#8217;||sqlcode );       end;     end if;     if L_rec_inserted then   &#8211;    dbms_output.put_line( &#8216;inserted&#8217; );       L_ins_rec_cnt := L_ins_rec_cnt + 1;     else       L_upd_rec_cnt := L_upd_rec_cnt + 1;   &#8211;    dbms_output.put_line( &#8216;updated &#8216; );     end if;   end loop; &#8212;   dbms_output.put_line( &#8216;PGM END DATE/TIME :           &#8216;||TO_CHAR(sysdate,&#8217;YYYY-MM-DD  HH24:MI:SS&#8217;));   dbms_output.put_line( &#8216;EXTERNAL TABLE COUNT = &#8216;|| LPAD(TO_CHAR( L_ext_rec_cnt ),7));   dbms_output.put_line( &#8216;EXTERNAL FETCH COUNT = &#8216;|| LPAD(TO_CHAR( L_ext_rec_cnt ),7));   dbms_output.put_line( &#8216;*******************************************&#8217; );   dbms_output.put_line( &#8216;BASE FOUND           = &#8216;|| LPAD(TO_CHAR( L_upd_rec_cnt ),7));   dbms_output.put_line( &#8216;BASE NOT FOUND       = &#8216;|| LPAD(TO_CHAR( L_ins_rec_cnt ),7));   dbms_output.put_line( &#8216;BASE INSERTED        = &#8216;|| LPAD(TO_CHAR( L_ins_rec_cnt ),7));   dbms_output.put_line( &#8216;BASE UPDATED         = &#8216;|| LPAD(TO_CHAR( L_upd_rec_cnt ),7));<br/><br/>   dbms_output.put_line( &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8217; );   L_end_time :=  sysdate;   dbms_output.put_line(&#8216;Start=&#8217;||to_char(L_start_time,&#8217;yy-mm-dd hh24:mi:ss&#8217;) ||&#8217; End=&#8217;||to_char(L_end_time,&#8217;yy-mm-dd hh24:mi:ss&#8217;) );   L_elap_time := ( L_end_time &#8211; L_start_time ) *60*60*24;   L_elap_time_c := NUMTODSINTERVAL( L_elap_time, &#8216;SECOND&#8217; );   dbms_output.put_line( &#8216;Elapsed time: &#8216;||substr( L_elap_time_c, 12, 8 ));   commit;   stat_pkg.report_status(L_pgm_name,0,&#8217;Ext=&#8217;||L_ext_rec_cnt||&#8217; Upd=&#8217;||L_upd_rec_cnt||&#8217; Ins=&#8217;||L_ins_rec_cnt);   stat_pkg.report_status(L_pgm_name,0,&#8217;Completed. Elapsed=&#8217;||substr( L_elap_time_c, 12, 8 )); exception     when others then      rollback;      dbms_output.put_line( &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8217; );      dbms_output.put_line( &#8216;ERROR IN FACT UPDATE&#8217; );      dbms_output.put_line( &#8216;EXTERNAL TABLE COUNT = &#8216;|| LPAD(TO_CHAR( L_ext_rec_cnt ),7));      dbms_output.put_line( &#8216;Error was encountered &#8211; &#8216;||SQLCODE||&#8217; -ERROR- &#8216;||SQLERRM );      dbms_output.put_line( &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8217; );      stat_pkg.report_status( L_pgm_name, SQLCODE, SQLERRM );      raise; end; / exit<br/><br/>  <br/><br/>  <br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550-line-224-column-7-error-running-in-sqlplus/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ora-06550</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 11:15:34 +0000</pubDate>
		<dc:creator>535236917</dc:creator>
				<category><![CDATA[ORA-06550]]></category>
		<category><![CDATA[Oracle error messages]]></category>
		<category><![CDATA[Oracle errors]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I found this error in alert log file ora-06550 and ora-02063 please help in  to solve these issue   its urgent .]]></description>
				<content:encoded><![CDATA[<p>I found this error in alert log file ora-06550 and ora-02063 please help in  to solve these issue <br/><br/>  <br/><br/> its urgent .<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Error ORA 06550</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-ora-06550/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/error-ora-06550/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 09:28:52 +0000</pubDate>
		<dc:creator>Nidi9</dc:creator>
				<category><![CDATA[ORA-06550]]></category>
		<category><![CDATA[Oracle error messages]]></category>
		<category><![CDATA[PLS-00013]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi.. I am Planning to make email automation . mail should have attachment. Attachment is the result of query execution in oracle database .I am getting error ORA 06550 and PLS 00013.Can u help me solve this glitch..Here I Put My PACKAGE.. create table config2 ( TO_ADDRESS VARCHAR2(1000), SMTP_SERVER VARCHAR2(1000), FROM_ADDRESS VARCHAR2(1000), EMAIL_SUBJECT VARCHAR2(1000), EMAIL_TEXT [...]]]></description>
				<content:encoded><![CDATA[<p>Hi.. I am Planning to make email automation . mail should have attachment. Attachment is the result of query execution in oracle database .I am getting error ORA 06550 and PLS 00013.Can u help me solve this glitch..Here I Put My PACKAGE..<br />
create table config2<br />
( TO_ADDRESS VARCHAR2(1000),<br />
  SMTP_SERVER       VARCHAR2(1000),<br />
  FROM_ADDRESS      VARCHAR2(1000),<br />
  EMAIL_SUBJECT  VARCHAR2(1000),<br />
  EMAIL_TEXT     VARCHAR2(1000));<br />
****************************************<br />
NTS00005.IMP-DOM.COM</p>
<p>insert into config(TO_ADDRESS, SMTP_SERVER ,FROM_ADDRESS, EMAIL_SUBJECT ,EMAIL_TEXT)valueS(&#8216;abc@ghj.com&#8217;,'xyxyxy.india.dom&#8217;,'xyz@abd.com&#8217;,'Hi&#8217;,'Hello&#8217;);</p>
<p>*************************************************<br />
create table GT_TEMP<br />
(<br />
  ID VARCHAR2(4000));<br />
******************************************************<br />
CREATE OR REPLACE PACKAGE PCK_EMAIL_ATTACHMENT IS<br />
   TYPE ref_cur_t IS REF CURSOR;<br />
   g_query    VARCHAR2 (32000);<br />
   g_count    NUMBER;<br />
   name VARCHAR2(100);<br />
   VALUE VARCHAR2(100);<br />
   g_desc_tab DBMS_SQL.DESC_TAB;<br />
   error   NUMBER := 0;<br />
   success NUMBER := 1;<br />
   v_txt             varchar2(4000);<br />
   v_rc    NUMBER ;<br />
   varchar2_type CONSTANT PLS_INTEGER := 1;<br />
   number_type   CONSTANT PLS_INTEGER := 2;<br />
   date_type     CONSTANT PLS_INTEGER := 12;<br />
   rowid_type    CONSTANT PLS_INTEGER := 11;<br />
   char_type     CONSTANT PLS_INTEGER := 96;<br />
   l_col_name  varchar2(3000) := null ;</p>
<p>   long_type     CONSTANT PLS_INTEGER := 8;<br />
   raw_type      CONSTANT PLS_INTEGER := 23;<br />
   mlslabel_type CONSTANT PLS_INTEGER := 106;<br />
   clob_type     CONSTANT PLS_INTEGER := 112;<br />
   blob_type     CONSTANT PLS_INTEGER := 113;<br />
   bfile_type    CONSTANT PLS_INTEGER := 114;</p>
<p>   FUNCTION describe_columns(v_txt IN  OUT VARCHAR2) RETURN NUMBER ;<br />
   FUNCTION send_email (p_query VARCHAR2 :=NULL ,in_col_name VARCHAR2 :=NULL , in_html_append VARCHAR2 :=NULL , file_name VARCHAR2 :=NULL , v_txt IN OUT VARCHAR2 ) RETURN NUMBER;<br />
   FUNCTION record_def(v_txt IN  OUT VARCHAR2) RETURN VARCHAR2;<br />
   FUNCTION ref_cur RETURN PCK_EMAIL_ATTACHMENT.ref_cur_t;<br />
   FUNCTION process_def(v_txt IN  OUT VARCHAR2) RETURN VARCHAR2 ;<br />
END;<br />
*************************************************<br />
CREATE OR REPLACE PACKAGE BODY PCK_EMAIL_ATTACHMENT IS<br />
   FUNCTION describe_columns(v_txt IN  OUT VARCHAR2) RETURN NUMBER IS<br />
      l_cur INTEGER;<br />
   BEGIN<br />
   dbms_output.put_line(&#8216;inside function describe_columns &#8216;);<br />
      l_cur := DBMS_SQL.OPEN_CURSOR;<br />
      DBMS_SQL.PARSE            (l_cur, g_query, DBMS_SQL.NATIVE);<br />
      DBMS_SQL.DESCRIBE_COLUMNS (l_cur, g_count, g_desc_tab);<br />
      DBMS_SQL.CLOSE_CURSOR     (l_cur);<br />
      Return success ;<br />
   EXCEPTION<br />
      WHEN OTHERS THEN<br />
       dbms_output.put_line(&#8216;inside function describe_columns exception&#8217;);<br />
       IF DBMS_SQL.IS_OPEN (l_cur) THEN<br />
          DBMS_SQL.CLOSE_CURSOR (l_cur);<br />
       END IF;<br />
       v_txt := &#8216;Error in  function describe_columns :-&#8217;||SQLERRM ;<br />
  	   Return error;<br />
   END;</p>
<p>   FUNCTION process_def(v_txt IN  OUT VARCHAR2) RETURN VARCHAR2 IS<br />
      l_process_def VARCHAR2 (32000) := null;<br />
   BEGIN<br />
      l_process_def := &#8216;TO_CHAR (&#8216;;<br />
      FOR i IN 1 .. PCK_EMAIL_ATTACHMENT.g_count LOOP<br />
         l_process_def := l_process_def || &#8216; l_record.col_&#8217; || i || &#8216; ||&#8221;,&#8221; || &#8216;;<br />
      END LOOP;<br />
      l_process_def := RTRIM (l_process_def, &#8216; || &#8221;,&#8221; || &#8216;) || &#8216;);&#8217;;<br />
      RETURN l_process_def;<br />
   EXCEPTION<br />
      WHEN OTHERS THEN<br />
      v_txt := v_txt||&#8217;Error in  during  FUNCTION process_def  :-&#8217;||SQLERRM;<br />
      success := error;<br />
   END;</p>
<p>   FUNCTION ref_cur RETURN PCK_EMAIL_ATTACHMENT.ref_cur_t IS<br />
      l_ref_cur PCK_EMAIL_ATTACHMENT.ref_cur_t;<br />
   BEGIN<br />
      OPEN l_ref_cur FOR PCK_EMAIL_ATTACHMENT.g_query;<br />
      RETURN l_ref_cur;<br />
   EXCEPTION<br />
      WHEN OTHERS THEN<br />
      success := error;<br />
   END;</p>
<p>   FUNCTION record_def(v_txt IN  OUT VARCHAR2) RETURN VARCHAR2 IS<br />
      l_record_def    VARCHAR2 (32000);<br />
      l_type          VARCHAR2 (100);<br />
      l_col_type      PLS_INTEGER;<br />
      l_col_max_len   PLS_INTEGER;<br />
      l_col_precision PLS_INTEGER;<br />
      l_col_scale     PLS_INTEGER;<br />
   BEGIN<br />
         l_col_name := null ;<br />
      FOR i IN 1..g_count LOOP<br />
         l_col_type      := g_desc_tab(i).col_type;<br />
         l_col_max_len   := g_desc_tab(i).col_max_len;<br />
         l_col_precision := g_desc_tab(i).col_precision;<br />
         l_col_scale     := g_desc_tab(i).col_scale;<br />
         l_col_name := l_col_name || &#8216;&lt;TD&gt;&lt;B&gt;&#8217; || g_desc_tab(i).col_name || &#8216;&lt;/B&gt;&lt;/TD&gt;&#8217; ;<br />
         IF    l_col_type = varchar2_type THEN<br />
            l_type := &#8216;VARCHAR2(&#8216; || l_col_max_len || &#8216;)&#8217;;<br />
         ELSIF l_col_type = number_type THEN<br />
            l_type := &#8216;NUMBER&#8217;;<br />
         ELSIF l_col_type = date_type THEN<br />
            l_type := &#8216;DATE&#8217;;<br />
         ELSIF l_col_type = rowid_type THEN<br />
            l_type := &#8216;ROWID&#8217;;<br />
         ELSIF l_col_type = char_type THEN<br />
            l_type := &#8216;CHAR(&#8216; || l_col_max_len || &#8216;)&#8217;;<br />
         END IF;<br />
         l_record_def := l_record_def || &#8216; col_&#8217; || i || &#8216; &#8216; || l_type || &#8216;,&#8217;;<br />
      END LOOP;<br />
      l_record_def := RTRIM (l_record_def, &#8216;,&#8217;);<br />
         RETURN l_record_def;<br />
   EXCEPTION<br />
      WHEN OTHERS THEN<br />
        v_txt := v_txt||&#8217;Error in  during  FUNCTION process_def  :-&#8217;||SQLERRM;<br />
        success := error;<br />
   END;</p>
<p>  FUNCTION send_email (p_query VARCHAR2 :=NULL ,in_col_name VARCHAR2 :=NULL , in_html_append VARCHAR2 :=NULL , file_name VARCHAR2 :=NULL , v_txt IN OUT VARCHAR2 ) RETURN NUMBER<br />
  IS<br />
   l_statement              VARCHAR2 (32000);<br />
   v_email_text             varchar2(1000) ;<br />
   v_email_subject          varchar2(1000) ;<br />
   v_from_address           varchar2(1000) ;<br />
   v_smtp_server            varchar2(1000) ;<br />
   v_to_address             VARCHAR2(1000);<br />
   c                        utl_tcp.connection;<br />
   rc                       integer;<br />
   v_occu_count             number ;<br />
   v_file_name              varchar2(4000);<br />
   v_in_col_name            varchar2(4000) := null;<br />
   y                        varchar2(4000) := null;<br />
   v_html_append            varchar2(4000) := null;<br />
   z                        varchar2(4000) := null;</p>
<p>  Type recordtab is table of varchar2(3000) index by binary_integer ;<br />
  v_obj recordtab ;</p>
<p>  BEGIN<br />
   UTL_TCP.CLOSE_ALL_CONNECTIONS;<br />
   success  := 1 ;<br />
   v_file_name := file_name ;<br />
   v_in_col_name := in_col_name ;<br />
   v_html_append := in_html_append;<br />
   BEGIN<br />
     &#8212; selecting data for email notification<br />
     select VALUE into v_to_address from config2 where name = &#8216;TO_ADDRESS&#8217;;<br />
     select VALUE into v_smtp_server from config2 where name = &#8216;SMTP_SERVER&#8217;;<br />
     select VALUE into v_from_address from config2 where name = &#8216;FROM_ADDRESS&#8217;;<br />
     select VALUE into v_email_subject from config2 where name = &#8216;EMAIL_SUBJECT&#8217;;<br />
     select VALUE into v_email_text from config2 where name = &#8216;EMAIL_TEXT&#8217;;<br />
   EXCEPTION<br />
      WHEN OTHERS THEN<br />
  	  v_txt := v_txt||&#8217;Error selecting config2 value in send_email :-&#8217;||SQLERRM;<br />
  	  RETURN error;<br />
   END;</p>
<p>    c  := utl_tcp.open_connection(v_smtp_server, 25); &#8212;&#8211; OPEN SMTP PORT CONNECTION<br />
    rc := utl_tcp.write_line(c, &#8216;HELO 262.30.88.29&#8242;); &#8212;&#8211; PERFORMS HANDSHAKING WITH SMTP SERVER<br />
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));<br />
    rc := utl_tcp.write_line(c, &#8216;HELO 262.30.88.29&#8242;); &#8212;&#8211; PERFORMS HANDSHAKING WITH SMTP SERVER, INCLUDING EXTRA INFORMATION<br />
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));<br />
    rc := utl_tcp.write_line(c, &#8216;MAIL FROM: &#8216; || v_from_address); &#8212;&#8211; MAIL BOX SENDING THE EMAIL<br />
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));<br />
    rc := utl_tcp.write_line(c, &#8216;RCPT TO: &#8216; || v_to_address); &#8212;&#8211; MAIL BOX RECIEVING THE EMAIL<br />
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));<br />
    rc := utl_tcp.write_line(c, &#8216;DATA&#8217;); &#8212;&#8211; EMAIL MESSAGE BODY START<br />
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));<br />
    rc := utl_tcp.write_line(c,<br />
                             &#8216;Date: &#8216; ||<br />
                             TO_CHAR(SYSDATE, &#8216;dd Mon yy hh24:mi:ss&#8217;));<br />
    rc := utl_tcp.write_line(c,<br />
                             &#8216;From: &#8216; || v_from_address || &#8216; &lt;&#8217; || v_from_address || &#8216;&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;MIME-Version: 1.0&#8242;);<br />
    rc := utl_tcp.write_line(c, &#8216;To: &#8216; || v_to_address || &#8216; &lt;&#8217; || v_to_address || &#8216;&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;Subject: &#8216; || v_email_subject);<br />
    rc := utl_tcp.write_line(c, &#8216;Content-Type: multipart/mixed;&#8217;); &#8212;&#8211; INDICATES THAT THE BODY CONSISTS OF MORE THAN ONE PART<br />
    rc := utl_tcp.write_line(c, &#8216; boundary=&#8221;&#8212;&#8211;SECBOUND&#8221;&#8216;); &#8212;&#8211; SEPERATOR USED TO SEPERATE THE BODY PARTS<br />
    rc := utl_tcp.write_line(c, &#8221;); &#8212;&#8211; INSERTS A BLANK LINE. PART OF THE MIME FORMAT AND NONE OF THEM SHOULD BE REMOVED.<br />
    rc := utl_tcp.write_line(c, &#8216;&#8212;&#8212;-SECBOUND&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;Content-Type: text/plain&#8217;); &#8212;&#8211; 1ST BODY PART. EMAIL TEXT MESSAGE<br />
    rc := utl_tcp.write_line(c, &#8216;Content-Transfer-Encoding: 7bit&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8221;);<br />
    rc := utl_tcp.write_line(c, v_email_text); &#8212;&#8211; TEXT OF EMAIL MESSAGE<br />
    rc := utl_tcp.write_line(c, &#8221;);<br />
    rc := utl_tcp.write_line(c, &#8216;&#8212;&#8212;-SECBOUND&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;Content-Type: text/plain;&#8217;); &#8212;&#8211; 2ND BODY PART.   &#8212; plain to html<br />
    rc := utl_tcp.write_line(c, &#8216; name=&#8221;TEMP/emp1.html&#8221;&#8216;);<br />
    rc := utl_tcp.write_line(c, &#8216;Content-Transfer_Encoding: 8bit&#8217;);<br />
    &#8212; if v_html_append is null then only attachement will be send in email<br />
    if v_html_append is null then<br />
    rc := utl_tcp.write_line(c, &#8216;Content-Disposition: attachment;&#8217;); &#8212;&#8211; INDICATES THAT THIS IS AN ATTACHMENT<br />
    rc := utl_tcp.write_line(c, &#8216; filename=&#8221;TEMP/&#8217;|| v_file_name ||&#8217;&#8221;&#8216;); &#8212;&#8211; SUGGESTED FILE NAME FOR ATTACHMENT<br />
    end if ;</p>
<p>    rc := utl_tcp.write_line(c, &#8221;);<br />
    rc := utl_tcp.write_line(c, &#8216;&lt;html&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;&lt;head&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c,<br />
                             &#8216;&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html&#8221;&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;&lt;title&gt;Title of the HTML File&lt;/title&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;&lt;/head&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;&lt;body TEXT=&#8221;#000000&#8243; BGCOLOR=&#8221;#FFFFFF&#8221;&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c,<br />
                             &#8216;&lt;TABLE border=1 bordercolor=&#8221;#808080&#8243; cellspacing=0&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;&lt;/TR&gt;&#8217;);</p>
<p>     PCK_EMAIL_ATTACHMENT.g_query := p_query;</p>
<p>     v_rc := PCK_EMAIL_ATTACHMENT.describe_columns(v_txt);<br />
  	 IF v_rc &lt;&gt; success	 THEN<br />
        v_txt :=v_txt||&#8217;Error in  function describe_columns :-&#8217;||SQLERRM;<br />
        RETURN error;<br />
  	 END IF;<br />
     delete from gt_temp;<br />
     l_statement :=<br />
     &#8216;  DECLARE&#8217;                              ||<br />
     &#8216;     TYPE record_t IS RECORD (&#8216;         ||<br />
              PCK_EMAIL_ATTACHMENT.record_def(v_txt) || &#8216;);&#8217;    ||<br />
     &#8216;     l_record  record_t; l_var varchar2(4000);rc integer;&#8217;               ||</p>
<p>     &#8216;     l_ref_cur PCK_EMAIL_ATTACHMENT.ref_cur_t;&#8217;    ||<br />
     &#8216;  BEGIN&#8217;                                ||<br />
     &#8216;     l_ref_cur :=  PCK_EMAIL_ATTACHMENT.ref_cur;&#8217;            ||<br />
     &#8216;     LOOP&#8217;                              ||<br />
     &#8216;        FETCH l_ref_cur INTO l_record;&#8217; ||<br />
     &#8216;        EXIT WHEN l_ref_cur%NOTFOUND;&#8217;  ||<br />
     &#8216;l_var:=&#8217;||PCK_EMAIL_ATTACHMENT.process_def(v_txt)   ||<br />
     &#8216;insert into gt_temp values (l_var); commit;&#8217;||<br />
     &#8216;     END LOOP;&#8217;                         ||<br />
     &#8216;     CLOSE l_ref_cur;&#8217;                  ||<br />
     &#8216;  END;&#8217;;</p>
<p>    &#8212;  dbms_output.put_line(&#8216;before execute imme &#8216;);<br />
     EXECUTE IMMEDIATE l_statement;<br />
     If success = error then<br />
      v_txt := v_txt||&#8217;Error in  during EXECUTE IMMEDIATE stataement  :-&#8217;||SQLERRM;<br />
     Return error;<br />
     End if;</p>
<p>     BEGIN<br />
       rc := utl_tcp.write_line(c, &#8216;&lt;/TR&gt;&#8217;);<br />
       if v_in_col_name is null then<br />
           rc := utl_tcp.write_line(c, PCK_EMAIL_ATTACHMENT.l_col_name );<br />
       else<br />
         loop<br />
           y := substr(v_in_col_name,1,instr(v_in_col_name,&#8217;,')-1) ;<br />
           v_in_col_name := substr(v_in_col_name,instr(v_in_col_name,&#8217;,')+1) ;<br />
           if y is null then<br />
             exit ;<br />
           else<br />
              z := z || &#8216;&lt;TD&gt;&lt;B&gt;&#8217; || y || &#8216;&lt;/B&gt;&lt;/TD&gt;&#8217; ;<br />
           end if ;<br />
         end loop;<br />
       z := z || &#8216;&lt;TD&gt;&lt;B&gt;&#8217; || v_in_col_name || &#8216;&lt;/B&gt;&lt;/TD&gt;&#8217; ;<br />
       rc := utl_tcp.write_line(c, z );<br />
       End if;<br />
       &#8211;pushing data into email from GTT<br />
       FOR x in ( select id from gt_temp )<br />
       loop<br />
          &#8212; this will give us the total occurrence of &#8216;,&#8217; in the x.id field.<br />
          v_occu_count := 1 ;<br />
            loop<br />
              If  ( ((instr(x.id,&#8217;,', 1, v_occu_count ))) = 0 ) then<br />
                exit;<br />
              End if;<br />
            v_occu_count := v_occu_count+1;<br />
            end loop ;<br />
          v_occu_count := v_occu_count &#8211; 1;<br />
          rc := utl_tcp.write_line(c, &#8216;&lt;/TR&gt;&#8217;);<br />
          for i in 1..v_occu_count<br />
          loop<br />
              v_obj(i) := substr(x.id,1,instr(x.id,&#8217;,')-1) ;<br />
              rc := utl_tcp.write_line(c,&#8217;&lt;TD&gt;&lt;B&gt;&#8217; || v_obj(i) || &#8216;&lt;/B&gt;&lt;/TD&gt;&#8217;);<br />
              x.id := substr(x.id,instr(x.id,&#8217;,')+1) ;<br />
          end loop;<br />
          rc := utl_tcp.write_line(c,&#8217;&lt;TD&gt;&lt;B&gt;&#8217; || x.id || &#8216;&lt;/B&gt;&lt;/TD&gt;&#8217;);<br />
       End loop;<br />
       commit;<br />
     EXCEPTION<br />
     WHEN OTHERS THEN<br />
         v_txt := v_txt||&#8217;Error in  during selecting data from Global temp table :-&#8217;||SQLERRM;<br />
      	 Return  error ;<br />
     END;<br />
    &#8212; dbms_output.put_line(&#8216;ending email&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;&lt;/TR&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;&lt;/body&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;&lt;/html&gt;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8216;&#8212;&#8212;-SECBOUND&#8211;&#8217;);<br />
    rc := utl_tcp.write_line(c, &#8221;);<br />
    rc := utl_tcp.write_line(c, &#8216;.&#8217;); &#8212;&#8211; EMAIL MESSAGE BODY END<br />
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));<br />
    rc := utl_tcp.write_line(c, &#8216;QUIT&#8217;); &#8212;&#8211; ENDS EMAIL TRANSACTION<br />
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));<br />
    utl_tcp.close_connection(c); &#8212;&#8211; CLOSE SMTP PORT CONNECTION<br />
    RETURN success;<br />
    EXCEPTION<br />
    WHEN OTHERS THEN<br />
        v_txt := v_txt||&#8217;Error in  function send_email :-&#8217;||SQLERRM;<br />
        Return error ;<br />
   END;<br />
END;<br />
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />
Declare<br />
v_txt varchar2 (2000);<br />
Returned_value number;<br />
Begin<br />
Returned_value :=  FUNCTION send_email ( &#8216;select * from config;&#8217;, &#8216;col1&#8242;, &#8216;HTML APPEND&#8217;, &#8216;mail.xls&#8217;, &#8216;v_txt&#8217;);<br />
Dbms_output.put_line (&#8216;Returned_value is:=&#8217; || Returned_value);<br />
end;</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/error-ora-06550/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SQL error</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-error-5/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-error-5/#comments</comments>
		<pubDate>Tue, 26 May 2009 05:49:54 +0000</pubDate>
		<dc:creator>Shindetanaji</dc:creator>
				<category><![CDATA[ORA-06550]]></category>
		<category><![CDATA[Oracle error messages]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[DECLARE BEGIN FOR C1 IN (SELECT A.BANK,A.BRANCH,A.MODULE,A.SCHEME,A.ACCOUNTNO,A.ACCOUNTISN,NVL(T.NEXTDUEDATE,:TDATE) NEXTDUEDATE,A.REVIEWDATE FROM ACCOUNTMASTER A,TERMLOANSDATA T WHERE A.BANK=:INPBANK AND A.BRANCH=DECODE(:INPBRANCH,&#8217;ALL&#8217;,A.BRANCH,:INPBRANCH) AND A.MODULE=:INPMODULE AND A.SCHEME=DECODE(:INPSCHEME,&#8217;ALL&#8217;,A.SCHEME,:INPSCHEME) AND A.ACCOUNTNO=DECODE(:INPACCOUNTNO,&#8217;ALL&#8217;,A.ACCOUNTNO,:INPACCOUNTNO) AND T.BANK=A.BANK AND T.BRANCH=A.BRANCH AND T.MODULE=A.MODULE AND T.SCHEME=A.SCHEME AND T.ACCOUNTNO=A.ACCOUNTNO AND T.ACCOUNTISN=A.ACCOUNTISN) loop while c1.NEXTDUEDATE&#60;=c1.REVIEWDATE c1.NEXTDUEDATE:=add_months(c1.NEXTDUEDATE,1) dbms_output.put_line(c1.BANK&#124;&#124;&#8217; &#8216;&#124;&#124;c1.BRANCH&#124;&#124;&#8217; &#8216;&#124;&#124;c1.MODULE&#124;&#124;&#8217; &#8216;&#124;&#124;c1.SCHEME&#124;&#124;&#8217; &#8216;&#124;&#124;c1.ACCOUNTNO&#124;&#124;&#8217; &#8216;&#124;&#124;c1.ACCOUNTISN&#124;&#124;&#8217; &#8216;&#124;&#124;c1.NEXTDUEDATE&#124;&#124;&#8217; &#8216;&#124;&#124;c1.REVIEWDATE); end loop; END; ORA-06550: line 16, column 1: PLS-00103: [...]]]></description>
				<content:encoded><![CDATA[<p>DECLARE<br />
BEGIN<br />
FOR C1 IN<br />
(SELECT A.BANK,A.BRANCH,A.MODULE,A.SCHEME,A.ACCOUNTNO,A.ACCOUNTISN,NVL(T.NEXTDUEDATE,:TDATE) NEXTDUEDATE,A.REVIEWDATE<br />
 FROM ACCOUNTMASTER A,TERMLOANSDATA T<br />
WHERE A.BANK=:INPBANK AND A.BRANCH=DECODE(:INPBRANCH,&#8217;ALL&#8217;,A.BRANCH,:INPBRANCH)<br />
AND A.MODULE=:INPMODULE AND A.SCHEME=DECODE(:INPSCHEME,&#8217;ALL&#8217;,A.SCHEME,:INPSCHEME)<br />
AND A.ACCOUNTNO=DECODE(:INPACCOUNTNO,&#8217;ALL&#8217;,A.ACCOUNTNO,:INPACCOUNTNO)<br />
AND T.BANK=A.BANK AND T.BRANCH=A.BRANCH AND T.MODULE=A.MODULE AND T.SCHEME=A.SCHEME AND T.ACCOUNTNO=A.ACCOUNTNO<br />
AND T.ACCOUNTISN=A.ACCOUNTISN)<br />
loop<br />
while c1.NEXTDUEDATE&lt;=c1.REVIEWDATE<br />
c1.NEXTDUEDATE:=add_months(c1.NEXTDUEDATE,1)<br />
dbms_output.put_line(c1.BANK||&#8217; &#8216;||c1.BRANCH||&#8217; &#8216;||c1.MODULE||&#8217; &#8216;||c1.SCHEME||&#8217; &#8216;||c1.ACCOUNTNO||&#8217; &#8216;||c1.ACCOUNTISN||&#8217; &#8216;||c1.NEXTDUEDATE||&#8217; &#8216;||c1.REVIEWDATE);<br />
end loop;<br />
END;</p>
<p>ORA-06550: line 16, column 1:<br />
PLS-00103: Encountered the symbol &#8220;C1&#8243; when expecting one of the following:</p>
<p>   . ( * @ % &#038; &#8211; + / at loop mod remainder rem<br />
   &lt;an exponent (**)&gt; and or || multiset<br />
The symbol &#8220;loop&#8221; was substituted for &#8220;C1&#8243; to continue.<br />
ORA-06550: line 17, column 1:<br />
PLS-00103: Encountered the symbol &#8220;DBMS_OUTPUT&#8221; when expecting one of the following:</p>
<p>   . ( * % &#038; = &#8211; + ; &lt; / &gt; at in is mod remainder not rem<br />
   &lt;an exponent (**)&gt; &lt;&gt; or != or ~= &gt;= &lt;= &lt;&gt; and or like LIKE2_<br />
   LIKE4_ LIKEC_ betw</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-error-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oracle coding error ORA-06550</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/oracle-coding-error-ora-06550/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/oracle-coding-error-ora-06550/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 14:59:37 +0000</pubDate>
		<dc:creator>ITKE</dc:creator>
				<category><![CDATA[ORA-06550]]></category>
		<category><![CDATA[Oracle development]]></category>
		<category><![CDATA[Oracle error messages]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I get the following error on compiling my code - *********************************************************** ORA-06550: line 16, column 1: PLS-00103: Encountered the symbol &#8220;ELSE&#8221; when expecting one of the following: begin case declare end exit for goto if loop mod null pragma raise return select update while with &#60;an identifier&#62; &#60;a double-quoted delimited-identifier&#62; &#60;a bind variable&#62; &#60;&#60; [...]]]></description>
				<content:encoded><![CDATA[<p>Hi,</p>
<p>I get the following error on compiling my code -<br />
***********************************************************<br />
ORA-06550: line 16, column 1:<br />
PLS-00103: Encountered the symbol &#8220;ELSE&#8221; when expecting one of the<br />
following:</p>
<p>   begin case declare end exit for goto if loop mod null pragma<br />
   raise return select update while with &lt;an identifier&gt;<br />
   &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; &lt;&lt;<br />
   close current delete fetch lock insert open rollback<br />
   savepoint set sql execute commit forall merge<br />
   &lt;a single-quoted SQL string&gt; pipe<br />
ORA-06550: line 19, column 1:<br />
PLS-00103: Encountered the symbol &#8220;END&#8221;<br />
06550. 00000 &#8211;  &#8220;line %s, column %s:\n%s&#8221;<br />
*Cause:    Usually a PL/SQL compilation error.<br />
*Action:<br />
********************************************************<br />
MyCode is<br />
********************************************************<br />
drop table  BDTable;<br />
/</p>
<p>CREATE GLOBAL TEMPORARY TABLE BDTable<br />
(<br />
BDGroupArea VARCHAR(1)<br />
) ON COMMIT DELETE ROWS<br />
/<br />
declare<br />
  str VARCHAR(255);<br />
  BDGroupArea VARCHAR(255);<br />
  pos integer;<br />
Begin<br />
BDGroupArea:=&#8217;1,2,3&#8242;;<br />
IF (instr(BDGroupArea, &#8216;%,%&#8217;)&lt;&gt;0) Then<br />
 WHILE (INSTR(BDGroupArea, &#8216;%,%&#8217;)&lt;&gt;0) LOOP  BEGIN<br />
      BDGroupArea := BDGroupArea + &#8216;,&#8217; ;<br />
      pos:= instr(BDGroupArea, &#8216;,&#8217;);<br />
      str:= SUBSTR(BDGroupArea,1,pos-1);<br />
  INSERT INTO BDTable (BDGroupArea)  VALUES (str);<br />
  BDGroupArea:= SUBSTR(BDGroupArea, pos+1, LENGTH(BDGroupArea));  END LOOP; ELSE  INSERT INTO BDTable (BDGroupArea) VALUES ( BDGroupArea ); End IF; End; / SELECT * FROM BDTable; /</p>
<p>Thanks,<br />
Sowmya</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/oracle-coding-error-ora-06550/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-06550 error: the function is undefined or not a procedure, yet I have defined the function</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550-error-the-function-is-undefined-or-not-a-procedure-yet-i-have-defined-the-function/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550-error-the-function-is-undefined-or-not-a-procedure-yet-i-have-defined-the-function/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 01:24:51 +0000</pubDate>
		<dc:creator>T Will</dc:creator>
				<category><![CDATA[ORA-06550]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[Undefined Function]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I get the following error message: ORA-06550: line 2, column 1: PLS-00221: &#8216;CUSTOM_AUTH&#8217; is not a procedure or is undefined ORA-06550: line 2, column 1: PL/SQL: Statement ignored Error ERR-10460 Unable to run authentication credential check function. I have defined the function custom_auth]]></description>
				<content:encoded><![CDATA[<p>I get the following error message:<br />
ORA-06550: line 2, column 1: PLS-00221: &#8216;CUSTOM_AUTH&#8217; is not a procedure or is undefined ORA-06550: line 2, column 1: PL/SQL: Statement ignored<br />
	Error 	ERR-10460 Unable to run authentication credential check function.</p>
<p>I have defined the function custom_auth</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/ora-06550-error-the-function-is-undefined-or-not-a-procedure-yet-i-have-defined-the-function/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How do you get around an ORA-06550 error?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-you-get-around-an-ora-06550-error/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-do-you-get-around-an-ora-06550-error/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 16:52:26 +0000</pubDate>
		<dc:creator>Jonsorr</dc:creator>
				<category><![CDATA[ORA-06550]]></category>
		<category><![CDATA[Oracle 10g]]></category>
		<category><![CDATA[Oracle error messages]]></category>

		<guid isPermaLink="false"></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/how-do-you-get-around-an-ora-06550-error/feed/</wfw:commentRss>
		<slash:comments>4</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.030 seconds using memcached
Object Caching 833/955 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 10:14:50 -->