13.1.3 About the Advanced Connect Data Parameters
Starting with Oracle Database 12c release 2 (12.2), data compression can be set in the sqlnet.ora
file. The parameters that set compression are SQLNET.COMPRESSION and SQLNET.COMPRESSION_LEVELS. Setting these parameters in the sqlnet.ora
file affects all the connections using the sqlnet.ora
file, except for Oracle Data Guard streaming redo and SecureFiles LOBs (Large Objects). The following example shows how to set compression:
SQLNET.COMPRESSION = on SQLNET.COMPRESSION_LEVELS =(low,high)
The CONNECT_DATA section of a connect descriptor in the tnsnames.ora
file defines the destination database service. In the following example, SERVICE_NAME defines a service called sales.us.example.com
:
sales.us.example.com= (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=sales-server)(PORT=1521)) (CONNECT_DATA= (SERVICE_NAME=sales.us.example.com)))
In addition to the service name, you can optionally configure the connect data information with the parameters described in Table 13-3.
Table 13-3 Advanced Connect Data Settings in the tnsnames.ora File
Oracle Enterprise Manager Cloud Control/Oracle Net Manager Option | tnsnames.ora File Parameter | Description |
---|---|---|
Instance Name |
The database instance to access. The instance name can be obtained from the INSTANCE_NAME parameter in the initialization parameter file. |
|
Session Data Unit Size |
The transfer rate of data packets being sent across the network. You can specify the session data unit (SDU) size to change the performance characteristics having to do with the packets sent across the network. The SDU size limit is 2 MB. |
|
Use for Heterogeneous Services |
If you want an Oracle database server to access a third-party system through
Heterogeneous Services, then set this option to |
|
The file name of the Oracle Rdb database. |
||
The type of service to use for the Oracle Rdb database. |
||
Oracle Rdb database identifier. |
In the following example, the transfer rate for data packets is set:
sales.us.example.com=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=sales-server)(PORT=1521))
(CONNECT_DATA=
(SERVICE_NAME=sales.us.example.com)
(SDU=8192)
))
Use Oracle Enterprise Manager Cloud Control or Oracle Net Manager to configure advanced CONNECT_DATA parameters for either a network service name or a database service.
Configuring Advanced Connect Descriptor Parameters Using Oracle Enterprise Manager Cloud Control
The following procedure describes how to configure advanced connect descriptor parameters using Oracle Enterprise Manager Cloud Control:
-
Access the Directory Naming or Local Naming page in Oracle Enterprise Manager Cloud Control, as follows:
-
Access the Net Services Administration page in Oracle Enterprise Manager Cloud Control.
-
Select Local Naming or Directory Naming from the Administer list, and then select the Oracle home for the directory server or the location of the local configuration files.
-
Click Go.
The Directory Naming or Local Naming pages appear.
-
-
Select the directory service or network service name.
-
For Local Naming, select a network service from the list, and then click Edit.
-
For Directory Naming, search the network service name in the Simple Search section by selecting the network service or database service from the Results list, and then clicking Edit.
-
-
Click the Advanced tab.
-
Enter fields or select options as appropriate, and then click OK.
-
Click OK to update the connect data information.
Configuring Advanced Connect Descriptor Parameters Using Oracle Net Manager
The following procedure describes how to configure advanced connect descriptor parameters using Oracle Net Manager:
-
Start Oracle Net Manager.
-
In the navigator pane, select Service Naming from Directory or Local menus.
-
Select either the network service name or a database service.
The right pane displays the current destination service and address list.
-
In the Service Identification box, click Advanced.
The Advanced Service Options dialog box appears.
-
Enter fields or select options as appropriate, and then click OK.
-
If you are making these changes to the Local folder, then select Save Network Configuration from the File menu. Changes to the Directory folder are saved automatically.