RDBPROD: Validating Stored Procedures

(Doc ID 65089.1)

Last updated on NOVEMBER 04, 2016

Applies to:

Oracle Rdb Server on OpenVMS - Version 7.0 and later
HP OpenVMS VAX
HP OpenVMS Alpha
HP OpenVMS Itanium

Goal

When a stored procedure is invalidated by a data definition language (DDL) operation, in most cases, you can make a procedure valid again by using additional DDL statements. (If a procedure is invalidated because of language dependencies, Oracle Rdb returns a fatal error and you cannot make it valid again.)

For example, the procedure, NEW_SALARY_PROC, which is defined using the following SQL statement, uses the SALARY_HISTORY table:

If you drop the SALARY_HISTORY table by using the CASCADE option, Oracle Rdb marks the NEW_SALARY_PROC as invalid. 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms