Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: When does ROWID change ?

Re: When does ROWID change ?

From: Steve Haynes <steve_at_rwx777.demon.co.uk>
Date: Wed, 29 Dec 1999 02:32:08 +0000
Message-ID: <zHOF9BAoKXa4Ew+U@rwx777.demon.co.uk>


In article <8392p9$mdd$1_at_nnrp1.deja.com>, jdefreitas_at_my-deja.com writes
>So, does this mean in a scenario where records are constantly being
>written to a table, and a batch process records the ROWID of the last
>row inserted in the table, I can tell which records were written before
>this time or after this time by comparing ROWIDs in a "less than"
>or "greater than" logical comparison?
>

Hi,
Personally I would never use any kind of mechanism like this. If you need this kind of info then create and maintain it yourself (or via triggers if its an app).
Even if, by a miracle, the logical range comparisons worked then, who's to say that some rows had not been deleted since your last load and oracle then reuses those blocks, this may break the assumptions on rowid 'sequencing'.
If I had this presented to me in a design I'd errr.. suggest a rethink. Steve Haynes Received on Tue Dec 28 1999 - 20:32:08 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US