GBase 8s, the China‑domestically developed OLTP database from GBASE, enforces security through two layers of permissions: database‑level and object‑level. Understanding how to grant, revoke, and inspect these privileges is fundamental for every DBA and developer working with a gbase database.
1. Database‑Level Privileges
Database‑level privileges control whether a user can connect and administer a database. They come in three tiers:
CONNECT : The lowest level. Users can run SELECT, INSERT, UPDATE, DELETE, create views and temporary tables.
RESOURCE : Includes all CONNECT privileges, plus the ability to create tables, indexes, and alter/drop their own tables.
DBA : The highest level.…