To compile the proc, then run compile with procedure name and options. To run the procedure by running exec procedure command with passing variables.
systax for compilation
ALTER PROCEDURE [ schema. ]procedure
COMPILE
[ compiler_parameters_clause
[ compiler_parameters_clause ] ... ]
[ REUSE SETTINGS ] ;
e.g. Alter Procedure scott.sample Compile ;
To run procedure example,
Exec Sample;
Last Wiki Answer Submitted: September 4, 2009 6:26 am by Mraman260 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
What edition of 10g are you using ? (enterprise, express, etc…)
CREATE PROCEDURE MyProc (ENO NUMBER)
AS
BEGIN
DELETE FROM EMP
WHERE EMPNO= ENO;
END;
this procedure program in not execute.so plz tell how to execute the proc in 10g oracel..