1. GRANT SELECT,INSERT,UPDATE,DELETE ON TABLE_A TO UserB;
先授权,把表授权给想要访问的用户
2. CREATE PUBLIC SYNONYM TableA FOR UserA.TableA;
然后创建个同义词
这样就可以直接在用户UserB用
select * from TABLE_A 来访问
如果不用不步骤2只能用
select * from UserA.TABLE_A 来访问
3.删除同义词:
drop public synonym table_name;
4.查看所有同义词:
select * from dba_synonyms