WIPIVERSE All articles

Sqlnet.ora

Sqlnet.ora is a configuration file used by Oracle Net Services, the networking component of Oracle Database. It resides on both client machines and database servers to define network parameters that govern how client applications connect to Oracle databases.

Purpose and Function

The file contains parameters that control:

  • Naming Methods: Specifies the order of naming methods (e.g., TNSNAMES, LDAP, EZCONNECT, HOSTNAME) used to resolve a connect identifier to a connect descriptor.
  • Security: Configures encryption, data integrity (checksumming), and authentication services (including Kerberos, RADIUS, SSL/TLS, and native Oracle authentication).
  • Tracing and Logging: Defines locations and levels for client-side and server-side trace and log files for diagnostic purposes.
  • Connection Timeout: Sets time limits for connection establishment (SQLNET.INBOUND_CONNECT_TIMEOUT, SQLNET.OUTBOUND_CONNECT_TIMEOUT) and idle connection termination (SQLNET.EXPIRE_TIME).
  • Access Control: Lists allowed or excluded clients/nodes (TCP.VALIDNODE_CHECKING, TCP.INVITED_NODES, TCP.EXCLUDED_NODES).

Default Location

The location of sqlnet.ora depends on the operating system and the Oracle Home structure. Common default locations include:

  • Linux/UNIX: $ORACLE_HOME/network/admin/sqlnet.ora
  • Windows: %ORACLE_HOME% etwork\admin\sqlnet.ora

If the file is not present in the default location, Oracle Net Services uses built-in default values for all parameters. The TNS_ADMIN environment variable (or registry key on Windows) can be used to specify a non-standard directory for this file and other network configuration files (such as tnsnames.ora and listener.ora).

Common Parameters

  • NAMES.DIRECTORY_PATH: Ordered list of naming methods (e.g., (TNSNAMES, EZCONNECT)).
  • SQLNET.ENCRYPTION_CLIENT / SQLNET.ENCRYPTION_SERVER: Controls encryption behavior (accepted, rejected, requested, required).
  • SQLNET.ENCRYPTION_TYPES_CLIENT / SQLNET.ENCRYPTION_TYPES_SERVER: Specifies allowed encryption algorithms (e.g., AES256, AES192).
  • SQLNET.CRYPTO_CHECKSUM_CLIENT / SQLNET.CRYPTO_CHECKSUM_SERVER: Controls data integrity checksumming.
  • SQLNET.AUTHENTICATION_SERVICES: Lists authentication adapters (e.g., (NTS, BEQ, TCPS)).
  • SQLNET.EXPIRE_TIME: Interval (in minutes) to send a probe to verify active connections.
  • WALLET_LOCATION: Specifies the file system location of an Oracle Wallet for SSL/TLS credentials.

Precedence

Parameters set in sqlnet.ora generally apply globally to all connections initiated from that Oracle Home (client-side) or accepted by that listener (server-side). However, specific connection descriptors in tnsnames.ora or connect strings can override certain sqlnet.ora settings (e.g., security parameters) on a per-connection basis.

Browse

More topics to explore

    Browse all articles