IT精英俱樂(lè)部

          方便自己查閱,僅此而已!

          統(tǒng)計(jì)

          留言簿(4)

          閱讀排行榜

          評(píng)論排行榜

          oracle 10g 數(shù)據(jù)如何導(dǎo)入到oracle 9i時(shí)BUG解決方法

           

           在Oracle9i中執(zhí)行下面的SQL重建exu81rls視圖即可。

           

          CREATE OR REPLACE view exu81rls

          (objown,objnam,policy,polown,polsch,polfun,stmts,chkopt,enabled,spolicy)

          AS select u.name, o.name, r.pname, r.pfschma, r.ppname, r.pfname,

          decode(bitand(r.stmt_type,1), 0,'', 'SELECT,')

          || decode(bitand(r.stmt_type,2), 0,'', 'INSERT,')

          || decode(bitand(r.stmt_type,4), 0,'', 'UPDATE,')

          || decode(bitand(r.stmt_type,8), 0,'', 'DELETE,'),

          r.check_opt, r.enable_flag,

          DECODE(BITAND(r.stmt_type, 16), 0, 0, 1)

          from user$ u, obj$ o, rls$ r

          where u.user# = o.owner#

          and r.obj# = o.obj#

          and (uid = 0 or

          uid = o.owner# or

          exists ( select * from session_roles where role='SELECT_CATALOG_ROLE')

          )

          /

          grant select on sys.exu81rls to public;

          /
           
           
           

          posted on 2009-06-07 15:27 suplayer 閱讀(1437) 評(píng)論(0)  編輯  收藏 所屬分類: Database

          主站蜘蛛池模板: 正镶白旗| 桓台县| 报价| 屏东市| 永城市| 临安市| 汉阴县| 平和县| 烟台市| 博白县| 平陆县| 固阳县| 光泽县| 佛冈县| 道孚县| 尖扎县| 永靖县| 武邑县| 崇礼县| 崇文区| 武山县| 大连市| 大城县| 永仁县| 三明市| 建昌县| 贵州省| 平度市| 湾仔区| 华安县| 罗江县| 奈曼旗| 原阳县| 镇康县| 寿阳县| 崇义县| 福鼎市| 睢宁县| 荣成市| 揭东县| 永川市|