In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Role Management of Dameng Database
Role management is rarely used in daily situations. In general, roles included in major databases can be configured according to the various needs of some users or some tables. This article also follows the previous idea to do practical operations on the basic functions such as role creation, modification, deletion, and add permissions to the corner, such as creating tables, and testing permissions.
1. View all roles
Select * from dba_roles
2. Create a role
Next, we create
Create role role1
Create a tab1 table for a test
3. Add permissions to roles
Let's first assign permissions to the query table to this role and assign them to test1 users to do a test.
Assign query table tab1 permissions: grant select on tab1 to role1
Assign create table permissions: grant create table to role1
Assign roles to test1 users: grant role1 to test1
The following screenshot shows the effect before and after assigning permissions after logging in with test1 users.
Test query table tab1:select * from sysdba.tab1
Test creation table tab2:create table tab2 (id int, name varchar (40))
4. Delete a role
The command to delete a role is the same as the command to delete other objects
Drop role role1
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.