You export and import application definitions and all associated files using the Workspace Users, Application, CSS, Images, Files, Themes, and User Interface Defaults tabs located at the top of the Export page. Note that it is not necessary to export a workspace unless you want to migrate workspace users or replicate shared component subscriptions in the target instance.
Once you export an application and any related files, you must import them into the target Oracle Application Express instance and then install them. As a general rule, always import the application first and then the related files. See "How to Move an Application to Another Development Instance".
Tip:
You can simplify the steps needed to deploy an application by creating a packaged application. See "How to Create a Packaged Application".This section contains the following topics:
When you export an application, Oracle Application Express generates a text file containing PL/SQL API calls.
See Also:
"Exporting Application Components"To export an application:
Navigate to the Export page:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application home page, click Export/Import.
On the Export/Import page, click Export and then click Next.
From Application, select the application to be exported.
From File Format, select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
From Owner Override, optionally select another owner. By default, the application is owned by the owner identified in the application attribute owner.
From Build Status Override, select one of the following:
Run Application Only - Developers can only run an application
Run and Build Application - Developers can both run and edit an application
Selecting Run Application Only is an effective way to protect an application from modifications from other developers.
Tip:
If you select Run Application Only, you cannot set the argumentp_trace
to Yes
. See "Using Build Options to Control Configuration". Also, the only way to change this setting after you import the application, is to log in to Oracle Application Express Administration Services. See "Changing Application Build Status Set During Deployment" in Oracle Application Express Administration Guide.From Debugging, select one of the following:
Yes exports the application with debugging enabled.
No exports the application with debugging disabled.
From Exporting Supporting Object Definitions, specify whether to export supporting object definitions with your application. Available options include: See "How to Create a Packaged Application".
From Export Comments, specify whether to export comments for this application. See "Adding Developer Comments".
Use the As of field to export your application as it was previously defined. Specify the number of minutes in the field provided.
This utility uses the DBMS_FLASHBACK
package. Because the timestamp to System Change Number (SCN) mapping is refreshed approximately every five minutes, you may have to wait that amount of time to locate the version for which you are looking. The time undo information is retained and influenced by the startup parameter UNDO_RETENTION
(the default is three hours). However, this only influences the size of the undo tablespace. While two databases can have the same UNDO_RETENTION
parameter, you are able to go back further in time on a database with fewer transactions because it is not filling the undo tablespace, forcing older data to be archived.
Click Export Application.
In addition to exporting the actual application file, you may also need to export other related files such as cascading style sheets, images, and script files.
See Also:
"Enabling SQL Tracing and Using TKPROF"You can make an application available to other users by creating workspace users. When you export workspace users, Oracle Application Express creates an ASCII text SQL script of users and any defined user groups.
To export workspace users:
Navigate to the Export page:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application home page, click Export/Import.
On the Export/Import page, click Export and then click Next.
On the Export page, click the Workspace Users tab.
From File Format, select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Click Export Workspace Users.
See Also:
"Managing Application Express Users" in Oracle Application Express Administration GuideYou can export shared components or components of a page on the Component Export page. You can use this wizard to:
Export shared components or page components to another application or workspace
Back up a component before editing it
Create an export to function as a patch to another Oracle Application Express instance
See Also:
"Exporting an Application", "Exporting a Page in an Application", "Importing an Application or Page", and "Exporting Build Options or Build Option Status"To export shared components or page components:
Navigate to the Component Export page:
On the Workspace home page, click the Application Builder icon.
Select an application.
Click Shared Components.
From the Tasks list, click Export Application Components.
The Component Export page appears.
Click the following tabs and select the components to be exported:
Components displays shared application components and entire pages. Use the navigation bar at the top of the page to search for components. See "Working with Shared Components" and "Exporting Build Options or Build Option Status".
Components by Page lists components of the selected page. Navigate to a specific page by making a selection from the Page. Click Check All to select all components.
Application Attributes displays application attributes. Press CTRL or SHIFT to select multiple attributes. See "About the Edit Definition Page".
Build Option Status displays available build options. Use this page to turn build options on and off. See "Exporting Build Options or Build Option Status".
Click Add to Export.
Click Next.
On Components to Export:
From File Format, select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Use the As of field to export a page as it was previously defined. Specify the number of minutes in the field provided.
This utility uses the DBMS_FLASHBACK
package. Because the timestamp to System Change Number (SCN) mapping is refreshed approximately every five minutes, you may have to wait that amount of time to locate the version for which you are looking. The time undo information is retained and influenced by the startup parameter UNDO_RETENTION
(the default is three hours). However, this only influences the size of the undo tablespace. While two databases may have the same UNDO_RETENTION
parameter, you are able to go back further in time on a database with fewer transactions because it is not filling the undo tablespace, forcing older data to be archived.
Click Export Components.
You can also export a specific page within an application by clicking the Export page icon on the Page Definition. When exporting a page, remember that exported pages can only be imported sucessfully if they have the same application ID and workspace ID.
See Also:
"Exporting Application Components", "Exporting an Application", and "Importing an Application or Page"To export a page in an application:
Navigate to the appropriate Page Definition. See "Accessing a Page Definition".
On the Page Definition, you can export a page in two ways:
Click the Export Page icon, the down arrow in the upper right corner.
From the View list, select Export and click Go.
The Export Page Wizard appears.
From Page, select the page to be exported.
From File Format, select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Use the As of field to export a page as it was previously defined. Specify the number of minutes in the field provided.
This utility uses the DBMS_FLASHBACK
package. Because the timestamp to System Change Number (SCN) mapping is refreshed approximately every five minutes, you may have to wait that amount of time to locate the version for which you are looking. The time undo information is retained and influenced by the startup parameter UNDO_RETENTION
(the default is three hours). However, this only influences the size of the undo tablespace. While two databases may have the same UNDO_RETENTION
parameter, you are able to go back further in time on a database with fewer transactions because it is not filling the undo tablespace, forcing older data to be archived.
Click Export Page.
Use the Export Cascading Style Sheets utility to export uploaded cascading style sheets. Note that you can use this utility to export only uploaded cascading style sheets.
To export related cascading style sheets:
Navigate to the Export page:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application home page, click Export/Import.
On the Export/Import page, click Export and then click Next.
Click the CSS tab at the top of the page.
On the Export Cascading Style Sheets page, select the following:
Stylesheets - Select the cascading style sheets to export.
File Format - Select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Click Export Style Sheets.
Use the Export Images utility to export uploaded images. When you export images using this utility, the images are converted to a text document. Note that you can use this utility to export only uploaded images.
To export upload images:
Navigate to the Export page:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application home page, click Export/Import.
On the Export/Import page, click Export and then click Next.
Click the Images tab at the top of the page.
On the Export Images page, select the following:
Export Images in Application - Select an application from which to export images.
Be aware that selecting Workspace Images only exports those images in your repository that are not associated with a specific application. If all of your images are associated with specific applications, then the workspace image export file will be empty.
File Format - Select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Click Export Images.
Use the Export Static Files utility to export static files you have imported. Note that you can use this utility to export only uploaded static files.
To export related static files:
Navigate to the Export page:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application home page, click Export/Import.
On the Export/Import page, click Export and then click Next.
Click the Files tab at the top of the page.
On Export Static Files, select the following:
Static Files - Select the files to be exported.
File Format - Select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Click Export File(s).
Note that you cannot use the Web interface described in this section to import exported static files into another Oracle Application Express instance. To import exported static files into another Oracle Application Express instance, use SQL*Plus while connected to the database. Note that you must export from and to a workspace having the same name and workspace ID.
You can transfer selected scripts from your current Script Repository to a Script Repository in a different Workspace by using the Export and Import tasks.
To export script files:
On the Workspace home page, click the SQL Workshop icon.
Click SQL Scripts.
On the Tasks list, click Export.
Select the appropriate script files and click Add to Export.
Review the file name and click Export All.
Select the Remove check box to remove the script.
See Also:
"Using SQL Scripts" in Oracle Application Express SQL Workshop and Utilities GuideUse the Export Theme utility to export themes from one Oracle Application Express development instance to a file.
To export an application theme from the Export page:
Navigate to the Export page:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application home page, click Export/Import.
On the Export/Import page, click Export and click Next.
Click the Themes tab at the top of the page.
On the Export Application Theme page, select the following:
Export Theme - Select the theme to be exported.
File Format - Select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Click Export Theme.
To export an application theme from the Themes page:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application home page, click Shared Components.
Under User Interface, select Themes.
The Themes page appears.
On the Tasks list, click Export Theme.
The Export page appears.
On the Export Theme page, select the following:
Export Theme - Select the theme to be exported.
File Format - Select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Click Export Theme.
Exporting User Interface Defaults is useful when you plan to develop on a target system.
When you export User Interface Defaults, all User Interface Defaults for the selected schema are exported to a single SQL Command script. When prompted, save this file to your hard drive. The file contains an API call to create table hints by making calls to the application PL/SQL API. You can use this file to import User Interface Defaults to another database and Oracle Application Express instance.
To export User Interface Defaults from the Export page:
Navigate to the Export page:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application home page, click Export/Import.
On the Export/Import page, click Export and click Next.
Click the User Interface Defaults tab at the top of the page.
On the Export User Interface Defaults page, select the following:
Schema - Select the schema that owns the table associated with the User Interface Defaults.
File Format - Select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Click Export User Interface Defaults.
To export User Interface Defaults from the User Interface Defaults page:
On the Workspace home page, click the Application Builder icon.
Select an application.
On the Application Builder home page, click Shared Components.
Under User Interface, select User Interface Defaults.
The User Interface Defaults page appears.
From the Tasks list, click Export.
On the Export User Interface Defaults page, select the following:
Schema - Select the schema that owns the table associated with the User Interface Defaults.
File Format - Select how rows in the export file will be formatted:
Choose UNIX to have the resulting file contain rows delimited by line feeds.
Choose DOS to have the resulting file contain rows delimited by carriage returns and line feeds.
Click Export User Interface Defaults.
In order to run, Oracle Application Express must have access to either Oracle HTTP Server and mod_plsql or the embedded PL/SQL gateway. Where images, CSS, and script files are stored depends upon the HTTP server you choose.
This section contains the following topics:
Where Images, CSS, and Script Files Are Stored When Using Oracle HTTP Server
Where Images, CSS, and Script Files Are Stored When Using the Embedded PL/SQL Gateway
In an Oracle HTTP Server or Oracle Application Server configuration, images are stored on the file system in the location referenced by the alias /i/
. To locate the images directory on the file system, review the following files and search for the text alias /i/
:
Oracle9i HTTP Server Release 2—see the httpd.conf
file.
Oracle HTTP Server distributed with Oracle Database 11g—see the dads.conf
file.
Oracle Application Server 10g—see the marvel.conf
file.
Specific examples for locating the text alias /i/
can be found in Oracle Application Express Installation Guide
When running Oracle Application Express with the embedded PL/SQL gateway, images are stored directly in the database within the Oracle XML DB repository. You can access images by using the WebDAV feature of Oracle XML DB or by using FTP. To learn more, see "Using Protocols to Access the Repository" in Oracle XML DB Developer's Guide.