WRAP INAME=input_file [ONAME=output_file]
You can use uppercase or lowercase. Leave no space around the equal signs because spaces delimit individual arguments.
The WRAP command requires only one argument, which is
INAME=input_file
where input_file is the path and name of the Wrapper input file. You need not specify the file extension because it defaults to sql. For example, the following commands are equivalent:
WRAP INAME=/mydir/myfile
WRAP INAME=/mydir/myfile.sql
However, you can specify a different file extension as the following example shows:
WRAP INAME=/mydir/myfile.src
Optionally, the WRAP command takes a second argument, which is
ONAME=output_file
where output_file is the path and name of the Wrapper output file. You need not specify the output file because its name defaults to that of the input file and its extension defaults to plb (PL/SQL binary). For example, the following commands are equivalent:
WRAP INAME=/mydir/myfile
WRAP INAME=/mydir/myfile.sql ONAME=/mydir/myfile.plb
However, you can use the option ONAME to specify a different file name and extension, as the following example shows:
WRAP INAME=/mydir/myfile ONAME=/yourdir/yourfile.obj
A wrapped package or subprogram definition has the form
<header> WRAPPED <body>
where header begins with the reserved word CREATE and ends with the name of the package or subprogram, and body is an intermediate form of object code that looks like a random sequence of characters. The keyword WRAPPED tells the PL/SQL compiler that the package or subprogram is wrapped.
The header can contain comments. For example, the Wrapper converts
CREATE OR REPLACE PACKAGE
-- Author: J Smith
-- Date: 11/15/94
mypkg AS ...
into
CREATE OR REPLACE PACKAGE
-- Author: J Smith
-- Date: 11/15/94
mypkg WRAPPED 8c724af33 ...
Generally, the output file is much larger than the input file.