Oracle® Database Net Services Administrator's Guide 11g Release 2 (11.2) E41945-02 |
|
|
PDF · Mobi · ePub |
This chapter describes how to configure client and server configuration parameters in profiles. A profile is a collection of parameters that specifies preferences for enabling and configuring Oracle Net features on the client or database server. A profile is stored and implemented through the sqlnet.ora
file.
This chapter contains the following topics:
You can use a profile to:
Specify the client domain to append to unqualified names
Prioritize naming methods
Enable logging and tracing features
Route connections through specific processes
Configure parameters for an external procedure
Configure Oracle Advanced Security
Use protocol-specific parameters to restrict access to the database
Oracle Universal Installer launches Oracle Net Configuration Assistant after software installation on the client and server. Oracle Net Configuration Assistant configures the order of the naming methods that the computer uses to resolve a connect identifier to a connect descriptor
Configuration with the Oracle Net Configuration Assistant during installation results in an entry in the sqlnet.ora
file similar to the following:
NAMES.DIRECTORY_PATH=(ezconnect,tnsnames)
NAMES.DIRECTORY_PATH
specifies the priority order of the naming methods to use to resolve connect identifiers. If the installed configuration is not adequate, then use Oracle Net Manager to change the sqlnet.ora
configuration.
The following sections describe available client configuration options:
In environments where the client often requests names from a specific domain, it is appropriate to set a default domain in the client sqlnet.ora
file with the NAMES.DEFAULT_DOMAIN
parameter. This parameter is available to local and external naming methods.
When a default domain is set, it is automatically appended to any unqualified net service name given in the connect string, and then compared to net service names stored in a tnsnames.ora
file.
For example, if the client tnsnames.ora
file contains a net service name of sales.us.example.com
, and the default domain is us.example.com
, then the user can enter the following connect string:
CONNECT scott@sales
Enter password: password
In the preceding example, sales
gets searched as sales.us.example.com
.
If the connect string includes the domain extension, such as in CONNECT scott@sales.us.example.com
, then the domain is not appended.
If a net service name in a tnsnames.ora
file is not domain qualified and the NAMES.DEFAULT_DOMAIN
parameter is set, then the net service name must be entered with a period (.
) at the end of the name. For example, if the domain is set to us.example.com
and the client tnsnames.ora
file contains a net service name of sales2
, then the user would enter the following connect string:
CONNECT scott@sales2.
Enter password: password
In the preceding example, the client would connect to sales2
, not sales2.us.example.com
.
The following procedure describes how to specify a default domain:
Start Oracle Net Manager.
In the navigator pane, select Profile from the Local menu.
From the list in the right pane, select Naming.
Click the Methods tab.
In the Default Domain field, enter the domain.
Select Save Network Configuration from the File menu.
The sqlnet.ora
file should contain an entry that looks similar to the following:
NAMES.DEFAULT_DOMAIN=us.example.com
After naming methods are configured, as described in Chapter 8, "Configuring Naming Methods", they must be prioritized. Naming methods to resolve a connect identifier are tried in the order they appear in the list. If the first naming method in the list cannot resolve the connect identifier, then the second method in the list is used, and so on.
The following procedure describes how to specify the order of naming methods:
Start Oracle Net Manager.
In the navigator pane, select Profile from the Local menu.
From the list in the right pane, select Naming.
Click the Methods tab.
Table 12-1 describes the naming method values listed in the Methods tab.
Table 12-1 Naming Method Values
Naming Method Value | Description |
---|---|
Resolve a net service name through the See Also: "Configuring the Local Naming Method" |
|
Resolve a database service name, net service name, or net service alias through a directory server. |
|
Enable clients to use a TCP/IP connect identifier, consisting of a host name and optional port and service name, or resolve a host name alias through an existing names resolution service or centrally maintained set of See Also: "Using the Easy Connect Naming Method" |
|
Resolve service information through an existing network information service (NIS). |
Select naming methods from the Available Methods list, and then click the right-arrow button.
The selected naming methods move to the Selected Methods list.
Order the naming methods according to the order in which you want Oracle Net to try to resolve the net service name or database service name. Select a naming method in the Selected Methods list, and then click Promote or Demote to move the selection up or down in the list.
Select Save Network Configuration from the File menu.
The sqlnet.ora
file updates with the NAMES.DIRECTORY_PATH
parameter:
NAMES.DIRECTORY_PATH=(ldap, tnsnames)
Clients and servers can be configured so connection requests are directed to a specific process. The following procedure describes how to route connection requests to a process:
Start Oracle Net Manager.
In the navigator pane, select Profile from the Local menu.
From the list in the right pane, select General.
Click the Routing tab.
Select the preferred way for routing connections.
Note:
To configure all connections to use a particular server, you select the Always Use Dedicated Server option in Oracle Net Manager. This sets theUSE_DEDICATED_SERVER
parameter in the sqlnet.ora
file to force the listener to spawn a dedicated server for all network sessions from the client. The result is a dedicated server connection, even if a shared server is configured.Choose File > Save Network Configuration.
See Also:
Table 12-3, "Advanced Settings in sqlnet.ora" for a description of the fields and optionsYou can configure the sqlnet.ora
file to allow access to some clients and deny access to others. Table 12-2 describes the available settings.
Table 12-2 Access Control Settings in sqlnet.ora
Oracle Net Manager Field/Option | sqlnet.ora File Parameter | Description |
---|---|---|
Specify whether to screen access to the database. If this field is selected, then Oracle Net Manager checks the parameters |
||
Specify which clients using the TCP/IP protocol are denied access to the database. |
||
Specify which clients using the TCP/IP protocol are allowed access to the database. |
If the TCP.INVITED_NODES parameter does not include the listener node, then the Listener Control utility cannot connect to the listener. This will prevent start, stop and administration commands from being performed on the listener.
If there are invalid host names or IP addresses listed in the TCP.INVITED_NODES parameter or the TCP.EXCLUDED_NODES parameter, then the Listener Control utility cannot contact the listener.
The following procedure describes how to configure database access control:
Start Oracle Net Manager.
In the navigator pane, select Profile from the Local menu.
From the list in the right pane, select General.
Click the Access Rights tab.
Select the Check TCP/IP client access rights option.
In the Clients allowed to access fields and Clients excluded from access, enter either a host name or an IP address for a client that you want to include or exclude, using commas to delimit entries placed on the same line.
Table 12-3 describes the advanced sqlnet.ora
file settings that you can set.
Table 12-3 Advanced Settings in sqlnet.ora
See Also:
"Limiting Resource Consumption by Unauthorized Users" for complete information about configuring the SQLNET.INBOUND_CONNECT_TIMEOUT setting
"Configuring I/O Buffer Space" for complete information about configuring the SEND_BUF_SIZE and RECV_BUF_SIZE settings
Oracle operating system-specific documentation to determine if the protocol supports urgent data requests. TCP/IP is an example of a protocol that supports this feature.
The following procedure describes how to set advanced features in the sqlnet.ora
file:
Start Oracle Net Manager.
In the navigator pane, select Profile from the Local menu.
From the list in the right pane, select General.
Click the Advanced tab.
Enter the values for the fields or options you want to set.
Select Save Network Configuration from the File menu.
The sqlnet.ora
file is used to configure required client parameters needed for Network Information Service (NIS) external naming. The following procedure describes how to configure the NIS parameter in the sqlnet.ora
file:
Start Oracle Net Manager.
In the navigator pane, select Profile from the File menu.
From the list in the right pane, select Naming.
Click the External tab.
Select Save Network Configuration from the File menu.
Oracle Advanced Security enables data encryption and integrity checking, enhanced authentication, and single sign-on. Oracle Advanced Security also provides centralized user management on LDAP-compliant directory servers and certificate-based single sign-on. This functionality relies on the Secure Sockets Layer (SSL).
The following procedure describes how to configure a client or server to use Oracle Advanced Security features:
Start Oracle Net Manager.
In the navigator pane, select Profile from the Local menu.
From the list in the right pane, select Oracle Advanced Security.
Each Oracle Advanced Security tab page enables you to configure a separate set of parameters.
Select or edit options as applicable.
Select Save Network Configuration from the File menu.
See Also:
Choose the Help button on the particular tab page
Oracle Advanced Security procedural topics in the Oracle Net Manager online help. To access these topics in the online help, select Oracle Advanced Security, and then select the How To option
Oracle Database Advanced Security Administrator's Guide for additional information about configuration