ora-302000non oracle error [message #231554] |
Tue, 17 April 2007 08:49  |
roopa.apps@gmail.com
Messages: 6 Registered: April 2007 Location: INDIA
|
Junior Member |
|
|
i am using forms 10G and trying to write data to flat file using webutil pkg. i configured webutil package and while trying to write the data, its generating the file in my c drive but with empty records and throws error-302000 non oracle exception....any suggestions please.
|
|
|
|
Re: ora-302000non oracle error [message #231661 is a reply to message #231554] |
Tue, 17 April 2007 23:30   |
roopa.apps@gmail.com
Messages: 6 Registered: April 2007 Location: INDIA
|
Junior Member |
|
|
HI.......
Following is the some code which to print a flat file at specified path .
declare
cursor c1 is
select hd.order_no,
hd.written_date,
sku.ORIGIN_COUNTRY_ID,
su.sup_name ;
out_file client_Text_IO.File_Type;
po_number number;
begin
out_file := client_Text_IO.Fopen(:file_path ||'\'||'Mx'||:PO_NUMBER, 'W');
for po_submit in c1 loop
client_Text_IO.Put_Line(out_file,
'0~'||
po_submit.order_no||'~'||
'0~'||
po_submit.written_date||'~'||
po_submit.ORIGIN_COUNTRY_ID||'~'||
po_submit.sup_name||'~'||
);
end loop;
client_Text_IO.Fclose(out_file);
EXCEPTION
when FORM_TRIGGER_FAILURE then
raise;
WHEN no_data_found THEN
emessage('no data found file cannot be generated');
Text_IO.Put_Line('Closing the file...');
Text_IO.Fclose(out_file);
when OTHERS then
emessage(SQLERRM);
raise FORM_TRIGGER_FAILURE;
END;
NEED HELP.
Upd-mod: Added code tags and got rid of the blank lines.
[Updated on: Thu, 19 April 2007 21:33] by Moderator Report message to a moderator
|
|
|
|
|
Re: ora-302000non oracle error [message #232263 is a reply to message #231554] |
Thu, 19 April 2007 23:39  |
roopa.apps@gmail.com
Messages: 6 Registered: April 2007 Location: INDIA
|
Junior Member |
|
|
Hi....
Finally i was able to write it.
changes i made to achive this:
1.in forms90 path i have webutil.pll,plx. i have replaced them with the webutil1.06 pll,plx and then attched them to my form.
2.changed the object library also to new object library
3. compiled the form
and given a try again.its writing sucessfully...
Thanks for your support...
Roopa.
|
|
|