Skip Headers

Oracle9i Administrator's Reference
Release 1 (9.0.1) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel and Sun SPARC Solaris

Part Number A90347-02
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

5
Configuring Oracle Net Services

This chapter decribes how to configure Oracle Net Services on AIX, HP, Linux, Solaris, and Tru64 systems. It contains the following sections:

Core Oracle Net Services Products and Features

This section describes core Oracle Net Services products and features.

Oracle Net Services and Utilities

This section describes the files and utilities that you can use to configure Oracle Net Services products.

Location of Oracle Net Services Configuration Files

Oracle Net Services searches the following locations for configuration files, in the following order:

  1. For the sqlnet.ora file, the current working directory from where an application is run.

  2. The directory specified by the TNS_ADMIN environment variable, if set.

  3. One of the following directories:

    • For HP, Linux, Solaris, and Tru64 systems, the/var/opt/oracle directory

    • For AIX, the /etc directory

  4. The $ORACLE_HOME/network/admin directory

To set the TNS_ADMIN environment variable in the startup files of all network users, add the following lines to the appropriate startup file:

For each system-level configuration file, users may have a corresponding local private configuration file (stored in the user's home directory). The settings in the local file override the settings in the system-level file. The following table lists the system-level configuration files and the corresponding local configuration files:

System-Level Configuration File  Local Configuration File 

sqlnet.ora 

$HOME/.sqlnet.ora 

tnsnames.ora 

$HOME/.tnsnames.ora 

Sample Configuration Files

The $ORACLE_HOME/network/admin/samples directory contains samples of the cman.ora, listner.ora, names.ora, sqlnet.ora, and tnsnames.ora configuration files.

Adapters Utility

Oracle Net Services provides support for various network protocol and naming methods. These protocol supports and naming methods are linked to particular executables and provide the interface between network protocols and Oracle Net Services. To display the installed Oracle Net Services protocol supports, enter:

$ adapters

To display protocol supports linked with a specific executable, enter:

$ adapters executable

For example, to display the Oracle Net Services protocol supports linked with the oracle executable, enter:

$ adapters oracle

The adapters utility displays output similar to the following:

Oracle Net Services Protocol Adapters linked with oracle are:

     BEQ Protocol Adapter
     IPC Protocol Adapter
     TCP/IP Protocol Adapter
     RAW Protocol Adapter

Oracle Net Services Naming Adapters linked with oracle are:

     Oracle TNS Naming Adapter
     Oracle Naming Adapter

Oracle Advanced Security/Networking Security products linked with oracle are:

Oracle Net Services Protocol Support

Oracle Net Services release 9.0.1 on UNIX supports the following protocols:

Before installing the TCP/IP protocol support, you must install and configure the appropriate operating system software. The BEQ, IPC, and RAW protocol supports do not have any specific operating system requirements.

See Also:

Refer to the Oracle9i Installation Guide Release 1 (9.0.1) for UNIX Systems for more information on Oracle Net Services protocol support.  

ADDRESS Specification

The IPC and TCP/IP protocol supports each have a protocol-specific ADDRESS specification that is used for Oracle Net Services configuration files and for the DISPATCHERS initialization parameter in the initsid.ora file. See the ADDRESS specification heading under each protocol section in this chapter for more information on protocol-specific ADDRESS specification.

Table 5-1 shows a summary of the ADDRESS specifications for each protocol.

Table 5-1 ADDRESS Specification Summary  
Supported Protocol  ADDRESS Specification 

IPC 

(ADDRESS =
     (PROTOCOL=IPC)
     (KEY=key)
)
 

TCP/IP 

(ADDRESS =
     (PROTOCOL=TCP) 
     (HOST=hostname) 
     (PORT=port)
)
 

Bequeath (BEQ) Protocol Support

The BEQ protocol support is both a communications mechanism and a process-spawning mechanism. To use the BEQ protocol support, the client and server must be on the same system. If a network service name is not specified, either directly by the user on the command line or Login screen or indirectly by an environment variable such as TWO_TASK, then the BEQ protocol support is used. In this case, the BEQ protocol support always uses a dedicated server and the shared server model is never used. This dedicated server is started automatically by the BEQ protocol, which waits for the server process to start and attach to an existing System Global Area (SGA). If the startup of the server process is successful, the BEQ protocol support then provides interprocess communication through UNIX pipes.

An important feature of the BEQ protocol support is that is does not require a listener for its operation. The protocol support is linked into the client tools and directly starts its own server process without outside interaction. However, you can only use the BEQ protocol support when the client program and Oracle9i are installed on the same system. The BEQ protocol support is always installed and always linked to all client tools and to the Oracle9i server.

IPC Protocol Support

The IPC protocol support is similar to the BEQ protocol support in that it can only be used when the client program and the Oracle9i server are installed on the same system. The IPC protocol support differs from the BEQ protocol support in that it can be used both with dedicated server and shared server configurations. The IPC protocol support requires a listener for its operation. The IPC protocol support is always installed and always linked to all client tools and to Oracle9i.

Specifying an IPC ADDRESS

The IPC protocol support connection parameters are part of the ADDRESS keyword-value pair. The ADDRESS is commonly part of a larger construct such as a connect descriptor or configuration file. You can enter the following parameters in any order:

(ADDRESS=
     (PROTOCOL=IPC)
     (KEY=key)
)

Table 5-2 describes the syntax for IPC protocol connections parameters.

Table 5-2 Syntax for IPC Protocol Connection Parameters  
Parameter  Description 

PROTOCOL 

The protocol support to be used. The value is IPC. It is not case sensitive. 

KEY 

The service name of the database or the system identifier (SID). 

Example 5-1 shows a sample IPC ADDRESS.

Example 5-1 IPC ADDRESS Specifying a Client

(ADDRESS=
     (PROTOCOL=IPC)
     (KEY=PROD)
)

RAW Protocol Support

When data is transferred between a client and a server, Oracle Net Services adds its own header information to every network packet. Using the Raw Transport feature, Oracle Net Services can now minimize header information on each packet going over the network.

After a connection is established, two types of information flow over the network: data and break handling. The connection packets require the Oracle Net Services header information to establish the connection correctly. However, after the connection is established, all data packets are stripped of their Oracle Net Services header information and are passed directly to the operating system, bypassing the Oracle Net Services network and protocol layers. The performance of the connection is increased because of fewer protocol stack layers for the data to flow through and fewer bytes that are transmitted over the network.

This feature is transparently enabled when it is required. If no existing features require that header information be transmitted, the headers are stripped off. For example, Raw Transport would not be enabled when you use encryption and authentication, which requires certain information to be sent with each packet of information.

This feature requires no configuration. Oracle Net Services determines whether the conditions are met and then transparently switches to Raw Transport mode.

TCP/IP Protocol Support

Oracle Corporation recommends that you reserve a port for your listener in the /etc/services file of each Oracle Net Services node on the network. The default port is 1521. The entry lists the listener name and the port number, for example:

listener    1521/tcp

In this example listener is the name of the listener, as defined in the listener.ora file. Reserve more than one port if you intend to start more than one listener.

If you use Oracle Advanced Security SSL support, you should define a port for SSL in the /etc/services file. The port is commonly 2484. For example:

listenerssl     2484/tcps

Specifying a TCP/IP ADDRESS

The TCP/IP protocol connection parameters are part of the ADDRESS keyword-value pair. The ADDRESS is commonly part of a larger construct such as a connect descriptor or configuration file. You can enter the parameters in any order:

(ADDRESS=
     (PROTOCOL=TCP)
     (HOST=hostname)
     (PORT=port)
)

Table 5-3 describes the syntax for the TCP/IP protocol connection parameters.

Table 5-3 Syntax for TCP/IP Protocol Connection Parameters  
Parameter  Description 

PROTOCOL 

The protocol support to be used. The value is TCP. It is not case sensitive. 

HOST 

The host name or the host IP address. 

PORT 

The TCP/IP port. Either a number or the name specified in the /etc/services file. Oracle Corporation recommends a value of 1521. 

Example 5-2 shows a sample TCP/IP ADDRESS.

Example 5-2 TCP/IP ADDRESS Specifying a Client

(ADDRESS=
     (PROTOCOL=TCP)
     (HOST=MADRID)
     (PORT=1521)
)

You can specify the last field by name, for example, (PORT=listener).

Oracle Enterprise Manager

Use the oratclsh executable to debug your Tcl scripts. Before executing oratclsh, set the TCL_LIBRARY environment variable to specify the $ORACLE_HOME/network/agent/tcl directory.

See Also:

See the Intelligent Agent User's Guide for more information on debugging Tcl scripts.  

Configuring Oracle Intelligent Agent for Oracle SNMP

Although Oracle Intelligent Agent does not require Simple Network Management Protocol (SNMP) to work, you can configure Oracle SNMP support before starting the Intelligent Agent. Note that all of the configuration files for the following steps are located in the $ORACLE_HOME/network/snmp/peer directory.

Configure the Master Agent

In the CONFIG.master file, make the following change:

  1. Search for the line beginning with MANAGER.

  2. Change the value specified to the IP address or hostname of the system where you want SNMP trap messages sent.

    You can also make other changes to the CONFIG.master file as documented within the file.

  3. On AIX systems only, add the following line to the /etc/snmpd.conf file where ip_address is the IP address of the Oracle subagent:

    smux 0.0 " " ip_address
    
    

Configure the Encapsulator

To configure the encapsulator, perform the following steps:

  1. Add the following line to the snmpd.conf file, where hostname_or_IP_address represents the local system IP address or host name:

    trap hostname_or_IP_address
    
    
  2. On AIX only, modify the port numbers specified for the NEW_SNMPD_PORT and NEW_TRAPD_PORT variables in the start_peer script, if necessary. The port number specified for the NEW_SNMPD_PORT variable must be different to the port number specified for the NEW_TRAPD_PORT variable.

  3. On all platforms except AIX, complete the following steps:

    1. If necessary, modify the port number specified in the CONFIG.encap file. The default port number is 1161.

    2. If you modified the port number in step a, change the value specified for the NEW_SNMPD_PORT variable in the start_peer script to this port number.

    3. If necessary, modify the value specified for the NEW_TRAPD_PORT variable. This variable specifies the PEER encapsulator port to which the snmpd agent sends traps. This port number must be different to the port number specified for the NEW_SNMPD_PORT variable

Verify the Location of the SNMP Daemon in the start_peer Script

The start_peer script contains a line similar to the following, where snmpd_executable_path is the path of the snmpd executable:

SNMPD=snmpd_executable_path

Make sure that snmpd_executable_path is the location of the snmpd executable on your system.

Start the SNMP Components

To start the SNMP components, perform the following steps:

  1. Enter the following commands to verify that the SNMP components (master_peer, encap_peer, and snmpd) are not running:

    $ ps -aef | grep peer
    $ ps -aef | grep snmp
    
    

    If any of the components are running, log in as the root user and use the kill command to terminate the processes before proceeding.

  2. On AIX only, enter the following command as the root user to start the native AIX SNMP agent:

    # startsrc -s snmpd "-f /tmp/snmpd.log"
    
    

    This command starts the SNMP daemon and logs information in the /tmp/snmpd.log file.

  3. On all platforms except AIX, complete the following steps:

    1. As the root user, run the start_peer script to start the PEER master agent, PEER encapsulator, and native UNIX SNMP agent:

      # cd $ORACLE_HOME/network/snmp/peer
      # ./start_peer -a
      
      


      Note:

      If you do not have the native UNIX SNMP agent on your system, you must not use the PEER encapsulator. To start the master agent only, enter start_peer -m


    2. Enter the following commands to verify that the SNMP components are running:

      # ps -aef | grep peer 
      # ps -aef | grep snmp 
      
      

Configure and Start the Database Subagent

For information on configuring and starting up the database subagent (the Oracle Intelligent Agent), see the Oracle Enterprise Manager Configuration Guide.

Oracle Advanced Security

When you install Oracle Advanced Security, three .bak files are created: naeet.o.bak, naect.o.bak, and naedhs.o.bak. These files are located in the $ORACLE_HOME/lib directory. They are required for relinking during deinstallation of Oracle Advanced Security. Do not delete them.


Go to previous page Go to next page
Oracle
Copyright © 2001 Oracle Corporation.

All Rights Reserved.
Go To Table Of Contents
Contents
Go To Index
Index