当前位置:网站首页>oracle创建只读权限的用户简单四步走
oracle创建只读权限的用户简单四步走
2022-07-02 02:11:00 【leowang5566】
第一步、创建用户。使用有管理员权限的用户创建一个新的用户:
create user 用户名 identified by 密码 default tablespace 表空间;
第二步、赋连接权限:
grant connect to 用户名;
第三步、赋表权限
grant select on owner.表名 to 用户名;
如果有多表,可以用selece转换批量执行语句:
select 'grant select on '||owner||'.'||object_name||' to 用户名;'
from dba_objects
where owner in ('owner')
and object_type='TABLE';
第四步、创建同义词:
create or replace SYNONYM 用户名.表名 FOR owner.表名;
如果有多表,可以用selece转换批量执行语句:
SELECT 'create or replace SYNONYM 用户名.'||object_name||' FOR '||owner||'.'||object_name||';' from dba_objects
where owner in ('owner')
and object_type='TABLE';边栏推荐
- Email picture attachment
- 如何用一款产品推动「品牌的惊险一跃」?
- np.where 和 torch.where 用法
- essay structure
- np. Where and torch Where usage
- This is the report that leaders like! Learn dynamic visual charts, promotion and salary increase are indispensable
- Makefile simple induction
- CSDN article underlined, font color changed, picture centered, 1 second to understand
- Logging only errors to the console Set system property ‘log4j2. debug‘ to sh
- Software development life cycle -- waterfall model
猜你喜欢

pytest 测试框架

1069. Division of convex polygons (thinking, interval DP)
![[技术发展-21]:网络与通信技术的应用与发展快速概览-1- 互联网网络技术](/img/2d/299fa5c76416f74bd1a693c433dd09.png)
[技术发展-21]:网络与通信技术的应用与发展快速概览-1- 互联网网络技术

How to batch add background and transition effects to videos?

如何远程、在线调试app?

Software No.1

JPM 2021 most popular paper released (with download)

PR second training

A quick understanding of digital electricity

leetcode2311. Longest binary subsequence less than or equal to K (medium, weekly)
随机推荐
Open that kind of construction document
[deep learning] Infomap face clustering facecluster
Construction and maintenance of business websites [15]
Construction and maintenance of business websites [11]
Redis有序集合如何使用
Medical management system (C language course for freshmen)
Exception handling of class C in yyds dry goods inventory
essay structure
【LeetCode 43】236. The nearest common ancestor of binary tree
2022 Q2 - 提昇技能的技巧總結
321. Chessboard segmentation (2D interval DP)
Using mongodb in laravel
leetcode2310. 个位数字为 K 的整数之和(中等,周赛)
golang---锁
[technology development -21]: rapid overview of the application and development of network and communication technology -1- Internet Network Technology
flutter 中間一個元素,最右邊一個元素
leetcode373. 查找和最小的 K 对数字(中等)
Volume compression, decompression
【毕业季】研究生学长分享怎样让本科更有意义
Iterative unified writing method of binary tree