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

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
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 Teradata Database …
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.