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

Similar Messages

  • Reg : Shared server process or dedicated server process

    Hi,
    Apologies if i have asked a silly question.How do we know whether our DB is running in dedicated server process or shared server process.

    Hi,
    How do we know whether our DB is running in dedicated server process or shared server process.
    I assume that, you are asking about the view of Oracle Processes in different OS Platform.
    In a UNIX environment, Oracle processes (also other DB Processes) can be viewed as individual system processes.
    On Windows platform Oracle Processes  (also other DB Processes) are implemented as threads that run within one common Oracle operating system process, oracle.exe (e.g. in DB2, db2syscs.exe process). These processes are not visible when you list processes at operating system level.
    Regards,
    Bhavik G. Shroff

  • Convert from Delicated to shared server

    Hi using oracle 9.2 any advise on how i can change the server mode from delicated to shared?
    Thanks for any info

    There is no such things as 'shared server mode' or 'dedicated server mode'.
    You can confiugure your server to accept shared, as well as dedicated, connections. To do that you set up the appropriate initialization parameters to tell the system how many connections you want to allow, how many are to be handed to dispatchers, how many shared server processes you want to support, etc.
    It's best to review the concepts manual for the general architecture. Links to the appropraite area ffor 9i and 10g are
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96524/c09procs.htm#19210
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/process.htm#sthref1644
    After you have an idea how this works, head over to the Administator's Guide at http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/manproc.htm#13880 to learn about the parameters and how to set them.

  • When we go for shared Server environment?

    When we go for shared Server environment from Dedicated server mode?
    When we have to choose thi shared Server mode?
    Which is the optimized way?

    > When we go for shared Server environment from Dedicated server mode?
    You do not. It is not one or the other - it is using both correctly. You want shared server sessions to service applications (any, from web/app servers to flat clients) that are OLTP in nature. They fire off short-and-sweet SQLs that takes a second or three to execute.
    A shared server pool of a few processes can service a very large number of clients.
    You want to use dedicated servers to service OLAP type clients. They fire off complex SQLs that can tie up the server processes for several minutes at a time.
    And that in a nutshell is how to apply the two. It is not Shared Servers versus Dedicated Server. It is about using The Right Tool For The Job. Nothing more and nothing less.
    As for Windows, I will not really bother quickly with shared server connections. On Windows both shared and dedicated servers runs as threads in the main Oracle executable process image.
    There is thus very little resource saving by reducing the number of threads as the footprint of a thread is tiny in comparison to a brand new process. The amount of resources saved by a reducing the number of dedicated server threads is not significant. If anything, Oracle on Windows has shown to scale better than Oracle on Linux in this regard. (refer to [url http://www.perftuning.com/pdf/Comparison_Oracle_Windows_Linux.pdf]A Comparison of Oracle Database 10gR2 Real Application Cluster Performance on Microsoft Windows 2003 Server Enterprise Edition x64 and Red Hat Enterprise Linux x86_64 from the Performance Tuning Corporation).
    And this is exactly the opposite of how Oracle behaves on Unix. Each server process is a physical kernel process. This means that a servicing a 1000 concurrent sessions with a 1000 dedicated server processes, each consuming memory and resources, are expensive. Conversely, supporting a 1000 concurrent sessions with a 100 shared server processes is (almost) 90% cheaper.
    This makes Shared Server a desirable option to use to scale OLTP sessions on Unix-based systems (or any platform where Oracle does not use multi-threading but multi-processing).
    PS. As the Linux kernel support Posix threads (see http://en.wikipedia.org/wiki/Native_POSIX_Thread_Library), it begs the question as to when Oracle is going to support multi-threading on Linux instead of multi-processing.. or at least give us the option to choose.

  • Shared server and dispatcher configuraiton

    Hi All,
    Can any one suggest what are the changes requried if I want to use Shared server instead of Dedicated server in my oracle 10.2.0.4 setup?
    is there any configuration requried for dispatcher separtely (I am using TCP/IP protocol with default listener port 1521)?
    is it requried to restart database?
    Thanks...

    Start from here :-)
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm#ADMIN00502

  • 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

  • WAIT(RECEIVE) issue in shared server

    I am reading cursor in a thread in C# side. When I stop the thread before fully reading the cursor, then the STATUS in v$shared_server shows WAIT(RECEIVE). If the cursor is fully read then v$shared_server does not contain WAIT(RECEIVE) status. So to avoid this issue one possible solution is to read the cursor fully in background. I am using Oracle 10.2.0.1 and my server is Shared Server.
    Please suggest any other solution for this issue.
    Thanks in Advance.
    Regards
    Neena

    Hi,
    Could you try the following to migrate the logins and check the result?
    1. You may drop all the windows login. Modify the script generated by sp_help_revlogin step and replace create login
    to drop login.
    2. Use the script generated by sp_help_revlogin step to create
    Logins. Modify login name to accommodate new domain name.
    3. Grant server level roles using the output from:
    Generate Server level role related info :
    SELECT 'EXEC sp_addsrvrolemember ''' +
    p.name + ''' , ''' + r.name + ''';'
    FROM
    sys.server_principals r
    INNER JOIN sys.server_role_members m ON r.principal_id = m.role_principal_id
    INNER JOIN sys.server_principals p ON
    p.principal_id = m.member_principal_id
    WHERE
    r.type ='R'
    Sample Output :-
    EXEC sp_addsrvrolemember 'sa' , 'sysadmin';
    4. Map the SIDS using below command for all DB by using ALTER USER. For example:
    ALTER USER [DomainA\UserA] with login = [DomainB\UserA]
    See:
    http://blogs.technet.com/b/mdegre/archive/2011/06/27/can-i-move-sql-server-to-another-domain.aspx
    Here some useful articles:
    http://www.databasejournal.com/features/mssql/article.php/3922256/Re-generating-SQL-Server-Logins.htm
    http://support.microsoft.com/kb/918992/en-us
    http://support.microsoft.com/kb/240872
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to convert a dedicated running oracle server to a shared server

    i need help as to how to convert a dedicated running oracle server to a shared server.(step by step plz i am fairly a fresh person)
    there are presently 10 users but have to configure for 125 users accessing from 5 locations.
    also need how to implement connection manager

    125 users are not so much, unless your database server is a quite small one. Anyway, you have to configure Dispatchers and Shared Servers. See Configuring Oracle Database for Shared Server
    About Connection Manager see Configuring and Administering Oracle Connection Manager

  • Converting from dedicated server to shared server

    Hi,
    How to convert from a dedicated server configuration to a shared server configuration.
    Thanks
    Muneer

    SHAN@2009 wrote:
    Hi
    I am using Oracle 11g Database Release 1 OS Windows 2003 Server R2 SP2, I have Created a Database and the database server mode is "Shared' recently my user request me to change server mode into Dedicated for there testing Purpose.what are the Parameters i have set in the ini file for converting the server mode from Shared to Dedicated.
    Please advice .
    Thanks
    ShanIt's not an either/or situation, as the database does not "run in shared server mode" vs. "run in dedicated server mode". A database will *always* accept dedicated connections if requested by the client. It *may* accept shared server connections -- *if* requested by the client *and if* it is configured to accept them.

  • How to convert dedicated server-mode to shared server-mode ?

    Hi
    I am having 3 oracle client machines(each with sql*plus or Toad tool),all these 3 client are to be connected through Jboss-4.0.5(application server) to Oracle 10g database server.
    [ all 3 clients + 1 application server + 1 database server are with different ip address]
    Question-1
    Is it possible to convert a running Oracle-10.1.0.2.0 database server in[b] Windows server-2003 os from dedicated server-mode to shared server-mode ?
    Question-2
    What all are the init parameters I have to change ?
    So far I have changed (a) alter system set shared_servers=5;
    (b) alter system set dispatchers=(pro=tcp)(dis=3);
    (c) alter system set max_dispatchers=10;
    (d) alter system set shared_server_sessions=5;
    (e) alter system set circuits=300;
    Question-3
    How to configure Listener in the Client system ?
    Question-4
    What all are the changes to be made in Jboss server ?
    Regards
    Sbmk_design

    ad 1) Yes this is possible
    Ad 2) From the top of my head, these seem like the settings to change
    Ad 3) You do not have to change the listener (ow.. and clients have no listener) just make sure that you do not have '"server=dedicated" in your local tnsnames.ora file
    Ad 4) in jboss, just check your datasource. If it is using a thin connection you are ok, if you are using a oci connection check the tnsnames.ora file.

  • Convert dedicated server to shared server in oracle 10g

    Dear,
    Anybody help me how to change dedicated server setting into shared server in oracle 10g.
    Regards,
    Saeed ul haq

    Refer to Oracle Documentation :
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/intro.htm#sthref54
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/plan.htm#sthref570
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/dispatcher.htm#i453786
    Regards
    Rajesh

  • Shared server wait(reset)

    Hi,
    I have a problem with shared servers.
    On a RAC database, 2 instances, I use shared servers.. 30 for each instance.
    recently the shared servers become in a wait(reset) status . a that moment, the connexion becomes very long and queries take a long time to execute.
    I added 30 shared servers on each instance with no amelioration. everything works fine when the shared servers status comes back to wait(common).
    any idea why the shared servers become in the wait(reset) status ?
    any ways to prevent (solve) this?
    is it a consequence of something else ?
    ... dedicated conn always works fine...
    tks
    JP

    Hi,
    What does the v$shared_server view tell you about these servers when they are in wait(reset) status?
    Edit: This link http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10755/dynviews_2093.htm gives more information about the statuses in v$shared_server.
    WAIT (RESET) means "Waiting for a circuit to reset after a break"
    Also have a look here: http://oracletoday.blogspot.com/2005/08/configuring-shared-server.html
    HTH
    FJFranken
    Edited by: fjfranken on 18-jul-2011 6:33

  • 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

  • Dedicated Server Process or Shared Server Process

    Hi,
    I am little confused to justify the number of users that may be best to use dedicated server process or shared server process.
    Kindly advice.

    In addition, make sure you account for administrative issues. It's a lot more challenging to trace applications using shared server connections. Shared server configurations also tend to introduce a variety of gotchas into a DBA's world-- at a minimum, most articles you find on the internet tend to ignore any shared server specific issues. That's one of the reasons that I tend to be of the opinion that if you have to ask, you probably don't need to enable shared server.
    Justin

  • 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

Maybe you are looking for