当前位置:网站首页>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';边栏推荐
- Sword finger offer II 031 Least recently used cache
- What is the MySQL column to row function
- MySQL operates the database through the CMD command line, and the image cannot be found during the real machine debugging of fluent
- Sword finger offer 62 The last remaining number in the circle
- Open that kind of construction document
- What is the function of the headphone driver
- [技术发展-21]:网络与通信技术的应用与发展快速概览-1- 互联网网络技术
- Regular expression learning notes
- 剑指 Offer 62. 圆圈中最后剩下的数字
- 【OpenCV】-5种图像滤波的综合示例
猜你喜欢

【读书笔记】程序员修炼手册—实战式学习最有效(项目驱动)

Selection of field types for creating tables in MySQL database

WebGPU(一):基本概念

mysql列转行函数指的是什么

Leetcode face T10 (1-9) array, ByteDance interview sharing

Ar Augmented Reality applicable scenarios

1069. Division of convex polygons (thinking, interval DP)

Comparative analysis of MVC, MVP and MVVM, source code analysis

Deployment practice and problem solving of dash application development environment based on jupyter Lab

How to hide the scroll bar of scroll view in uniapp
随机推荐
【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度
剑指 Offer 47. 礼物的最大价值
【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)
* and & symbols in C language
【深度学习】infomap 人脸聚类 facecluster
leetcode2309. 兼具大小写的最好英文字母(简单,周赛)
What is the MySQL column to row function
C write TXT file
how to add one row in the dataframe?
How to turn off debug information in rtl8189fs
How to build and use redis environment
Design and implementation of key value storage engine based on LSM tree
JS slow animation
mysql列转行函数指的是什么
Architecture evolution from MVC to DDD
CSDN article underlined, font color changed, picture centered, 1 second to understand
Leetcode face T10 (1-9) array, ByteDance interview sharing
leetcode2312. Selling wood blocks (difficult, weekly race)
LFM信号加噪、时频分析、滤波
oracle创建只读权限的用户简单四步走