Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle Entity Framework Core and .NET Core 2.1

de6794c9-76d4-4d60-b23d-9cdaa3712166Sep 25 2019 — edited Sep 25 2019

Hello

We recently wanted to start using .NET Core and Entity Framework Core. We have a lot of Oracle Databases so naturally we want to use Oracle Entity Framework Core.

We also want our applications to have as long support as possible, so we were looking to use .NET Core 2.1, which has LTS (according to https://dotnet.microsoft.com/platform/support/policy/dotnet-core ).

After trying multiple times it seems Oracle Entity Framework Core is not compatible with .NET Core 2.1, I couldn't find any official documentation about this, but I concluded it from my tests.

Is there any possibility to add support for .NET Core 2.1? Or are you immediately going for .NET Core 3.1 (which will have LTS).

Thank you

Comments

Frank Kulash
Answer

Hi, @francy77
In schema1 i granted
grant insert,update, delete on t_table_var to ico
Grant the SELECT privilege, as well as INSERT, UPDATE and DELETE.
It sounds like ico has the SELECT privilege only via a role. Roles don't count in AUTHID OWNER stored procedures; all the necessary privileges must be granted directly to the user, or to PUBLIC.
Also, does ico have the CREATE PROCEDURE system privilege?
EDIT: After reading @paulzip 's reply (below) I added AUTHID OWNER above.

Marked as Answer by francy77 · Feb 2 2021
Paulzip

You need the select privilege too,
Also, another thing to bear in mind, is the procedure defined with definer rights (permissions are based on who owns the procedure) or invoker rights (permissions are based on who is calling the procedure)?
The default is definer rights.
Example of invoker rights....

create or replace procedure update_par(pcod in varchar2) authid current_user is 
francy77

I don t know why but granting select was enought, as your suggestion there was a missing SELECT in the grant instruction, so I added it and it works;
The strange thing is that indeed without the select even the delete dos't worked;

1 - 3

Post Details

Added on Sep 25 2019
0 comments
586 views