ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 数据所在的数据块实验

数据所在的数据块实验

原创 Linux操作系统 作者:tian1982tian 时间:2012-10-09 16:32:50 0 删除 编辑

SQL> drop table t;
Table dropped.
SQL> create table t(id int,name varchar2(20)) tablespace example;
Table created.
SQL> insert into t
  2  select 1,'yejun' from dual;
1 row created.
SQL>  select dbms_rowid.rowid_block_number(rowid) blk,name from t;
       BLK NAME
---------- --------------------
     19088 yejun
SQL> commit;
Commit complete.
SQL>  select dbms_rowid.rowid_block_number(rowid) blk,name from t;
       BLK NAME
---------- --------------------
     19088 yejun
SQL> alter system checkpoint;
System altered.
SQL> insert into t select 1,'yejun1' from dual;
1 row created.
SQL> select dbms_rowid.rowid_block_number(rowid) blk,name from t;
       BLK NAME
---------- --------------------
     19088 yejun
     19088 yejun1
SQL> commit;
Commit complete.
SQL> alter system checkpoint;
System altered.
SQL>
 
[root@oracle9ivm ora10g]# dd if=example01.dbf ibs=8192 skip=19088 count=1 | strings
1+0 records in
16+0 records out
yejun
[root@oracle9ivm ora10g]# dd if=example01.dbf ibs=8192 skip=19088 count=1 | strings
1+0 records in
16+0 records out                                                                                          
yejun1,
yejun
[root@oracle9ivm ora10g]#

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

请登录后发表评论 登录
全部评论

注册时间:2010-12-29

  • 博文量
    70
  • 访问量
    176796