logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: How to get latest inserted record in a table: msg#00015

db.oracle.devel

Subject: Re: How to get latest inserted record in a table

> Hi Thomas,
> Searching AskTom's archives, I find that rowids are unique to table, and I
> have seen the row number increment in lock-step with the time of insert;
> i.e. insert a record, commit, rowid row number (RRR) = AAb; insert next
> record, commit, rowid row number = AAc etc. (Ref Oracle8i Concepts Part
> Number A76965-01 Chapter 12 - Extended Rowids)
> Earl

Earl -

You are correct about what the rowid represents, but you certainly cannot
determine with certainty when that row was filled. The rowid represents the
LOCATION of the data on a disk. It's true that you can make some guesses
about when the data was written, but only if the data is written as a group
to disk. In that case, the records will follow each other consecutively in
time and on disk, and you can make some decisions.

However, if Oracle sees that there are holes in a particular data block that
can be filled, then it will do so under the correct circumstances. (To
learn about these circumstances, read chapter six of Tom Kyte's book.)
I know that he's written a great deal on his site, in his book, and in the
various Oracle-related newsgroups about this. He's developed some
extremely convincing test cases that illustrate what Oracle is doing behind
the scenes. Read up!

In short, you CAN make some guesses about when a record was inserted,
but they are guesses only. The only way to determine a record's insert
time with absolute confidence is to attach this data to a particular record.

Bye,
Tom
---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to leave-oracle-1796914O@xxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo