title: ODP.NET + Unexpected traffic on port 6200 (Oracle Notification Services)
body: <p>We've got a client using our product, which includes a windows service built using .NET 4+, Entity Framework, and ODP.NET.  For some reason in one particular installation, but not any other, the windows service appears to be generating traffic on 6200.  <a href="https://docs.oracle.com/cd/E11882_01/install.112/e41962/ports.htm#r20c1-t2" rel="noreferrer">Oracle Documentation</a> indicates this is the port Oracle Notification Services uses.  This is unexpected because our product does not utilize ONS.  I've found <a href="https://docs.oracle.com/database/121/JJUCP/rac.htm#JJUCP8206" rel="noreferrer">other Oracle Documentation</a> that indicates that RAC / Fast Failover also uses ONS, but we've confirmed with the client that they do not use RAC in any environments, and we are not using the RAC options in the connection string.  We are also not (to our knowledge) using <a href="http://www.oracle.com/technetwork/issue-archive/win06odp-099708.html" rel="noreferrer">Database Change Notifications</a> or doing any cache/verification of cached data, which it sounds like also leverages ONS.</p>
  
  <p>Can anyone help explain why we would be generating port 6200 traffic, and more importantly, how to get it to stop?  Thanks!</p>
  
  <p><a href="https://i.stack.imgur.com/bPs69.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bPs69.png" alt="Netstat Results"></a></p>
  
  <p><a href="https://i.stack.imgur.com/TbkiY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TbkiY.png" alt="Task Manager"></a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
    &lt;/configSections&gt;
    &lt;connectionStrings [Redacted] /&gt;
    &lt;appSettings [Redacted] /&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
    &lt;/startup&gt;
    &lt;entityFramework&gt;
      &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"&gt;
        &lt;parameters&gt;
          &lt;parameter value="v11.0" /&gt;
        &lt;/parameters&gt;
      &lt;/defaultConnectionFactory&gt;
      &lt;providers&gt;
        &lt;provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /&gt;
        &lt;provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /&gt;
      &lt;/providers&gt;
      &lt;contexts&gt;
        &lt;context type="[Redacted]" disableDatabaseInitialization="true" /&gt;
      &lt;/contexts&gt;
    &lt;/entityFramework&gt;
    &lt;system.data&gt;
      &lt;DbProviderFactories&gt;
        &lt;remove invariant="Oracle.ManagedDataAccess.Client" /&gt;
        &lt;add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /&gt;
      &lt;/DbProviderFactories&gt;
    &lt;/system.data&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" /&gt;
    &lt;/runtime&gt;
  &lt;/configuration&gt;
  </code></pre>