SQL>
SQL> create or replace procedure MY_PROC(p_input varchar2) is
2 v1 varchar2(30);
3 begin
4 v1 := p_input;
5 end;
6 /
Procedure created.
SQL> create or replace package MY_PKG is
2 glob_var varchar2(40) := 'asdf';
3 end;
4 /
Package created.
SQL>
SQL> exec MY_PROC(my_pkg.glob_var);
PL/SQL procedure successfully completed.
SQL>
SQL>
SQL> create or replace procedure MY_PROC(p_input varchar2) is
2 v1 my_pkg.glob_var%type;
3 begin
4 null;
5 end;
6 /
Procedure created.
SQL> create or replace package MY_PKG is
2 glob_var varchar2(60) := 'asdf';
3 end;
4 /
Package created.
SQL>