Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

where to find dbservername when connecting to oracle from asp.net Expand / Collapse
Author
Message
Posted Sunday, January 20, 2013 5:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, January 21, 2013 3:57 AM
Points: 4, Visits: 8
hello i have a rather novice question but i cant figure it out myself. when i try to modify web.config file i put a connectionstring like this
<add name="ConnStr" 
connectionString="Data Source=<DB ServerName>;User ID=<SchemaName/UserName>;Password=<Password>;Persist Security Info=True;Connection Lifetime=10" providerName="System.Data.OracleClient"></add>

what is 'DB ServerName' here?

also when i try to connect via server explorer i get this message "ORA 12560 TNS: Protocol Adapter Error" but i have oracle connected via sqlplus.

what can i do with these issues?
Post #1409269
Posted Monday, January 21, 2013 12:05 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 8:15 AM
Points: 1,400, Visits: 6,787
db servername would be the tns-alias, which is described further in tnsnames.ora.
Like mydb. In tnsnames.ora Mydb= (connection info.... tcp....port....) (see the web for the actual connectionstrings)
Post #1409366
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse