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

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

问题描述

Oracle 中的 AFAIK ROWID 表示相应数据文件中记录的物理位置.在哪些情况下记录的 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.

还有其他情况吗?我们的大多数数据库都是 Oracle 10.

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:

  • 表格的导出/导入
  • 更改表 XXXX 移动
  • 更改表 XXXX 收缩空间
  • 闪回表XXXX
  • 拆分分区
  • 更新一个值,使其移动到一个新的分区
  • 合并两个分区

如果在索引组织的表中,那么对主键的更新也会为您提供不同的 ROWID.

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天全站免登陆