Protected Mode Execution Option | External Stored Procedures | Teradata Vantage - Protected Mode Execution Option - Analytics Database - Teradata Vantage

SQL External Routine Programming

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
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantage™

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.