Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: How to call shell script from PL/SQL ?.
I've written a PL/SQL which calls an external store proc in written in Java. I test it in SQL*PLUS with a test.sql
SQL> set serveroutput on; SQL> SQL> begin 2 er.sp_er_buildfile('andy.txt');
ORA-06512: at "SYSTEM.ER", line 0 ORA-06512: at line 2 -------------------------------------------- 1. I've check the UTL_FILE_DIR parameter2. If I comment out I/O-related codes, it gives no error. 3. If I use package UTL_FILE, it also works
raise_application_error(-20000, 'ERROR: Invalid path for file or
path not in INIT.ORA.');
END sp_er_buildfile;
Thanks a lot.
Andy Kam
In article <38FF7D81.6C4EF57E_at_att.com>,
Raj <rajarulmani_at_att.com> wrote:
> Tom,
> External procedure fn getting executed correctly but the action
is not being
> done . i,e creating a file / deleting a file / executing a file .
Could you
> please let me know what i'm missing in my process.
>
>
>
>
> fp = fopen ("test.txt","w");
>
> fprintf( fp , " First line is ! ");
>
> fclose( fp );
>
>
>
>> > if 8.X you need to use external procedures in oracle
> > You need to provide us what version of database you are using.
> > If 7 then I have no Idea I am not sure if you can do that.
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu May 11 2000 - 00:00:00 CDT
![]() |
![]() |