Previous |
Next |
This tutorial shows how to use the SQL Developer tool Database Export to create an installation script file for the package (specification and body) of the sample application.
Note: In the following procedure, you might have to enlarge the SQL Developer windows to see all fields and options.
To create an installation script file for the package:
If you have not done so, create the directory C:\my_exports
.
In the SQL Developer window, click the menu Tools.
A drop-down menu appears.
From drop-down menu, select Database Export.
The Source/Destination window opens.
In the Source/Destination window:
In the File field, type: C:\my_exports\2day_package.sql
.
From the Connections drop-down menu, select hr_conn.
Accept the default DDL Options, Terminator and Pretty Print.
Click Next.
The Types to Export window appears.
In the Types to Export window:
Deselect all check boxes except Package Spec and Package Body.
Click Next.
The Specify Objects window appears.
In the Specify Objects window:
In the drop-down menu with the value HR
, accept that value.
In the drop-down menu with the value All
, accept that value.
Click Go.
A list of the packages and package bodies in schema HR
appears.
If the only items listed are the package HR
.EMP_EVAL
and the package body HR
.EMP_EVAL
, click >>; otherwise, select those two items from the list and click >.
The package HR
.EMP_EVAL
and the package body HR
.EMP_EVAL
move from the original column to the other column.
Click Next.
The Export Summary window appears.
In the Export Summary window, click Finish.
The Exporting window opens, showing that exporting is occurring. When exporting is complete, the Exporting window closes, and the SQL Worksheet shows the contents of the installation script file that you specified in step 4.