Oracle 10g Tutorials: Oracle Net Services
In this tutorial you will learn Oracle Net Services-an overview, using Oracle Net manager, creating listeners, choosing general parameters, enable the tracing and logging for the database transactions. we will also learn how to use tnsping to test Oracle Net connectivity.
Document Summary
This document gives the overview of the Oracle Net services. It also explains the uses of Oracle Net manager.
Oracle Net Services Overview
Oracle Net Services provides enterprise-wide connectivity solutions in distributed, heterogeneous computing environments. oracle Net Services eases the complexities of network configuration and management, maximizes performance, and improves network diagnostic capabilities. oracle Net, a Component of Oracle Net Services, enables a Network Session from client application to an Oracle database server. once a network session is established, Oracle Net acts as a data courier for the client application and the database server. it is responsible for establishing and maintaining the connection between the client application and database server, as well as exchanging messages between them. oracle Net is able to perform these jobs because it is located on each computer in the network. network sessions are established with the help of a listener. the listener is a separate process that resides on the database server. the listener es incoming client connection requests and manages the traffic of these requests to the server. the listener brokers the client request, handing off the request to the server. every time a client requests a network session with a server, a listener parameters es the actual request. if the client's information matches the listener's information, the listener grants a connection to the server.
Use Oracle Net manager to create and configure listeners
Navigation-start-> Programs-> Oracle-Oracle client10g home-> Configuration and migration tools-> net manager
Once you click on the net manager link on the above navigation path, following screen will appear in front of you.
Click on the local link in the above screen and following screen will appear in front of you.
Click on the listeners tab to see the list of existing listeners.
Please enter the name of the listener you want to create in the following pop up screen. You can choose any user friendly name.
You will see the listener1 created in the following screen. Click on add address button to add the listening location's address.
Choose general parameters from the drop down and you will see following screen.
Let the default values in this screen.
Click on 'logging & tracing' tab and you will see following screen.
You can enable the tracing and logging for the database transactions and wocould be required to provide the files to store the logs or traces.
Click on 'authentication 'tab and you will see following screen. You can set the password for listener related operations in this screen.
Choose database services from dropdown and you will see following screen.
Give the global database name, Sid and Oracle Home Directory to configure the Database Service for the listener. save the information and your listener is created and configured. you can change any of the listener's parameters through Oracle Net manager.
Use tnsping to test Oracle Net connectivity
You can also use tnsping utility on command prompt to check Oracle Net connectivity. Follow these steps to check the connection to particle Sid.
- Open command prompt.
- Write tnsping <Sid for the database connectivity you want to check>
- If you get the message "used tnsnames adapter to resolve the alias" then tnsping utility is able to resolve the service name.
- If you get "TNS-03505: failed to resolve name" message then tnsping utility is not able to resolve the service name and you need to check the sqlnet. ora and tnsnames. ora files on your machine.