The DBMS_DDL package provides access to some of the SQL DDL statements from within stored procedures.
The ALTER_COMPILE procedure can be used to programmatically force a recompile of a stored object. The specification is:
PROCEDURE DBMS_DDL.ALTER_COMPILE (type VARCHAR2, schema VARCHAR2, name VARCHAR2);
A call to ANALYZE_OBJECT lets you programmatically compute statistics for the specified object. The specification is:
PROCEDURE DBMS_DDL.ANALYZE_OBJECT (type VARCHAR2, schema VARCHAR2, name VARCHAR2, method VARCHAR2, estimate_rows NUMBER DEFAULT NULL, estimate_percent NUMBER DEFAULT NULL);
Copyright (c) 2000 O'Reilly & Associates. All rights reserved.
This HTML Help has been published using the chm2web software. |