| Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
DBMS_DDL, 2 of 2
This procedure is equivalent to the following SQL statement:
ALTER PROCEDURE|FUNCTION|PACKAGE [<schema>.] <name> COMPILE [BODY]
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: |
|
This function returns TRUE if the specified DML or DDL trigger is set to fire once. Otherwise, it returns FALSE.
A fire once trigger fires in a user session but does not fire in the following cases:
EXECUTE_ERROR or EXECUTE_ALL_ERRORS procedure in the DBMS_APPLY_ADM package
DBMS_DDL.IS_TRIGGER_FIRE_ONCE trig_owner IN VARCHAR2, trig_name IN VARCHAR2) RETURN BOOLEAN;
| Parameter | Description |
|---|---|
|
trig_owner |
Schema of trigger |
|
trig_name |
Name of trigger |
This procedure sets the specified DML or DDL trigger's firing property. Use this procedure to control a DML or DDL trigger's firing property for changes:
EXECUTE_ERROR or EXECUTE_ALL_ERRORS procedure in the DBMS_APPLY_ADM package.You can specify one of the following settings for a trigger's firing property:
fire_once parameter is set to TRUE for a trigger, then the trigger does not fire for these types of changes.fire_once parameter is set to FALSE for a trigger, then the trigger fires for these types of changes.Regardless of the firing property set by this procedure, a trigger continues to fire when changes are made by means other than the apply process or apply error execution. For example, if a user session or an application makes a change, then the trigger continues to fire, regardless of the firing property.
| See Also:
Oracle9i Streams for more information about the apply process and controlling a trigger's firing property |
DBMS_DDL.SET_TRIGGER_FIRING_PROPERTY trig_owner IN VARCHAR2, trig_name IN VARCHAR2, fire_once IN BOOLEAN);
This procedure reorganizes object tables and swizzles references. For example, assume you have an object table FOO and that references in other tables point to objects stored in FOO. If you want to change some of the table organization--for example, you want to make it an IOT or a partitioned table, or you want to reorganize the data more efficiently--you copy all data from FOO into FOO2. Then you use the alter_table_referenceable and alter_table_not_referenceable procedures to swizzle all existing references to point to FOO2 instead of FOO.
DBMS_DDL.ALTER_TABLE_REFERENCEABLE TABLE_NAME IN VARCHAR2, TABLE_SCHEMA IN DEFAULT VARCHAR2, AFFECTED_SCHEMA IN DEFAULT VARCHAR2;
See ALTER_TABLE_NOT_REFERENCEABLE Procedure.
DBMS_DDL.ALTER_TABLE_NOT_REFERENCEABLE TABLE_NAME IN VARCHAR2, TABLE_SCHEMA IN DEFAULT VARCHAR2, AFFECTED_SCHEMA IN DEFAULT VARCHAR2;
|
![]() Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|