The SQL statement CREATE OR REPLACE PROCEDURE creates, compiles and saves a procedure on an Oracle database. You need the CREATE PROCEDURE system privilege to create a procedure in your own schema. Open SQL*Plus from Windows and log on to your database. From SQL*Plus, open your skeleton.sql file.
Execute the contents of the SQL*Plus buffer. Type a front slash and press <enter> like this:
SQL*Plus informs you the procedure has been created successfully and presents the SQL command prompt:
Now your procedure is created, compiled and saved on your Oracle database. We have a procedure now, so let's run it.
blog comments powered by Disqus |