Use this procedure to set the application ID of the application to be imported. The application ID should either not exist in the instance or, if it does exist, must be in the workspace where the application is being imported to. This number must be a positive integer and must not be from the reserved range of Application Express application IDs.
APEX_APPLICATION_INSTALL.SET_APPLICATION_ID ( p_application_id IN NUMBER);
Table 3-5 SET_APPLICATION_ID Parameters
This is the application ID. The application ID must be a positive integer, and cannot be in the reserved range of application IDs (3000 - 8999). It must be less than 3000 or greater than or equal to 9000.
For an example of this procedure call, see "Import Application with Specified Application ID."