To execute a PL/SQL program against an online database:
Notes
owa.
or
htp.
), you must call the procedure twice, using exception handling.
Because the first call does not have any environment settings as
required by the toolkit, an error will occur and you must call the
procedure again, for example:
BEGIN
HR.MY_PROC();
EXCEPTION
WHEN OTHERS THEN
HR.MY_PROC();
END;
Creating, Editing and Using PL/SQL Programs
Copyright © 1997, 2004, Oracle. All rights reserved.