The rules for granting privileges on UDFs are identical to those for macros except for the CREATE FUNCTION and EXECUTE FUNCTION privileges, as documented in the following table, which explains which UDF-related privileges are granted explicitly or not:
Privilege | Usage Notes |
---|---|
ALTER FUNCTION |
|
CREATE FUNCTION |
|
DROP FUNCTION |
|
EXECUTE FUNCTION |
|
All newly created external UDFs are performed in protected mode by default. This is also true for all newly created methods and external procedures. UDFs do not run in modes.
Restrict the ALTER FUNCTION privilege to DBAs. The privilege allows a user to perform the ALTER FUNCTION statement, which can change the run mode of a UDF (from PROTECTED to NOT PROTECTED, for example).
For more information see the information about ALTER FUNCTION, ALTER METHOD, and ALTER PROCEDURE in Teradata Vantage⢠- SQL Data Definition Language Syntax and Examples, B035-1144.