SQL> conn wp/wp 已连接。 SQL> grant select ,execute on p_test to yp; grant select ,execute on p_test to yp * 第 1 行出现错误: ORA-02225: 只有 EXECUTE 和 DEBUG 权限对过程有效
select b.line,b.text from user_objects a,user_source b where a.object_type = 'PROCEDURE' and a.object_name='你的存储过程名字。' and a.object_name=b.name order by line; 给你的用户授权 user_objects/user_source的select权限。
desc schema_name.procedure_name;
SQL> conn wp/wp
已连接。
SQL> grant select ,execute on p_test to yp;
grant select ,execute on p_test to yp
*
第 1 行出现错误:
ORA-02225: 只有 EXECUTE 和 DEBUG 权限对过程有效
给你的用户授权 user_objects/user_source的select权限。