In database, such as Informix, DB2, Oracle etc, will the rowid be reused pls?
Asked
Active
Viewed 2,889 times
3 Answers
10
The RowID are physical location of the data stored on the disk. They are unique for a table. As such they can repeat. If the new record gets stored in the same place (deleting the older one), then rowids would be same (reused).
See this article for details on what rowid consists of in oracle http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/pseudocolumns008.htm

Dheer
- 3,926
- 6
- 34
- 45
-
1why can different records in different tables have the same rowid pls? – Xiaowei Mar 25 '09 at 05:41
-
2If you go through the article it would explain ... basically if two tables are in same cluster, then they can possibly have same rowid. – Dheer Mar 25 '09 at 06:02
5
It can be reused:
If you delete a row, then Oracle may reassign its rowid to a new row inserted later.
(See this)

Anton Gogolev
- 113,561
- 39
- 200
- 288
2
also - be aware it can change if you export and then import your database. you should never store this value as a key as it is unreliable.

Sam Holder
- 32,535
- 13
- 101
- 181

Randy
- 16,480
- 1
- 37
- 55