Specifying the CLI Option for the EXTERNAL NAME Package Clause: CREATE PROCEDURE and REPLACE PROCEDURE (External Form) - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

If an external procedure supports CLIv2 SQL calls, you must indicate by giving package_name the value CLI.

The following rules apply to specifying the CLI package option.
  • You can only specify the CLI package name for external procedures.

    You cannot specify this option when you create UDFs or methods.

  • You can specify the CLI package name only once in an EXTERNAL NAME clause.

    You can also specify other user-defined packages, but not another CLI or other Teradata package option.

  • You must specify this option for each external procedure that uses CLIv2 calls to perform SQL.
  • The system links all CLIv2-based external procedures created in 1 database to the same dynamic library in that database, but they are strictly segregated from the standard external procedure and UDF dynamic libraries in the same database.
  • You must run all CLIv2-based external procedures in EXECUTE PROTECTED mode only.

    CLIv2-based external procedures cannot run in EXECUTE NOT PROTECTED mode, and you cannot use the ALTER PROCEDURE (External Form) statement to change the protection mode of such a procedure to EXECUTE NOT PROTECTED.