Oracle8i SQL Reference Release 2 (8.1.6) A76989-01 |
|
SQL Statements (continued), 14 of 30
To remove a stored package from the database. This statement drops the body and specification of a package.
Note:
Do not use this statement to remove a single object from a package. Instead, re-create the package without the object using the |
The package must be in your own schema or you must have the DROP
ANY
PROCEDURE
system privilege.
|
drops only the body of the package. If you omit this clause, Oracle drops both the body and specification of the package. When you drop only the body of a package but not its specification, Oracle does not invalidate dependent objects. However, you cannot call one of the procedures or stored functions declared in the package specification until you re-create the package body. |
schema |
is the schema containing the package. If you omit schema, Oracle assumes the package is in your own schema. |
package |
is the name of the package to be dropped. Oracle invalidates any local objects that depend on the package specification. If you subsequently reference one of these objects, Oracle tries to recompile the object and returns an error if you have not re-created the dropped package. For information on how Oracle maintains dependencies among schema objects, including remote objects, see Oracle8i Concepts. If any statistics types are associated with the package, Oracle disassociates the statistics types with the FORCE clause and drops any user-defined statistics collected with the statistics types. See Also: "ASSOCIATE STATISTICS" and "DISASSOCIATE STATISTICS". |
The following statement drops the specification and body of the BANKING
package, invalidating all objects that depend on the specification:
DROP PACKAGE banking;
|
![]() Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|