授予某个用户使用另一个用户函数的权限该怎么设置

解决方案 »

  1.   

    grant execute on testpro to test;
    --例如:
    SQL> conn scott/tiger
    已连接。
    SQL> create or replace procedure testpro
      2  as
      3  begin
      4  dbms_output.put_line('hello!');
      5  end;
      6  /过程已创建。
    SQL> conn test/test;
    已连接。SQL> exec scott.testpro;
    hello!PL/SQL 过程已成功完成。
      

  2.   

    grant execute on function_name TO user;
      

  3.   

    grant exexute on functionname to user
      

  4.   

    grant execute on user.functionname to  目标用户