varchar2
needs also to have the maximum length, for example varname varchar2(20)
. If this length is not present (varname varchar2
), the PL/SQL compiler will throw the error PLS-00215: String length constraints must be in range (1 .. 32767). create or replace procedure tq84_pls_00215(txt varchar2) -- << This is ok authid definer as txt_out varchar2; -- << This throws PLS-00215: String length constraints must be in range (1 .. 32767) begin txt_out := upper(txt); dbms_output.put_line(txt); end tq84_pls_00215; /
varchar2
without specifying a maximum length, Oracle will throw ORA-00906: missing left parenthesis