不行,linGun(GUN)你试过没有,反正我这儿不行。

解决方案 »

  1.   

    用另一个用户登录sql*plus,grant select on tbname to username;
    connect username/pw
    select * from uname.tbname;
    也可以创建同义词
    create public synonym tbname foor uname.tbname ;
    就可以这样用了:
    select * from tbname;
      

  2.   

    bzszp(SongZip)我用了你的第二个方法,也不行,另外我已经具有另一个表的所有权限,因此第一种方法也不行,在sql*plus中我能运行,但是在过程里就不能编译,还请多多指教。
      

  3.   

    in PL/SQL block, if you want to refer to an object belongs to other schema, you have to have EXPLICIT access right granted. that means, you have to logon as object owner(another user) and grant right. like,conn user1/password
    grant select on mytable to user2;try...
      

  4.   

    弱水三千;我已经具有另一个表的所有权限,在sql*plus中能运行,但是在过程里就不能编译,还请多多指教.
      

  5.   

    我也不知道错误信息是什么,在dba中老是invalid,在sql*plus中就说编译的包体有错误。
      

  6.   

    装个pl/sql edit或pl/sql developer可以显示编译错误。
      

  7.   

    授权!如果存在表a(用户pp01),现在用户pp02想用表a,则可以:
    grant select table a to pp02或者grant select any table to pp02