HPlogo ALLBASE/SQL Database Administration Guide: HP 9000 Computer Systems

Appendix B Authorities Required by ALLBASE/SQL Statements

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

This appendix lists the authorities required for each ALLBASE/SQL statement. Note that you do not have to have all of the authorities that are marked to perform an activity, you only need one of them. For more information, refer to the "Database Creation and Security" chapter and to the "DBEnvironment Configuration and Security" chapter. The ALLBASE/SQL Reference Manual contains complete descriptions of each statement.

Table B-1 Authorities Required By ALLBASE/SQL Statements

StatementAuthority Required
ADD DBEFILE DBA
ADD TO GROUP DBA or OWNER
ADVANCE None
ALTER DBEFILE DBA
ALTER TABLE DBA, OWNER, or ALTER
BEGIN None
BEGIN ARCHIVE DBA
BEGIN DECLARE SECTION None
BEGIN WORK None
CHECKPOINT DBA
CLOSE None
COMMIT ARCHIVE DBA
COMMIT WORK None
CONNECT DBA or CONNECT
CREATE DBEFILE DBA
CREATE DBEFILESET DBA
CREATE GROUP DBA or RESOURCE
CREATE INDEX DBA, OWNER, or INDEX
CREATE PARTITION DBA
CREATE PROCEDURE DBA or RESOURCE (and appropriate authorities on objects referenced by the procedure)
CREATE RULE OWNER for the table and OWNER or EXECUTE for the procedure; or DBA
CREATE SCHEMA DBA or RESOURCE
CREATE TABLE DBA or RESOURCE
CREATE TEMPSPACE DBA or RESOURCE
CREATE VIEW DBA, OWNER, or SELECT (on relevant columns)
DECLARE CURSORFor a select cursor: DBA, OWNER, or SELECT (on relevant columns) and UPDATE (for an updatable cursor). For a procedure cursor: DBA or OWNER or EXECUTE (for the procedure).
DECLARE variable None
DELETE DBA, OWNER, or DELETE
DELETE WHERE CURRENT DBA, OWNER, or DELETE
DESCRIBE Same as for a SELECT or EXECUTE PROCEDURE that is described; otherwise, none
DISABLE AUDIT LOGGING DBA
DISABLE RULES DBA
DISCONNECT None
DROP DBEFILE DBA
DROP DBEFILESET DBA
DROP GROUP DBA or OWNER
DROP INDEX DBA, OWNER, or INDEX
DROP MODULE DBA or OWNER
DROP PARTITION DBA
DROP PROCEDURE DBA or OWNER
DROP RULE DBA or OWNER
DROP TABLE DBA or OWNER
DROP TEMPSPACE DBA or OWNER
DROP VIEW DBA or OWNER
ENABLE AUDIT LOGGING DBA
ENABLE RULES DBA
END DECLARE SECTIONNone
EXECUTE (Interactive)DBA, RESOURCE, or OWNER
EXECUTE (Programmatic)Same as for statement being executed
EXECUTE IMMEDIATESame as for statement being executed
EXECUTE PROCEDUREOWNER or EXECUTE for the procedure; or DBA
Execute an SQL programRUN
FETCHNone
GENPLAN Same as for statement being analyzed
GOTO None
GRANT (Special)DBA
GRANT (Table, View, RUN, EXECUTE)DBA, OWNER, or user with grantable privilege (on tables and views)
GRANT WITH GRANT OPTIONDirect DBA, direct OWNER, or user with grantable privilege
GRANT BYDBA
IF None
INCLUDE None
INSERT DBA, OWNER, or INSERT
Labeled Statement None
LOCK TABLE DBA, OWNER, or SELECT
OPEN For a select cursor: DBA, OWNER, or SELECT (on relevant columns) and UPDATE (for an updatable cursor). For a procedure cursor: DBA or OWNER or EXECUTE (for the procedure).
PREPARESame as for statement being prepared
PRINT None
RAISE ERROR None
REFETCHNone
RELEASENone
REMOVE DBEFILEDBA
REMOVE FROM GROUPDBA or OWNER
RESETDBA
RETURN  
REVOKE (Special)DBA
REVOKE (Table, View, RUN, EXECUTE DBA, OWNER, or grantable privilege; only DBA if table or view and if no CASCADE and chain of grants exists
ROLLBACK WORKNone
SAVEPOINTNone
SELECTDBA, OWNER, or SELECT
SET CONNECTION None
SET CONSTRAINTS None
SET DEFAULT DBEFILESET DBA
SET DML ATOMICITY None
SET MULTITRANSACTION None
SETOPT None
SET PRINTRULES DBA
SET SESSION None
SET TRANSACTION  
SET USER TIMEOUT None
SQLEXPLAIN None
START DBE DBA
START DBE NEWDBA
START DBE NEWLOGDBA and DBECreator status
STOP DBEDBA
TERMINATE USERDBA
TRANSFER OWNERSHIPDBA or OWNER
TRUNCATE TABLE DBA or OWNER
UPDATEDBA, OWNER, or UPDATE
UPDATE STATISTICSDBA or OWNER
UPDATE WHERE CURRENTDBA, OWNER, or UPDATE
VALIDATE DBA or OWNER; RUN on module, or EXECUTE on procedure
WHENEVERNone
WHILE None

 

Feedback to webmaster