-
Notifications
You must be signed in to change notification settings - Fork 0
user
Zhamri Che Ani edited this page Nov 4, 2024
·
6 revisions
These commands are typically used by database administrators (DBAs) to manage users, permissions, and roles in the database.
CREATE USER "zhamri" IDENTIFIED BY "zhamri123";- Grant System Privileges (e.g., creating tables, sessions):
GRANT CREATE SESSION TO "zhamri"; -- Allows user to log in
GRANT CREATE TABLE TO "zhamri"; -- Allows user to create tables- Grant Object Privileges (e.g., access to specific tables):
GRANT SELECT, INSERT, UPDATE ON "d1_student_realtime" TO "zhamri";- Grant Role (e.g., DBA role for full privileges):
GRANT DBA TO "zhamri";REVOKE privilege FROM username;
REVOKE CREATE TABLE FROM username;