Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

invalid username/password logon denied using Oracle.ManagedDataAccess in Blazor Server App

$
0
0

I have Oracle XE running in a container, in which I can connect using the command:

podman exec -it oracle-container_oracle-db_1 sqlplus sap/sap@//localhost:1521/xepdb1

or simply (without specifying the host):

podman exec -it oracle-container_oracle-db_1 sqlplus sap/sap@xepdb1

In both cases, I am logged in to SQLPLUS and can execute queries.

Now I have the following Blazor App (Server Side, .Net Core 8.0) using Oracle.ManagedDataAccess.Core nugget package:

//var _connectionString = "DATA SOURCE=127.0.0.1:1521/XEPDB1;USER ID=SAP;PASSWORD=SAP;";var _connectionString = "DATA SOURCE=localhost:1521/XEPDB1;USER ID=SAP;PASSWORD=SAP;";var con = new OracleConnection(_connectionString);con.Open();   // Oracle.ManagedDataAccess.Client.OracleException:               // 'ORA-01017: invalid username/password; logon denied              // https://docs.oracle.com/error-help/db/ora-01017/'

For some reason, the connection is refused. I can't understand what is the cause of such error. I already confirmed that the database can be connected to using VS Code extension:

Oracle Extension Works fine

Test is successful

I also tried to connect to the database using IP address 127.0.0.1 instead of localhost, but that didn't work.

am I using the wrong Oracle data access provider?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>