Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

where to find dbservername when connecting to oracle from Expand / Collapse
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



Group: General Forum Members
Last Login: Friday, December 2, 2016 8:28 AM
Points: 1,546, Visits: 9,657
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