|
本帖最后由 Yong Huang 于 2017-2-27 11:47 编辑
I see "desktop heap allocation failed" in your Event Viewer. Can you confirm that the time of this error corresponds to the starting time of your connection failure and also TNS-12531? If so, the solution is in Oracle note
Windows: Connections Via the Listener Fail with TNS-12531 On Windows 64-bit Platform (Doc ID 1384337.1)
--- begin quote ---
You need to check the third value for the registry entry \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems\:
Eg:
SharedSection=1024,20480,1024
The third argument is the maximum amount of heap memory allocated to non interactive desktops. Increase this third value and check when the TNS error disappears. There is no optimum value, it depends from one system to another.
A change in registry setting will require a restart of the machine.
--- end quote ---
Note that the description of the registry key in this document is not quite right. It should be ... Session Manager\SubSystems\Windows, and the value is like
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,768 Windows=...
In this case, you can increase the 3rd value 768 by at least 256 for example.
That very likely will solve your problem. If not, also check to see if there's any program or task that runs at the time you start to have the problem. Disable antivirus if it's enabled. Disable any hot backup agent if it's scheduled. |
|