Required Access Authority - HP NonStop SQL/MP Programming Manual

For c
Table of Contents

Advertisement

Explicit Program Compilation
compilation to generate a report on the execution plans for DML statements and
DEFINEs used by the program.
Note. The Accelerator and the Object Code Accelerator (OCA) invalidate an SQL program file.
If you plan to run the Accelerator or OCA on a program file, run it before you explicitly SQL
compile the program.

Required Access Authority

To run the SQL compiler, you must have this access authority:
Read and purge access to the SQL program file
Read and write access to the PROGRAMS, USAGES, and TRANSIDS tables of
the catalog in which the SQL program file is to be registered
Read and write access to the USAGES and TRANSIDS tables of any catalog in
which a table, view, or index that the SQL program file uses is registered
SQL Compiler Functions
Resolves and expands SQL object names, including DEFINEs, using the current
defaults and the current catalog, and then stores the DEFINE names in the SQL
program file.
Performs type checking for C and SQL data types.
Expands views.
Checks references in catalogs for SQL object names to verify their existence and
to read their descriptions, then evaluates the object type and characteristics for
each reference.
Determines an optimized execution plan by analyzing the DML statements to
determine the best access paths and join, sort, and blocking strategies. Estimates
the execution costs for DML statements based on the statistics in the catalogs.
Generates executable code for the execution plans.
Registers the program in the specified PROGRAMS table and stores
dependencies for tables, views, and indexes in the USAGES table for each table,
view, or index that is accessed.
Generates a listing of the SQL statements in the program file, including any
warning or error messages that occurred.
Sets the SQL SENSITIVE and SQL VALID flags in the program file label if the
compilation is successful.
HP NonStop SQL/MP Programming Manual for C—429847-008
Running the SQL Compiler in the Guardian
6-13
Environment

Advertisement

Table of Contents
loading

Table of Contents