想在A用户下用B的表。例如SELECT * FROM B.USER。结果报这个错误,ora-01031:insufficient privileges,权限问题,请问怎么解决呢?

解决方案 »

  1.   

    1.先用B用户登录,然后 执行 grant select to a on user;
    2.再登录a 用户
      

  2.   

    或者用system用户登录,grant select on B.* to A
    这之后,A即可访问B的表
      

  3.   

    如果还需要使用该对象其它权限(如update,insert,delete),可以在B用户下
    grant all on user to a; 
      

  4.   

    grant all on user to a;  权限太大了
    用system用户登录,grant select on B.USER to A
    刚刚好
      

  5.   

    无权限的问题
    grant all on user to a;
      

  6.   

    在a的用户下执行。
    grant select on user to a