Network Topology   «Prev  Next»

Lesson 5TCP Settings and Access Control
ObjectiveExplain how Oracle 26ai configures TCP behavior and client-node access controls in sqlnet.ora.

Oracle 26ai TCP Settings and Access Control in sqlnet.ora

In Oracle AI Database 26ai, the documented location for settings such as TCP.NODELAY and TCP client-node access controls is sqlnet.ora. These settings were associated with protocol.ora in older Oracle networking material. The modern approach uses the Oracle Net profile, rather than creating a new protocol.ora file or installing a replacement networking technology.

This lesson separates two responsibilities that are easy to confuse: deciding which client nodes may connect, and controlling particular TCP connection behaviors. An allowlist is an access policy. A timeout is a limit on waiting. A buffering option affects transport behavior. None of these settings, by itself, authenticates a database user, grants table privileges, or guarantees faster queries.

The starting point for any change is the process that reads the setting. A client-side TCP connection timeout belongs to the initiating client's environment. Incoming client-node checking must be configured in the profile used by the listener. A file named sqlnet.ora in the wrong Oracle home can be valid yet irrelevant to the connection being investigated.

From Legacy protocol.ora to Current Configuration

Older lessons sometimes combine protocol.ora migration guidance with recipes for SPX, LU6.2, X.25, or other historical network environments. Those examples are not a current Oracle 26ai configuration plan. Use the current Net Services Reference to establish whether a parameter is supported, where it belongs, and which component uses it.

Finding a legacy file does not justify copying every line into a modern profile. Some settings may be obsolete, platform-specific, or tied to software that is no longer part of the connection path. Preserve the original for review, identify the requirement behind each setting, and translate only settings supported by the target release. Do not rely on historical automatic-conversion behavior as a promise about a current administration tool.

The main configuration roles remain distinct: sqlnet.ora supplies Oracle Net profile settings; listener.ora supplies listener-specific configuration; and tnsnames.ora supplies local naming aliases. They cooperate, but copying a parameter into a similarly named file does not make it effective.

The Three TCP Client-Node Access Parameters

Oracle Net valid-node checking evaluates the source node of an incoming connection. The following parameters work together:

The invited and excluded lists are effective only when valid-node checking is enabled. Read them as a coordinated policy rather than three independent tuning suggestions. A clear allowlist is often easier to review than overlapping allow and deny entries, especially when several administrators maintain the same configuration.

These controls identify network sources, not database usernames. An allowed application server can still contain several applications or connection pools using different database accounts. The database must authenticate those accounts and enforce their privileges after the network connection is established.

An Illustrative Allowlist

The following fragment demonstrates the syntax. The addresses are reserved documentation addresses, not values to copy into a live configuration:

# Illustration only: replace with the reviewed environment-specific list.
TCP.VALIDNODE_CHECKING = YES
TCP.INVITED_NODES = (192.0.2.10, 192.0.2.20)

In this example, the two listed addresses represent approved connection sources. A real list must also account for required local and infrastructure connections. It is incomplete until the administrator has identified those dependencies. Enabling a restrictive list before that inventory can prevent legitimate applications or management operations from connecting.

For a different policy, a denylist fragment might contain:

# Separate illustration, not an addition to the allowlist above.
TCP.VALIDNODE_CHECKING = YES
TCP.EXCLUDED_NODES = (192.0.2.30)

The two examples illustrate different policy approaches. Do not combine them mechanically. In particular, do not assume that an excluded entry overrides an invited entry: Oracle documents invited-list precedence. Review overlaps explicitly and test the effective policy rather than importing firewall-rule assumptions from another product.

The supported list syntax includes hostnames and IP addresses, IPv4 wildcard forms, and CIDR notation for IPv4 and IPv6. Choose representations that the operations team can maintain accurately. A broad network range can admit more systems than intended; a short list of individual addresses can become stale when application infrastructure changes.

Put the Policy in the Listener's Environment

For these incoming access controls, the important profile is the listener's sqlnet.ora. Determine which installation owns the listener and which configuration directory it uses. Do not assume the database server's default Oracle home is also the listener's home.

This distinction is particularly important in Oracle RAC, where listeners commonly run from the Grid Infrastructure home. Oracle's reference states that placing these controls only in the database home does not apply them to that listener. It also specifies required infrastructure addresses, including SCAN, VIP, and local addresses, when preparing the invited list for that environment.

VLAN and multihomed configurations need an equally careful address inventory. Identify the addresses involved in the actual connection path and follow the documented requirements for the deployment. A list built from the administrator's workstation alone is not sufficient evidence that all cluster or application connections will continue to work.

Environment variables such as TNS_ADMIN and the Oracle-home layout can affect profile selection. Read-only Oracle homes and service processes may use locations different from an interactive terminal. Record the effective configuration path as part of the change, so a later administrator knows which file was inspected and tested.

Client Access Is Not Service Registration

Two similarly named controls protect different interactions. TCP.VALIDNODE_CHECKING concerns incoming client-node access. VALID_NODE_CHECKING_REGISTRATION_listener_name, a listener.ora parameter, concerns which nodes may register services with a listener.

Registration lets database processes advertise services and handlers to the listener. A normal application connection requests one of those services. Allowing an application host to connect is therefore different from allowing a database host to register services. Do not substitute one parameter for the other merely because both names contain “valid node checking.”

Managed listeners can also have configuration maintained by Grid Infrastructure agents. Follow the applicable management procedure instead of editing generated registration settings and assuming the edits will persist. This lesson focuses on client-node controls; registration policy should be reviewed separately with the listener architecture in view.

Multitenant and Shared-Listener Boundaries

A node-access list should not be presented as a separate security policy for each PDB. The listener may serve several services and databases. A restriction applied at that listener's connection boundary can affect more than the one application that motivated the change.

If different databases require different network-source policies, review the listener arrangement and the documented options for separating those policies. Oracle's reference describes separate listeners for certain different-list requirements. Do not promise that adding a PDB name to a TCP node list will provide per-PDB isolation; those lists contain network nodes, not database-service authorization rules.

Account privileges, service design, network segmentation, and listener configuration solve different parts of isolation. Document which boundary each control enforces. This makes it easier to recognize when the requested separation requires an architectural change rather than one more line in a shared profile.

Other TCP Parameters and Their Purposes

ParameterPurposeWhat it does not establish
TCP.CONNECT_TIMEOUTLimits how long a client waits to establish a TCP connection.It is not a maximum SQL execution time.
TCP.QUEUESIZEControls the pending connection queue length for TCP listening sockets.It does not increase the database's processing capacity.
TCP.NODELAYControls Nagle-related TCP buffering behavior.It does not eliminate all buffering or guarantee lower latency.
TCP.ALLOWED_PROXIESIdentifies Oracle Connection Manager addresses allowed to forward client IP information.It is not the ordinary client allowlist.

TCP.CONNECT_TIMEOUT accepts time units such as milliseconds, seconds, and minutes; Oracle documents a default of 60 seconds. The timeout applies to TCP connection attempts, including the documented treatment of addresses obtained through host resolution. A perceived total delay can involve more than one address or connection attempt, so compare measurements with the complete connect configuration.

TCP.QUEUESIZE concerns pending connections at a listening socket. Its default and effective limits are system-dependent. Increasing a queue can change how bursts are handled, but it cannot repair slow authentication, exhausted server resources, or an overloaded application. Tune it only after identifying connection pressure and the relevant operating-system limits.

TCP.NODELAY=YES disables Nagle's algorithm for the applicable connections and is the documented default. This removes that particular small-write coalescing behavior; it does not remove application buffering, network congestion, or server execution time. The next lesson examines TCP.NODELAY in more detail.

TCP.ALLOWED_PROXIES belongs to a Connection Manager scenario. Forwarded client-address information introduces a trust decision about the forwarding component. Do not add arbitrary intermediary addresses to this parameter as a workaround for unexplained connection failures. Establish the actual proxy design and its documented configuration first.

Plan the Change Before Applying It

A useful change plan starts with a concrete requirement, such as permitting two application servers while preventing other client nodes from opening connections through a selected listener. Identify the affected applications, scheduled jobs, administration tools, and infrastructure before choosing the node list.

  1. Inventory the connection path. Record the listener, its owning installation, configuration directory, and expected client sources.
  2. Retain the current configuration. Save a rollback copy and identify unrelated profile settings that must remain intact.
  3. Review the proposed policy. Check address ownership, overlapping rules, required infrastructure nodes, and the scope of any wildcard or subnet.
  4. Determine activation requirements. Consult the relevant parameter and listener-management documentation for the installed environment.
  5. Define positive and negative tests. Specify which approved source should connect and which deliberately unapproved test source should be rejected.
  6. Record the result. Save the exact configuration, test origin, timestamps, observed outcomes, and rollback instructions.

Do not assume that lsnrctl reload universally activates every sqlnet.ora change. Reloading listener configuration and applying a profile parameter are not interchangeable claims. If the applicable procedure requires a listener restart, plan it using the management tools and availability procedures for that environment. Do not treat a restart as a harmless diagnostic shortcut.

Verify Access with More Than One Test

A successful connection from an approved host tests the positive path. It does not prove the restriction is effective. A controlled attempt from an unapproved source tests the negative path. Both tests should target the same intended listener and service, using authorized test accounts and a documented expected outcome.

Distinguish a network-policy rejection from a bad password or missing privilege. An authentication failure may show that the connection reached the database, whereas an earlier rejection concerns another stage. Do not use a single error number, including ORA-12537, as conclusive proof of which setting caused a failure. Correlate the client error with listener diagnostics and the effective configuration.

Use fresh connection attempts when testing admission behavior. A connection pool can reuse an existing session and make an application appear unaffected by a policy change. That observation is different from proving that a new connection from the same source is permitted. Existing sessions and new-session establishment should be evaluated separately.

Also confirm that the test took the intended route. Multiple listeners, alternate connection descriptors, and intermediary systems can make two apparently identical requests exercise different boundaries. Record the source address visible at the relevant point rather than relying only on a workstation's name.

Common Problems and Better Explanations

The setting appears to do nothing. First verify the listener's configuration environment and whether the required activation procedure was completed. A correct entry in an unused database-home profile is a plausible explanation. Changing more parameters before identifying the active file makes diagnosis harder.

An approved application stops connecting. Compare the observed source address with the reviewed list. Infrastructure changes, multiple network interfaces, and intermediary routing can alter the relevant source. Restore service using the approved rollback procedure while investigating; do not broaden an allowlist indefinitely until the symptom disappears.

A rejected user is assumed to be blocked by the node policy. Check whether the failure is actually authentication or authorization. Node access and database identity are separate. A host can be permitted while a particular account is locked or lacks the requested object privilege.

Connections are slow after a security change. Measure where the delay occurs. Naming, TCP establishment, authentication, pool behavior, and SQL execution are different stages. Increasing a timeout merely increases permitted waiting; it does not establish why an operation became slow.

Keep the Security Layers Separate

TCP node restrictions complement other controls. Firewalls and network segmentation govern reachable paths. Database authentication establishes identity. Privileges govern operations. TLS or native network encryption protects traffic according to its configuration. An invited node is not automatically a trusted database user, and an allowed TCP connection is not automatically encrypted.

The same separation helps maintain the lesson's historical context. Moving supported parameters from old protocol.ora guidance into sqlnet.ora does not replace the network, redesign account privileges, or secure every connection. It puts each supported setting into the configuration used by the component responsible for that behavior.

Worked Review: An Application Server Allowlist

Suppose a reporting service should accept new connections from two application servers. Begin by identifying the listener serving that service and every other service sharing it. If another application also depends on the listener, excluding its host would be an unintended consequence, even though the reporting requirement itself mentions only two servers.

Next, compare the intended application hosts with the source addresses observed along the actual network path. Identify local administration and infrastructure dependencies before completing the list. The reviewed policy should describe why each permitted source is present, rather than simply accumulating addresses copied from old configuration files.

After following the appropriate activation procedure in an authorized test environment, make a new connection from each permitted application source. Then attempt a connection from the designated unapproved test source. Record whether each attempt reached authentication, established a session, and accessed the permitted test object. These observations distinguish network admission from database authorization.

If the negative test unexpectedly succeeds, verify the route, listener, active profile, and use of a fresh session before changing the policy. If a legitimate dependency fails, use the planned rollback and investigate the missing requirement. The final evidence should demonstrate the intended boundary and preserve service for all approved dependencies, not merely show that a parameter was added to a file.

Lesson Summary

Oracle 26ai documents TCP behavior and client-node access settings in sqlnet.ora. Configure incoming node checks in the listener's environment, understand invited-list precedence, and account for shared-listener and cluster requirements. Keep client admission separate from service registration, authentication, encryption, and performance tuning.

Review configuration scope, activation requirements, and both allowed and denied connection tests before declaring a policy effective. Continue with TCP.NODELAY and Nagle's algorithm for the next focused TCP topic.

Oracle 26ai References


SEMrush Software 5 SEMrush Banner 5