ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle rowid detail

oracle rowid detail

原创 Linux操作系统 作者:lys198311 时间:2012-11-18 11:27:40 0 删除 编辑

the following is my practise based on warehose's rowid

select u.rowid from knta_users u where u.username='admin';

A-Z (0-25),a-z(26-51),0-9(52-61),+(62),/(63)

AAATDT---object_id 19*power(64,2)+3*64+19 =dbms_rowid.rowid_object(rowid)

(truncate and move will change id)

select * from user_objects o where o.object_name='KNTA_USERS';

AAG ---relative_fno relative file no 6=DBMS_ROWID.rowid_relative_fno (u.ROWID)

select * from dba_data_files df where df.relative_fno=6;

AAAA0p -----block no 52*64+41=DBMS_ROWID.rowid_block_number (u.ROWID)

select * from dba_extents where segment_name='KNTA_USERS';

AAH---ROW No 7=DBMS_ROWID.rowid_row_number (u.ROWID)

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

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2009-11-27

  • 博文量
    23
  • 访问量
    12046