Advantage of createEnvironment in Shared mode

Hi,
Am looking for more information on what is shared when an environment is created in Shared mode.
We have a connection pool. For every task, a connection is made, statement is executed, statement is terminated and the connection is terminated. Next time the same task is executed, will there be any caching benefits from the previous execution?
Guessing that when you close the connection, all state is wiped out, hence there will be no advantage to the next guy?
Does creating an environment in shared mode keep some sort of statement cache?
Thanks much,
Nilofer

>>Am assuming I still need to do setStmtCacheSize(cacheSz).
All the Connections from a pool will inherit the statement cache size from the pool level setting. Everytime you get a session from a pool, it will have the stmt cache size set at the pool level. If you override that value by setting the stmt cache size on that Connection explicitly, tag that connection before you release it back to the pool, so that the stmt cache size value on that Connection is retained.
>>Do I also have to tag the statements? If I just do a terminateStatement(), since I have a statement cache, will the statement be automatically cached?
Yes. Tagging is not mandatory. It is useful for faster search.
>> On the same lines, if I do a createStatement(sql), will it return to me a statement matching the sql even though I don't provide the tag? (the documentation at http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10778/reference008.htm#i1069559 suggests so)
Yes.
>>When should one tag the statements in a cache? To improve the search performance?
Yes.

Similar Messages

  • Unable to generate SQL trace file in shared mode ??

    Hello,
    I have a 10.2.0.1.0 database on Win2003 server 64 bits, with several instances.
    On instances in dedicated mode, I can create trace files by using dbms_system.set_sql_trace_in_session, but on instances in shared mode nothing happens : no file is created in the udump directory.
    This doesn't make any sense to me o_O
    The shared parameters are the following :
    dispatchers=(protocol=TCP)
    shared_servers=1
    I've checked all the necessary parameters to create a trace file (user_dump_dest, timed_statistics, max_dump_file_size...) and everything is fine.
    I really don't understand why I can't create trace files when the instance is in shared mdoe...
    Can anyone help about this weird issue ?
    thank you !
    regards,
    Antoine

    Remember also that in Shared Server mode the trace information is not written to a single file but is written to the Shared Server trace file. Before Oracle 10g there was no way to pull all the trace information for a single user session together out of the trace files. There is a tool for doing so with 10g.
    HTH -- Mark D Powell --

  • Managing memory in shared mode

    Dear all,
    1. Is the oracle shared server mode assign equal memory each session?
    And where i can find the document about managing memory of shared server mode ?
    Thks for advance
    Chara

    Thanks hsawwan
    I cannot find the documents
    Note: 461063.1 - HR and Financials Applications Installed as Full Instead of Shared
    Note: 461063.1 - Changing Oracle Human Resources Installation from FULL HR/FULL Payroll Install to SHARED HR/SHARED Payroll Install
    in Metalink. Do you have any idea if thos documents still available?
    Those documents change HRMS from Install to Shared Mode when the application is already installed.
    Is any way to install HRMS in shared mode before install the application?
    Regards
    Alvaro

  • PSE 10 will print from the organizer and in sharing mode, but not from full edit

    I'm using pse10 on a computer with an i7 processor with 12GB of ram and windows 7 with a color laser printer.  The print function works fine while in organizer and sharing mode, but not from full edit.   When I try to print from full edit, I get an  error message with a red "X" on it that says:  "Before you can perform printer related tasks such as page setup or printing a document, you need to install a printer."  I can't figure it out.  The printer is in "ready" state, and works fine in the organizer mode, and in share.  Any thoughts on what I'm missing? Thanks for any help in advance.

    This occurs frequently with HP printers, though  others are implicted as well from time to time
    In Control panel>Devices and printers, right click your active printer, go to Printer Properties, and rename the printer to something short, e.g. my printer
    http://kb2.adobe.com/cps/865/cpsid_86566.html

  • Changing 'SYS' password in 'Shared' mode ?

    Oracle 9.2/AIx5.3
    I have two Db DB1/DB2, both of these Db's are in 'Shared' remote login password mode. Now, I was under the impression that whilst in this mode, it was not possible to simply issue a command
    alter user SYS Identified by <NEW PASSWORD>;
    to change the password, if you did, it would result in an error message. Today I have tried, and it allowed me to change the 'SYS' password ? How is this the case. I’ve tried it on a 10g Db that’s also running in 'Shared' mode and got the following error message.
    ERROR at line 1:
    ORA-28046: Password change for SYS disallowed

    Metalink 452959.1 states you cannot change or add users to the passwordfile when remote_login_passwordfile='SHARED' and you need to set this to 'EXCLUSIVE'. I had to look this up and I found it simply by searching for the error number.
    Assuming you are not running 10.2.0.1 you could have easily looked up yourself.
    Also as Oracle is always changing, differences between 9.2 and 10gR1 or R2 are best verified by looking in the release notes for that version, providing the quickest answer easily.
    Sybrand Bakker
    Senior Oracle DBA

  • Firewall Port for DHCP 2012 R2 Failover (Load Sharing mode)

    Hi Everyone,
    I was wondering if anyone can help me with finding a document for required Firewall Ports for DHCP 2012 R2 Failover (Load Sharing mode)
    or just confirm if this is correct or not ?
    TCP 647 for
    DHCP failover messages between DHCP servers
    TCP/UDP 67 and 68 initiate communication between the client and server
    I am not sure if there is anything else
    thanks in advance
    Reza Negarestani

    it was for a technical design document and I put this table for Firewall requirements what do you think ?
    Direction
    Port(s)
    Bidirectional
    TCP 647
    Bidirectional
    TCP 2535
    UDP 2535
    Bidirectional
    TCP 67
    TCP 68
    UDP 67
    UDP 68
    Reza Negarestani

  • Shared-mode Event-driven capture @ 44.1 KHz -- GetBuffer() returning inconsistent and incorrect number of frames

    I use WASAPI in shared-mode for render and capture in my application, and it works great with many different devices and sample rates from 8 KHz to 48 KHz.
    I am experiencing issues with certain devices capturing @ 44.1 KHz, however. For instance, my Microsoft LifeChat headset works fine, but the onboard microphone for my dell laptop causes some trouble. When my capture thread wakes up from WaitForMultipleObjectsEx(),
    I query for the NextPacketSize(). On some devices, I end up getting frames of 448 samples instead of 441, which completely throws off my logic as I am expecting integral size packets of audio. Then, after a few rounds of capturing 448 frames, I'll see a capture
    of 378 frames (or something like that).
    The device initializes properly (2 Byte PCM, 44.1 KHz) and returns S_OK. I am able to create an event and successfully set it with SetEventHandle(). My code is modeled after the examples for WASAPI capture. I'll post some sample code soon.

    /* Main Audio Loop */
    WaitForMultipleObjectsEx();
    UINT nextPacketSize = 0;
    hr = captureDevice.audioCaptureClient->GetNextPacketSize(&nextPacketSize);
    if (FAILED(hr))
    break;
    while (nextPacketSize != 0)
    UINT32 nRawFrames = 0;
    hr = captureDevice.audioCaptureClient->GetBuffer((BYTE**)&pbData, &nRawFrames, &dwFlags, NULL, NULL);
    if (FAILED(hr)) break;
    // Handle flags
    if (SUCCEEDED(hr))
    // Resampling
    ... // need integral # frames here
    // AEC and writing to buffer
    // Cleanup
    hr = captureDevice.audioCaptureClient->ReleaseBuffer(nRawFrames);
    if (FAILED(hr)) break;
    captureDevice.audioCaptureClient->GetNextPacketSize(&nextPacketSize);

  • Windows Server 2012R2 DHCP Load Sharing Mode

    Hello,
    I am planning to migrate a standalone DHCP Server on Windows 2003 to Windows Server 2012R2. With this migration, I like to use the 2012R2 Load Sharing Mode feature for DHCP. This implementation cover TWO sites.
    My initial plan was to have two Windows 2012R2 DHCP Servers (virtual) at each site thus servers at each offers site redundancy  as well. So two at Site 1 and two at Site 2 on load sharing mode. If ServerA at Site 1 goes down for some reason Server B
    at Site1 will service the DHCP clients in load sharing mode without going to Site 2. I came across a MS document that says:
    Number of Servers: DHCP failover is not supported for more than two DHCP Servers. The failover relationship is always comprised of two DHCP servers.
    Does this mean I can have only TWO DHCP Servers in a load sharing mode. One at Site 1 and the second one at Site 2??
    Thanks in advance
    TIA TP

    Hi,
    The DHCP failover relationship is comprised of DHCP server and its partner.  In a relationship there are just 2 DHCP servers.
    But this doesn’t mean you can just use 2 DHCP servers in your sites.  The DHCP failover setting is based on DHCP scope, for one DHCP scope there could be just one DHCP failover relationship including 2 DHCP servers. If you have more than 1 DHCP scope,
    for example, set DHCP failover relationship between DHCP server 1 and DHCP server 2 for scope A. then set DHCP failover relationship between DHCP server 1 and DHCP server 3 for scope B.
    The document Step-by-Step: Configure DHCP for Failover(http://technet.microsoft.com/en-us/library/hh831385.aspx) is a introduction about this function and for your reference.
    Depends on the DHCP scope’s configuration and the requirements of your network. You may enhance or customize the architecture of implementation.
    Best Regards,           
    Eve Wang  

  • Configuring dedicated/shared mode with DBCA wizard

    Hello,
    I've tried to configure several instances with DBCA wizard, both in dedicated and shared mode :
    - when dedicated mode is selected, dispatchers parameter is set like this : "dispatchers=(PROTOCOL=TCP) (SERVICE=sidXDB)", and all connections at the instance will be in by default dedicated mode, even if the "shared_servers" parameters is greater than 0
    - when shared mode is selected, dispatchers parameter is set like this : "dispatchers=(PROTOCOL=TCP)"
    I thought that the instance would run automatically in shared mode if the "shared_servers" parameters is greater than 0, but that's untrue
    Besides, I don't understand the link between the "(SERVICE=sidXDB)" option, which seems to be related to the XML database, and the connection mode to the instance.
    This is quiet confusing to me, there is obviously something I don't know or I don't understand
    Can anyone make it clear to a Oracle beginner ?
    Thank you for help !
    regards,
    Antoine

    SHARED_SERVERS alone is not enough, it needs a corresponding dispatchers setting, something like 'dispatchers=(PROTOCOL=TCP)'. By default during a 10g database creation a XML DB is configured and 'dispatchers=(PROTOCOL=TCP) (SERVICE=sidXDB)' is dedicated to this XML DB, this dispatcher cannot serve any other database service. That means normal database connections are created as dedicated ones.
    Werner

  • Get away from Shared mode

    I installed a DB on my Solaris 5.10 box. 11.2.0.3 is the version.
    Using DBCA I selected the SHARED mode.
    All my services I use are as follows:
    OLTP_D =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server-scan)(PORT = 8001))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = OLTP_DEV)
    Besides my default services (DB NAME), all are like this. Over the past 5 days as our users have been testing they have been complaining about performance. Looking at the top wait events, the same one always pops up, VIRTUAL CIRCUIT WAIT. I know I should not have gone with SHARED mode. How can I get rid of it completely?
    This is what I have so far for my parameter.
    SQL> show parameter dispat
    NAME                                 TYPE        VALUE
    dispatchers                          string      (PROTOCOL=TCP)
    max_dispatchers                      integerI have tried to NULL this field out but when I recycle the DB it just keeps coming back in there like its some sort of default value.
    I actually have 2 DB's on this server and this other DB I was able to make that field empty. How can that be? Is there another parameter that I need to change? Something in the listener?
    This is my listener in case someone wants to see it.
    dd0152alyn{grid}2: lsnrctl
    LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 31-JAN-2012 16:05:16
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Solaris: Version 11.2.0.3.0 - Production
    Start Date                11-JAN-2012 18:55:21
    Uptime                    19 days 21 hr. 9 min. 57 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /opt/grid/product/gi11r2/network/admin/listener.ora
    Listener Log File         /opt/grid/base/diag/tnslsnr/dd0152alyn/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.16.174.32)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.16.174.30)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
      Instance "+ASM1", status READY, has 1 handler(s) for this service...
    Service "APPRAISAL" has 1 instance(s).
      Instance "ODPH1", status READY, has 1 handler(s) for this service...
    Service "DMS" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
    Service "IIMS_BATCH" has 1 instance(s).
      Instance "ODPH1", status READY, has 1 handler(s) for this service...
    Service "IIMS_OLTP" has 1 instance(s).
      Instance "ODPH1", status READY, has 1 handler(s) for this service...
    Service "ODCAN" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
    Service "ODPH" has 1 instance(s).
      Instance "ODPH1", status READY, has 1 handler(s) for this service...
    Service "SLF" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
    Service "SYMPH_BATCH" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
    Service "SYMPH_BRIDGE" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
    Service "SYMPH_DEVLPR" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
    Service "SYMPH_OLTP" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
    Service "SYMPH_WEBLOGIC" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
    Service "SYS$STRMADMIN.STRMQ_PPH2_PPH.ODPH" has 1 instance(s).
      Instance "ODPH1", status READY, has 1 handler(s) for this service...
    Service "WEBLOGIC" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
    The command completed successfully
    LSNRCTL> exit
    dd0152alyn{grid}3: cat /opt/grid/product/gi11r2/network/admin/listener.ora
    ODPH=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=ODPH))))            # line added by Agent
    ODCAN=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=ODCAN))))          # line added by Agent
    LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))            # line added by Agent
    LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))))                # line added by Agent
    LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2))))                # line added by Agent
    LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))                # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON                # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON                # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON                # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON              # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_ODCAN=ON         # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_ODPH=ON          # line added by Agent
    dd0152alyn{grid}4: lsnrctl services
    LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 31-JAN-2012 16:06:07
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
      Instance "+ASM1", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:31762 refused:0 state:ready
             LOCAL SERVER
    Service "APPRAISAL" has 1 instance(s).
      Instance "ODPH1", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:16 refused:0 state:ready
             LOCAL SERVER
    Service "DMS" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:113 max:1022 state:ready
             DISPATCHER <machine: dd0152alyn, pid: 6797>
             (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152alyn)(PORT=44847))
          "DEDICATED" established:1 refused:0 state:ready
             LOCAL SERVER
    Service "IIMS_BATCH" has 1 instance(s).
      Instance "ODPH1", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:16 refused:0 state:ready
             LOCAL SERVER
    Service "IIMS_OLTP" has 1 instance(s).
      Instance "ODPH1", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:16 refused:0 state:ready
             LOCAL SERVER
    Service "ODCAN" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:113 max:1022 state:ready
             DISPATCHER <machine: dd0152alyn, pid: 6797>
             (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152alyn)(PORT=44847))
          "DEDICATED" established:1 refused:0 state:ready
             LOCAL SERVER
    Service "ODPH" has 1 instance(s).
      Instance "ODPH1", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:16 refused:0 state:ready
             LOCAL SERVER
    Service "SLF" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:113 max:1022 state:ready
             DISPATCHER <machine: dd0152alyn, pid: 6797>
             (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152alyn)(PORT=44847))
          "DEDICATED" established:1 refused:0 state:ready
             LOCAL SERVER
    Service "SYMPH_BATCH" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:113 max:1022 state:ready
             DISPATCHER <machine: dd0152alyn, pid: 6797>
             (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152alyn)(PORT=44847))
          "DEDICATED" established:1 refused:0 state:ready
             LOCAL SERVER
    Service "SYMPH_BRIDGE" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:113 max:1022 state:ready
             DISPATCHER <machine: dd0152alyn, pid: 6797>
             (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152alyn)(PORT=44847))
          "DEDICATED" established:1 refused:0 state:ready
             LOCAL SERVER
    Service "SYMPH_DEVLPR" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:113 max:1022 state:ready
             DISPATCHER <machine: dd0152alyn, pid: 6797>
             (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152alyn)(PORT=44847))
          "DEDICATED" established:1 refused:0 state:ready
             LOCAL SERVER
    Service "SYMPH_OLTP" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:113 max:1022 state:ready
             DISPATCHER <machine: dd0152alyn, pid: 6797>
             (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152alyn)(PORT=44847))
          "DEDICATED" established:1 refused:0 state:ready
             LOCAL SERVER
    Service "SYMPH_WEBLOGIC" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:113 max:1022 state:ready
             DISPATCHER <machine: dd0152alyn, pid: 6797>
             (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152alyn)(PORT=44847))
          "DEDICATED" established:1 refused:0 state:ready
             LOCAL SERVER
    Service "SYS$STRMADMIN.STRMQ_PPH2_PPH.ODPH" has 1 instance(s).
      Instance "ODPH1", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:16 refused:0 state:ready
             LOCAL SERVER
    Service "WEBLOGIC" has 1 instance(s).
      Instance "ODCAN1", status READY, has 2 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:113 max:1022 state:ready
             DISPATCHER <machine: dd0152alyn, pid: 6797>
             (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152alyn)(PORT=44847))
          "DEDICATED" established:1 refused:0 state:ready
             LOCAL SERVER
    The command completed successfullyAny suggestions?

    I also get this
    select * from gv$dispatcher;
       INST_ID NAME
    NETWORK                                                                        
    PADDR                            STATUS           ACCEPT   MESSAGES      BYTES
        BREAKS      OWNED    CREATED       IDLE       BUSY   LISTENER  CONF_INDX
             2 D000
    (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152blyn)(PORT=18598))                          
    00000005B956C160                 WAIT             NO         209098   29817616
             0        202       1936     900352       2339          0          0
             1 D000
    (ADDRESS=(PROTOCOL=tcp)(HOST=dd0152alyn)(PORT=44847))                          
    00000005B956C160                 WAIT             NO         139336   18990411
             0        108       1646     901365       1362          0          0
    2 rows selected.

  • Three tier module how to choice shared mode or dedicated

    We use three tier module to setup client,AP server,and Oracle DB, witch my ERP environment,and I have 1000's user to connect two AP server.In this case,what is better choice shared server or dedicated server?why?

    If you are using connection pooling at the application server, you don't want to use MTS on the server. If you're using connection pooling at the app server, you're already concentrating those thousands of users into many fewer connections, so there's little point in incurring the MTS overhead.
    If you are not using connection pooling at the app server level, and your database server isn't powerful enough to handle the number of concurrent users you expect in dedicated mode, go with MTS.
    Justin

  • Is our oracle 9iR2 db is a shared mode or dedicated mode? whats difference?

    Friends,
    We are using Oracle 9iR2 Database. How can i know our db is a shared Server architecture or a dedicated server architecture?
    Also, what is the difference between these two? Please tell me in short.
    Note: I didn't install/create our db.
    Thanks
    Sathyguy

    Check out the distinct values in SERVER column in V$SESSION. If it reads DEDICATED, then you are in dedicated mode. If it reads NONE or SHARED, the you are using MTS (or shared server mode).
    You can have DEDICATED connection in MTS mode also by changing the TNS entry.
    Dedicated mode: Each of these client connections takes up some resources (memory, CPU time, net-work bandwidth…) on the database server. More the number of client connections, more is the resource consumption, more is the delay is processing the requests.
    A database serving an application, where-in most of the server processes spawned by the client requests are idle for 90+% of the connect time, is a good candidate for Ora-cle Multi-Threaded Server (MTS) mode configuration.
    Multi-Threaded Server is configuration method in which one server process can handle more than one client connections/processes/requests.
    As there are a few number of server processes created on server, the server re-sources are utilised to a minimum. This enables the database administrator to define more number of dispatcher processes to handle the requests from the clients and more number of shared server processes that handle and process the requests be-tween these dispatchers and database kernel

  • Dedicated/shared mode

    Dear all,
    How to ensure that my database is running in dedicated or shared server mode.
    Thanks in advance

    I'll just summarise, because I can see some rather iffy advice being offered in this thread.
    If you are running in 9i or above, there are two parameters (not one) which govern whether or not you are capable of running in shared server mode.
    DISPATCHERS governs whether a job dispatcher runs. You have to have at least one of them configured before shared server is possible. However, the mere fact that a dispatcher runs does NOT mean your database is running in shared server mode. There also have to be shared server processes capable of handling the work dispatched by the dispatcher(s), and those are configured with the SHARED_SERVERS parameter. If that's set to any number greater than 1, you have shared server processes running on your instance. But that STILL doesn't mean you're running in shared server mode! If you have SHARED_SERVERS=57 and no dispatcher, you simply have 57 processes sitting around doing nothing whatsoever (and incapable of doing useful work!)
    In short, you have to have DISPATCHERS and SHARED_SERVERS set.
    Note, for example, that 10g configures a single dispatcher for all databases by default (if they're created with DBCA and you don't get in there to stop it happeneing), but it does NOT configure SHARED_SERVERS, so by default a 10g database does not run in shared server mode.
    The other thing I'd clarify is that a database doesn't really run in shared server mode anyway! The fact that your instance has a dispatcher and shared server processes running doesn't necessarily mean your users will end up connected to the dispatcher and having shared server processes handling their job requests. They will by default, but if the tnsnames.ora they use to connect (or its centralised equivalent) contains the line SERVER=DEDICATED, then they will get to use dedicated server processes, no matter what the dispatcher or shared server processes might think about it!
    With dispatchers and shared server processes configured, in other words, an instance can "support shared server connection requests". That's rather different than "running in shared server mode". The distinction is important because privileged actions (startup, shutdown, backup and recover commands) cannot be processed by a shared server process, so it's important for an instance that is configured for normal users to use shared server processes to still support the connection to dedicated server processes by suitably credentialled users.
    If a user does end up connected to a shared server process, there is usually a performance penalty to pay compared to using a dedicated server process. A user submits a query and instead of it being immediately processed by a server process, it gets submitted to a dispatcher ...which promptly sticks it on a job queue! You then have to wait for a shared server process to become free and decide to pick your job off the queue. That's inevitably slower than doing it the dedicated way.
    People use shared server as the first line of scaling up their databases... and you're right that it primarily depends on the number of users connected to the server concurrently. In dedicated server mode, a new connection means a new process gets spawned (or a new thread on Windows) and a new connection socket is opened. Servers can only handle so many connection sockets, processes or threads before they start to keel over under the strain. Shared server, as the name suggest, means that new connections do not cause new server processes to be spawned. So 300 users can be processed with, maybe, 30 or 40 processes in total. If your box would normally keel over handling 300 dedicated connections, then clearly with that sort of sharing ratio, you'd be able to scale to nearer 3000 users before it starts wilting by using shared processes.
    But it's also a bit subtler than that: a data warehouse would be daft to implement shared server, even if it did have 300+ concurrent users. That's because the users of such systems typically run queries that run for hours... and a shared process that is nabbed to perform one job for hours on end isn't really a shared process any more, is it?! So the rule of thumb as to when to implement shared server is yes, (a) when your concurrent user count starts reaching levels that your server just doesn't seem able to sustain any more AND (b) when you can be sure that the users tend to issue short, sharp queries -say, about 3 seconds or so to process, max.
    Again, there are mixed states to get through, too. You might have lots of OLTP-type sub-3-second transactions on the same database on which one or two users regularly run big reports. In that case, you make sure the reporters have a tnsnames.ora that says SERVER=DEDICATED and the OLTP-type people use one that has SERVER=SHARED in it; configure the DISPATCHERS and SHARED_SERVER parameters for the instance and then those that can benefit from shared servers can do so and those that wouldn't won't be stealing shared processes from those that can!
    The alternative approach for those with more cash is to go and buy better server hardware that can cope with the user community numbers! Shared Server configuration, however, comes free. You pays your money and you takes your choices!

  • Can I open file in shared mode so that multiple users can write at same tim

    Hi,
      I want to write to a trace file from a user exit and BADI. But I want to create only one trace file in which multiple users can simultaneously append. Is it possible to do this? How? Code could really help as this is urgent.
    Thanks for reading.

    Hi,
    I think we can use the locks shared or exclusive locks concept here
    you can find examples in this section on how to implement them -
    http://help.sap.com/saphelp_47x200/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/frameset.htm
    There are two types of lock in the R/3 System:
    Shared lock
    Shared locks (or read locks) allow you to prevent data from being changed while you are reading it. They prevent other programs from setting an exclusive lock (write lock) to change the object. It does not, however, prevent other programs from setting further read locks.
    Exclusive lock
    Exclusive locks (or write locks) allow you to prevent data from being changed while you are changing it yourself. An exclusive lock, as its name suggests, locks an application object for exclusive use by the program that sets it. No other program can then set either a shared lock or an exclusive lock for the same application object.
    Regards
    Chandralekha
    Regards
    Chandralekha

  • Time Machine needs file sharing mode

    I have a Time Capsule (1rst Gen 2008, 500 Go) 56GB left, connected through Ethernet.
    I just rebuilt the index but i still find odd it needs 4 mn to backup 10MB every hour
    I have strange errors
    mds[78]: ERROR: _MDSChannelInitForAFP: AFPSendSpotLightRPC failed -1
    and
    mds[78]: (Error) Volume: Could not find requested backup type:2 for volume
    also,
    1) i need to enable file-sharing (with airport utiliy), or Time Machine won't start
    2) the name of the disk is incorrectly spelled in Time Machine preferences (with a "-1" at the end, as if there were two disks with the same name. There are not)
    3) Time Machine seems to be using afp for the backup
    com.apple.backupd[3242]: Attempting to mount network destination URL: afp://MyDisk
    i wonder if there is a problem in the way Time Machine is configured
    Any ideas ?

    Please visit Pondini's Time Machine FAQ for help with all things Time Machine.

Maybe you are looking for

  • Apple TV disconnected during streaming and now I can no longer access the AT menu.

    Our Apple TV3 suddenly disconnected during playback of a TV episode purchased from iTunes.  I downloaded this episode onto our Mac OSX 10.8.5. earlier this year. We had watched it before with no problem, but tonight it quit midway through and we rece

  • Workflow for object

    Hi All, I can see workflow for object when i click play like button just beside actions button on transaction in GUI. Where i can see the same thing on crm webui. Is  there any specific assignment block . I want to see workflow overview on that parti

  • How to customize iCloud add-in for Outlook?

    I am using the iCloud plug-in for Outlook 2010 under Windows 7.  Everything works great.  New appointment default to the iCloud Calendar, and I can see them on my iOS devices. The problem is that I am visually impaired, and want to change the default

  • My photo books l was working on suddenly updated to another language instead of English

    In iphoto my books l was working on updated and changed to another language other than English, how do l get it back to English

  • Exporting in Premiere CC

    I have a 14 min sequence filed with various formats, stills, effects, etc.  Everything renders and plays fine on the timeline, but when I go to Export, the export gets stuck whenever it hits a title (just a regular title made in premiere) or a random