IBM Netfinity 4500R User Reference Manual page 51

Hide thumbs Also See for Netfinity 4500R:
Table of Contents

Advertisement

DB2 GRANT
privilegecode
where
privilegecode is one of the following privilege codes:
— ALL
— ALL PRIVILEGES
Note:
Grants all the appropriate privileges, except CONTROL, on the
database.
— ALTER
— CONTROL
— DELETE
— INDEX
— INSERT
— REFERENCES
— SELECT
— UPDATE
tablename is the name of the table as specified during database installation. A
listing of the Netfinity database table names can be found in the Netfinity
User's Guide (Appendix H: Netfinity Relational Database Tables).
Note:
The Netfinity Database Administration Tool can also be used to
GRANT or REVOKE privileges.
userid is the user ID to be granted access
3. Press Enter to execute the command.
To revoke privileges, substitute REVOKE for GRANT in the command line.
Database privileges on OS/2 systems:
1. Use the GRANT EXECUTE command to enable Netfinity Manager to access the
database.
Type the following command at the OS/2 prompt:
DB2 GRANT EXECUTE ON PACKAGE NETFIN.DB2SQLC0 TO PUBLIC
and then press Enter.
Note:
Specify PUBLIC or authorize only specific manager systems. To limit
access to the database, substitute the authorization name of the managing
system for PUBLIC.
2. Use the CONNECT RESET command to disconnect current users from the
database.
Type the following command at the OS/2 prompt:
DB2 CONNECT RESET
and then press Enter.
3. Use the NETFINDB GRANT command to grant (or revoke) database privileges.
To grant or revoke table privileges on OS/2:
a. Insert the Netfinity Manager CD into the CD-ROM drive (in this example,
drive D; individual drive letters might be different).
b. Make the CD-ROM drive the active drive.
Type D: and then press Enter.
c. Type the following command:
NETFINDB GRANT /ID=
where
id is the user ID to be granted access
ON TABLE
TO
tablename
PUBLIC /DBNAME=
id
databasename
Chapter 5. Using Netfinity Manager
Netfinity Manager
userid
/PRIV=
privilegecode
39

Advertisement

Table of Contents
loading

Table of Contents