Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Setting up MTS on Ora 7.3.4
MTS is configured on a 'per-instance' basis and is set in the init<SID>.ora file.
The main parameters are explained below:
MTS_SERVICE Defines the SERVICE name that the dispatchers will register with the listener. As pre-configured services use the ORACLE_SID for the service name there are 2 options forsetting the MTS_SERVICE.
MTS_LISTENER_ADDRESS or LOCAL_LISTENER This should be an address on which the listener is KNOWN to be listening as it tells the dispatchers where to register. MTS_DISPATCHERS Several lines can list the protocol and number of dispatchers for that protocol. NOTE: Some protocols do NOT support MTS. A dispatcher MUST be able to handle existing connections AND be notified of any new connect requests. If a protocol or itsoperating system interface cannot support this mode of operation the protocol
cannot be used for MTS connections. MTS_MAX_DISPATCHERS Maximum number of dispatchers to allow. MTS_MAX_SERVERS Maximum number of shared servers to allow. MTS_SERVERS Initial number of shared servers. Note that as shared servers and dispatchers may be started at database startup OR at a later point in time any interim changes to the SQL*Net configuration files may be picked up by newly started processes. This can lead to some confusion - it is advisable to restart all processes if there have been any major configuration changes.
Example additions to 'init<SID>.ora'
# ---------------------------------------------------------------------startup
# Example init.ora extension to start MTS dispatchers
# mts_service= "MV713" <-- Choose a SERVICE name for MTS
# This is the ADDRESS of a LISTENERs Listen End Point so we can
# register our service
mts_listener_address="(ADDRESS=(PROTOCOL=ipc)(KEY=mysid))" mts_dispatchers= "ipc, 1" <-- Start 1 IPC dispatcher mts_dispatchers= "tcp, 1" <-- And 1 TCP dispatcher mts_max_dispatchers=10 <-- No more than 10 mts_max_servers=10 <-- and no more than 10 servers mts_servers=4 <-- Start 4 servers at
Checking an MTS connection
lsnrctl services This should list the dispatchers that have registered with the listener. If no dispatchers have registered check for RDBMS trace files as in step (d). f) Check the output of 'lsnrctl services' to ensure that all dispatchers (or prespawned servers) show valid listen end points. Ie: (ADDRESS=...) shows a valid address. If not they may not be contactable. Eg: For TCP/IP if (HOST=0.0.0.0) then it is likely that your system does not have 'hostname' set OR the hostname that IS set is not defined in your /etc/hosts file. g) Use 'sqlplus system/manager_at_mtsalias' where mtsalias is analias in the tnsnames.ora file that will try to connect to an MTS service for your database.
h) Once connected check that you have an MTS connection thus:
select username, program, server from v$session whereaudsid=userenv('sessionid');
This should return a row for your session that shows server as SHARED. If it shows 'DEDICATED' you have a DEDICATED connection.
"The Views expressed here are my own and not necessarily those of Oracle Corporation"
Tony Adolph <tony.adolph_at_viaginterkom.de> wrote in message news:822ur6$423$1_at_nnrp1.deja.com...
> Hello All, > > Has anyone any hints, tips and/or short cuts for configuring, setting > up and tuning Multi Threaded Server on Oracle 7.3.4? > > The database is running on an NT 4 server with 2 processors, there are > about 40-50 concurrent connections at any one time. > > Any pointers appreciated, > > Cheers > Tony > > > Sent via Deja.com http://www.deja.com/ > Before you buy.Received on Wed Dec 01 1999 - 10:10:51 CST
![]() |
![]() |