oracle创建同义词

1、当前登录用户是userB,把userB的表1的所有权限给userA 

  grant all on userB.表1 to userA(oracle用户)

2、当前登录用户是userA,创建同义词,这样访问表1时就不需要用户名.了

  create synonym 表1 for userB.表1

posted @ 2024-01-31 17:02  酸牛奶  阅读(17)  评论(0编辑  收藏  举报