12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8Subprograms and Packages: UsageInformationThe topic discusses the development of packages and subprograms with PL/<strong>SQL</strong>. Itincludes the following topics:■■■■Overview of Packages and SubprogramsManaging SubprogramsManaging Packages<strong>Oracle</strong> Product-Specific PackagesSee Also:■■"Using PL/<strong>SQL</strong> Packages" in PL/<strong>SQL</strong> User's Guide and Reference foradditional information on PL/<strong>SQL</strong> packages."Using PL/<strong>SQL</strong> Subprograms" in PL/<strong>SQL</strong> User's Guide andReference for information on PL/<strong>SQL</strong> subprogramsNote: Many examples use the <strong>Oracle</strong> HR sample schema. Forinformation on the sample schemas, see <strong>Oracle</strong> Database SampleSchemas.8.1 Overview of Packages and Subprograms<strong>Oracle</strong> offers the capability to store programs in the database. This functionalityenables commonly required code to be written and tested once and then accessed byany application that requires the code. Database-resident program units also ensurethat the same processing is applied to the data when the code is invoked, making thedevelopment of applications easier and providing consistency between developers.You can write database-resident programs in PL/<strong>SQL</strong> and manage source types suchas PL/<strong>SQL</strong> packages, procedures, functions, and triggers. The actions include creating,compiling, creating synonyms for, granting privileges on, and showing dependenciesfor these source types.Subprograms and Packages: Usage Information describes the main types of PL/<strong>SQL</strong>program units: packages, package bodies, and subprograms.You can use PL/<strong>SQL</strong> to develop packages and stored (standalone) subprograms. Bothpackages and stored subprograms are saved and stored in the database and can beused as building blocks for applications.Subprograms and Packages: Usage Information 8-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!