Update model from Oracle database does not see columns
Posted: Fri 10 Nov 2017 07:35
We have a problem where we cannot see columns of views/tables that are granted from another user.
Tables/views are in schema main_schema. We are trying to access them from user user_schema (all views/tables are granted with select privilege).
Connected to DB, created table TBL with one column named columnA.
Created an editionable view on the table (Edition based redefinition is enabled in our schemas).
Granted the view to user_schema (the user we are connecting with).
Checked if we can reach the view with a query - all is good.
create table tbl(columnA number);
create editionable view tbl_v as select columnA from tbl;
grant select on tbl_v to user_schema;
select * from main_schema.tbl_v;
Oracle version used: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
We are using Entity Developer with Devart.dotConnect for Oracle in asp.net mvc application:
Devart version 8.5.535
We connect with Entity Developer to Oracle DB as user_schema user and try to "Update Model From Database..."
We can select view tbl_v from the list of main_schema objects
TBL_V (Added)
Then we add this view to Model.
But storage editor does not see any columns in this object
Tables/views are in schema main_schema. We are trying to access them from user user_schema (all views/tables are granted with select privilege).
Connected to DB, created table TBL with one column named columnA.
Created an editionable view on the table (Edition based redefinition is enabled in our schemas).
Granted the view to user_schema (the user we are connecting with).
Checked if we can reach the view with a query - all is good.
create table tbl(columnA number);
create editionable view tbl_v as select columnA from tbl;
grant select on tbl_v to user_schema;
select * from main_schema.tbl_v;
Oracle version used: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
We are using Entity Developer with Devart.dotConnect for Oracle in asp.net mvc application:
Devart version 8.5.535
We connect with Entity Developer to Oracle DB as user_schema user and try to "Update Model From Database..."
We can select view tbl_v from the list of main_schema objects
TBL_V (Added)
Then we add this view to Model.
But storage editor does not see any columns in this object