Oracle 同义词 与私有同义词 and 公有同义词

论坛 期权论坛 脚本     
匿名网站用户   2020-12-21 09:35   11   0
 -- system 给予私有权限
grant create synonym to scott
-- scott 创建私有同义词
create  synonym ee for scott.emp
-- 赋予huohuo01 查询scott权限
grant select on scott.emp to huohuo01

select * from scott.ee



-- 公有同义词

-- 使用system 给予scott 公有的权限
grant create public synonym to scott
-- 使用scott 创建公有同义词
create public synonym pp for scott.emp
-- 给予huohuo01 查询scott公有同义词的权限
grant select on scott.emp to public 
-- 使用火火01  查询scott 公有表
select * from pp

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:1136255
帖子:227251
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP