Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ......

16
Database Administration 1 Configuring the Network Environment Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT IS CPIT 340 Lab - 3 Page 1 of 16 Configuring the Network Environment Purpose This Lab 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 Using the Enterprise Manager Net Services Administration Page 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.

Transcript of Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ......

Page 1: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 1 of 16

Configuring the Network Environment

Purpose

This Lab 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

Using the Enterprise Manager Net Services Administration Page

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.

Page 2: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 2 of 16

2.

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

3.

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

bottom of the page.

Page 3: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 3 of 16

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.

Starting and Stopping the Listener Using the Listener Control Utility

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

Page 4: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 4 of 16

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

lsnrctl stop

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

3. Issue the following command to start the listener:

lsnrctl start

Page 5: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 5 of 16

Configuring Local Naming for Connecting to Other Databases

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

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.

The Welcome window appears.

Page 6: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 6 of 16

2.

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

3.

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

Page 7: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 7 of 16

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.

5.

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

Page 8: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 8 of 16

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.

7.

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

Page 9: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 9 of 16

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 .

9.

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

Page 10: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 10 of 16

10.

. Click Test.

11.

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

Page 11: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 11 of 16

12.

Click Finish.

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.

Page 12: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 12 of 16

Configuring Local Naming Using Enterprise Manager

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.

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

Page 13: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 13 of 16

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

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

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

Page 14: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 14 of 16

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.

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.

Page 15: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 15 of 16

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

the Local Naming page.

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

10. Enter the password for dbsnmp and click Test.

Page 16: Configuring the Network Environment - uj.edu.sa 3.pdf · Configuring the Network Environment ... Lab - 3 Page 5 of 16 Configuring Local Naming for Connecting to Other Databases ...

Database Administration 1 Configuring the Network Environment

Mr. Anser Ghazzaal 69520000-67527 [email protected] FCIT – IS

CPIT 340 Lab - 3

Page 16 of 16

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