Skip to content

Change db to oracle db it not not work #460

Open
@Hunglmc

Description

@Hunglmc

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

Activity

MomboMan

MomboMan commented on Dec 8, 2023

@MomboMan

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

Hunglmc

Hunglmc commented on Dec 10, 2023

@Hunglmc
Author

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Hunglmc@MomboMan

        Issue actions

          Change db to oracle db it not not work · Issue #460 · fullstackhero/blazor-starter-kit