Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change db to oracle db it not not work #460

Open
Hunglmc opened this issue Dec 8, 2023 · 2 comments
Open

Change db to oracle db it not not work #460

Hunglmc opened this issue Dec 8, 2023 · 2 comments

Comments

@Hunglmc
Copy link

Hunglmc commented Dec 8, 2023

when i change db to oracle with code internal static IServiceCollection AddDatabase(
this IServiceCollection services,
IConfiguration configuration)
=> services
.AddDbContext(options => options
.UseOracle(configuration.GetConnectionString("OracleConnection")))
.AddTransient<IDatabaseSeeder, DatabaseSeeder>();
and change connect string to oracle the system Oracle.ManagedDataAccess.Client.OracleException: 'ORA-01435: user does not exist when i run migrate()

I tried using toad and connecting with normal connection information and didn't encounter any problems. Please let me know what problem I have or how to change to oracle db

@MomboMan
Copy link

MomboMan commented Dec 8, 2023

What user name is in your connection string? It should be the same as the one you are using when connecting with Toad.

@Hunglmc
Copy link
Author

Hunglmc commented Dec 10, 2023

What user name is in your connection string? It should be the same as the one you are using when connecting with Toad.
Yes, they are all the same and similar to toad. Perhaps it's because we need to add a user with a schema identity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants