Click here to Skip to main content
15,921,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi there,

I hav a MVC application integrating an Oracle DB with Entity Framework.

When I connect to the db on the server from the application on the server I get the following error.

ORA-1034 : Oracle not available.

I have implemented another application of the same type without Entity Framework and the only thing that is different between the two are there connection strings in the Web.Config.

Is there by any chance a workaround for this?

Connection String for MVC application and Entity Framework - Locally this works fine but not on the server.
connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=Oracle.DataAccess.Client;provider connection string="DATA SOURCE=test;PASSWORD=xxx;PERSIST SECURITY INFO=True;USER ID=LOCAL"" 

Connection String for MVC application without Entity Framework
connectionString="Data Source=test;Initial Catalog=Exam;Persist Security Info=True;User ID=exam;Password=xxx;Connect Timeout=300"/>

Any help would do.


Share this answer
DJAppleboy 6-Feb-13 2:41am    
Unfortunately, I do not have access to the actual db as I am only the developer. In addition, we have close to 65 applications making use of the db and the rest is working fine... that is why I am suspecting that the EF connection string is the problem.
Kishor Deshpande 6-Feb-13 6:26am    
It's ok! Happy that it is now Solved :)

Had problems with the tnsnames which the administrator had to resolve.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900