NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
A-26
Considerations—ALTER PROGRAM
RENAME new-name
renames the program and changes all references to the old name in the affected
catalog to the new name; new-name is a Guardian name or DEFINE. The fully
expanded new name must be unique among objects in the network. Both program
and new-name must have the same volume and node name.
If the program is managed by ServerWare SMF, new-name must be either a virtual
or direct name. Only the virtual name changes; the physical name on the physical
volume is preserved.
Considerations—ALTER PROGRAM
Authorization requirements
To alter security attributes for a program or rename a program, you must be a
generalized owner of the program file. You must also have authority to read and
write the program file.
To rename a program, you must also have authority to read and write to the catalogs
that describe the program and any associated objects. Renaming a program does not
affect the validity of the program.
If the program is protected by the Safeguard security subsystem, requirements
depend on the Safeguard protection settings. For example, if access is restricted to
the super ID, you must be the super ID or error 199 (Disk file is Safeguard
protected) occurs. If you are the super ID, ALTER PROGRAM executes
successfully, but the new security attributes take effect only if Safeguard protection
is removed from the program.
Only one DDL statement can operate on a given SQL object (or partition of an SQL
object) at a time. An error occurs if you attempt to execute an ALTER PROGRAM
statement while another process is executing a DDL operation on the same object.
The specific error depends on the DDL operation involved and the phase of the
operation at which the conflict occurs. (See DDL (Data Definition Language)
Statements on page D-19 for more information.)
Storage of security information
The security attribute information for a SQL program in a Guardian file is stored in
the file label and in the PROGRAMS table of the catalog when the program is
created. ALTER PROGRAM changes the information in the catalog and in the
associated file label on disk.
General dependencies