Start of change

SYSPACKAGEAUTH

The SYSPACKAGEAUTH view contains one row for every privilege granted on a package. Note that this catalog view cannot be used to determine whether a user is authorized to a package because the privilege to use a package could be acquired through a group user profile or special authority (such as *ALLOBJ).

The following table describes the columns in the SYSPACKAGEAUTH view:

Table 1. SYSPACKAGEAUTH view
Column Name System Column Name Data Type Description
GRANTOR GRANTOR VARCHAR(128)

Nullable

Reserved. Contains the null value.
GRANTEE GRANTEE VARCHAR(128) The user profile to which the privilege is granted.
PACKAGE_SCHEMA COLLID VARCHAR(128) Name of the schema
PACKAGE_NAME NAME VARCHAR(128) Name of the SQL package
PRIVILEGE_TYPE PRIVTYPE VARCHAR(10) The privilege granted:
ALTER
The privilege to alter the package.
EXECUTE
The privilege to execute the package.
IS_GRANTABLE GRANTABLE VARCHAR(3) Indicates whether the privilege is grantable to other users.
NO
The privilege is not grantable.
YES
The privilege is grantable.
AUTHORIZATION_LIST AUTL VARCHAR(10)

Nullable

If the privilege is granted through an authorization, contains the name of the authorization list.

Contains the null value if the privilege is not granted through an authorization list.

SYSTEM_PACKAGE_SCHEMA SYS_DNAME CHAR(10) System name of the schema containing the package
SYSTEM_PACKAGE_NAME SYS_NAME CHAR(10) System name of the package
End of change