ODP.NET Oracle.ManagedDataAcess random ORA-12570 errors

后端 未结 5 1568
有刺的猬
有刺的猬 2020-12-24 13:53

I\'m trying to migrate to Oracle.ManagedDataAcess from unmanaged version and receiving randoms ORA-12570 TNS:packet reader failure.

I don\'t know why this error sta

5条回答
  •  情书的邮戳
    2020-12-24 14:29

    After disabling pooling (Pooling=False), as @bdn02 suggested, I could confirm that it worked. However I think it should affect the performance and I was concerned about publishing this code into production without any pooling (I thought the standard values were ok).

    So I tried many configurations and looks like somehow (it is not very clear) the pool management of oracle was raising an ORA-12570 error and, after a period of time, the sessions are closed and the application worked again.

    To find the best configuration with pooling enabled I created a test application to start 50 threads (each one doing 1 test each 50ms), and decreased the default pool values until the error stoped. This way I was able to get an optimal configuration, stable, without any errors.

    Obviously it does not applies to every server, but this is my final connection string configuration:

    Pooling=true;Min Pool Size=1;Connection Lifetime=180;Max Pool Size=50;Incr Pool Size=5
    

提交回复
热议问题