NOTE: I had to put the directory directly above my apex unzip for this to work or else it would fail.
Example: unzipped Apex 3 to /home/oracle/stage/apex
Ran:
SQL> @apxldimg.sql /home/oracle/stage/apex
PL/SQL procedure successfully completed.
old 1: create directory APEX_IMAGES as '&1/apex/images'
new 1: create directory APEX_IMAGES as '/home/oracle/stage/apex/apex/images'
Directory created.
declare
*
ERROR at line 1:
ORA-22288: file or LOB operation FILEOPEN failed
No such file or directory
ORA-06512: at "SYS.DBMS_LOB", line 523
ORA-06512: at "SYS.XMLTYPE", line 287
ORA-06512: at line 15
Solution was to put that APEX_HOME up one dir:
SQL> @apxldimg.sql /home/oracle/stage
PL/SQL procedure successfully completed.
old 1: create directory APEX_IMAGES as '&1/apex/images'
new 1: create directory APEX_IMAGES as '/home/oracle/stage/apex/images'
Directory created.
PL/SQL procedure successfully completed.
Commit complete.
timing for: Load Images
Elapsed: 00:01:21.88
Directory dropped.