更新 '数据库/oracle/oracle权限及同义词.md'

This commit is contained in:
iProbe 2023-02-16 10:59:26 +08:00
parent 4ea8fe11a3
commit db9455073f

View file

@ -2,6 +2,11 @@
```
grant select on USER1.TABLE to USER2;
```
### user1的所有表的select权限赋给user2
```sql
--- 获取授权语句
select 'grant select on '||owner||'.'||object_name||' to user2;'from dba_objects where OWNER = 'user1' and object_type in ('TABLE');
```
### 添加创建同义词权限
```
grant create synonym to USER2;