Export several applications in one package

Table of contents
In Oracle APEX, you can export several applications into a single package by combining them into a workspace export file or by creating individual exports and bundling them manually. Here’s how you can handle this step by step:
Option 1: Export Entire Workspace (Recommended for Multiple Applications)
This method exports the entire workspace, including all applications, supporting objects, and settings.
Log in to APEX Administration
Log in to the Oracle APEX environment where your applications are hosted.Go to Workspace Export
Navigate to App Builder > Workspace Utilities > Export Workspace.Select Export Options
Choose whether to include Supporting Objects, RESTful Services, and other dependencies.
Select All Applications if prompted.
Download the Export File
A single.sql
file will be generated that contains the export for all applications, supporting objects, and workspace settings.Import into Another Workspace (Optional)
Log in to the target APEX instance.
Navigate to SQL Workshop > SQL Scripts.
Upload and run the exported
.sql
file.
Option 2: Export Applications Individually and Bundle Them
If you prefer more control over which applications to include, you can export them individually and package them together.
Step 1: Export Each Application
Navigate to Application Export
- Go to App Builder > Export.
Select Application
- Choose the application you want to export.
Export Options
Choose whether to include Supporting Objects, Shared Components, and Application Files.
Export as a Single File or ZIP.
Download the Export
Save the.sql
or.zip
file for the application.
Step 2: Package All Applications Together
Combine all the exported
.sql
files into a single.zip
file or folder.Include documentation or instructions if needed for re-importing.
Option 3: Use a Command-Line Tool (APEXExport Utility)
For automating the export process, Oracle provides the APEXExport
command-line utility. It allows exporting multiple applications in one step.
Prerequisites
Install the APEXExport utility (comes with the APEX installation).
Ensure Java is installed and properly configured.
Steps:
Locate the APEXExport Utility
The utility is typically located in theapex/utilities
directory of your APEX installation.Run the Export Command
Use the following command to export multiple applications:java oracle.apex.APEXExport -db <db_connection_string> -user <username> -password <password> -applicationid <app_id1,app_id2,...>
Replace
<db_connection_string>
,<username>
,<password>
, and<app_id1, app_id2>
with the appropriate details.Retrieve the Export Files
The exported.sql
files will be located in the current working directory.Combine Files
Compress all the exported.sql
files into a.zip
package if needed.
Best Practices
Dependencies: Ensure you include all necessary dependencies like RESTful services, supporting objects, and authentication schemes during the export.
Version Control: Use version control tools like Git to manage your exported files, especially for collaborative environments.
Documentation: Provide clear instructions or metadata about the applications included in the package to simplify importing and deployment.
Let me know if you want detailed guidance on any of these methods, Amir!
Subscribe to my newsletter
Read articles from Amir Abyar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
