question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to connect with Oracle autonomous database?

See original GitHub issue

Hi , I’m having issue to connect with Oracle autonomous database.

I’m trying to connect to Oracle free autonomous database from EF core 2.2 and i’m getting this erro.

2020-02-29 09:05:33.304378 ThreadID:1   (ERROR)   OracleDatabaseCreator.Exists() :  OracleException.Number: 12537
2020-02-29 09:05:33.307641 ThreadID:1   (ERROR)   OracleDatabaseCreator.Exists() :  Oracle.ManagedDataAccess.Client.OracleException (0x80004005): ORA-12537: Network Session: End of file
 ---> OracleInternal.Network.NetworkException (0x000030F9): ORA-12537: Network Session: End of file
   at OracleInternal.Network.OracleCommunication.DoConnect(String tnsDescriptor)
   at OracleInternal.Network.OracleCommunication.Connect(String tnsDescriptor, Boolean doNAHandshake, String IName, ConnectionOption CO)
   at OracleInternal.ServiceObjects.OracleConnectionImpl.Connect(ConnectionString cs, Boolean bOpenEndUserSession, OracleConnection connRefForCriteria, String instanceName)

Connection String format

 "ConnectionString": "User Id=ADMIN;Password=Password;Data Source=<adb....>.oraclecloud.com;"

so basically how to connect from these connection strings

image

Thank you 😃 !

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
alexkehcommented, Mar 3, 2020

I have published the following sample code to demonstrate Oracle EF Core connectivity to Autonomous Database for anyone that stumbles across this thread and needs a sample.

https://github.com/oracle/dotnet-db-samples/tree/master/samples/dotnet-core/ef-core/autonomous-db

0reactions
alexkehcommented, Mar 7, 2022

@sumanaik123 Can you turn on ODP.NET tracing to figure out where ODP.NET is looking for its tnsnames.ora file and which one it uses? The trace file should help resolve why you see an ORA-12154. You can turn on tracing using the following settings for managed ODP.NET or ODP.NET Core.

            OracleConfiguration.TraceFileLocation = @"C:\traces";
            OracleConfiguration.TraceLevel = 7;
Read more comments on GitHub >

github_iconTop Results From Across the Web

2 Connecting to Autonomous Database - Cloud
About Connecting to an Autonomous Database Instance · Connect to Autonomous Database Using a Client Application · Download Database Connection Information.
Read more >
About Connecting to an Autonomous Database Instance
To connect to Autonomous Database, depending upon your organization's network configuration, you may need to use a proxy server to access this port...
Read more >
Using Oracle Autonomous Database Serverless
Connect to Autonomous Database Using Oracle Database Tools · Connect Oracle SQL Developer with a Wallet (mTLS) · Connect Oracle SQL Developer Without...
Read more >
4 Ways to Connect to Autonomous Database on a Private ...
Go to Oracle SQL Developer and add New Database Connection · Enter your connection details: enter the name of your connection; enter the...
Read more >
Create a Connection to Oracle Autonomous Data Warehouse
In the Oracle Autonomous Data Warehouse instance, click DB Connection. In Database Connection, under Download Client Credentials (Wallet), click Download. In ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found