各位老大,我在ORACLE里新建立了一个用户。
语句如下:
CREATE USER appsquery IDENTIFIED BY appsquery
 default tablespace APPS_TS_TX_DATA
  temporary tablespace TEMP
  profile DEFAULT;
  grant create session to appsquery;
  grant select on apps.pa_projects_all  to appsquery;
  grant select on apps.pa_project_status_lov_v  to appsquery;
  grant select on apps.pa_tasks  to appsquery;
  grant select on apps.pa_budget_versions  to appsquery;
  grant select on apps.pa_resource_assignments  to appsquery;
  grant select on apps.pa_budget_lines  to appsquery;
  grant select on apps.wf_items  to appsquery;
  grant execute on apps.wf_engine to appsquery; 然后我用这个用户登录,执行如下语句:
SELECT * FROM apps.wf_items w 
 WHERE apps.wf_engine.getitemattrtext(w.item_type, w.item_key, 'PA_PROJECT_NUMBER') = ‘****’
   AND w.item_type = 'PABUDWF';结果提示:
ORA-00942:表或视图不存在
ORA-06512:在APPS.WF_ENGIN,LINE 1663
ORA-06512:在 LINE 1这个包的第1663行是 :
1660  when others then
1661    Wf_Core.Context('Wf_Engine', 'GetItemAttrText', itemtype, itemkey,
1661                    aname);
1663    raise;
麻烦问一下应该给这个用户赋什么权限才能执行这个包?
谢谢!

解决方案 »

  1.   

    EXECUTE ANY PROCEDURE 执行过程与包
      

  2.   

    execute any procedure权限不是很案例,
    还是grant execute wf_engine.<func> to <user>一个个的执行比较好。
      

  3.   

     grant execute any procedure to appsquery;
    执行好后不行,同样的错误。grant execute on apps.wf_engine.SetItemAttrText2 to appsquery;   
    这个语句不对,提示缺失关键字。
    还有什么办法?
      

  4.   

      grant select on apps.wf_items  to appsquery;
      grant select on apps.WF_ITEM_ATTRIBUTES to appsquery;
      grant select on apps.WF_ITEM_ATTRIBUTE_VALUES to appsquery;
      grant select on apps.WF_RESOURCES to appsquery;  grant execute on apps.wf_engine to appsquery; 
      grant execute on apps.wf_core to appsquery;     
      grant execute on apps.WF_CACHE to appsquery;    grant execute on sys.dbms_utility to appsquery;
      grant execute any procedure to appsquery;一共赋予了这么多,还是同样的错误。
      

  5.   

    apps.wf_engine.getitemattrtext(w.item_type, w.item_key, 'PA_PROJECT_NUMBER')你这个里面有涉及表?是否没有足够的权限访问?
      

  6.   

    上面那几个表还有几个包就是我从这个包里找出来的,都给权限了,其他我没找出来,
    不知道还有啥。
    我也猜想是有表可能权限没给
    我甚至都在系统权限里把
    grant any privilege
    select any table
    select any transaction
    select any sequence
    select any cube
    也赋予了这个用户,结果还是报上面的错误,真是奇怪了。
      

  7.   

    实在不行给赋给他DBA角色看看,