zoukankan      html  css  js  c++  java
  • Oracle查询行对应block_id,file_id

    select id,rowid,
    dbms_rowid.rowid_object(rowid) object#,
    dbms_rowid.rowid_relative_fno(rowid) file#,
    dbms_rowid.rowid_block_number(rowid) block#,
    dbms_rowid.rowid_row_number(rowid) row# from scott.t where id in(1,300000);
    ID           ROWID                             OBJECT# FILE# BLOCK#       ROW#
    ---------- ------------------ ---------- ---------- ---------- ----------
    1           AAAWb0AAEAACvPCAAp 91892         4        717762           41
    300000 AAAWb0AAEAACvN8AAw 91892         4       717692            48

    select
    t.segment_name,
    t.partition_name,
    t.BLOCK_ID,(t.BLOCKS + t.BLOCK_ID -1) "MAX_BLOCK_ID"
    from sys.dba_extents t,dba_tab_partitions p
    where t.PARTITION_NAME=p.partition_name and p.TABLE_OWNER='SCOTT' and p.table_name='T';
    SEGMENT_NA             PARTITION_NAME BLOCK_ID MAX_BLOCK_ID
    ---------- ------------------------------ ---------- ------------
    T                                    SYS_P109                   714368             715391
    T                                    SYS_P110                   715392             716415
    T                                    SYS_P111                   716416             717439
    T                                    SYS_P112                   717440             718463

      

  • 相关阅读:
    自定义 Repository 方法
    SpringData_JpaSpecificationExecutor接口
    SpringData_JpaRepository接口
    SpringData_PagingAndSortingRepository接口
    SpringData_CrudRepository接口
    SpringData修改和删除操作
    自定义查询语句SpringData
    SpringData关键字查询练习
    compile——生成ast
    vue-compile概述
  • 原文地址:https://www.cnblogs.com/lvcha001/p/9694973.html
Copyright © 2011-2022 走看看