Oracle connection string without tnsnames.ora file

前端 未结 2 563
鱼传尺愫
鱼传尺愫 2020-12-14 10:13

I am using the .NET framework with the System.Data.OracleClient namespace. I have the oracle 11 client installed on my computer. I do not want to use the tnsnames.ora file

2条回答
  •  伪装坚强ぢ
    2020-12-14 10:55

    http://www.connectionstrings.com/oracle

    This is a great resource

    SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort))
    (CONNECT_DATA=(SERVICE_NAME=MyOracleSID)));uid=myUsername;pwd=myPassword;

    is what you want i believe...

提交回复
热议问题