![]() |
|
Use the ALTER PROCEDURE statement to change the routine modifiers or pathname of a previously defined external procedure.
|
The ALTER PROCEDURE statement allows you to modify an external procedure to tune its performance. With this statement you can modify characteristics that control how the external procedure executes. You can also add or replace related UDRs that provide alternatives for the optimizer, which can improve performance.
All modifications take effect on the next invocation of the procedure.
To use the ALTER PROCEDURE statement, you must be the owner of the UDR or have the DBA privilege.
Use the following keywords to introduce the items in the external procedure that you want to modify.
If the routine modifier is a Boolean value, MODIFY sets the value to be T (that is, it is the equivalent of using the keyword ADD to add the routine modifier). For example, both of the following statements alter the proc1 procedure so that it can be executed in parallel in the context of a parallelizable data query statement.
For a related example, see Altering Routine Modifiers Example.
Related Statements: ALTER FUNCTION, ALTER ROUTINE, CREATE FUNCTION, CREATE PROCEDURE, DROP FUNCTION, DROP PROCEDURE, and DROP ROUTINE
For a discussion on how to create and use SPL routines, see the Informix Guide to SQL: Tutorial.
For a discussion of how to create and use external routines, see Extending Informix Dynamic Server 2000.
For information about how to create C UDRs, see the DataBlade API Programmer's Manual.