What can cause an Oracle ROWID to change?(什么会导致 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 更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:什么会导致 Oracle ROWID 更改?


基础教程推荐
- oracle区分大小写的原因? 2021-01-01
- MySQL 中的类型:BigInt(20) 与 Int(20) 2021-01-01
- 表 './mysql/proc' 被标记为崩溃,应该修复 2022-01-01
- 二进制文件到 SQL 数据库 Apache Camel 2021-01-01
- 什么是 orradiag_<user>文件夹? 2022-01-01
- 在 MySQL 中:如何将表名作为存储过程和/或函数参数传递? 2021-01-01
- 如何在 SQL 中将 Float 转换为 Varchar 2021-01-01
- 在多列上分布任意行 2021-01-01
- mysql选择动态行值作为列名,另一列作为值 2021-01-01
- 如何根据该 XML 中的值更新 SQL 中的 XML 2021-01-01