Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Running sql script from stored procedure
Use UTL_FILE to read your .sql file, and then execute your sql-statements using dynamic sql (DBMS_SQL or 'EXECUTE IMMEDIATE').
Igor Neyman, OCP DBA
Perceptron, Inc.
(734)414-4627
ineyman_at_perceptron.com
> Dear DBA Gurus,
>
> I have a .sql file which contains a series of insert statements. I want
to
> call this .sql file and run it from a stored procedure. Is it possible?
If
> so, how?
>
> Please post your answers to me directly as I am not receiving messages
> directly from the list rather I am able to send messages to the list.
>
> Thanks and Regards,
>
> Ranganath
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Igor Neyman INET: ineyman_at_perceptron.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Aug 16 2001 - 07:38:59 CDT
![]() |
![]() |