当前位置:网站首页>Oracle creates a user with read-only permission in four simple steps
Oracle creates a user with read-only permission in four simple steps
2022-07-02 02:16:00 【leowang5566】
First step 、 Create user . Create a new user with administrator privileges :
create user user name identified by password default tablespace Table space ;
The second step 、 Assign connection permission :
grant connect to user name ;
The third step 、 Assign table permissions
grant select on owner. Table name to user name ;
If there are multiple tables , It can be used selece Convert batch execution statements :
select 'grant select on '||owner||'.'||object_name||' to user name ;'
from dba_objects
where owner in ('owner')
and object_type='TABLE';
Step four 、 Create synonyms :
create or replace SYNONYM user name . Table name FOR owner. Table name ;
If there are multiple tables , It can be used selece Convert batch execution statements :
SELECT 'create or replace SYNONYM user name .'||object_name||' FOR '||owner||'.'||object_name||';' from dba_objects
where owner in ('owner')
and object_type='TABLE';边栏推荐
- oracle创建只读权限的用户简单四步走
- MySQL中一条SQL是怎么执行的
- 【读书笔记】程序员修炼手册—实战式学习最有效(项目驱动)
- Opengauss database backup and recovery guide
- leetcode2305. Fair distribution of biscuits (medium, weekly, shaped pressure DP)
- leetcode2312. Selling wood blocks (difficult, weekly race)
- Infix expression to suffix expression (computer) code
- Design and implementation of key value storage engine based on LSM tree
- Additional: information desensitization;
- CSDN article underlined, font color changed, picture centered, 1 second to understand
猜你喜欢

MySQL主从延迟问题怎么解决

How to execute an SQL in MySQL

AR增强现实可应用的场景

Word search applet design report based on cloud development +ppt+ project source code + demonstration video
![[technology development -21]: rapid overview of the application and development of network and communication technology -1- Internet Network Technology](/img/2d/299fa5c76416f74bd1a693c433dd09.png)
[technology development -21]: rapid overview of the application and development of network and communication technology -1- Internet Network Technology

How to turn off the LED light of Rog motherboard

RTL8189FS如何关闭Debug信息

How to solve MySQL master-slave delay problem
![[pit] how to understand](/img/e9/f5315a03b6f3da07021f915bb18af8.jpg)
[pit] how to understand "parameter fishing"

leetcode2309. 兼具大小写的最好英文字母(简单,周赛)
随机推荐
Sword finger offer 62 The last remaining number in the circle
Iterative unified writing method of binary tree
leetcode2309. 兼具大小写的最好英文字母(简单,周赛)
Es interview questions
es面试题
Sword finger offer 42 Maximum sum of continuous subarrays
As a software testing engineer, will you choose the bank post? Laolao bank test post
MySQL view concept, create view, view, modify view, delete view
A quick understanding of analog electricity
Deep learning: a solution to over fitting in deep neural networks
479. Additive binary tree (interval DP on the tree)
JVM面试篇
Pytest testing framework
leetcode2310. The one digit number is the sum of integers of K (medium, weekly)
Comparative analysis of MVC, MVP and MVVM, source code analysis
Calculation (computer) code of suffix expression
How does MySQL solve the problem of not releasing space after deleting a large amount of data
The concept, function, characteristics, creation and deletion of MySQL constraints
医药管理系统(大一下C语言课设)
【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)