隨筆-153  評論-235  文章-19  trackbacks-0
                今天,師弟更新數據的時候出現問題。出現“更新分區關鍵字列將導致分區的更改” ,看了下數據庫,更新的表有分區,而且更新的字段是分區的關鍵字(從報錯可以看出來了)。
                網上找了下,說用這樣可以:

          alter table xxx enable row_movement;

          但我沒有試也沒有這樣做,可能是不放心,解決辦法是不更新分區的關鍵字(因為系統不用更新它的,之前更新是因為hibernate處理它了)。如果的確要更新可以先刪除了,再添加一個。引用http://www.itpub.net/283642,1.html

          Question: Why am I getting an ora-14402 error when I update a partition key
          Answer: You cannot update the value of the partition key, the only way you can go about this is by deleting the old row and adding a new row to the table


          posted on 2007-10-29 21:09 流浪汗 閱讀(4341) 評論(0)  編輯  收藏 所屬分類: oracle
          主站蜘蛛池模板: 鹿邑县| 遵义县| 莎车县| 石景山区| 甘泉县| 江西省| 托克逊县| 绥德县| 长葛市| 杭锦旗| 西充县| 华阴市| 金山区| 达拉特旗| 水城县| 广州市| 临湘市| 磐安县| 汉源县| 宁陵县| 成都市| 内黄县| 克拉玛依市| 鹤山市| 汶川县| 永城市| 新乐市| 天峨县| 松原市| 洛浦县| 舞钢市| 伊吾县| 曲阜市| 广平县| 章丘市| 恩平市| 信宜市| 屏南县| 荆州市| 黑河市| 婺源县|