connection string with service name
Posted: Tue 17 Mar 2009 13:26
Hello,
I am deploying ASP.NET application to customer site. This application uses .connect for oracle and entity framework.
For connection to database in development environment I use Host, Username, Password and SID.
For connection to customers database I am supposed to use following:
When I modify my connection string to use these values, underlying provider fails to open. Also when I tried to connect using devart entity developer I got error message: Invalid SID. Connection string looks as following:
Database is working correctly because I was able to connect using Oracle sql developer.
Anyone has an idea how should I modify my connection string to get it work?
Thanks in advance for answer.
Peter
I am deploying ASP.NET application to customer site. This application uses .connect for oracle and entity framework.
For connection to database in development environment I use Host, Username, Password and SID.
For connection to customers database I am supposed to use following:
Code: Select all
TLIMON.CUSTOMER-DB=(DESCRIPTION=(ADDRESS_LIST=(FAILOVER=OFF)(LOAD_BALANCE=OFF)
(ADDRESS=(PROTOCOL=TCP)(HOST=some.host.customer.vwg)(PORT=1521)))
(CONNECT_DATA=(SERVICE_NAME=tlimon.cust.customer.vwg)))Code: Select all
metadata=res://*/DataModel.csdl|res://*/DataModel.ssdl|res://*/DataModel.msl;
provider=Devart.Data.Oracle;provider connection string="
User Id=SOMEUSER;Password=p@$$w0rd;Server=some.host.customer.vwg;Direct=True;
Service Name=tlimon.cust.customer.vwg;Persist Security Info=True"Anyone has an idea how should I modify my connection string to get it work?
Thanks in advance for answer.
Peter