当前位置:网站首页>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';边栏推荐
- 1069. Division of convex polygons (thinking, interval DP)
- 【读书笔记】程序员修炼手册—实战式学习最有效(项目驱动)
- Openssl3.0 learning XXI provider encoder
- Flutter un élément au milieu, l'élément le plus à droite
- Construction and maintenance of business websites [11]
- Selection of field types for creating tables in MySQL database
- Questions d'entrevue
- What is the function of the headphone driver
- 剑指 Offer 31. 栈的压入、弹出序列
- how to add one row in the dataframe?
猜你喜欢

Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing

As a software testing engineer, will you choose the bank post? Laolao bank test post

How to batch add background and transition effects to videos?

mysql列转行函数指的是什么

MySQL view concept, create view, view, modify view, delete view

JVM面试篇

Medical management system (C language course for freshmen)

How to build and use redis environment

How to execute an SQL in MySQL

Which is a good Bluetooth headset of about 300? 2022 high cost performance Bluetooth headset inventory
随机推荐
MySQL主从延迟问题怎么解决
Vsocde has cli every time it is opened js
How to hide the scroll bar of scroll view in uniapp
JVM面试篇
C # use system data. The split mixed mode assembly is generated for the "v2.0.50727" version of the runtime, and it cannot be loaded in the 4.0 runtime without configuring other information
flutter 中间一个元素,最右边一个元素
Calculation (computer) code of suffix expression
How to batch add background and transition effects to videos?
【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)
Sword finger offer 47 Maximum value of gifts
[question] - why is optical flow not good for static scenes
LFM signal denoising, time-frequency analysis, filtering
【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度
How to turn off debug information in rtl8189fs
321. Chessboard segmentation (2D interval DP)
2022 Q2 - 提昇技能的技巧總結
Deep learning: a solution to over fitting in deep neural networks
CSDN insertion directory in 1 second
Quality means doing it right when no one is looking
leetcode2310. The one digit number is the sum of integers of K (medium, weekly)