ITPub博客

首页 > 应用开发 > IT综合 > Restricted Rowids

Restricted Rowids

原创 IT综合 作者:tsinglee 时间:2007-11-22 15:13:30 0 删除 编辑

Restricted rowids use a binary representation of the physical address for each row selected. When
queried using SQL*Plus, the binary representation is converted to a VARCHAR2/hexadecimal
representation. The following query:

SELECT ROWID, last_name FROM employees
WHERE department_id = 30;

can return the following row information:

ROWID ENAME
------------------ ----------
00000DD5.0000.0001 KRISHNAN
00000DD5.0001.0001 ARBUCKLE
00000DD5.0002.0001 NGUYEN


As shown, a restricted rowid's VARCHAR2/hexadecimal representation is in a three-piece format,
block.row.file:

The data block that contains the row (block DD5 in the example). Block numbers are relative to their
datafile, not tablespace. Therefore, two rows with identical block numbers could reside in two
different datafiles of the same tablespace.
The row in the block that contains the row (rows 0, 1, 2 in the example). Row numbers of a given
block always start with 0.
The datafile that contains the row (file 1 in the example). The first datafile of every database is
always 1, and file numbers are unique within a database.

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10599713/viewspace-983298/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Extended Rowids
下一篇: Examples of Rowid Use
请登录后发表评论 登录
全部评论
  • 博文量
    740
  • 访问量
    2002875