Re: ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table

From: Neil Overend <neiloverend_at_gmail.com>
Date: Fri, 11 Apr 2008 08:02:50 +0100
Message-ID: <5acbeade0804110002o3b3a2a47g2dd62a8da9b37315@mail.gmail.com>


dba_tables is a SYS owned view, in my 10.2 instance it is

select .....
from sys.obj$ o, sys.view$ v, sys.user$ u, sys.typed_view$ t
where .....

rowid is the location of a single row in a table, in this case there is no single rowid that could be returned from dba_tables. It doesn't make sense to select rowid from a non key-preserved view.

And what do you need rowid for anyway, obviously you're not going to update dba_tables.
If you can give the reason why you think you need it then perhaps someone can suggest a work around.

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Apr 11 2008 - 02:02:50 CDT

Original text of this message