Oracle Network Manager 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

Distributing the Configuration Files


This chapter describes how to distribute the configuration files generated by the Oracle Network Manager.

When you generate the network definition, Network Manager generates the necessary configuration files for the components on the network. You must then distribute those files appropriately. There are several methods for doing so.

Note: Before you distribute the files for the SQL*Net V2.3 network, move or delete any configuration files that may be left over from a previous network.


Directory Structure for Generated Files

When you generate the configuration files to a file system, Oracle Network Manager creates a set of subdirectories in the directory of your choice. The following sections describe those subdirectories and tell you how to distribute the files within them.

Note: This chapter describes the generated files very briefly. For details about their contents and syntax, see the documentation for the applicable network products: SQL*Net, Oracle MultiProtocol Interchange, Oracle Names, Oracle SNMP Support, and Secure Network Services. See Appendix A of this Guide for examples of the generated configuration files.

Directory Structure for a Network without Oracle Names

If the file generation was successful, two types of subdirectories containing configuration files are created. The files they contain depend upon whether they are for nodes or client profiles, and whether the network includes Oracle Names.

Attention: If you generate to Oracle Names and the File System, the TNSNAMES.ORA file is not generated. The files for a network with Oracle Names are described in the next section.

Directories identified by node names and client profiles are easy to identify. (If your network includes node names or client profile names that are longer than the file or directory names your system allows, the generated directory names will be truncated to the size allowed by your system.) The directory structure also makes it easy to distribute the necessary files to the appropriate machines. To build a functional network, you just need to copy all the files for a node onto that node in your network. For the client files, you must either copy them to each of the client machines or, more likely, copy them to a central location to which all the client machines have access.

Figure 6 - 1 shows an example of the directory structure for a network that includes three client profiles, a node with a listener, and a different node containing an Interchange.

Figure 6 - 1. Sample Directory Structure 1

Note: The file names used here may be different on your operating system. Consult the Oracle operating system-specific documentation for your platform for further information.

For example, consider a network that has the following components:

The directory structure would look like that in Figure 6 - 2:

Figure 6 - 2. Sample Directory Structure 2

On a Client

Three files are generated for every client and node. These three files are placed in the directories of every client profile, as well as the directories of every node on the network, because it is assumed that services on all nodes may initiate connections. The three files are:

TNSNAMES.ORA

This file, which contains a list of the service names of all databases and all the Interchanges in the local region, is required on every client, and on any server machine that will be performing distributed transactions (through database links). Every client requires access to the global file TNSNAMES.ORA to be able to specify database locations. All clients on a multi-tasking computer can share a single TNSNAMES.ORA file. In addition, where a network file system is available, such as Novell or UNIX NFS, this file may be placed on the file server and shared by multiple client machines.

Note: If you generate the files to Oracle Names and the file system, TNSNAMES.ORA is not created. Instead, NAMES.ORA contains a pointer to the network definition in the database, which the Names server uses to get the service names and address mappings it needs.

SQLNET.ORA

The SQLNET.ORA file contains diagnostic parameters (logging and tracing) for SQL*Net V2.1 clients, if a client requires non-standard diagnostics. By default, without the SQLNET.ORA file, all errors are logged to a file called SQLNET.LOG for each client. This provides adequate diagnostics for most failed connections. When it does not, the SQLNET.ORA file generated by the Oracle Network Manager can be used to specify additional diagnostics. You can distribute the file to individual clients, then edit it to include client-specific information. To edit it, use a text editor available on your platform. See your Oracle platform-specific documentation for more information.

The SQLNET.ORA file also contains client information about preferred Names servers, if your network uses Oracle Names. It may also contain optional parameters, which you add with a text editor. See Appendix A in Understanding SQL*Net for further details.

TNSNAV.ORA

The TNSNAV.ORA file lists the local communities of the client profile or node. If there is an Interchange on the network, the TNSNAV.ORA file also allows the client to identify the location of the best Interchange to contact for connections across communities. Like TNSNAMES.ORA, this file can be shared by all clients from a single node and, in most cases, can be shared by all clients in a community (through a networked file system).

On a Server

Besides the three client files, a node with a server needs the following file:

LISTENER.ORA

Every Oracle server requires the file LISTENER.ORA to start and run a network listener. This file is only valid for a single machine. If a server runs multiple listeners, they share a single LISTENER.ORA file allowing a single Listener Control Utility (LSNRCTL) to control all listeners on the server machine. If the LISTENER.ORA file contains one or more listener passwords that are not encrypted, the file should be readable only by people authorized to administer the listener. For information on how to change permissions on this file, see the operating system-specific documentation for the platform. For further information on the Listener Control Utility, see Chapter 5, "Using SQL*Net," in Understanding SQL*Net.

On an Interchange

The files generated by the Oracle Network Manager for a node with an Interchange include the client files and the following:

INTCHG.ORA

Every Interchange requires the INTCHG.ORA file to read its parameters. Each copy of this file is specific to a single Interchange.

TNSNET.ORA

Every Interchange requires the global file TNSNET.ORA, which describes the relationships of all the communities and Interchanges, for use during navigation across the network. This file is identical on every Interchange.

Directory Structure for a Network with Oracle Names

The difference between a network that includes Oracle Names and one that does not is that if Oracle Names is used, TNSNAMES.ORA files are not created. Instead, the NAMES.ORA file for the Names server includes information telling the Names server where to find the network definition tables. All connections to services on the network get their destination addresses through the Names server.

Figure 6 - 3 shows an example of the directory structure for a network similar to that shown in Figure 6 - 2, but with an Oracle Names server on the node with the Interchange.

Figure 6 - 3. Sample Directory Structure Including Oracle Names

The remaining client type files and the Interchange files are the same as those described in the previous section. Any node that has a Names server requires a unique NAMES.ORA file.

NAMES.ORA

Every Names server requires a unique NAMES.ORA file to define its control parameters and to point it toward the network definition that holds the service names and addresses of the services on the network. Each copy of this file is specific to a single Names server.


Viewing the Network Definition Using NETPRINT

If at any time you are unsure of the structure of your network, you may want to look at the network definition. The NETPRINT utility, which is included with Oracle Network Manager, enables you to see the network definition on screen or write it to a file.

Using the NETPRINT Utility

Access NETPRINT by clicking on the NETPRINT icon.

A screen similar to that shown in Figure 6 - 4 appears.

Figure 6 - 4. NETPRINT Window

Select the file or the database where the network definition is stored. Windows similar to the ones you are familiar with for describing the file location or database appear. Using your input, NETPRINT locates the network definition and displays it on the screen.

Figure 6 - 5 shows an example of part of a network definition displayed on the screen.

Figure 6 - 5. Sample NETPRINT Output

Use the scroll bar to scroll through the network definition display. You can use your standard window cut or copy and paste tools to put the information into a file or electronic mail message. You can also use the Save Printed Output option or Print to File option to save the network definition to a file.

Save Printed Output

To save the NETPRINT output to a file, select this option from the File menu. A window will appear in which to select the filename and directory in which to save it. By default, the filename is the name of the network with .NPR appended. For example, if you used NETPRINT to view the network definition stored in a file named SAMPLE.NET, the default name of the output file would be SAMPLE.NPR.

Print the Network Definition

To print the network definition using NETPRINT, select Print from the file menu. A window appears showing the target printer. You can change it if you wish.

Exit NETPRINT

To exit NETPRINT, select Exit from the File menu.


Distributing the Configuration Files

Operating System-Specific Locations

The last task in configuring the network is distributing the configuration files to their appropriate locations. For information on the proper locations of the files on your operating system, see the operating system-specific documentation for your system.

Methods for Distributing the Files

Various methods of distributing the configuration files are available.

Distribution Considerations

In file transfer protocols that distinguish between text or binary modes, the text mode should be used. This guarantees that any internal datatype representations are preserved across different systems.

If you are using some means of distribution other than SQL*Net, and if any of the nodes in the distribution has a different character set (as withIBM EBCDIC), be sure to convert the characters during the distribution. SQL*Net does this conversion automatically; you need to be concerned about this only if you are not yet using SQL*Net.

Using the NETFETCH Utility

If you already have a SQL*Net network started, you can use the NETFETCH utility throughout the network to generate and bring the relevant configuration files to local Windows machines. Although generally Oracle Network Manager is used on only one node in any network (or in each region of a network), you can install it so that you can use NETFETCH on machines running Windows throughout the network. NETFETCH reads the network definition stored on a remote node in either a file or a database, and generates the files for the local node. Once you have distributed the configuration files and started the SQL*Net network, you can use NETFETCH to distribute updates.

Note: You must use the same versions of NETFETCH and Network Manager. For example, if you are using Network Manager 3.0, you must use NETFETCH 3.0 also. A later version of NETFETCH may not work with an earlier version of Network Manager.

Example of NETFETCH

Suppose your network includes several personal computers that have client software, and two UNIX nodes, Tuna and Trout, that have Oracle Server software. Suppose further that you run Oracle Network Manager on one of the personal computers, but store the network definition in a database on the node called Tuna. All the clients share a single client profile, TCPCOM. The network is shown in Figure 6 - 6.

Figure 6 - 6. Network with Network Definition Stored on a Database

The NETFETCH utility makes it easy to distribute the configuration files across the network. It enables you to go to the destination machines running Windows, or a file server for client machines, and pull the appropriate files into the desired directory.

Note: This utility is most useful for updating configuration files. Until the SQL*Net network is up and running, NETFETCH may not have the means to pull files across the network, although you can use a SQL*Net V1 connection if one is available. (If the network definition is saved to a file and you can access the file from the destination machine, you can use NETFETCH. If the network definition is saved to a database, however, the SQL*Net version 2 network must be up and running before you can use NETFETCH.)

Using NETFETCH's Graphical User Interface

On Microsoft Windows, access NETFETCH by double-clicking the Net Fetch icon.

A screen similar to that shown in Figure 6 - 7 appears.

Figure 6 - 7. NETFETCH Window

When NETFETCH opens, it includes the usual window asking whether the network definition is stored in a file or a database. Depending on your response, other windows ask you to further describe the location of the network definition.

When NETFETCH has established the location of the network definition, it displays a window asking for the directory to which the configuration files should be exported. The window looks like that shown in Figure 6 - 8.

Figure 6 - 8. Export Window

Provide the following information in this window:

Destination Name

This list box contains all the directories of configuration files that could be created from this network definition. Select the directory of files you wish to export. For example, if you are on a node, select that node's directory. If you are on a machine that acts only as a client, select the appropriate client profile directory. For example, if you are on Tuna or Trout in the network described in Figure 6 - 6, you would select that name. If you were on one of the client machines, you would select TCPCOM.

Export Directory

Select the directory into which the files should be placed. By default, the export directory is the current working directory. If you want to export to a different directory, select the Browse button and choose from the list of directories available on this machine. Note that the export directory must already exist; the NETFETCH utility cannot create it.

Export with Oracle Names

Select this check box if the network includes Oracle Names. When you select this checkbox, a TNSNAMES file is not included among the exported files.

When you are satisfied with your responses, select OK to export the files to the chosen directory on the node. Otherwise, select Cancel to exit the NETFETCH utility.

Using Command Line Mode

You may want to use command line mode to include NETFETCH commands in the startup folders of machines running Windows. If you do this, the machine will download new network configuration files automatically at start up.

To enable this capability , do the following:

NETFETCH parameters

The parameters used by NETFETCH and the values they require are as follows:

Access the utility by entering its name on the command line in the same directory from which you would access Oracle Network Manager.

netfetch

This command calls NETFETCH.

netfetch.network_ name

Provide the name of the network definition. If the network definition is saved to a file system, include the full path and .net in its name. If it is stored on a database, do not include .net or a path.

netfetch.username

If the network definition is stored on a database, enter the username here.

netfetch.password

If the network definition is stored on a database, enter the password here.

netfetch.service

If the network definition is stored on a database, enter the service name here.

netfetch.node

If you are on a node, enter the fully qualified name of the node for which you want the files (for example, SPIRIT.WORLD).

netfetch.client_profile

If you are on a client, enter the fully qualified name of the client profile for which you want the files (for example, TCPCOM.WORLD).

Note: Include either the NETFETCH.NODE or the NETFETCH.CLIENT_PROFILE parameter; do not include both.

netfetch.export_dir

Enter the directory to which you wish the files to be placed on the local machine. You must select a directory that already exists. You do not need to put the full path to the directory; the relative path is acceptable. If you do not include this parameter, the default is the current working directory.

netfetch.tnsnames

Indicates whether to distribute TNSNAMES.ORA files. Values are ON or OFF. Default is ON, but select OFF if Oracle Names is part of the network.

Example of NETFETCH in Command-Line Mode

An example of using command-line mode for NETFETCH and its parameters follows:

netfetch netfetch.network_name=acmelan
   netfetch.username=scott netfetch.password=tiger
   netfetch.service=prod netfetch.node=spirit.world 




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