Inspect Stored Procedures | Teradata Vantage - Inspecting Stored Procedures - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Advanced SQL Engine Node Software Migration Guide

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
urd1597289951923.ditamap
dita:ditavalPath
urd1597289951923.ditaval
dita:id
B035-5942
lifecycle
previous
Product Category
Software
Teradata Vantage

Stored procedures are automatically recompiled after a restore. If any of the original stored procedures did not have the procedure source code (the source program language text) stored in the database with the stored procedure, the stored procedure cannot be recompiled. In these cases you must rewrite and recompile the stored procedure. For more information, see Fixing SQL Stored Procedures.

If stored procedures exist on the system, the automatic recompile process generates several output log files for inspection.

  • In /var/opt/teradata/PUTTools/spconv_xx.xx.xx.xx, inspect each of the following output log files, and take the identified corrective action(s), if necessary.
    Recompile Output File Purpose Corrective Action
    spnorecomp.txt Lists all the stored procedures that failed to recompile for any reason. Review the spconvlog.out file to identify the cause of failure.
    spconvlog.out Lists the specific cause of error for each stored procedure.
    1. Correct any errors in the SPL that may be preventing the recompile.
    2. Manually recompile the stored procedure.
    sp_nospllist.txt Lists all the stored procedures that could not recompile because no SPL was stored with the procedure. Re-create the stored procedure and store the SPL text with the stored procedure.