今天,師弟更新數(shù)據(jù)的時(shí)候出現(xiàn)問(wèn)題。出現(xiàn)“更新分區(qū)關(guān)鍵字列將導(dǎo)致分區(qū)的更改” ,看了下數(shù)據(jù)庫(kù),更新的表有分區(qū),而且更新的字段是分區(qū)的關(guān)鍵字(從報(bào)錯(cuò)可以看出來(lái)了)。
網(wǎng)上找了下,說(shuō)用這樣可以:
alter table xxx enable row_movement;
但我沒(méi)有試也沒(méi)有這樣做,可能是不放心,解決辦法是不更新分區(qū)的關(guān)鍵字(因?yàn)橄到y(tǒng)不用更新它的,之前更新是因?yàn)閔ibernate處理它了)。如果的確要更新可以先刪除了,再添加一個(gè)。引用
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
流浪汗 閱讀(4338)
評(píng)論(0) 編輯 收藏 所屬分類(lèi):
oracle