Name

ALTER PROCEDURE

Synopsis

ALTER PROCEDURE
[schema.]procedure_name
COMPILE

Recompiles a standalone stored procedure ( procedure_name). The COMPILE keyword is required.

Notes

This command first recompiles all objects upon which this procedure depends; if any of those objects are invalid, the procedure being recompiled will also be marked invalid. The procedure must be in your schema or you must have the ALTER ANY PROCEDURE privilege to issue this command.

Example

The following example explicitly recompiles the procedure called midday in schema scott:

ALTER PROCEDURE scott.midday COMPILE

Get Oracle Database Administration: The Essential Refe now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.