-- 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