ALTER METHOD Syntax Elements - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™
UDT_name
See the ALTER PROCEDURE (External Form) topic “When to Specify Unprotected Mode” in Teradata Vantage™ - SQL Data Definition Language Detailed Topics , B035-1184 .
EXECUTE PROTECTED
Change the execution mode for the specified method from unprotected mode to protected mode.
EXECUTE NOT PROTECTED
Change the execution mode for the specified method from protected mode to unprotected mode.
COMPILE
Recompile the code source for the specified method, generate the object code, recreate the .so file, and distribute the file to all nodes of the system.
The existing method object is replaced by the recompiled version.
ONLY
Recompile the method only. When you specify this option, a new dynamic linked library is not distributed to database nodes.
When you load a method onto another platform of a different type, the system marks the method as not valid, and the method must be recompiled. If there are many methods in one database, you can save time by specifying the ONLY option for all recompilations to avoid having to generate and distribute a new library, until the last one is compiled in that database without the ONLY option.