更新 '数据库/oracle/oracle权限及同义词.md'
This commit is contained in:
parent
4ea8fe11a3
commit
db9455073f
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue