表 a不是在用户arole下产生的

解决方案 »

  1.   

    表a 不是 arole产生的。是buser产生的,但buser 有 arole这个角色。同是也创建了public.a同义词。
      

  2.   

    grant resource to auser;sql>create procedure atest as
          astr varchar2(10);
        begin
          select s1 into astr from (a表所在的用户).a where rownum=1;
          dbms_output.put_line(astr);
        end;
      

  3.   

    哎,看来这个论坛也没有多少高手。auser肯定有resource权限了。
      

  4.   

    indentified,有这样的关键词吗
      

  5.   

    create table a(s1 varchar2);你是随便写的吧
      

  6.   

    grant select,insert to arole;
    也是随便写的吧,应该是对a表来说的吧