OracleConnection.Open is throwing ORA-12541 TNS no listener

后端 未结 2 2213
旧时难觅i
旧时难觅i 2021-02-14 09:55

So I am connecting to an external server through C#. I just installed Oracle 11g client on my machine from here: http://www.oracle.com/technetwork/database/wind

2条回答
  •  我寻月下人不归
    2021-02-14 10:29

    Thanks for all your input. I changed my connection string and it worked. Here its what looks like:

     private static string GetConnectionString()
        {
            return "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=TestHostName.us.local)(PORT=1523) ) )" +
                   "(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=CCDB)));User id=UserName; Password=Password; enlist=false; pooling=false;";
        }
    

提交回复
热议问题