grant create table to user1

解决方案 »

  1.   

    你的过程没有问题,只不过是在存储过程里面动态创建表,要明确给于create table的权限sql>grant create table to user1
      

  2.   

    我加了以后还是不行啊~
    SQL> grant create table to shw;Grant succeededSQL> 
    SQL> declare
      2  j varchar2(100);
      3  begin
      4  j:='aaa';
      5  crtable(j);
      6  end;
      7  /declare
    j varchar2(100);
    begin
    j:='aaa';
    crtable(j);
    end;ORA-00911: 无效字符
    ORA-06512: 在"SHW.CRTABLE", line 6
    ORA-06512: 在line 5