|Oracle® Fusion Middleware Oracle Reports User's Guide to Building Reports
11g Release 1 (11.1.1)
Part Number B32122-03
|PDF · Mobi · ePub|
If you have many reports that use these same
REF CURSOR types and
SELECT statements, you can move the program units that you created into a PL/SQL library stored in a file, so that other reports can easily share the code. The steps in this section will help you to move the program units to a PL/SQL library.
To move the packages into a library:
In the Object Navigator, click the PL/SQL Libraries node, then click the Create button in the toolbar to add a new library.
Choose File > Save As.
DEPT_CONTAINER as the Library.
Ensure that File System is selected.
Drag and drop the following program units from your report to the Program Units node under the newly created DEPT_CONTAINER library:
CONCL_CV (Package Spec)
CONT_CV (Package Spec)
CONT_CV (Package Body)
PORT_CV (Package Spec)
If the Paper Design view is open, close it.
In the Object Navigator, under the Program Units node for your report, delete CONCL_CV (Package Spec), CONT_CV (Package Spec), CONT_CV (Package Body), and PORT_CV (Package Spec).
If the Paper Design view is open when you delete the packages from the report, you may get some errors.
Click the Attached Libraries node for your report, then click the Create button in the toolbar to add a new attached library.
Click Browse to find the DEPT_CONTAINER library. It will have a
.PLL file extension. After you have found and selected DEPT_CONTAINER, click Open.
Choose Program > Compile > All.
Click OK to close the Compile window.
Click the Run Paper Layout button in the toolbar to run the report and view it in the Paper Design view.
Save the report as