Professional Documents
Culture Documents
=======
Installation and configuration instructions for Oracle Connection Manager
v3.0.x.
How to Install
--------------
On the desktop platforms the executables are named CMGW80, CMADM80, and,
CMCTL80
for Oracle8 and CMGW, CMADMIN, and CMCTL for Oracle 8i.
CMGW/CMGW80
This gateway process acts as the hub of the Connection Manager.
The function
of CMGW is to:
- register with CMADMIN
- listen for incoming SQL*Net 2.x or NET 8.x connection requests
By default it listens on port 1610.
- initiate connection requests to NET 8.x listeners for clients
- relay data between the client and server
- answer requests initiated by CMCTL/CMCTL80
CMADMIN/CMADM80
This is a multi-threaded process that is responsible for all administrative
issues of the Connection Manager.
information in the Oracle Names Server for the SQL*Net 2.x and NET 8.x
clients.
The
CMAN periodically goes to the Names Server to update its cache of available
services.
CMCTL/CMCTL80
This utility provides administrative access to CMADM/CMADM80 and CMGW/CMGW80.
CMAN cannot be stopped if there are connections currently going through it.
CMCTL VERSION
This command provides the version number of the control utility.
The version
Configuration
------------The clients require tnsnames.ora or Oracle Names Server, the Connection
Manager requires a cman.ora, and the server requires MTS setup in the
init.ora.
Client Configuration
-------------------Example of a normal tnsnames.ora entry:
EXAMPLE=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=SERVER.US.ORACLE.COM)
(PORT=1521)
)
(CONNECT_DATA=
(SID=ORCL)
)
)
A tnsnames.ora entry set to use the Connection Manager with a single protocol:
EXAMPLE_CMAN=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=CMAN.US.ORACLE.COM)
(PORT=1610)
)
(ADDRESS=
(PROTOCOL=TCP)
(HOST=SERVER.US.ORACLE.COM)
(PORT=1521)
)
)
(CONNECT_DATA=
(SID=ORCL)
)
(SOURCE_ROUTE=YES)
)
CMAN, the second address is used by the CMAN to connect to the server.
can have multiple CMAN addresses in the ADDRESS_LIST if necessary.
You
The CMANs
basically act as routers, pointing the connection request to the next hop.
protocols:
EXAMPLE_CMAN=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=SPX)
(SERVICE=CMAN)
(ADDRESS=
(PROTOCOL=TCP)
(HOST=SERVER.US.ORACLE.COM)
(PORT=1521)
)
)
(CONNECT_DATA=
(SID=ORCL)
)
(SOURCE_ROUTE=YES)
)
In this example, the client will use SPX to connect to the CMAN, then the CMAN
will use TCP/IP to connect to the server.
If there is more than one route to the server, then use the DESCRIPTION_LIST
parameter introduced with SQL*Net 2.3.
DESCRIPTION_LIST parameter:
EXAMPLE_ROUTES=
(DESCRIPTION_LIST=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=CMAN1.US.ORACLE.COM)
(PORT=1610)
)
(ADDRESS=
(PROTOCOL=TCP)
(HOST=SERVER.US.ORACLE.COM)
(PORT=1521)
)
)
(CONNECT_DATA=
(SID=ORCL)
)
(SOURCE_ROUTE=YES)
)
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=CMAN2.US.ORACLE.COM)
(PORT=1610)
)
(ADDRESS=
(PROTOCOL=TCP)
(HOST=SERVER.US.ORACLE.COM)
(PORT=1521)
)
)
(CONNECT_DATA=
(SID=ORCL)
)
(SOURCE_ROUTE=YES)
)
If using Oracle Names Server, the Connection Manager will automatically update
the addresses in the Names Server, inserting the address for the CMAN into the
existing address.
is used.
- FALSE or not defined, then a path is picked at random.
three sections:
1) CMAN - contains the listening address for the Connection Manager.
2) CMAN_PROFILE - contains CMAN configuration parameters.
3) CMAN_RULES - contains the rules for filtering incoming connection requests.
CMAN=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=SPX)
(SERVICE=CMAN)
)
(ADDRESS=
(PROTOCOL=TCP)
(HOST=CMAN.US.ORACLE.COM)
(PORT=1610)
)
)
In this example the CMAN is listening on two addresses, SPX and TCP/IP.
The
CMAN can listen on any protocol that Oracle supports on the platform the CMAN
is running on.
CMAN_PROFILE=
(PARAMETER_LIST=
(MAXIMUM_RELAYS=64)
(LOG_LEVEL=0)
(TRACING=YES)
(RELAY_STATISTICS=YES)
(SHOW_TNS_INFO=NO)
(USE_ASYNC_CALL=YES)
(AUTHENTICATION_LEVEL=0)
)
MAXIMUM_RELAYS = n
- determines the maximum number of concurrent connections allowed
- default is 8
- maximum value allowed is 1024
LOG_LEVEL = n
- determines the level of logging performed by the CMAN
- default is 0, which means no logging is performed
- value of n can range from 0 to 4
AUTHENTICATION_LEVEL = [0 | 1]
- 1 instructs the CMAN to reject connect requests that are not using Secure
CMAN_RULES=
(RULE_LIST=
(RULE=
(SRC = shost)
(DST = dhost)
(SRV = services)
(ACT = accept | reject)
)
)
NOTE:
is permitted.
The Connection Manager can apply access control (CMAN_RULES) only in an TCP/IP
network.
Server Configuration
====================
To use the new features of NET8, you are require to configure a Connection
Manager, as well as configure the server for Multi-Threaded Server (MTS).
MTS
The parameters for NET8 MTS themselves have not been changed from those of
SQL*Net 2, except the format of the MTS_DISPATCHERS parameter has changed when
using the Connection Pooling and/or the Multiplexing features of Oracle8.
MTS_DISPATCHERS parameter:
MTS_DISPATCHERS ="(PROTOCOL=TCP)(POOL=NO)(MULT=ON)"
This example sets up dispatchers for TCP/IP, disables Connection Pooling, and
enables Multiplexing.
be used, then the MTS parameters as defined for SQL*Net 2.x can be used.
more detailed information on MTS see the Oracle Server Concepts manual or
For
When using the Connection Manager, a new parameter must be set in the
INIT.ORA. Since the Connection Manager makes one physical connection to the
instance, the instance's dispatcher needs to know the maximum number of client
sessions to allow.