暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

How does Oracle handle updating a row that causes it to move from one partition to another ?

2011-01-01
503

The Oracle (tm) Users' Co-Operative FAQ

How does Oracle handle updating a row that causes it to move from one partition to another ?


Author's name: Jonathan Lewis

Author's Email: Jonathan@jlcomp.demon.co.uk

Date written: 7th Mayy 2001

Oracle version(s): 8.1.7.0

In Oracle 8.1, the feature to allow an update to move a row from one partition to another appeared. How does Oracle handle such an update ?


If you dump the contents of the undo segment or the log file after a simple update that moves a row from one partition to another you will find that Oracle takes three steps to handlethe task..

	Update the row in situ - which leaves it in the wrong partition
	Insert the corrected row into the correct partition
	Delete the row from the old partition

Clearly this is quite heavy on overheads (deletes are always expensive anuway as the whole row has to be written to the undo segment), so the feature should be used with care, and should probably not be used to move rows at a high rate.


Further reading: N/A



【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论