Protected Mode Execution Option | External Stored Procedures | Teradata Vantage - 17.10 - Protected Mode Execution Option - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
Language
English (United States)

The ALTER PROCEDURE statement provides an execution option that controls whether the database invokes the external stored procedure directly or runs the procedure indirectly as a separate process.

The option applies to external stored procedures that do not execute SQL and were created without specifying the EXTERNAL SECURITY clause in the CREATE PROCEDURE or REPLACE PROCEDURE statement. External stored procedures that specify the EXTERNAL SECURITY clause are executed using separate secure server processes.

IF ALTER PROCEDURE specifies … THEN Vantage
EXECUTE PROTECTED runs the external stored procedure indirectly as a separate process.

If the stored procedure fails during execution, the transaction fails.

EXECUTE NOT PROTECTED invokes the external stored procedure directly.
If the ALTER PROCEDURE statement specifies EXECUTE NOT PROTECTED, and the external stored procedure fails during execution, the database software will probably restart.

Only an administrator, or someone with sufficient privileges, can use the ALTER PROCEDURE statement.