Skip Headers

Oracle Net Services README
Release 1 (10.1)

Oracle Net Services README Release 1 (10.1)
Copyright © 2003 Oracle Corporation. All rights reserved.

The Programs (which include both the software and documentation) contain proprietary information of Oracle Corporation; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent and other intellectual and industrial property laws. Reverse engineering, disassembly or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited.

The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. Oracle Corporation does not warrant that this document is error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Oracle Corporation.

If the Programs are delivered to the U.S. Government or anyone licensing or using the programs on behalf of the U.S. Government, the following notice is applicable:


RESTRICTED RIGHTS NOTICE

Programs delivered subject to the DOD FAR Supplement are "commercial computer software" and use, duplication, and disclosure of the Programs, including documentation, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement. Otherwise, Programs delivered subject to the Federal Acquisition Regulations are "restricted computer software" and use, duplication, and disclosure of the Programs shall be subject to the restrictions in FAR 52.227-19, Commercial Computer Software - Restricted Rights (June, 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065.

The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and Oracle Corporation disclaims liability for any damages caused by such use of the Programs.


TRADEMARKS

Oracle is a registered trademark, and Oracle9i and Oracle8i are trademarks or registered trademarks of Oracle Corporation. Other names may be trademarks of their respective owners.

Documentation Accessibility:

Our goal is to make Oracle products, services, and supporting documentation accessible, with good usability, to the disabled community. To that end, our documentation includes features that make information available to users of assistive technology. This documentation is available in HTML format, and contains markup to facilitate access by the disabled community. Standards will continue to evolve over time, and Oracle Corporation is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to all of our customers. For additional information, visit the Oracle Accessibility Program Web site at

http://www.oracle.com/accessibility/

Accessibility of Code Examples in Documentation:

JAWS, a Windows screen reader, may not always correctly read the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empty line; however, JAWS may not always read a line of text that consists solely of a bracket or brace.

Accessibility of Links to External Web Sites in Documentation:

his documentation may contain links to Web sites of other companies or organizations that Oracle Corporation does not own or control. Oracle Corporation neither evaluates nor makes any representations regarding the accessibility of these Web sites.

-----------------------------------------------

CONTENTS

1 INTRODUCTION
2 INSTALLATION
3 ORACLE NAMES
4 DIRECTORY NAMING
5 CONFIGURATION TOOLS
6 ORACLE CONNECTION MANAGER
7 LISTENER AUTHENTICATION
8 LISTENER CONTROL STATUS AND SERVICES
9 TRCROUTE UTILITY
10 NEW FEATURES AND OBSOLESCENCE

1 INTRODUCTION

This README is relevant only to Oracle Net Services release 1 (10.1). It identifies differences between Oracle Net Services and its documented functionality. It also identifies problems with the product and provides workarounds for these problems.

For information about upgrades, downgrades, and migration, see Oracle Database Upgrade Guide.

Oracle Net Services encompasses the Oracle family of networking products. It provides a comprehensive data access solution for heterogeneous distributed computing environments. It enables client-to-server and server-to-server communication across any network. Oracle Net Services offers the following benefits:

2 INSTALLATION

A release 1 (10.1) listener is required for an Oracle10g release 1 (10.1) database. This release does not support previous versions of the listener. To learn more about installation, see documentation specific to different operating systems.

3 ORACLE NAMES

This section discusses issues associated with Oracle Names usage. The following topics are covered:

3.1 Oracle Names Support for Prior Release Clients

Oracle Names and Oracle Names LDAP Proxy are no longer supported as a naming method in 10g Release 1 (10.1). For centralized storage of connect identifiers, you must migrate to directory naming. Neither Oracle10g clients nor Oracle10g databases can use an Oracle Names server or an Oracle Names LDAP Proxy server to resolve a connect identifier. Oracle9i and Oracle8i clients can still use the 9.2 version of Oracle Names or Oracle Names LDAP Proxy to resolve net service names that point to an Oracle10g database. Customers are, however, strongly urged to migrate Oracle8i and later release clients to directory naming.

Oracle9i or Oracle8i customers who want to use Oracle Names to resolve net service names for Oracle10g databases should upgrade Oracle Names or Oracle Names LDAP Proxy servers to version 9.2. See Oracle9i Net Services Administrator's Guide Release 2 (9.2) for upgrade procedures.

3.2 Global Database Links and Oracle Names

Oracle10g no longer uses Oracle Names for accessing global database links. Global database links are now resolved through directory naming using Oracle Internet Directory.

Before migrating a database to 10g, you must migrate global database links stored in an Oracle9i Release 2 (9.2) Oracle Names server to Oracle Internet Directory. Once global database links are migrated to directory naming, then Oracle10g can resolve the global database links through directory naming upon migrating your database to Oracle10g.

Directions for migrating global database links are part of Oracle Names to directory migration documented in Oracle9i Net Services Administrator's Guide Release 2 (9.2).

3.3 Oracle9i Release 2 Oracle Names LDAP Proxy and Oracle Internet Directory release 9.0.4.

Oracle9i Release 2 (9.2) Oracle Names LDAP Proxy server has been tested and certified for use with the Oracle Internet Directory release 9.0.4.

4 DIRECTORY NAMING

This section discusses issues associated with using directory naming to resolve a connect identifier when connecting to a database. It contains the following topics:

4.1 Tool Support for Directory Usage Configuration

In release 1 (10.1), clients may locate an Oracle Internet Directory dynamically with DNS or statically with the ldap.ora file. Oracle recommends using Oracle Internet Directory Configuration Assistant (OIDCA) for all directory usage configuration. OIDCA provides a command-line interface to create, upgrade, and delete an Oracle Context, configure the file ldap.ora, and convert an Oracle Context to an Identity Management Realm. OIDCA creates file ldap.ora in either the location of the directory specified by the $LDAP_ADMIN environment variable or the $ORACLE_HOME/ldap/admin directory.

If you prefer a graphical user interface, you can use Oracle Net Configuration Assistant to create file ldap.ora in either the location of the directory specified by the $TNS_ADMIN environment variable or the $ORACLE_HOME/network/admin directory. You cannot use the Oracle Net Configuration Assistant to create, upgrade, or delete an Oracle Context. You must use OIDCA to perform these functions.

For a previous release of Oracle Internet Directory, use the Oracle Net Configuration Assistant provided with that release of the directory.

See Also:

4.2 Oracle Internet Directory Configuration Assistant (OIDCA)

OIDCA enables you to create, upgrade, and delete an Oracle Context, configure the file ldap.ora, and convert an Oracle Context to an Identity Management Realm.

The OIDCA syntax is:

oidca oidhost=<host> 
      nonsslport=<port> |
      sslport=<SSL Port>
      dn=<binddn> 
      pwd=<bindpwd> 
      -silent <list of properties> |
      propfile=<prop_file>

The following table lists properties of the OIDCA. These properties can also be specified as part of the command line directly. To see the usage of OIDCA, enter oidca -help at the command prompt.

Properties Description
host

Oracle Internet Directory server host; default is localhost

port

Oracle Internet Directory server port; default is 389

sslport

Oracle Internet Directory SSL port; default is 636

binddn

Oracle Internet Directory user, such as cn=orcladmin

bindpwd

Oracle Internet Directory user password

prop_file

File containing a list of properties to determine the mode of operation and the required operation-specific parameters

4.2.1 Creating an Oracle Context

The following syntax is used to create an Oracle Context in OIDCA; the properties are described in the subsequent table.


oidca [oidhost=<host>] 
      [nonsslport=<port>] 
      [sslport=<SSL Port>]
      dn=<binddn> 
      pwd=<bindpwd> 
      mode=CREATECTX 
      contextdn=<OracleContext DN>
Properties Description
host

Oracle Internet Directory server host; default is localhost

port

Oracle Internet Directory server port; default is 389

sslport

Oracle Internet Directory SSL port; default is 636

binddn

Oracle Internet Directory user, such as cn=orcladmin

bindpwd

Oracle Internet Directory user password

contextdn

DN under which OracleContext must be created, such as dc=acme, dc=com

Note the following points:

Functionality
  1. The OIDCA verifies that contextdn has a valid DN syntax and that the entry exists in Oracle Internet Directory. Note that the OIDCA cannot create a root OracleContext explicitly. If there is no root Oracle Context, then OIDCA exits with an error.
  2. If DN exists, then OIDCA verifies that the Oracle Context already exists.
    • If the Oracle Context already exists and is up-to-date, then OIDCA exits with the message "Oracle Context already exists and is up to date."
    • If the Oracle Context already exists, but it is an older version, then OIDCA exits with the message "Oracle Context already exists and is of an older version."
    • If the Oracle Context does not exist, then OIDCA creates the Oracle Context under this DN.

4.2.2 Upgrading an OracleContext

To upgrade an OracleContext, use the following syntax; the properties are listed in the subsequent table.

oidca [oidhost=<host>] 
      [nonsslport=<port>] 
      [sslport=<SSL Port>] 
      dn=<binddn> 
      pwd=<bindpwd> 
      mode=UPGRADECTX
      contextdn=<OracleContext DN>
Properties Description
host

Oracle Internet Directory server host; default is localhost

port

Oracle Internet Directory server port; default is 389

sslport

Oracle Internet Directory SSL port; default is 636

binddn

Oracle Internet Directory user, such as cn=orcladmin

bindpwd

Oracle Internet Directory user password

contextdn

DN under which OracleContext must be created, such as dc=acme, dc=com

Note the following points:

Functionality
  1. OIDCA verifies that the contextdn has valid DN syntax and that OracleContext exists in Oracle Internet Directory. OIDCA cannot upgrade a root OracleContext explicitly. If there is no root OracleContext, then OIDCA sends an error message.
  2. If OracleContext exists under contextdn,
    • The OIDCA checks if the OracleContext belongs to a realm, in which case it exits with the appropriate message. Note that OracleContext instances that belong to a realm cannot be upgraded.
    • The OIDCA verifies that the OracleContext is up-to-date, then exits with the message "Oracle Context already exists and is up to date."
    • If the OracleContext is not up-to-date, then the OIDCA upgrades the OracleContext under this DN.

4.2.3 Deleting an OracleContext

To delete an OracleContext, use the following syntax; the properties are listed in the subsequent table.

oidca [oidhost=<host>] 
      [nonsslport=<port>] 
      [sslport=<SSL Port>]
      dn=<binddn> 
      pwd=<bindpwd> 
      mode=DELETECTX 
      contextdn=<OracleContext DN>
Properties Description
host

Oracle Internet Directory server host; default is localhost

port

Oracle Internet Directory server port; default is 389

sslport

Oracle Internet Directory SSL port; default is 636

binddn

Oracle Internet Directory user, such as cn=orcladmin

bindpwd

Oracle Internet Directory user password

contextdn

DN under which OracleContext must be created, such as dc=acme, dc=com

Note the following points:

Functionality
  1. OIDCA verifies that the contextdn has valid DN syntax and that OracleContext exists in Oracle Internet Directory.
  2. If OracleContext exists under contextdn,
    • The OIDCA checks if the OracleContext belongs to a realm, in which case it exits with the appropriate message. Note that OracleContext instances that belong to a realm cannot be deleted.
    • If OracleContext does not belong to a realm, OIDCA deletes it.

4.2.4 Configuring the File ldap.ora

To configure the file ldap.ora, use the following syntax; the properties are listed in the subsequent table.

oidca mode=LDAPORA  
      [host=<host>] 
      [nonsslport=<port>] 
      [sslport=<SSL Port>] 
      [adminctx=<Admin Context>] 
      dirtype=<OID|AD> [-update]
Properties Description
host

Oracle Internet Directory server host; default is localhost

port

Oracle Internet Directory server port; if not specified, determined using discovery

sslport

Oracle Internet Directory SSL port; if not specified, determined using discovery

dirtype

Directory Type; possible values are OID, AD; mandatory attribute

adminctx

Default administrative context, such as cn=OracleContext; if not specified, determined using discovery

-update

If this flag is specified, then overwrite existing ldap.ora; if not, then create ldap.ora only if it does not already exist

Note the following points:

Functionality
  1. Using the Discovery API, the OIDCA determines all the properties not specified on the command line.
  2. The OIDCA checks for ldap.ora location using the Discovery API.
    • If ldap.ora exists and the -update parameter is not specified, then exit with message "ldap.ora exists."
    • If ldap.ora exists and the -update parameter is not specified, then update the existing ldap.ora using Discovery API.
    • If ldap.ora does not exist, create a new ldap.ora file in a location in the following order:
      LDAP_ADMIN
      $ORACLE_HOME/ldap/admin
      

4.2.5 Converting an Oracle Context to an Identity Management Realm

This section describes how to use Oracle Internet Directory Configuration Assistant to upgrade an Oracle Context Release 9.2 to an Identity Management Realm Release 9.0.4. Oracle Database 10g entries must be stored in Oracle Internet Directory Release 9.0.4 server. An Identity Management Realm Release 9.0.4 is also required for Enterprise User Security, a feature of the Oracle Database 10g.

You can use the Oracle Internet Directory Configuration Assistant to convert an existing Oracle Context to a realm with the exception of root.

To convert an existing Oracle Context to a realm, use the following syntax; the properties are listed in the subsequent table.

oidca [oidhost=<host>]
      [nonsslport=<port>] 
      [sslport=<SSL Port>]
      dn=<binddn> 
      pwd=<bindpwd> 
      mode=CTXTOIMR 
      contextdn=<OracleContext DN>
Properties Description
host

Oracle Internet Directory server host; default is localhost

port

Oracle Internet Directory server port; default is 389

sslport

Oracle Internet Directory SSL port; default is 636

binddn

Oracle Internet Directory user, such as cn=orcladmin

bindpwd

Oracle Internet Directory user password

contextdn

DN under which OracleContext must be created, such as dc=acme, dc=com

Note the following points:

Functionality
  1. The OIDCA checks if contextdn has valid DN syntax, and if it contains a valid OracleContext.
  2. If OracleContext exists under contextdn,
    • The OIDCA checks if the OracleContext belongs to a realm. If it does, then it exits with an appropriate error message.
    • If OracleContext does not belong to a realm, OIDCA upgrades it to the latest version, and converts it to a realm.

Note also:

4.3 Notation for DEFAULT_ADMIN_CONTEXT Parameter

The DEFAULT_ADMIN_CONTEXT parameter in the ldap.ora file specifies the default directory entry that contains the Oracle Context that you use to create, modify, or search connect identifiers. In prior releases, the parameter value in this entry did not require quotation marks. Here is an example:

DEFAULT_ADMIN_CONTEXT=dc=us,dc=acme,dc=com

In release 1 (10.1), you must enclose the parameter value in single or double quotation marks. Here is the same example, but with quotation marks:

DEFAULT_ADMIN_CONTEXT="dc=us,dc=acme,dc=com"

Oracle Net Configuration Assistant encloses the value of the DEFAULT_ADMIN_CONTEXT parameter within double quotation marks. If you used another method to create an ldap.ora file and then migrated it to release 1 (10.1) minus the quotation marks, release 1 (10.1) clients see this message when trying to connect to a database:

ORA-12154 TNS:could not resolve the connect identifier specified 

After migrating to release 1 (10.1), check that quotation marks are included in DEFAULT_ADMIN_CONTEXT.

4.4 Use of Parentheses to Enclose Host List in ldap.ora File

In the Oracle10g Beta releases only, parentheses could be omitted from the DIRECTORY_SERVERS parameter in the ldap.ora file. In the production release and all prior releases, these parentheses must be included. Here is the correct syntax for the parameter:

DIRECTORY_SERVERS=(host:port[:sslport])

5 CONFIGURATION TOOLS

This section discusses issues associated with Oracle Net configuration and administration tools. The following topics are covered:

5.1 Support for Root Oracle Context

In the current release of Oracle Internet Directory, a root Oracle Context (dn:cn=OracleContext) is created by default. In release 8.1.7, the Net8 Configuration Assistant returns an error when you attempt to use a root Oracle Context.

To configure Oracle8i clients to use a root Oracle Context:

  1. Configure file ldap.ora with OIDCA or Oracle Net Configuration Assistant.

    See Also:

    Section 4.1, "Tool Support for Directory Usage Configuration"

  1. Copy the ldap.ora file that you created in Step 1 to the Oracle8i client directory $ORACLE_HOME/network/admin on UNIX or ORACLE_HOME\network\admin on Windows operating systems the Oracle8i clients.

[Reference Bug 1777306]

5.2 Deleting a Listener

Oracle Enterprise Manager 10g attempts to first stop a listener before deleting the configuration. If Enterprise Manager fails to stop a listener, it still deletes the configuration for that listener. For this reason, Oracle recommends stopping the listener prior to deleting the configuration.

Oracle Net Configuration Assistant and Oracle Net Manager do not first attempt to stop the listener. You must stop the listener before deleting the configuration. You cannot stop the listener once its configuration information is deleted.

5.3 Directory Entries with Multibyte Characters

When using Enterprise Manager or Oracle Net Manager for directory usage configuration, it is not possible to specify directory entries that use multibyte characters.

[Reference Bug 1102675]

5.4 Viewing Naming Entries

Enterprise Manager and Oracle Net Manager do not display all entries stored in a tnsnames.ora file or in a directory server. A net service name must contain a complete connect descriptor, including description, protocol address, and connect data information.

The following example shows a net service name called sales that contains a protocol address and connection information to a database named sales.us.acme.com. This information displays correctly in Enterprise Manager and Oracle Net Manager.

sales= 
(DESCRIPTION= 
  (ADDRESS=(PROTOCOL=tcp)(HOST=sales-server)(PORT=1521))
  (CONNECT_DATA=
    (SERVICE_NAME=sales.us.acme.com)))

Some entries contain only address information. The following example shows an entry that is not a net service name, but rather a named address. The named address of listener1 only contains listener protocol address information. This named address does not display in Enterprise Manager and Oracle Net Manager, but can still be used to resolve listener1 to a list of protocol addresses. Named addresses are used mainly to identify nondefault local listeners or remote listeners.

listener1= 
 (ADDRESS_LIST=
   (ADDRESS=(PROTOCOL=tcp)(HOST=sales1-server)(PORT=1521))
   (ADDRESS=(PROTOCOL=tcp)(HOST=sales2-server)(PORT=1521)))
See Also:

Chapter "Configuring and Administering the Listener," in Oracle Net Services Administrator's Guide for further information about configuring a listener that uses a nondefault address

5.5 Configuring Buffer Size Parameters

You can configure the RECV_BUF_SIZE and SEND_BUF_SIZE parameters within the connect descriptor of a net service name or a listener. You either specify the buffer space parameters for a particular protocol address or description. In this release, Enterprise Manager and Oracle Net Manager enable you to configure these parameters for each protocol address but not for the entire DESCRIPTION. If you want to configure these parameters for the entire description, you must perform this manually.

[Reference Bug 3074357]

5.6 Online Help for Directory Usage Configuration

The online help for Oracle Net Configuration Assistant does not describe that you can create file ldap.ora for configurations supporting Oracle Internet Directory. While Oracle recommends OIDCA, you can still use Oracle Net Configuration Assistant to configure an ldap.ora file.

See Also:

Section 4.1, "Tool Support for Directory Usage Configuration"

6 ORACLE CONNECTION MANAGER

Chapter 11, "Configuring and Administering Oracle Connection Manager" in Oracle Net Services Administrator's Guide, states that Oracle Connection Manager refuses all client connections if no access rules are included in the rule list section of cman.ora, the tool's configuration file. The intention here is to encourage the administrator to choose rules carefully before starting Oracle Connection Manager.

What the chapter does not state is that connections from the cmctl control utility to CMADMIN, the administrative process, also require access rules in cman.ora. If these are absent, the listener rejects all cmctl connections, treating cmctl like any other client. To allow cmctl connections, you can configure a catch-all rule as follows:

(rule=(src=*)(dst=127.0.0.1)(srv=cmon)(act=accept))

This rule allows cmctl to be used from any computer. The srv=cmon parameter setting is mandatory.

If you want to restrict cmctl usage to only the computer on which Connection Manager is located, use the following rule instead:

(rule=(src=127.0.0.1)(dst=127.0.0.1)(srv=cmon)(act=accept))

7 LISTENER AUTHENTICATION

In an ongoing effort to strengthen the security of our products, the 10g Oracle Net Listener has a new local OS authentication security mechanism, which is automatically enabled for every installed listener. This mechanism allows the listener to determine the OS user credentials of the user running the lsnrctl control utility on the same host where the listener is running. A privileged command will only be allowed if it was issued by the same OS user as the user running the listener or a system administrator (for example the root user on UNIX). Administrative commands originating from a remote host will be rejected unless password security is configured.

Only the lsnrctl control utility of a version greater or equal to the version of the running listener can be used to administer it, with the exception of VERSION command. The VERSION command does not require authorization and may be issued from an older lsnrctl control utility program.

8 LISTENER CONTROL STATUS AND SERVICES

The listener control status and services commands always return results when executed on the host where the listener is running.

[Reference Bug 3359259]

9 TRCROUTE UTILITY

The TRCROUTE utility for UNIX operating systems enables administrators to discover what Oracle Net Services route a connection takes from a client to a database server. If there is an address list containing SOURCE_ROUTE=on, as is the case with older releases of Oracle Connection Manager when there is more than one hop to the database server, this utility does not work.

[Reference Bug 2147202]

10 NEW FEATURES AND OBSOLESCENCE

The "What's New" section of Oracle Net Services Administrator's Guide describes new features of Oracle Net Services and provides pointers to additional information. It also describes features no longer supported.

Appendix A, "Commands and Parameters Not Supported in This Release," of Oracle Net Services Reference Guide provides detailed information about control utility and networking parameters that are no longer supported.


Oracle
Copyright © 2004 Oracle Corporation.

All Rights Reserved.