Is my db using MTS or shared server?

hi guys,
(Oracle 9i)
I read that to specify a database as MTS, you have to set the DISPATCHERS parameter. I do not have this set, yet, I can see values for mts_dispatchers? Why is this?
SQL> show parameters DISPAT
NAME TYPE VALUE
dispatchers string
max_dispatchers integer 5
mts_dispatchers string
mts_max_dispatchers integer 5
Can I be sure that my DB is in dedicated server mode, as dispatchers is not set?
thanks

Hi OracleGuy777,
In general, OLTP-type applications can be suitable for MTS, while batch, data warehouse, and decision support applications are usually not appropriate for MTS.
Conclusion: If a system is CPU-bound and that system has enough RAM to fit all of its processes into physical memory, then MTS should probably not be used on that system. (Please see links and notes bellow)
You can see the number of MTS sessions using:
SELECT COUNT (*)
FROM   v$session
WHERE  server != 'DEDICATED';To see the number of Dedicated ones, just change != for = in the WHERE clause.
Tom Kyte notes that the MTS should not be used without a "real reason" and he notes that shared server connections are slower than with dedicated database connections (Oracle's default behavior):
- http://asktom.oracle.com/pls/ask/f?p=4950:...D:5269794407347
+"Unless you have a real reason to use MTS -- don't."+
+"a shared server connection is by design "slower" than a dedicated server (more stuff goes on, more complex) it is most likely only getting in the way."+
+"In the golden age of client server way back when -- you might have 100 users connected to the database from 9-5, but at any point in time, only 5 or 6 of them were actually ACTIVE. In this case, 5 or 6 shared servers would be perfect."+
+"if you were cpu starved and context switching like mad -- the dedicated server connection could be running at a slow speed itself, slower than the extra work that shared server would impose. therefore, lightening up the load on the server could be beneficial...."+
Also take a look here: http://www.dba-oracle.com/t_mts_multithreaded_servers_shared.htm
If you decide to try it, here are the steps:
- http://download.oracle.com/docs/cd/B10500_01/network.920/a96580/mts.htm#447168
Cheers,
Francisco Munoz Alvarez
http://www.oraclenz.com

Similar Messages

  • Shared server environment

    I am configuring 10G init file...for a DB
    I saw a parameter
    dispatchers='(PROTOCOL=TCP) (SERVICE=BIGSPXDB)'
    I read this parameter should be used only in shared server environment..
    Can anybody help me on 'how to find if the database is running in shared server or dedicated server environment'
    Regards
    Soundar Mahendran

    hi,
    show parameter shared_servers
    read the link i'll explain a lot
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/manproc003.htm
    regards,
    Deepak

  • Port use in Shared Server (MTS)

    Hi,
    Before I start; let me state it clear: If I had a choice to refuse shared server, then I would. But I am under pressure of management and other limitations. Therefore I have no option but to use shared server.
    The current situation is: We use dedicated connections and plan to convert it to shared servers. There is a firewall between application server and database. This firewall only allows to some predetermined ports (such as 1521). We want to learn if we will be affected by firewall if we use shared server structure. When we use "lsnrctl services" we see that dispatcher ports are assigned automatically. (And these port numbers are between 40.000 and 50.000)
    I want to be sure about how listener works. As we think, there can be two scenarios:
    1. When a user connects to database, it only works with listener. Listener is the bridge between user and client. Therefore dynamically assigned port number to dispatcher is not important. And firewall will not be an issue. Because user can access listener and listener is the servant between dispatcher and client. (So no change is needed for firewall.)
    2. Dispatcher's port is very important. Because after user is connected to the listener, user is assigned to a dispatcher and user is connected to database through that dispatcher's port. (Therefore we have to make changes in firewall.)
    Which scenario is true? Do we have to change our firewall configuration?
    Thanks for the all support...
    Cagatay
    BTW, I know it is possible to assign static port numbers to dispatchers. But if it is possible to use shared server without changing dispatcher settings, we would prefer this. (Without changing dynamic port behave of dispatcher.)

    Yes,
    The basic architecture.
    The listener is a broker only. There are no permanent connections between clients and the listener.
    The listener spawns a thread (the dedicated server process), this thread uses a different port.
    This is called 'port redirection'.
    A dispatcher can handle about 35 connections.
    You can fix the port of a dispatcher. but as soon as the number of clients increases, you will be forced to open additional ports.
    Your best bet is to set up Connection Manager to handle traffic between client and server, doing so you only need two ports.
    The server communicates with Connection Manager.
    Connection Manager is not installed by default.
    Sybrand Bakker
    Senior Oracle DBA

  • MTS (shared server) problem

    Hi,
    when i use MTS (shared server) architecture, after a while,
    i see 1500 sessions in v$session, but, about 4000 oracle processes in the operating system which hits the os user max process limit and get the following error.
    how can that be? 1500 sessions in v$session, and, 4000 oracle processes in OS.
    i can not reproduce the same case since this is production.
    in test, i tried to reproduce the case but even though, i create mts sessions once in a second, after 1 hour, no problem.
    shared_server=10
    max_shared_server=50
    max_dispatchers=2 (each with 250 connections)
    thanks,
    ORA-27300: OS system dependent operation:fork failed with status: 11
    ORA-27301: OS failure message: Resource temporarily unavailable
    ORA-27302: failure occurred at: skgpspawn3

    Afew things to check, firstly are the connections actually using shared server? check ther server column in v$session session may show as dedicated in which case th eocnnection is requesting a dedicated server and is ignoring the shared server configuration.
    next check v$process have you got 4000 processes listed there? if so you can connect them back to the sessions e.g.
    select vs.sid,vs.serial#,vs.username,vp.SPID,vp.PROGRAM
    from v$session vs,
    v$process vp
    where vs.PADDR=vp.ADDR

  • Modbus Ethernet read and write to a Eurotherm 6180XIO Modbus server using LV8.2 shared variables

    I am having EXTREME difficulty trying to establish communications with a Modbus device using LV8.2 shared variables.  The device is a Eurotherm 6180XIO Datalogger configured as a Modbus master.  The PC and a cFP-1804 are slaves.  All IP addresses are set correctly.  This approach using shared variables would seem simple, but I can't find any examples or proper guidance on how to get it working.  I am trying to avoid having to mess around with TCP/IP, OPC, or any other old-fashioned method.
    I have read many threads on related topics but none directly apply to this situation.  I have created a library containing a Modbus I/O server and shared variables bound to read and write holding registers.  I have followed all recommended tips for creating such variables but I can neither read or write data.  All data types are U16 due to Modbus protocol limitations.  I have also applied the LV x10 factor in the most significant digit in the register offset (6 digits instead of 5).
    I have a cFP-1804 on the same network which reads into the datalogger OK.  The registers I use are 31000 (for CH0 on module 0, 31002 for CH1, etc) and the data can be read as FLOAT32.  I have updated the firmwate on the 1804 to the latest level.  I cannot even get shared variables to read SGL values.  Using registers 301001 for CH0 and 301002 for CH1 I can only read U16 values, and not a 2-word SGL.
    Third party Modbus simulation software is able to write to and read from registers very easily, but not LabVIEW.
    Some questions are:
    - do I use a Modbus master or slave as an I/O server in the library as a target for binding the shared variables?
    - is there some other wierd translation in register offsets between LabVIEW and traditional Modbus?
    - is this actually possible using shared variables or am I wasting my time?

    Sending the whole 60-character string using a string or array would be the most efficient.  I have tried both methods, and these only cause the datalogger to flag a message log but no text is displayed.
    For a string variable, I have used the following binding "My Computer\Modbus Test.lvlib\ModbusServer6180\442305", where ModbusServer6180 is a Modbus I/O server configured with the logger IP address, and 42304 is the register offset at the start of the text block in the logger.  I need to write to 30 consecutive registers starting with this one.  I am not using buffering and have not enabled single writer.
    Can anyone confirm whether this method should work in 8.2?
    Does the string need a special termination character?

  • How to trace a module that uses shared server sessions?

    I have an app (Esri's ArcGIS Server 9.3.1) that I want to trace. Oracle is at 11.2.0.2.0. Our OEM is is at 10.2.0.4.0.
    When I initiate a trace for the module (ArcSOC.exe) in OEM, I can see a trace file start to grow larger. But it seems to be a trace file that already exists (example: <instance>s00022493.trc). To isolate activity to just the duration of time I'm interested in, I'd like to start with a fresh trace file. Is there any way to do that? Must I delete currently active trace files or would that cause a failure?
    When tracing a dedicated server session, I've noticed that a new trace file will be generated with "ora" in its name. Evidently not so with shared server stuff, whether it's tracing a module or a particular session. When the shared server model is used, it seems Oracle wants to reuse existing trace files. And since trace files an get quite large, it would be difficult to open the trace file in an editor and remove the pre-existing, older activity that I don't want to work with.

    See http://www.oracle-base.com/articles/10g/SQLTrace10046TrcsessAndTkprof10g.php for various ways. Delete the trace file before you begin. See http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#i20110

  • How to find if a SAP Application uses Shared server process ??

    Hi,
    Please find the details below wrt to SAP application:
    SAP Release : SAP ECC 6.0
    Oracle database Version : 10.2.0.4.0
    Can you please tell me how to find if my SAP application  with oracle  uses Shared server mode or Dedicated server mode for oracle database access??
    regards,
    Arul S

    Hi Nick,
    Thanks for your reply.
    I am also pasting the output of "lsnrctl services"
    LSNRCTL for HPUX: Version 10.2.0.4.0 - Production
    Copyright (c) 1991, 2007, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=R1Q.WORLD))
    Services Summary...
    Service "R1Q" has 1 instance(s).
      Instance "R1Q", status UNKNOWN, has 2 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
          "DEDICATED" established:269921 refused:0
             LOCAL SERVER
    The command completed successfully
    This looks like dedicated connection with the Oracle database..
    Can you please comment on this?
    Regards,
    Arul S

  • OCIConnectionPool vs MTS(shared server)

    What are the pro's and cons for using OCI connection pooling in the middle tier as opposed to Multi-threaded servers connection pooling on the database tier? Any thoughts or experiences would be appreciated.

    What are the pro's and cons for using OCI connection pooling in the middle tier as opposed to Multi-threaded servers connection pooling on the database tier? Any thoughts or experiences would be appreciated. OCI connection pool allows you to manage your connections and sessions programmatically, including provide QoS if required to certain session.
    MTS just forces a large number of connections to use a set of server processes. User has no control on the priority of a request, and is dependent on the scheduling in MTS and the server.
    If there is sophisticated midtier that knows how to schedule its request, OCI connection pooling is more scaleable and performant solution.

  • In NW04s, what is Application Sharing Server used for?

    We are implementing NW04s.  But not sure what is
    the exact functionality of "Application Sharing Server".
    Could anybody explain?
    Thanks!

    Hi,
    This SAP help may give some idea-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/71/de3d4124b08739e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/94/5534414b75de2be10000000a1550b0/frameset.htm
    Regards,
    Moorthy

  • SAP db upgrade to Oracle 10G 64 bit - Dedicated or Shared Server ?

    We current run 32bit servers ( approx 150 users ) and plan to migrate to ECC 6.0 on 64bit bit server. Question about upgrade <br>from Oracle 9.2.0.8 32bit to 10.2.0.4 64 bit . Database upgrade Oracle 64 bit should be Dedicated or Shared Server? <br><br>
    My understanding ( limited), is Oracle 64bit dedicated server connection has the dedicated resource so whether or not a user is<br> doing work the connection remains allocated to that user. So for example, in our case a small Windows "shop" will needs <br>around 2MB of kernel space. So 150 threads, for 150 dedicated server connections, approx 150 x 2MB RAM.  Correct ? <br><br>
    Whereas Shared server the user connection is shared, that is user is connecting by dispatchers and when a user is idle his <br>resource can be used by other users, thus lessen the load on system. So in this case maybe 5 dispatcher processes and <br>30 shared server processes to service the 150 sessions of the 150 users which seems very effective to me . <br>My main concern however is with some of the Finance people who get problems with huge COPA and SIS reports now which is <br>why we are moving to 64bit OS/DB/SAP<br><br>
    Question is which does SAP ECC 6.0 support ( or recommend ) Oracle 64 bit Dedicated or Shared Server db migration ?

    > Question is which does SAP ECC 6.0 support ( or recommend ) Oracle 64 bit Dedicated or Shared Server db migration ?
    Never heard that anyone uses shared Server Setup with SAP.
    With SAP, it is NOT the user having a DB connection.
    It is the workprocess, and it is keeping it even if all users are idle.
    You allways have dedicated Oracle processes for SAP Workprocesses.
    The rather old note 70197 states, that Oracle MTS (multi threaded server)
    allowed, but you are on your own to configure it and there are some pitfalls.
    Volker

  • Question about Oracle Shared Server Performance

    Is it true that the performance of the Oracle Shared Server on Windows plataformns, like 2003 server is poor. ?
    And so that, I cant see any advantages to change its configuraton, on a 200 users configuration, where I can have at most 2.000 session.
    Tks for help and some tips if you guys have them.
    Fernando

    Hi Fernando,
    Is it true that the performance of the Oracle Shared Server on Windows plataformns, like 2003 server is poor. ? In general (not just Windows), shared servers (the MTS) should only be used if you have an acute RAM shortage.
    Tom Kytes notes:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:5269794407347
    "Unless you have a real reason to use MTS -- don't."
    "a shared server connection is by design "slower" than a dedicated server (more stuff goes on, more complex) it is most likely only getting in the way."
    Also, remember that you can use AWE to take the data buffer above the line and free-up more low-memory RAM for connections. Here are my notes:
    http://www.dba-oracle.com/oracle_tips_ram_waste.htm
    http://www.dba-oracle.com/t_mts_multithreaded_servers_shared.htm
    My experience concurs that Oracle shared servers should not be used without a compelling reasons (i.e. super high connect/disconnect rates on an instance with limited resources) and that the vast majority of Oracle databases will run more efficiently without shared servers.
    Dedicated server connects are far faster than multi-threaded server connections, and 64-bit Oracle combined with the low cost of RAM has driven-down the rare cases where shared servers are justified.
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author

  • What found dead shared server error mean?

    Please, I found the error found dead shared server in my alert.log file and I need to know what cause this error?
    If it is critical?
    What I should look up?

    There is a known issue with using heterogenous services routine and MTS. Kuljeet is correct. Most probably you are hitting bug 3243584. You may have to check with oracle support on this!
    -Ramesh

  • "found dead shared server" in alert.log

    Hi.
    I am getting the following message in the alert log of 10.2.0.2 database.
    Fri Feb 2 11:13:54 2007
    found dead shared server 'S005', pid = (32, 3)
    Fri Feb 2 11:14:24 2007
    found dead shared server 'S005', pid = (32, 4)
    Fri Feb 2 11:59:48 2007
    found dead shared server 'S001', pid = (11, 1)
    found dead shared server 'S005', pid = (32, 5)
    Fri Feb 2 12:00:04 2007
    found dead shared server 'S001', pid = (80, 165)
    found dead shared server 'S001', pid = (80, 166)
    What does it mean actaully...
    will it affect(what impact) my database.
    Thanks
    JD

    Hi,
    Are you using MTS feature? If yes,
    Then as given in the site:
    http://searchoracle.techtarget.com/tip/0,289483,sid41_gci1018471,00.html
    major issue I have seen with MTS is the dispatcher process getting abruptly killed. For some unknown reason the dispatcher process all of a sudden dies, killing the connected sessions. The following is an extract from the alert.log file for one such error:
    Wed Sep 8 09:07:35 2004
    Errors in file /u01/bdump/abc_d050_521.trc:
    ORA-07445: exception encountered: core dump [00000001026BA2D4] [SIGSEGV] [Address
    not mapped to object] [0x000000018] [] []
    Wed Sep 8 09:07:45 2004
    found dead dispatcher 'D050', pid = (667, 207)
    The dead dispatcher process is restarted once pmon cleans the in-doubt sessions. The workaround for this issue is to turn off the DCD (dead connection detection) feature. Set SQLNET.EXPIRE_TIME = 0 in sqlnet.ora file. This issue occurred in v9.2.0.4 and v9.2.0.5 and Oracle is currently working to resolve the same.
    I think you are not using MTS feature, otherwise you would have received errors
    like above & trace file would have been generated & error.ORA-07445
    If you are not using MTS feature,
    set the initialization parameter shared_servers = 0. also make sure that the parameter dispatcher is not set (it has no default) to anything.
    Message was edited by:
    Seema

  • Shared server/dedicated server process doubt?

    when oracle database is not configured for shared server is it compulsay to include SERVER=DEDICATED clause in the connect descriptor.?
    Thankx.

    Hi,
    is it compulsay to include SERVER=DEDICATED clause in the connect descriptor.?No, the MTS is defined at startup time, via the MTS parms.
    Here is a sample of shared server definition in the init.ora file:
    # Multi-threaded Server parameters
    local_listener="(address_list=
    (address=(protocol=tcp)(host=sting.janet.com)(port=1521))
    MTS_MAX_DISPATCHERS=5
    MTS_MAX_SERVERS=20
    MTS_DISPATCHERS="(ADDRESS=
    (PROTOCOL=tcp)(HOST=sting.janet.com))(DISPATCHERS=3)
    service_names=testb1
    http://www.dba-oracle.com/unix_linux/epc_disabled.htm
    However, be aware that the MTS is not a panacea, especially at times when you want to invoke a dedicated process for your program. For Pro*C programs and I/O-intensive SQL*Forms applications, or any batch processes that have little idle time, you may derive better performance using a dedicated listener process. For shops that segregate task into online and batch modes, the DBA sometimes create separate listeners—one with the MTS and another for dedicated connections.
    Hope this helps. . . .
    Donald K. Burleson
    Oracle Press author

  • Shared Server converted to Dedicated (WAIT(RECEIVE))

    Hi,
    I have an Oracle 9.2.0.7 and using MTS. Someone know why when I start my JBoss application 20 shared servers are in statu WAIT(RECEIVE)? I saw in metalink that this status means that my shared servers were converted to dedicated! How can I turn those connection to shared again?
    Thanks in advance,
    Paulo Almeida
    São Paulo/SP- Brazil

    Hi Paulo,
    Do you have a RAM shortage on your server?
    http://www.dba-oracle.com/t_mts_multithreaded_servers_shared.htm
    My experience concurs that Oracle shared servers should not be used without a compelling reasons (i.e. super high connect/disconnect rates on an instance with limited resources) and that the vast majority of Oracle databases will run more efficiently without shared servers. Dedicated server connects are far faster than multi-threaded server connections, and 64-bit Oracle combined with the low cost of RAM has driven-down the rare cases where shared servers are justified.
    Oracle's Tom Kyte notes:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:5269794407347
    - "Unless you have a real reason to use MTS -- don't."
    - "a shared server connection is by design "slower" than a dedicated server (more stuff goes on, more complex) it is most likely only getting in the way."
    Hope this helps. . .
    Don Burleson
    Oracle Press author
    Author of “Oracle Tuning: The Definitive Reference”
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

Maybe you are looking for

  • How do I change the lettering size on my HP Photosmart 5512?

    I need to know if there is any way to change the size of the lettering when I print something? When I print the size on the paper comes out jumbo.. How do I make it normal size so I am not wasting so much paper? I have an HP Photosmart 5512 series pr

  • Thinkstation D30 memory modules

    Hello, I have a D30 with 2x Xeon E5. I want to change memory to 32 GB. In order to keep upgrading possible I want to use 16 GB Rdimms. In the Manual is stated: • If your computer has two microprocessors installed, install equal numbers of memory modu

  • You can ignore this question

    You can ignore this message. I posted a question but then realized I was just confused and I figured out the answer. However, I don't see a way to delete this message. But please ignore it. Hi. I just upgraded to ITunes 11. I also have an IPod Touch.

  • Need Code For This Scenerio

    Good Evening, i am Srinivas V, My actual requirement is that in a JSP Page I had a Link when i click the link in the new page A Text Box to be there if the word pre defined entered the web page content to be viewed else nothing should be displayed .

  • Can I have the option of rejecting messages from any particular mobile?

    Hello to all! Am new to iPhone. Mt previous inexpensive had this feature: I could bar any number from which I get uneeded messages. I have tried to do so on my iPhone 5 and have not been able to find such a feature. Is there any such feature on this