IT精英俱樂部

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

          統計

          留言簿(4)

          閱讀排行榜

          評論排行榜

          oracle 10g 數據如何導入到oracle 9i時BUG解決方法

           

           在Oracle9i中執行下面的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 閱讀(1439) 評論(0)  編輯  收藏 所屬分類: Database

          主站蜘蛛池模板: 古丈县| 曲松县| 建平县| 湾仔区| 班戈县| 织金县| 建昌县| 濮阳县| 双桥区| 堆龙德庆县| 苍梧县| 三穗县| 隆尧县| 乌拉特后旗| 麻江县| 蓬溪县| 郸城县| 许昌市| 普陀区| 濮阳县| 冀州市| 张家口市| 盐池县| 德保县| 凤台县| 巴林左旗| 巍山| 武陟县| 法库县| 沛县| 巫溪县| 淮南市| 临洮县| 江阴市| 琼结县| 循化| 融水| 新密市| 馆陶县| 阳原县| 浮梁县|