Oracle中資料塊中row number缺失(記錄,未解決)
環境1:
環境2:
環境3:
-
SCOTT@proc> drop table tt purge;
-
-
Table dropped.
-
-
SCOTT@proc>
-
SCOTT@proc>
-
SCOTT@proc> create table tt (id int,name varchar2(2000)) tablespace users;
-
-
Table created.
-
-
SCOTT@proc> insert into tt values(1,rpad('a',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> insert into tt values(2,rpad('b',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> insert into tt values(3,rpad('c',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> insert into tt values(4,rpad('d',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> commit;
-
-
Commit complete.
-
-
SCOTT@proc> select id,substr(name,1,1),rowid,dbms_rowid.rowid_relative_fno(rowid) file#,dbms_rowid.rowid_block_number(rowid) block#,dbms_rowid.rowid_row_number(rowid) row# from tt;
-
-
ID SU ROWID FILE# BLOCK# ROW#
-
---------- -- ------------------ ---------- ---------- ----------
-
1 a AAAV8LAAEAAAAImAAA 4 550 0
-
2 b AAAV8LAAEAAAAImAAB 4 550 1
-
3 c AAAV8LAAEAAAAImAAC 4 550 2
-
4 d AAAV8LAAEAAAAImAAD 4 550 3
-
-
SCOTT@proc> delete from tt where id=2;
-
-
1 row deleted.
-
-
SCOTT@proc> commit;
-
-
Commit complete.
-
-
SCOTT@proc> insert into tt values(5,rpad('e',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> commit;
-
-
Commit complete.
-
-
SCOTT@proc> select id,substr(name,1,1),rowid,dbms_rowid.rowid_relative_fno(rowid) file#,dbms_rowid.rowid_block_number(rowid) block#,dbms_rowid.rowid_row_number(rowid) row# from tt;
-
-
ID SU ROWID FILE# BLOCK# ROW#
-
---------- -- ------------------ ---------- ---------- ----------
-
1 a AAAV8LAAEAAAAImAAA 4 550 0
-
5 e AAAV8LAAEAAAAImAAB 4 550 1
-
3 c AAAV8LAAEAAAAImAAC 4 550 2
- 4 d AAAV8LAAEAAAAImAAD 4 550 3
環境2:
-
SCOTT@proc> drop table tt purge;
-
-
Table dropped.
-
-
SCOTT@proc> create table tt (id int,name varchar2(2000)) tablespace users;
-
-
Table created.
-
-
SCOTT@proc> insert into tt values(1,rpad('a',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> insert into tt values(2,rpad('b',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> insert into tt values(3,rpad('c',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> commit;
-
-
Commit complete.
-
-
SCOTT@proc> select id,substr(name,1,1),rowid,dbms_rowid.rowid_relative_fno(rowid) file#,dbms_rowid.rowid_block_number(rowid) block#,dbms_rowid.rowid_row_number(rowid) row# from tt;
-
-
ID SU ROWID FILE# BLOCK# ROW#
-
---------- -- ------------------ ---------- ---------- ----------
-
1 a AAAV8VAAEAAAAIkAAA 4 548 0
-
2 b AAAV8VAAEAAAAIkAAB 4 548 1
-
3 c AAAV8VAAEAAAAIkAAC 4 548 2
-
-
SCOTT@proc> delete from tt where id=2;
-
-
1 row deleted.
-
-
SCOTT@proc> insert into tt values(4,rpad('d',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> commit;
-
-
Commit complete.
-
-
SCOTT@proc> insert into tt values(5,rpad('e',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> commit;
-
-
Commit complete.
-
-
SCOTT@proc> select id,substr(name,1,1),rowid,dbms_rowid.rowid_relative_fno(rowid) file#,dbms_rowid.rowid_block_number(rowid) block#,dbms_rowid.rowid_row_number(rowid) row# from tt;
-
-
ID SU ROWID FILE# BLOCK# ROW#
-
---------- -- ------------------ ---------- ---------- ----------
-
1 a AAAV8VAAEAAAAIkAAA 4 548 0
-
3 c AAAV8VAAEAAAAIkAAC 4 548 2
-
4 d AAAV8VAAEAAAAIkAAD 4 548 3
-
5 e AAAV8VAAEAAAAIkAAE 4 548 4
-
- SCOTT@proc>
環境3:
-
SCOTT@proc> drop table tt purge;
-
-
Table dropped.
-
-
SCOTT@proc> create table tt (id int,name varchar2(2000)) tablespace users;
-
-
Table created.
-
-
SCOTT@proc> insert into tt values(1,rpad('a',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> insert into tt values(2,rpad('b',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> insert into tt values(3,rpad('c',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> commit;
-
-
Commit complete.
-
-
SCOTT@proc> select id,substr(name,1,1),rowid,dbms_rowid.rowid_relative_fno(rowid) file#,dbms_rowid.rowid_block_number(rowid) block#,dbms_rowid.rowid_row_number(rowid) row# from tt;
-
-
ID SU ROWID FILE# BLOCK# ROW#
-
---------- -- ------------------ ---------- ---------- ----------
-
1 a AAAV8MAAEAAAAImAAA 4 550 0
-
2 b AAAV8MAAEAAAAImAAB 4 550 1
-
3 c AAAV8MAAEAAAAImAAC 4 550 2
-
-
SCOTT@proc> delete from tt where id=2;
-
-
1 row deleted.
-
-
SCOTT@proc> commit;
-
-
Commit complete.
-
-
SCOTT@proc> insert into tt values(4,rpad('d',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> insert into tt values(5,rpad('e',1800,'+'));
-
-
1 row created.
-
-
SCOTT@proc> commit;
-
-
Commit complete.
-
-
SCOTT@proc> select id,substr(name,1,1),rowid,dbms_rowid.rowid_relative_fno(rowid) file#,dbms_rowid.rowid_block_number(rowid) block#,dbms_rowid.rowid_row_number(rowid) row# from tt;
-
-
ID SU ROWID FILE# BLOCK# ROW#
-
---------- -- ------------------ ---------- ---------- ----------
-
1 a AAAV8MAAEAAAAImAAA 4 550 0
-
5 e AAAV8MAAEAAAAImAAB 4 550 1
-
3 c AAAV8MAAEAAAAImAAC 4 550 2
- 4 d AAAV8MAAEAAAAImAAD 4 550 3
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30174570/viewspace-2141875/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle資料塊中資料儲存(摘錄)Oracle
- Oracle中rownum和row_number()Oracle
- 巧用row_number() over()函式,選取重複記錄中想要的值函式
- Oracle 中的 ROW_NUMBER() OVER() 分析函式的用法Oracle函式
- sql中row_number over語句SQL
- 機器學習中資料缺失的處理及建模方法機器學習
- DataTable中資料記錄的統計 (轉)
- Oracle:Rank,Dense_Rank,Row_Number比較Oracle
- ROW-NUMBER()函式函式
- Oracle中number型別詳解Oracle型別
- 將oracle中資料轉存到excel中OracleExcel
- oracle分析函式Rank, Dense_rank, row_numberOracle函式
- 丟失Oracle中資料檔案Ora時的解決辦法Oracle
- row_number() over函式函式
- oracle實驗記錄 (ROW 壓縮,遷移,連結)Oracle
- oracle 分析函式之(rank()/dense_rank()/row_number())Oracle函式
- 巧用ROW_NUMBER 實現SQL資料任意排序SQL排序
- Hive中row_number()、dense_rank()、rank()的區別Hive
- SQL Server中row_number函式的常見用法SQLServer函式
- 分析函式rank() row_number函式
- row_number() partition order by 的使用
- 記錄oracle中查詢資料0.xx結果為.xx的解決辦法Oracle
- Oracle System Change Number (SCN) Number 完全筆記Oracle筆記
- 查詢某條記錄存在哪個資料塊中
- oracle下資料的排序分組row_number() over()--分析函式,可用於去重Oracle排序函式
- oracle資料塊dump檔案中ITL詳解Oracle
- 分析函式中rank(),row_number(),dense_rank()的區別函式
- BUG 解決記錄 一
- Oracle分析函式RANK(),ROW_NUMBER(),LAG()等的使用方法(轉)Oracle函式
- 關於oracle中的row pieceOracle
- ROW_NUMBER() OVER() 分析函式的用法函式
- ROW_NUMBER() OVER函式的基本用法函式
- 分析函式學習3 ROW_NUMBER函式
- oracle壞塊問題的解決Oracle
- 【NUMBER】Oracle的NUMBER資料型別特點Oracle資料型別
- oracle清空回收站中資料Oracle
- Oracle9i中資料移置Oracle
- oracle實驗記錄(恢復-丟失未備份資料檔案)Oracle