Replicate Data Among Oracle Names Servers

Step 1: Create an Oracle Names server so data is replicated with another Oracle Names server:

  1. Click the Oracle Names Servers folder.

  2. Choose Create from the Edit menu, or click on the "+" button to create a new Oracle Names server.

    The Names Wizard starts. The wizard guides you through the creation and configuration process. Be sure to click Don’t use a region database. When the wizard completes, the following message appears: A Names Server, onames_name, has been created with default settings. Use the Configure Server section to modify the default configuration.

  3. Have each Oracle Names server, except the first Oracle Names server in the region, discover the other Oracle Names servers for a region. On the machine where Oracle Names resides:

    a. Choose Manage Server from the drop-down list box.

    b. Click the Control tab.

    c. Click the Start option button from the Server Operations field.

    d. Click Apply.

  4. Choose Save Network Configuration from the File menu to save changes to NAMES.ORA in $ORACLE_HOME/network/admin on UNIX or ORACLE_HOME\network\admin on Windows platforms, or choose Save As from the File menu to save under a different file name or path.

Step 2: Discover Oracle Names Servers

After all the Oracle Names servers are configured, have each Oracle Names, except the first Oracle Names server in the region, discover the other Oracle Names servers for a region. When the client discovers Oracle Names servers, it tries to find one Oracle Names server. Once the client finds an Oracle Names server, it queries for all other Oracle Names server in the domain. A list of Oracle Names servers is then created on the client. This list is created in order of response time.

Discovery tries to first look for a preferred Oracle Names server in the SQLNET.ORA file, then a well-known Oracle Names server. Newer configurations of Oracle Names version 8 do not require that you specify:

If the network configuration does not have an older Oracle Names configuration, the client may not be able to discover the first Oracle Names server. In this case, you must specify the address of the Oracle Names server.

To discover Oracle Names servers:

  1. Choose Discover Oracle Names Servers from the Tools menu. This produces an SDNS.ORA file in $ORACLE_HOME/network/names on UNIX and ORACLE_ HOME\network\names on Windows platforms. This file contains the names of the Oracle Names server(s). This file is read to find the addresses of Oracle Names servers. The following message appears: Discovered Oracle Names Server in the region. Please exit the tool and start again. If an Oracle Names server does not respond, and you know the network address of a particular Oracle Names server, a dialog will prompt you for the that address. For example:

    (ADDRESS=(PROTOCOL=Protocol Name)(HOST=Hostname)(PORT=PortNumber))

  2. Choose Save Network Configuration from the File menu to save changes to NAMES.ORA in $ORACLE_HOME/network/admin on UNIX or ORACLE_HOME\network\admin on Windows platforms, or choose Save As from the File menu to save under a different file name or path.