Less 12
Less 12
Objectives
After completing this lesson you should be able to do the following: Use Database Control to
Create additional listeners Create Oracle Net service aliases Configure connect time failover Control the Oracle Net listener
Use the Oracle Net Manager to configure client and middle-tier connections. Use TNSPING to test Oracle Net connectivity
12-2
Database Control
Listener
Oracle database(s)
12-5
Creating a Listener
1 2
12-6
Listening Addresses
5 7 8
12-7
12-8
12-9
Oracle Net listeners can also be controlled with the command-line lsnrctl utility.
#lsnrctl LSNRCTL for Linux: Version 10.1.0.1.0 on 05-NOV-2003 13:27:51 Copyright (c) 1991, 2003, Oracle. All rights reserved. Welcome to LSNRCTL, type "help" for information. LSNRCTL> help The following operations are available An asterisk (*) denotes a modifier or extended command: start services save_config change_password set* stop version trace quit show* status reload spawn exit
12-10
Commands from the listener control utility can be issued from the command-line or from the LSNRCTL prompt. UNIX or Linux command-line syntax:
# lsnrctl <command name> # lsnrctl start # lsnrctl status
Prompt syntax:
12-11
12-13
To make a client or middle-tier connection, Oracle Net requires the client to know the: Host where the listener is running Port the listener is monitoring Protocol the listener is using Name of the service the listener is handling
Client/application Server Oracle Net
Names Resolution
Oracle Net supports several methods of resolving connection information: Easy Connect Local naming Directory naming External naming
Client/application Server Oracle Net
Easy Connect
Enabled by default Requires no client-side configuration Supports only TCP/IP protocol (no SSL) No support for advanced connection options like:
Connect-time failover Source routing Load balancing
SQL> CONNECT hr/[email protected]:1521/dba10g
Local Naming
Requires a client-side names resolution file Supports all Oracle Net protocols Supports advanced connection options like:
Connect-time failover Source routing Load balancing
SQL> CONNECT hr/hr@fin1
Directory Naming
Requires a Lightweight Directory Access Protocol (LDAP) with Oracle Net names resolution information loaded
Oracle Internet Directory Microsoft Active Directory Services
OLAP directory
Add
12-20
12-21
12-23
Oracle Net Manager configures the names resolution methods a client or middle-tier will use and the order in which they are checked.
12-24
Use Oracle Net Manager to configure local and directory naming aliases.
12-25
12-26
12-27
Summary
In this lesson you should have learned how to: Use Database Control to:
Create additional listeners Password-protect the listener Create Oracle Net service aliases
Control the Oracle Net listener Use the Oracle Net Manager to configure client or middle-tier connections Use TNSPING to test Oracle Net connectivity
12-28
This practice covers the following topics: Creating a listener Configuring local names resolution Configuring connect time failover
12-29