Oracle Names Administrator's Guide Go to Product Documentation Library
Library
Go to books for this product
Product
Go to Contents for this book
Contents
Go to Index
Index



Go to previous file in sequence Go to next file in sequence

Setting Up and Running Oracle Names with the Dynamic Discovery Option


This chapter provides several scenarios that show how to set up and use Oracle Names version 2.0 with the Dynamic Discovery Option (DDO).

If you are not certain whether to use the Dynamic Discovery Option, see "Choose Whether to Use the Dynamic Discovery Option"[*].

Upgrading to SQL*Net release 2.3 and Oracle Names 2.0 without the Dynamic Discovery Option is discussed[*], "Configuring Oracle Names".


Configuration Scenarios

This chapter describes how to do the following:

In addition, this chapter includes a section on non-default parameters. If your network configuration is not covered by of these scenarios, see Appendix B, "Complex Network Issues and DDO," for instructions on other networks.

Note: If you have a network that stays the same for long periods of time, whether large or small, converting the network to dynamic discovery may not be worth the effort. Also, administrators of networks that have MultiProtocol Interchanges, gateways, or Native Naming Adapters might find the Dynamic Discovery Option more troublesome to use than its benefits warrant.


A Review of Network Components

In order for Oracle Names 2.0 to function correctly as a naming service, certain information needs to be accessible to certain components. When you configure and run a network with Oracle Names 2.0 and the Dynamic Discovery Option, there are three main network components that must be able to communicate and find each other:


Rules for Setting Up and Using the Dynamic Discovery Option

The following list of rules applies to all the given scenarios described in this chapter. Following these rules provides the smoothest transition to Oracle Names 2.0 with the DDO.


Before You Begin

Before you begin using any of the following upgrade scenarios, the following must be true:


Scenario 1: Create a New Network Using the Dynamic Discovery Option

The following steps are brief guidelines for you to create and run your network using Oracle Names 2.0 with the Dynamic Discovery Option.

No other configuration files are needed if you accept all default parameters. The only configuration file needed in a default setup is a LISTENER.ORA for every database, which is created automatically during installation.

See your platform specific documentation for information on how to install the well-known Names Server. The default installation setup for the Names Server uses the Dynamic Discovery Option.

	ipaddress	howe.acme.com		oranamesrvr0
	ipaddress	orr.acme.com		oranamesrvr1
	ipaddress	roenick.acme.com	oranamesrvr2
	ipaddress	gretzky.acme.com	oranamesrvr3
	ipaddress	syoung.acme.com	oranamesrvr4

		NAMESCTL START

Attention: When installing SQL*Net you must execute the install_pnp script to be able to generate a LISTENER.ORA file. Execute the script in order to proceed. For more information on the install_pnp script see your platform-specific documentation.

		GLOBAL_DBNAME=DBNAME.domain

		LSNRCTL START

	NAMESCTL> QUERY db_name

At this point your network should be fully operational with the Dynamic Discovery Option so that you can start the database and use your network connections.

Attention: The Dynamic Discovery Option only works on nodes that use SQL*Net release 2.3. Services will not be automatically registered if SQL*Net release 2.3 is not used, and clients will not be able to find the well-known Names Server.


Scenario 2: Upgrading All Components in an Existing Network

The following steps are a guide for upgrading all network components to SQL*Net 2.3 and Oracle Names 2.0 using the Dynamic Discovery Option.

This scenario is useful for networks that can upgrade all components from an existing SQL*Net version to SQL*Net 2.3 and Oracle Names 2.0 with the Dynamic Discovery Option at one time.

	ipaddress	howe.acme.com		oranamesrvr0
	ipaddress	orr.acme.com		oranamesrvr1
	ipaddress	roenick.acme.com	oranamesrvr2
	ipaddress	gretzky.acme.com	oranamesrvr3
	ipaddress	syoung.acme.com	oranamesrvr4

Note: The well-known address port number may vary depending on the protocol in use in your network; refer to your platform-specific documentation for the specific port number used.

		NAMESCTL> START

Attention: When installing SQL*Net you must execute the install_pnp script to be able to generate a LISTENER.ORA file. Execute this script in order to proceed. See your platform-specific documentation for more information on using or obtaining the install_pnp script.

		GLOBAL_DBNAME=DBNAME.domain

		LSNRCTL START

At this point all of the components in your network should be fully configured to run Oracle Names 2.0 with the Dynamic Discovery Option.

Test whether applications can successfully connect to an Oracle Names Server from a SQL*Net client. Execute a SQLPlus application, such as sqlplus username/password@service_names, where service_name is the database name that has just been registered. If you cannot connect, most likely you will receive the error ORA-12154. This usually indicates that the client cannot find the Names Server. Refer to the trace files or error message log files to find details.


Scenario 3: Gradually Upgrading an Existing Network

This scenario is most useful to a site that cannot upgrade everything at once, but want to upgrade various components to the Dynamic Discovery Option in an orderly fashion.

This scenario takes you through an upgrade where there are three existing Names Servers in a network. All of the servers are upgrading to SQL*Net 2.3 and Oracle Names 2.0, but at this time only two are becoming well-known Names Servers using the Dynamic Discovery Option. The third Names Server will not use the DDO.

In this case, the network will maintain some SQL*Net 2.2 clients and some SQL*Net 2.3 clients.

	ipaddress	howe.acme.com		oranamesrvr0
	ipaddress	orr.acme.com		oranamesrvr1
	ipaddress	roenick.acme.com	oranamesrvr2
	ipaddress	gretzky.acme.com	oranamesrvr3
	ipaddress	syoung.acme.com	oranamesrvr4

Note: The well-known address port number may vary depending on the protocol in use in your network; refer to your platform-specific documentation for the specific port number used.

(address=(protocol=tcp) (host=gretzky) (Port=1529)) 
(address=(protocol=tcp) (host=howe) (Port=1529))

(address=(protocol=tcp) (host=oranamesrvr0) (port=1575))
(address=(protocol=tcp) (host=oranamesrvr1) (port=1575))

		NAMESCTL START

Attention: When installing SQL*Net you must execute the install_pnp script to be able to generate a LISTENER.ORA file. Execute this script in order to proceed. See your platform-specific documentation for more information on using or obtaining the install_pnp script.

		GLOBAL_DBNAME=DBNAME.domain

		LSNRCTL START

Note: SQL*Net 2.2 clients can be configured to use the well-known Names Servers. Simply define the new well-known Names Servers on the NAMES.PREFFERED_SERVERS parameter in the network definition using Network Manager.

Generate new configuration files. Distribute the SQLNET.ORA files that include the new Names Server addresses to all of the clients on the network.

Note: All three Names Servers should be included in the list of NAMES.PREFFERED_SERVERS in the SQLNET.ORA file.

Although it has been upgraded to Oracle Names 2.0, the third Names Server does not need the NAMES.PREFFERED_SERVERS in the SQLNET.ORA file be edited.

At this point all of the components you have chosen to upgrade in your network should be fully configured to run Oracle Names 2.0 with the Dynamic Discovery Option.

Test whether applications can successfully connect to an Oracle Names Server from a SQL*Net client. Execute a SQLPlus application, such as sqlplus username/password@service_names, where service_name is the database name that has just been registered. If you cannot connect, most likely you will receive the error ORA-12154. This usually indicates that the client cannot find the Names Server. Refer to the trace files or error message log files to find details.


Scenario 4: Upgrading from a Native Naming Adapter

This scenario is based on gradually upgrading from a native naming adapter to Oracle Names 2.0 with the Dynamic Discovery Option.

	NAMES.DIRECTORY_PATH=(ONAMES, NIS, TNSNAMES.ORA)

Attention: Databases should not be defined in both Oracle Names 2.0 and the native naming adapter.


Non-default Parameters

In a Dynamic Discovery environment in which all default parameters are accepted, you do not need to have any configuration files except the LISTENER.ORA for each listener node created during installation. However, there may be times when some additional configuration files are needed. There are two major reasons you may need other configuration files:

Decision: If you have a lot of non-default parameters to add, and especially if you want to define a number of objects that cannot self-register, you may want to reconsider whether the Dynamic Discovery Option is appropriate for your network.

How to Create a SQLNET.ORA File

There are two ways to create a SQLNET.ORA file. Choose the method that best fits your situation.

If you need more information, please see Oracle Network Products Troubleshooting Guide.

Parameters in a SQLNET.ORA File

A SQLNET.ORA file may contain a number of optional parameters. Most of the parameters control the behavior of clients. There are also some parameters that control servers, the Names Control Utility, and the TNSPING Utility.

All the SQLNET.ORA parameters are described in Understanding SQL*Net. This section describes the parameters you are most likely to want to include when using DDO.

Note: Unless otherwise noted, these parameters can be added to an existing SQLNET.ORA file using the SQLNET.ORA Editor or Network Manager.

Dead Connection Detection

Add this parameter to request SQL*Net to send a periodic probe to detect dead connections. A value of 10 (minutes) is recommended.

Logging and Tracing Parameters

You can set optional tracing and logging parameters for clients and servers in the SQLNET.ORA file. You can also set tracing parameters for the Names Control Utility and TNSPING. Use the SQLNET.ORA Editor for client and TNSPING parameters. Parameters for the server and the Names Control Utility must be added manually.

Dedicated Server

Set this optional parameter to ON if you want to request a dedicated Names Server process from a server configured as a multi-threaded Names Server.

Secure Network Services Parameters

If Secure Network Services is installed in your network, add parameters to request encryption, checksum, and authentication services. Use the SQLNET.ORA Editor to add them to the client side. Add them manually or with Network Manager for the Names Server.

Disable Out of Band Breaks

If you want to disable out of band breaks, add this parameter, set to ON. Out of band breaks are the default, unless there is an Interchange on the network.

Default Domains

If the naming convention in your network includes a domain, you can enable applications to request connections to servers without including the domain in the request by adding this parameter with the domain as the value.

Note: If you use Network Manager to create a SQLNET.ORA file, this parameter is included automatically, with .WORLD as the domain by default. If there is no domain in your network, use a text editor to delete this parameter in the SQLNET.ORA file before distributing it to individual clients.

Preferred Names Servers

You may want to have some of your clients contact one particular Names Server rather than another. In a Dynamic Discovery network all clients contact the Names Server on the node with the alias oranameserver0 first by default. To avoid bottlenecks, or to have the client contact the Names Server that is geographically closest, you may want to add this parameter to the SQLNET.ORA file. This concept is called network load balancing. See the following section for more details.

Network Load Balancing

If your network covers a wide geographic area, or if you want to balance the load among the Names Servers, you can add a parameter to the SQLNET.ORA file on the clients so that they contact a specific Names Server first. That parameter is:

	NAMES.PREFERRED_SERVERS=(names_server_address)...

For example, suppose you have a network with a well known Names Server given the alias oranamesrvr0 in New York and another with the alias oranamesrvr1 in London. You might want your clients in Europe to contact the Names Server in London first. For this to happen, every European client would need a SQLNET.ORA file with the following line:

NAMES.PREFERRED_SERVERS=
	(ADDRESS_LIST=(ADDRESS=
					(PROTOCOL=TCP)
					(HOST=ORANAMESRVR1)
					(PORT=1575))
				(ADDRESS=
					(PROTOCOL=TCP)
					(HOST=ORANAMESRVR0)
					(PORT=1575)))




Go to previous file in sequence Go to next file in sequence
Prev Next
Oracle
Copyright © 1996 Oracle Corporation.
All Rights Reserved.
Go to Product Documentation Library
Library
Go to books for this product
Product
Go to Contents for this book
Contents
Go to Index
Index