
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for C—429847-008
6-13
Running the SQL Compiler in the Guardian
Environment
compilation to generate a report on the execution plans for DML statements and
DEFINEs used by 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.
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.
Содержание NonStop SQL/MP
Страница 4: ......
Страница 14: ...Contents HP NonStop SQL MP Programming Manual for C 429847 008 x ...
Страница 34: ...Introduction HP NonStop SQL MP Programming Manual for C 429847 008 1 8 SQL MP Version Management ...
Страница 60: ...Host Variables HP NonStop SQL MP Programming Manual for C 429847 008 2 26 VARCHAR Data Type ...
Страница 68: ...SQL MP Statements and Directives HP NonStop SQL MP Programming Manual for C 429847 008 3 8 Finding Information ...
Страница 156: ...Explicit Program Compilation HP NonStop SQL MP Programming Manual for C 429847 008 6 40 SQL Program Files ...
Страница 264: ...Dynamic SQL Operations HP NonStop SQL MP Programming Manual for C 429847 008 10 66 Detailed Dynamic SQL Program ...
Страница 294: ...SQL MP Sample Database HP NonStop SQL MP Programming Manual for C 429847 008 A 6 ...
Страница 300: ...Memory Considerations HP NonStop SQL MP Programming Manual for C 429847 008 B 6 Avoiding Memory Stack Overflows ...
Страница 304: ...Maximizing Local Autonomy HP NonStop SQL MP Programming Manual for C 429847 008 C 4 Skipping Unavailable Partitions ...