Configuring Shared Server (or Multi-Threaded Server) Networking TipsCopyright © Howard Rogers 2002 17/03/2002 Page
1 of 9
Configuring Shared Server (MTS)
A true story: the first time I taught the Oracle Networking course, my class spent nearly 4hours trying to get Multi-Threaded Server configuration working. And not a single student(still less the Instructor, yours truly) could get the damn thing to work. Then one of thestudents hit the space bar when editing his tnsnames.ora, and Lo! Multi-Threaded Serverconfiguration suddenly sprang into life!!Fortunately, that was back in the bad old days of Oracle 8.1.5, and things have got steadilyeasier since then, with much less sensitivity to the odd space here and there. However, Imention this story to advise you that
Multi-Threaded Server (or Shared Server as it isnow known in 9i) refuses to work, stick with it… check your syntax
carefully.Given enough fiddling (and patience) it
be made to work.For the record, I run my test-bed 9i database at home in dedicated server mode. Justprior to starting this paper, I switched to Shared Server configuration. It was workingwithin three minutes.
Configuring the init.ora
Shared Server can be made to work with just two additions to your init.ora. First,
needs to be set to the number of dispatchers you want spawned when theInstance starts up, and the networking protocol you want them to work on. Second
needs to be set to the number of Server Processes you want spawnedand ready in the pool of shared Server Processes when the Instance starts up.And that’s all there is to it!With some slight provisos, naturally!! First, those parameter names are the 9i versions. In8i or before, they are called
respectively. Toconfuse the issue even more, if in 9i you do a
show parameter dispatcher
, you’ll seelisted both the new parameters and the old ones:
dispatchers string (PROTOCOL=TCP)(DISPATCHERS=2)mts_dispatchers string (PROTOCOL=TCP)(DISPATCHERS=2)
Likewise, both the new and the old SERVER parameters are available in 9i. For the hell of it, I’ve tested 9i using the old syntax, and it works perfectly well –but you are stronglyadvised to stick to the new parameter names, because the old ones are only there forbackwards compatibility, and there’s no telling when exactly in the future they will ceaseto function.