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.
Many Oracle system views cannot be used with TUniTable
Re: Many Oracle system views cannot be used with TUniTable
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.
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
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.
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
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.
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
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.
Thanks again.
Re: Many Oracle system views cannot be used with TUniTable
Hello,
We plan to release the DAC products this week.
We plan to release the DAC products this week.