Chapter 4: Configuring the Network Environment

Purpose

This chapter helps you to configure and manage your network environment so that users can access your database.

Topics

This chapter discusses the following:

Using the Enterprise Manager Net Services Administration Page
Starting and Stopping the Listener Using the Listener Control Utility
Configuring Local Naming for Connecting to Other Databases

Move your mouse over this icon to show all screenshots. You can also move your mouse over each individual icon to see only the screenshot associated with it.

Using the Enterprise Manager Net Services Administration Page

Back to Topic List

The Net Services Administration page can be used to manage Oracle Net services.

Follow the steps below to access the Net Services Administration page:

1.

Log in to Enterprise Manager Database Console by opening your browser and specifying the SYS username and password.

Click Login.

Move your mouse over this icon to see the image

 

2. Click the Listener link in the General section of the Database Home page.

Move your mouse over this icon to see the image

 

3. The Listener Home page is displayed. Click Net Services Administration in the Related Links section at the bottom of the page.

Move your mouse over this icon to see the image

 

4. The Net Services Administration page is displayed. This page provides a means of administering listeners, directory naming, local naming, and specifying the file location.

Move your mouse over this icon to see the image

 

 

Back to Topic List

In this section you learn how to start and stop the listener using the listener control utility. These steps are applicable when you cannot access Enterprise Manager Database Control to start or stop your listener.

Perform the steps listed below to check the status of the listener, to stop the listener, and to start the listener using the listener control utility:

1.

Log on to the operating system as the oracle user. You can check the status of the listener by issuing the following command:


lsnrctl status

Move your mouse over this icon to see the image

 

2.

If your listener is started, issue the following command to stop the listener:

lsnrctl stop

Move your mouse over this icon to see the image

If your listener is already stopped, proceed to step 3.

 

3.

Issue the following command to start the listener:


lsnrctl start

Move your mouse over this icon to see the image

 

 

Back to Topic List

In this section you configure local naming to connect to another database. You can configure local naming using Net Manager on a client PC or using Enterprise Manager as described in the following sections:

Configuring Local Naming Using Net Manager
Configuring Local Naming Using Enterprise Manager

Configuring Local Naming Using Net Manager

Back to Topic List

You must configure a client machine so it can connect to an Oracle database. You must first install Oracle Database client software, which includes Oracle Net software. Once you have installed Oracle Net, you can use Oracle Net Manager to configure a net service name using the local naming method as follows:

1.

On Windows, start Oracle Net Manager by clicking:

Start->Programs->Oracle->Configuration and Migration Tools->Net Manager

On UNIX or Linux, invoke Oracle Net Manager by entering netmgr at the command line.

Move your mouse over this icon to see the image

The Welcome window appears.

Move your mouse over this icon to see the image

 

2.

Expand Local and select Service Naming. Click the (plus) + on the left hand side of the page.

Move your mouse over this icon to see the image

 

3.

The Net Service Name Wizard: Welcome window appears. Enter a net service name. Click Next.

Move your mouse over this icon to see the image

 

4.

Select the protocol to use to connect to your database. You can accept the default TCP/IP (Internet Protocol). The database listener must be configured to use the same network protocol. Click Next.

Move your mouse over this icon to see the image

 

5.

Enter the host name of the database machine. Click Next.

Move your mouse over this icon to see the image

 

6.

Enter the database service name. In addition, select a Connection Type, either Shared or Dedicated. If you are unsure or would like to use the default database connection type, select Database Default. Click Next.

Move your mouse over this icon to see the image

 

7.

The last window of the wizard enables you to test the connection using the information you entered. Click Test.

Move your mouse over this icon to see the image

 

8.

By default, the user named SCOTT is used for the test. If this account is locked as shown in the example, you can change the default login by clicking Change Login and entering a different username and password. Click Change Login .

Move your mouse over this icon to see the image

 

9.

Enter a username and password to test the connection. You can use system with the password of oracle. Click OK. Click Test.

Move your mouse over this icon to see the image

 

10.

. Click Test.

Move your mouse over this icon to see the image

 

11.

The wizard tells you if the connection test succeed or not. Click Close.

Move your mouse over this icon to see the image

 

12.

Click Finish.

Move your mouse over this icon to see the image

 

13.

The new service appears under the Service Naming folder. You can view or modify the configuration for the highlighted service under Service Identification and Address Configuration.

Move your mouse over this icon to see the image

 

 

Configuring Local Naming Using Enterprise Manager

Back to Topic List

Perform the steps listed below to configure a net service name using Enterprise Manager as follows:

1. Click the Listener link in the General section of the Database Home page.

Move your mouse over this icon to see the image

 

2. The Listener Home page is displayed. Scroll down to the bottom of the page. Click Net Services Administration in the Related Links section.

Move your mouse over this icon to see the image

 

3. The Net Services Administration page is displayed. Select the appropriate Configuration File Location. Select Local Naming from the Administer list. Click Go.

Move your mouse over this icon to see the image

 

4. Enter your host username and password, select Save as Preferred Credential, and click Login.

Move your mouse over this icon to see the image

 

5. The Local Naming page is displayed. Click the Create button or select an existing Net Service Name and click Create Like.

Move your mouse over this icon to see the image

 

6.

The Create Net Service Name General page is displayed. Enter a name in the Net Service Name field. In the Database Information section, configure service support by entering a destination service and selecting a database connection type. If the destination service is an Oracle8i or later release database, then select Use Service Name, and enter a service name in the Service Name field. If the destination service is an Oracle release 8.0 database, then select Use SID, and enter an Oracle System Identifier for an instance in the SID field. Then scroll down to the bottom of the page. In the Addresses section, configure protocol support. Click Add.

Note: If you are performing this task on the same machine that you configured local naming using Net Manager, be sure to enter a different name in the Net Service Name field.

Move your mouse over this icon to see the image

 

7. The Add Address page is displayed. From the Protocol list, select the protocol upon which the listener is configured to listen. Enter the Port and Host fields. These must match the listening address. Click OK.

Move your mouse over this icon to see the image

 

8. The Create Net Service Name page is displayed again. Click OK. A successful creation message is displayed on the Local Naming page.

Move your mouse over this icon to see the image

 

9. Select the net service name you just created. Click Test Connection.

Move your mouse over this icon to see the image

 

10. Enter the password for dbsnmp and click Test.

Move your mouse over this icon to see the image

 

11. The Test Result page is displayed. Click OK.

Move your mouse over this icon to see the image

 

Move your mouse over this icon to hide all screenshots