创建存储过程
create or replace procedure procedure_name is ....
调用
execute procedure_name(argument_list);
编译
如果存储过程包含的对象发生改变,可能使存储过程变得无效,这时,需要对存储过程进行重新编译,以使存储过程变得有效。
SQL>alter procedure procedure_name compile;
存储过程的删除
使用drop procedure
命令可以删除存储过程,但是,如果一个存储过程是包的一部分,则不能使用该命令删除包中的存储过程。
SQL>drop procedure procedure_name;