Oracle pseudo column RowID
2006-10-07 14:12
471 查看
ROWID stores the address of the row in the database, and it uses ROWIDs to construct index. But you can also use rowid to see how a table is organized. This part is often missed by many people.
Oracle has two type of ROWID:
Extended ROWID: Extendeds RowID use base 64 encoding and have the following components:
data object number: identify the database segment of the object containing the required row
relative file number: identify which data file in the segment contained the required row
block number: identify which block in the data file contained the required row
row number: slot number of the row in the block
Restricted ROWID: Restricted ROWID use a binary representation and contain the following components:
Block number
Row number
file number
Oracle provides a package to parse the rowid. - dbms_rowid. it has the function like:
dbms_rowid.rowid_block_number(p_rowid)
dbms_rowid.rowid_row_number(p_rowid)
dbms_rowid.rowid_relative_fno(p_rowid)
- The result of this function can be used to link to dba_data_files to get file name.
The package also has many other function and procedure to process the ROWID data type.
So we can get more detail about how data are stored in a table.
Oracle has two type of ROWID:
Extended ROWID: Extendeds RowID use base 64 encoding and have the following components:
data object number: identify the database segment of the object containing the required row
relative file number: identify which data file in the segment contained the required row
block number: identify which block in the data file contained the required row
row number: slot number of the row in the block
Restricted ROWID: Restricted ROWID use a binary representation and contain the following components:
Block number
Row number
file number
Oracle provides a package to parse the rowid. - dbms_rowid. it has the function like:
dbms_rowid.rowid_block_number(p_rowid)
dbms_rowid.rowid_row_number(p_rowid)
dbms_rowid.rowid_relative_fno(p_rowid)
- The result of this function can be used to link to dba_data_files to get file name.
The package also has many other function and procedure to process the ROWID data type.
So we can get more detail about how data are stored in a table.
相关文章推荐
- Oracle几个常用的伪列(Pseudo-column)使用
- Oracle Database SQL Language Reference 笔记(2)—— 伪列(Pseudocolumn)
- Oracle几个常用的伪列(Pseudo-column)使用
- Oracle几个常用的伪列(Pseudo-column)使用
- oracle中rowid和rownum的区别
- Oracle的rowid
- oracle 的rowid和rownum
- oracle对于大表利用rowid提升update性能
- Oracle 中的rowid
- Oracle: Select constant as a column
- Oracle get the Primary and foreign Key Column
- oracle中rowid和rownum
- oracle的column格式化导致字段值显示为"####"的处理办法
- oracle中rownum和rowid的区别
- oracle中的wm_concat(column)函数使用(字段合并)
- Oracle中查询rownum和rowid的区别
- ROWNUM Pseudocolumn
- oracle 默认排序问题 和 order by ,rowid
- Oracle WMSYS.WM_CONCAT(COLUMN)
- Oracle查询 rownum和rowid的区别