The packages and versions are mixed up and by now, discontinued. The reason the query doesn't work is you're trying to use an EF Core 3 provider in EF Core 2.
The solution is to remove Oracle's providers completely and add the Pomelo.EntityFrameworkCore.MySql version that matches the EF Core version you use. Keep in mind that EF Core versions follow the .NET Core support plan. Right now, the oldest supported .NET Core version is .NET 6, so the oldest supported EF Core version is EF Core 6.
Details
Oracle's MySql.Data.EntityFrameworkCore was discontinued 3 years ago because it had too many problems and was badly maintained. It was replaced by MySql.EntityFrameworkCore
but even that has so many issues that people just don't use Oracle's providers.
Second, that package's Dependencies page shows it required at least Microsoft.EntityFrameworkCore.Relational
v3.1.1. That's part of EF Core 3.1, which is so old it got discontinued as well. Microsoft.EntityFrameworkCore.Relational v2.2.6 was part of EF Core 2.2, discontinued in December 23, 2019
Finally, Oracle's providers have enough problems that people overwhelmingly prefer using the truly open source Pomelo.EntityFrameworkCore.MySql and its MySqlConnector ADO.NET provider.
The numbers aren't even close: 42M downloads for Pomelo, 8M for Oracle's providers combined. If you compare just with the "new" package (released 2020), its' 42M vs 3M.