Page 1 of 1
Many Oracle system views cannot be used with TUniTable
Posted: Thu 05 Dec 2013 03:37
by cbc700
Hello. I find that a TUniTable cannot access the Oracle view "ALL_ALL_TABLES", and many other similar views. The following exception is thrown: "ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY, etc."
I think this is related to how the TUniTable accesses it -- if you double click the table, in the SQL tab, we find:
SELECT T.RowId, T.*
FROM ALL_ALL_TABLES T
I don't think these special views have the special column ROWID.
I know I could query these, but I really could use table access to it.
Is there a way around this? If not, can this be addressed in a future release?
Thanks.
Re: Many Oracle system views cannot be used with TUniTable
Posted: Fri 06 Dec 2013 10:34
by AlexP
Hello,
The ROWID column is added only in case if you have not explicitly specified KeyFields and we cannot define them automatically. This is needed to correctly build queries for editing, deleting, etc.
To solve the problem, you can either specify KeyFields by yourself or set the ReadOnly property of the table to True, if editing is not planned.
Re: Many Oracle system views cannot be used with TUniTable
Posted: Fri 06 Dec 2013 14:23
by cbc700
Thanks. I can certainly treat these views as ReadOnly. FYI -- even with the table set to ReadOnly, the same exception is thrown for the "ALL_ALL_TABLES" view.
However, for the views, I can actually use a query, so I'm good. Thank you.
Re: Many Oracle system views cannot be used with TUniTable
Posted: Mon 09 Dec 2013 09:44
by AlexP
Hello,
Thank you for the information, we have fixed the TOraTable behaviour - from now, no RowID field will be added to a ReadOnly DataSet. Yes, you can use TOraQuery for writing your own queries for both tables and views.
Re: Many Oracle system views cannot be used with TUniTable
Posted: Mon 16 Dec 2013 04:07
by cbc700
Thank you. The table behavior change is even better. Of course, this will appear in the next build of UniDAC I take it? Do we have a rough estimate for it?
Thanks again.
Re: Many Oracle system views cannot be used with TUniTable
Posted: Mon 16 Dec 2013 08:50
by AlexP
Hello,
We plan to release the DAC products this week.