UDF Servers | ALTER FUNCTION | Teradata Vantage - UDF Servers - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1184
lifecycle
latest
Product Category
Teradata Vantage™

Protected mode UDFs, including secure mode UDFs, run under a separate process called a server. UDFs set up to require external security run in a subtype of protected mode called secure mode. The system sets up separate processes, or servers, to support both protected mode and secure mode functions (see Teradata Vantage™ - SQL External Routine Programming, B035-1147 for details).

The following series of events occurs the first time a secure mode UDF (the process is essentially identical for protected mode UDFs) is invoked in a session.

  1. The UDF server setup logic checks at the authorization and determines whether a secure server process is already set up for the OS user authorization.

    Because this is the first time the UDF has been invoked in the session, no secure server process has been set up.

  2. Checks the user name and password.
  3. Creates the secure server process and the UDF executes.

If this is not the first time the UDF has been executed for the session, the following series of events occurs:

  1. The UDF secure server setup logic reads the authorization and determines that there is already a secure server process set up with that authorization.
  2. The UDF is executed using the existing secure server.

If the maximum number of secure servers has been created and a new request comes in for a given authorization for which there is no established secure server, the following series of events occurs:

  1. The UDF secure server logic attempts to find a secure server with the given authorization. It does not find one and determines that the maximum number of secures servers has already been set up.
  2. The authorization is not set up, so the process validates the OS user by making a validation check on the user name and password.

    If the logon attempt using the provided authorization information fails, the system returns an error to the session.

  3. The UDF secure server logic finds the least used secure server process and terminates it.
  4. The new secure server process is created and the UDF is executed.