Call a stored procedure in a PL/SQL block : Procedure Call « Stored Procedure Function « Oracle PL / SQL






Call a stored procedure in a PL/SQL block

   
SQL>
SQL>
SQL>  create or replace procedure my_proc as
  2    begin
  3      dbms_output.put_line ( 'Hello World' );
  4    end my_proc;
  5    /

Procedure created.

SQL>
SQL>
SQL>
SQL>  set serverout on
SQL>
SQL>  begin
  2      my_proc;
  3    end;
  4    /
Hello World

PL/SQL procedure successfully completed.

SQL>

   
    
  








Related examples in the same category

1.Call a stored procedure then other statements
2.Dependency Example
3.Forward Declarations
4.Exceptions in Subprograms
5.A PL/SQL procedure with no parameter
6.Exception throwed out of procedure call
7.Default parameter value
8.Pass parameter by data type
9.Calling ParameterLength illegally (ORA-6502)...
10.Use named notation
11.Use named notation, but with a different order of the formal parameters
12.This script demonstrates how to create and call a simple procedure.