Oracle PLSQL Wrapper Utility
You can wrap the
PL/SQL source text for any of these stored PL/SQL units, thereby preventing
anyone from displaying that text with the static data dictionary views *_SOURCE:
a. Package specification
b. Package body
c. Type specification
d. Type body
e. Function
f. Procedure
A file containing
wrapped PL/SQL source text is called a wrapped file. A wrapped file can be
moved, backed up, or processed by SQL*Plus or the Import and Export utilities.
To produce a wrapped
file, use either the PL/SQL Wrapper utility or a DBMS_DDL subprogram. The
PL/SQL Wrapper utility wraps the source text of every wrappable PL/SQL unit
created by a specified SQL file.
PL/SQL Wrapper
utility detect tokenization errors (for example, runaway strings), but not
syntax or semantic errors (for example, nonexistent tables or views).
PL/SQL Source Text
Wrapping Guidelines
Wrap only the body of
a package or type, not the specification. Leaving the specification unwrapped
allows other developers to see the information needed to use the package or
type. Wrapping the body
prevents them from seeing the package or type implementation.
Wrap files only after
you have finished editing them.
You cannot edit
wrapped files. If a wrapped file needs changes, you must edit the original
unwrapped file and then wrap it.
Before distributing a
wrapped file, view it in a text editor and ensure that all important parts are
wrapped.
PL/SQL Source Text
Wrapping with PL/SQL Wrapper Utility
The PL/SQL Wrapper
utility cannot connect to Oracle Database. To run the PL/SQL Wrapper utility,
enter this command at the operating system prompt (with no spaces around the
equal signs):
wrap iname=input_file
[ oname=output_file ]
input_file is the
name of an existing file that contains any combination of SQL statements. output_file
is the name of the file that the PL/SQL Wrapper utility creates—the wrapped
file.
The default file
extension for input_file is sql. The default name of output_file is input_file.plb.
Therefore, these commands are equivalent:
wrap
iname=/mydir/myfile
wrap
iname=/mydir/myfile.sql oname=/mydir/myfile.plb
PL/SQL Wrapper: Release 10.1.0.5.0- Production is shipped with Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
Comments
Post a Comment