| Oracle8i Supplied PL/SQL Packages Reference Release 2 (8.1.6) Part Number A76936-01  | 
  | 
DBMS_DDL, 2 of 2
| 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:  | 
 
  | 
| 
 | 
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved.  | 
 
  |