Thanks, it compiled. But when I tried to call getNumber, still get error.

SQL> execute TOKENIZE.SETTOKENS('This|is|a|string|','|');

PL/SQL procedure successfully completed.

SQL> select tokenize.getnumber from dual;
select tokenize.getnumber from dual
*
ERROR at line 1:
ORA-06553: PLS-306: wrong number or types of arguments in call to 'GETNUMBER'


SQL> select tokenize.gettoken(1) from dual;

TOKENIZE.GETTOKEN(1)
--------------------------------------------------------------------------------
This