什么可以导致Oracle ROWID更改? [英] What can cause an Oracle ROWID to change?

查看:1881
本文介绍了什么可以导致Oracle ROWID更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Oracle中的AFAIK ROWID表示记录在适当数据文件中的物理位置。
在这种情况下,记录的ROWID可能会改变?



我知道的是分区表上的UPDATE,将记录移动到另一个分区。 / p>

还有其他情况吗?

解决方案

正如你所说的,它发生在任何时候, as:




  • 导出/导入表格

  • ALTER TABLE XXXX MOVE

  • ALTER表XXXX收缩空间

  • 回流表XXXX

  • 分割分区

  • 更新值以便移动到新分区

  • 合并两个分区



在索引组织表中,那么对主键的更新也会给你一个不同的ROWID。


AFAIK ROWID in Oracle represents physical location of a record in appropriate datafile. In which cases ROWID of a record may change ?

The one known to me is UPDATE on partitioned table that "moves" the record to another partition.

Are there another cases ? Most of our DBs are Oracle 10.

解决方案

As you have said, it occurs anytime the row is physically moved on disk, such as:

  • Export/import of the table
  • ALTER TABLE XXXX MOVE
  • ALTER TABLE XXXX SHRINK SPACE
  • FLASHBACK TABLE XXXX
  • Splitting a partition
  • Updating a value so that it moves to a new partition
  • Combining two partitions

If is in an index organized table, then an update to the primary key would give you a different ROWID as well.

这篇关于什么可以导致Oracle ROWID更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆