当前位置:网站首页>Gbase 8C create user / role example 2
Gbase 8C create user / role example 2
2022-07-03 02:22:00 【Dazhuang twelve】
6、 Create a copy account :repl
gbase=# CREATE USER repl REPLICATION LOGIN ENCRYPTED PASSWORD 'repl';
CREATE ROLE
7、 Other instructions
GRANT { { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER }
[, ...] | ALL [ PRIVILEGES ] }
ON { [ TABLE ] table_name [, ...]
| ALL TABLES IN SCHEMA schema_name [, ...] }
TO role_specification [, ...] [ WITH GRANT OPTION ]
## Single table Authorization : to grant authorization zjy The account can be accessed schema by zjy Of zjy surface grant select,insert,update,delete on zjy.zjy to zjy;
## All forms authorized :grant select,insert,update,delete on all tables in schema zjy to zjy;
GRANT { { SELECT | INSERT | UPDATE | REFERENCES } ( column_name [, ...] )
[, ...] | ALL [ PRIVILEGES ] ( column_name [, ...] ) }
ON [ TABLE ] table_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
## Column Authorization , Authorize the specified column (zjy schema Under the zjy Tabular name Column ) The update permission of is given to zjy user grant update (name) on zjy.zjy to zjy;
## The specified column grants different permissions ,zjy schema Under the zjy surface , Check for updates name、age Field , Insert name Field grant select (name,age),update (name,age),insert(name) on zjy.xxx to zjy;
GRANT { { USAGE | SELECT | UPDATE }
[, ...] | ALL [ PRIVILEGES ] }
ON { SEQUENCE sequence_name [, ...]
| ALL SEQUENCES IN SCHEMA schema_name [, ...] }
TO role_specification [, ...] [ WITH GRANT OPTION ]
## Sequence ( Self increasing bond ) Property Authorization , Appoint zjy schema Under the seq_id_seq to zjy user grant select,update on sequence zjy.seq_id_seq to zjy;
## Sequence ( Self increasing bond ) Property Authorization , To the user zjy to grant authorization zjy schema All the sequences below grant select,update on all sequences in schema zjy to zjy;
GRANT { { CREATE | CONNECT | TEMPORARY | TEMP } [, ...] | ALL [ PRIVILEGES ] }
ON DATABASE database_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
## Access to database , to grant authorization cc Users connect to the database zjygrant connect on database zjy to cc;
GRANT { USAGE | ALL [ PRIVILEGES ] }
ON DOMAIN domain_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { USAGE | ALL [ PRIVILEGES ] }
ON FOREIGN DATA WRAPPER fdw_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { USAGE | ALL [ PRIVILEGES ] }
ON FOREIGN SERVER server_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { EXECUTE | ALL [ PRIVILEGES ] }
ON { { FUNCTION | PROCEDURE | ROUTINE } routine_name [ ( [ [ argmode ] [ arg_name ] arg_type [, ...] ] ) ] [, ...]
| ALL { FUNCTIONS | PROCEDURES | ROUTINES } IN SCHEMA schema_name [, ...] }
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { USAGE | ALL [ PRIVILEGES ] }
ON LANGUAGE lang_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { { SELECT | UPDATE } [, ...] | ALL [ PRIVILEGES ] }
ON LARGE OBJECT loid [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { { CREATE | USAGE } [, ...] | ALL [ PRIVILEGES ] }
ON SCHEMA schema_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
## Connect schema jurisdiction , to grant authorization cc visit zjy schema jurisdiction grant usage on schema zjy to cc;
GRANT { CREATE | ALL [ PRIVILEGES ] }
ON TABLESPACE tablespace_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
GRANT { USAGE | ALL [ PRIVILEGES ] }
ON TYPE type_name [, ...]
TO role_specification [, ...] [ WITH GRANT OPTION ]
where role_specification can be:
[ GROUP ] role_name
| PUBLIC
| CURRENT_USER
| SESSION_USER
GRANT role_name [, ...] TO role_name [, ...] [ WITH ADMIN OPTION ]
## hold zjy The user's rights are granted to the user cc.
grant zjy to cc;
边栏推荐
- [Flutter] dart: class; abstract class; factory; Class, abstract class, factory constructor
- Deep learning notes (constantly updating...)
- The sandbox explains its vision for the meta universe platform
- 去除网页滚动条方法以及内外边距
- Iptables layer 4 forwarding
- 线程安全的单例模式
- Startup mode and scope builder of collaboration in kotlin
- Su Shimin: 25 principles of work and life
- GBase 8c 函数/存储过程参数(二)
- udp接收队列以及多次初始化的测试
猜你喜欢

通达OA v12流程中心

内存池(内核角度理解new开辟空间的过程)

Detailed analysis of micro service component sentinel (hystrix)

8 free, HD, copyright free video material download websites are recommended

MySQL learning 03

Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol

Memory pool (understand the process of new developing space from the perspective of kernel)

线程安全的单例模式
[advanced ROS] Lesson 6 recording and playback in ROS (rosbag)
![[shutter] shutter debugging (debugging control related functions | breakpoint management | code operation control)](/img/fe/c053f8d116eb307733177283a26318.png)
[shutter] shutter debugging (debugging control related functions | breakpoint management | code operation control)
随机推荐
Detailed introduction to the usage of Nacos configuration center
基于线程池的生产者消费者模型(含阻塞队列)
[tutorial] chrome turns off cross domain policies CORS and samesite, and brings cookies across domains
GBase 8c系统表-pg_collation
各国Web3现状与未来
Unrecognized SSL message, plaintext connection?
Trial setup and use of idea GoLand development tool
My creation anniversary
Tongda OA V12 process center
iptables 4层转发
人脸识别6- face_recognition_py-基于OpenCV使用Haar级联与dlib库进行人脸检测及实时跟踪
Restcloud ETL cross database data aggregation operation
PyTorch 卷积网络正则化 DropBlock
单词单词单词
The data in servlet is transferred to JSP page, and the problem cannot be displayed using El expression ${}
【 tutoriel】 Chrome ferme les cors et les messages de la politique inter - domaines et apporte des cookies à travers les domaines
Iptables layer 4 forwarding
Detailed introduction to the deployment and usage of the Nacos registry
Socket programming
Thread safe singleton mode