SergeChel Log

  • Home
  • Resume
  • Projects
  • Articles
  • Coding
  • C Sharp
  • Gallery
  • Movies
  • TV Series
  • Music
  • Games
  • About
  • RSS feed
Home

Oracle: connection string without tnsnames.ora file

Fri, 2011-09-30 19:05 | SergeChel

Sometimes you have to code an Oracle connection and you don't have a way to modify tnsnames.ora. This is the way to solve this problem. Use this form of oracle connection string:

Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MyOracleSID)));User Id=myUsername;Password=myPassword;

Login to post comments  |  Русский  |  Tags: articles, coding, oracle

Languages

  • English
  • Русский

Search

www.sergechel.info