Connect to the System database as the admin user. For example:
[nz@nzhost ~]$ nzsql -d system -u admin -pw password
Create a group for your administrative users. For example:
SYSTEM.ADMIN(ADMIN)=> CREATE GROUP administrators;
Grant the group all administrative permissions. For example:
SYSTEM.ADMIN(ADMIN)=> GRANT ALL ADMIN TO administrators WITH GRANT OPTION;
Grant the group all object permissions. For example:
SYSTEM.ADMIN(ADMIN)=> GRANT ALL ON DATABASE, GROUP, SCHEMA, SEQUENCE,SYNONYM, TABLE, EXTERNAL TABLE, FUNCTION, AGGREGATE, USER, VIEW, PROCEDURE, LIBRARY TO administrators WITH GRANT OPTION;
Grant the group select permissions on all system and management objects. For example:
SYSTEM.ADMIN(ADMIN)=> GRANT LIST, SELECT ON SYSTEM TABLE, SYSTEM VIEW, MANAGEMENT TABLE, MANAGEMENT VIEW TO administrators WITH GRANT OPTION;
Add users to the group to grant them the permissions of the group. For example:
SYSTEM.ADMIN(ADMIN)=> ALTER USER nzuser WITH IN GROUP administrators;
GRANT LIST,SELECT,DELETE,UPDATE,INSERT,TRUNCATE,GROOM,ALTER,ABORT ON SANDBOX..TABLE TO SANDBOX_ADMIN;
No comments:
Post a Comment