What should I do if row number is missing in the data block in Oracle
Oracle data block missing row number how to do, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
Environment 1:
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 Magi RPad)
1 row created.
SCOTT@proc > insert into tt values (2 Magi RPad)
1 row created.
SCOTT@proc > insert into tt values (3 Personnal RPad)
1 row created.
SCOTT@proc > insert into tt values (4 Magi RPad)
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 an 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 Magi RPad)
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 an AAAV8LAAEAAAAImAAA 4 550 0
5 e AAAV8LAAEAAAAImAAB 4 550 1
3 c AAAV8LAAEAAAAImAAC 4 550 2
4 d AAAV8LAAEAAAAImAAD 4 550 3
Environment 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 Magi RPad)
1 row created.
SCOTT@proc > insert into tt values (2 Magi RPad)
1 row created.
SCOTT@proc > insert into tt values (3 Personnal RPad)
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 an 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 Magi RPad)
1 row created.
SCOTT@proc > commit
Commit complete.
SCOTT@proc > insert into tt values (5 Magi RPad)
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 an AAAV8VAAEAAAAIkAAA 4 548 0
3 c AAAV8VAAEAAAAIkAAC 4 548 2
4 d AAAV8VAAEAAAAIkAAD 4 548 3
5 e AAAV8VAAEAAAAIkAAE 4 548 4
SCOTT@proc >
Environment 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 Magi RPad)
1 row created.
SCOTT@proc > insert into tt values (2 Magi RPad)
1 row created.
SCOTT@proc > insert into tt values (3 Personnal RPad)
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 an 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 Magi RPad)
1 row created.
SCOTT@proc > insert into tt values (5 Magi RPad)
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 an AAAV8MAAEAAAAImAAA 4 550 0
5 e AAAV8MAAEAAAAImAAB 4 550 1
3 c AAAV8MAAEAAAAImAAC 4 550 2
4 d AAAV8MAAEAAAAImAAD 4 550 3
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.