Oracle8i Supplied Packages Reference Release 8.1.5 A68001-01 |
|
This package provides access to some SQL Data Definition Language (DDL) statements from stored procedures. It also provides special administration operations that are not available as DDLs.
The ALTER_COMPILE
and ANALYZE_OBJECT
procedures commit the current transaction, perform the operation, and then commit again.
This package runs with the privileges of calling user, rather than the package owner SYS
.
Subprogram | Description |
---|---|
ALTER_COMPILE procedure |
Compiles the PL/SQL object. |
ANALYZE_OBJECT procedure |
Provides statistics for the database object. |
This procedure is equivalent to the following SQL statement:
ALTER PROCEDURE|FUNCTION|PACKAGE [<schema>.] <name> COMPILE [BODY]
If the named object is this package, or any packages upon which it depends (currently, STANDARD
or DBMS_STANDARD
), then the procedure simply returns, and these packages are successfully compiled.
DBMS_DDL.ALTER_COMPILE ( type VARCHAR2, schema VARCHAR2, name VARCHAR2);
Parameter | Description |
---|---|
type |
Must be either |
schema |
If |
name |
Name of the object (case-sensitive). |
This procedure provides statistics for the given table, index, or cluster. It is equivalent to the following SQL statement:
ANALYZE TABLE|CLUSTER|INDEX [<schema>.]<name> [<method>] STATISTICS [SAMPLE <n> [ROWS|PERCENT]]
DBMS_DDL.ANALYZE_OBJECT ( type VARCHAR2, schema VARCHAR2, name VARCHAR2, method VARCHAR2, estimate_rows NUMBER DEFAULT NULL, estimate_percent NUMBER DEFAULT NULL, method_opt VARCHAR2 DEFAULT NULL, partname VARCHAR2 DEFAULT NULL);
Exception | Description |
---|---|
ORA-20000: |
Insufficient privileges or object does not exist. |
ORA-20001: |
Should be either |
ORA-20002: |
|