EasyManuals Logo

HP NonStop SQL/MP User Manual

HP NonStop SQL/MP
331 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #157 background imageLoading...
Page #157 background image
HP NonStop SQL/MP Programming Manual for C—429847-008
7-1
7 Program Execution
This section describes the execution of a NonStop C program containing embedded
SQL statements and directives in the OSS environment. The section provides details
about the required access permissions, the TACL DEFINES used, and the steps to run
the TACL RUN command. It further explains how to run a program at low PIN and how
to determine compatibility with the SQL executor.
Topics include:
ï‚·
Required Access Authority
ï‚·
Using TACL DEFINEs on page 7-2
ï‚·
Entering the TACL RUN Command on page 7-3
ï‚·
Running a Program in the OSS Environment on page 7-3
ï‚·
Running a Program at a Low PIN on page 7-4
ï‚·
Determining Compatibility With the SQL Executor on page 7-7
Required Access Authority
To run a NonStop SQL program file, you (or the creator process, if you use a
process-creation procedure such as PROCESS_CREATE_ or NEWPROCESS) must
have the following access authority:
ï‚·
Read and execute authority to the SQL program file
ï‚·
Read authority to the catalog in which the program is registered
ï‚·
Read authority to any catalogs in which tables or views used by the program are
registered for SQL statements that require automatic SQL recompilation
For an embedded SQL statement (static or dynamic), to access and operate on a
database object, such as a table or view, the process started by the program must
have specific privileges associated with it. The privileges for both the process access
ID (PAID) and the group list are evaluated to determine if a process can be granted
access to a database object. The group list is always associated with the creator
access ID (CAID), which represents the user who starts the process. The PAID
depends on the PROGID setting.
If the program owner does not enable the PROGID attribute for the program file, the
PAID will be the same as the user ID of the process creator (that is, the CAID). When a
user executes the program, the process uses the privileges of the process creator and
accesses only resources to which the process creator has access.
If the program owner enables the PROGID attribute for the program file, the PAID will
be the same as the user ID of the program owner. When a user executes this program,
the process uses the privileges of the program owner and accesses only the resources
to which the program owner has access. PROGID programs enable one user to

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP NonStop SQL/MP and is the answer not in the manual?

HP NonStop SQL/MP Specifications

General IconGeneral
BrandHP
ModelNonStop SQL/MP
CategorySoftware
LanguageEnglish

Related product manuals