Dedicated vs Shared Question

I am trying to understand if my DB is running dedicated or shared. I have read several posts here but some of the information is contradicting each other on my server. This is my analysis so far and it leads me to believe that I am running in dedicated server mode but I would love some help to better understand if I am right. Thanks in advance for your help!
1. We have a dispatcher but you always get on when you create a DB with DBCA and this does not mean the DB runs in shared.
SQL> show parameter dispatcher
NAME TYPE
VALUE
dispatchers string
(PROTOCOL=TCP)
max_dispatchers integer
2. Large_poole_size is 0 and I think if the DB is shared then it will use the large pool, otherwise use the shared pool.
SQL> show parameter large_pool
NAME TYPE
VALUE
large_pool_size big integer
0
3. If shared_servers is greater than 1 then the server is shared but ours is set to 1.
SQL> show parameter SHARED_SERVERS
NAME TYPE
VALUE
max_shared_servers integer
shared_servers integer
1
4. The tnsnames.ora file has SERVER=DEDICATED which means the DB will NOT be shared regardless of above.
5. ps -ef|grep $ORACLE_SID|grep d000 shows a dispatcher but I think this is just the default one.
oracle 4456 1 0 Mar17 ? 00:00:55 ora_d000_ENGTREQ1

995322 wrote:
Alright so my senior said that when our java developers connect through the database using JDBC and don't put SERVER=DEDICATED on the HTML string it ignores tnsnames.ora and automatically creates a shared connection. Your senior is wrong and there's more to it than that. Didn't take me long to put together a proof, even though I've never worked directly with setting up jdbc connections. For this test I created a connection in SQL Developer using jdbc thin. The "connection string" (url) looks like this:
jdbc:oracle:thin:@vblnxsrv01:1521/orclNo specification of shared or dedicated.
listener shows
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
  Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
  Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfullythe orclXDB is associated with the dispatchers.
Behold. Costello is using the jdbc connection from SQL Developer.
  1  select username, program, server
  2  from v$session
  3* where username in ('ABBOT','COSTELLO')
SQL> /
USERNAME   PROGRAM                                          SERVER
ABBOT      sqlplus.exe                                      DEDICATED
COSTELLO   SQL Developer                                    DEDICATEDBut if I change the connection definition properties to
jdbc:oracle:thin:@vblnxsrv01:1521/orclXDBwe get
  1  select username, program, server
  2  from v$session
  3* where username in ('ABBOT','COSTELLO')
SQL> /
USERNAME   PROGRAM                                          SERVER
ABBOT      sqlplus.exe                                      DEDICATED
COSTELLO   SQL Developer                                    NONE
We had a problem where SERVER=DEDICATED was left off and their queries were mysteriously taking random 4 seconds to complete and when they added SERVER=DEDICATED the wait went away.....this confuses me because it looks like the DB is not setup to use shared at all.

Similar Messages

  • 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 or Shared Sessions?

    I have a 10g SE1 + ASM running in Windows 2003 ES with 4GB RAM with /3GB switch and 7TB JBOD storage. Our custom data mining applications access this database from a grid of 15 servers. Application architecture uses a mixture of hibernate, roll-your-own connection pooling in Java, and daemons with dedicated sessions. In all, we typically have 200 sessions but only 3 to 9 are active at any given moment. Individual queries and transactions range from sub-second to 3 hours in duration.
    I’ve run the system with MTS and in dedicated server mode; it runs either way. I have never tried tweaking multiple shared_servers, dispatchers or circuits.
    Right now it seems to run fine with 200 dedicated sessions, but it does gobble up a lot of unused PGA memory for the inactive sessions.
    In our situation, what is the best configuration, MTS, or shared, or dedicated, and why?

    Mark, I think that physically a shared server process is no different than a dedicated server process in Oracle on Windows - both are threads in the oracle.exe process image.
    The only real difference is that one deals directly with the client, and the other with a virtual circuit.
    This then raises the question about the PGA and UGA. As the thread runs in the oracle.exe space, it has direct access to, and uses, the data segment (DS) of oracle. The PGA is likely a dynamic memory allocation - so too the UGA for a dedicated thread, while a shared thread will use the SGA instead (for the UGA).
    Now assuming that my speculation is not far of, there are very little overheads between dedicated and shared server threads on Oracle in Windows - except for the dedicated servers being more and thus more PGAs given the nature of these threads versus shared server threads.
    This is unlike Unix where there is a large physical difference as each process (dedicated or shared) has data segment and code segment. The resource footprint for a process is a lot bigger.
    A concern of mine... Windows is excellent at running threads.. it really strains running lots of physical processes (unlike Unix/Linux). But as threads share the same code and data segments, a single thread running into a severe bug can potentially corrupt the entire physical process image, crashing all other threads in it. At least, this has been my experience doing Windows server development.
    Would be nice to read a technical paper on just how Oracle implements their shared and dedicated server models on the Win32 API.

  • Family sharing question-after we updated to family sharing, and I have a new apple id, I have found that all the pages documents on my iPad are only accessible if I sign in via the original apple ID- now my husband's( the primary user). is there an e

    Hi there,
    this is a Family Sharing question. After we upgraded to family sharing, and I now have a new apple id, I find that all the documents on my iPad in pages,  are only accessible if i sign in with the original apple id- now my husband's ( he is the primary account holder). Is there an easy way to migrate these documents to my iCloud account, or do i need to email them to myself . There are a couple of hundred documents.
    Many thanks in advance.

    Thankyou for the reply.
    No. I have tried twice. When I turn off pages in the iCloud settings while logged into his account, then my documents in pages just are gone. They return when I turn it back on.
    Is there another way I can save them to the device?

  • SAP Database is in dedicated or shared

    Hi Gurus
    I have a doubt. Our SAP Database is working on dedicated or shared mode. when i was passing thro some oracle documents i have read as per tnsnames.ora file we could come to know whether the dedicated or shared mode. I have checked our SAP systems in one of the SAP system which has seperate database server and two other separate application servers which does not show the connect_data as dedicated but as (SID=%sid%) but in another SAP suystem where it is stanalone system which shows dedicated mode in connect_data parameter in tnsnames.ora file.
    i want to know the basic mode our SAP works in dedicated mode or shared mode. if it is dedicated mode in what all circumstances it will be decided or if it shared mode then what are all the conditions are set for shared
    Pls help
    regards
    bala

    Hello Bala,
    > i want to know the basic mode our SAP works in dedicated mode or shared mode.
    Just query the view V$SESSION (http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2088.htm#i1414383)
    > SQL> SELECT SID, SERVER FROM V$SESSION;
    Here is a really nice explanation about dedicated and shared connections:
    /message/2114775#2114775 [original link is broken]
    Please read this, because i think you don't understand the concept about dedicated/shared .. it is just a "connect option" not really a mode in that the oracle server is running.
    Regards
    Stefan

  • Dedicated or shared connections with tomcat?

    Tomcat does it's own connection pooling. That being the case, should I use dedicated or shared connections in Oracle? If Tomcat can properly maintain a small number of dedicated connections, then I'd prefer to avoid the setup/teardown overhead of using shared connections. I'm not sure if Tomcat (5.5.17) will operate properly in this regard or not, though. Does anyone have any experience with this?

    Using shared server or dedicated server is just a matter of which kind of applications you are planning to use. Shared server architecture is meant as a resource saver, considering the OLTP applications spend most of the CPU and network time idle. There is no reason to allocate private and exclusive resources to a connection. On the other hand, dedicated connections are meant for batch and reporting (Full Table Scans) operation, which are mostly found on DDS and DWH systems.
    If you use shared servers (no matter the client) and the application starts to behave in a DDS fashion, you will find Oracle Server will have to dispatch more processes to perform the operation, causing a raise in the High Water Mark resource usage.
    Shared servers is a more complex architecture than the dedicated server, for a few number of connections it is not worth to use it. But in the long run you'll find a meaningful memory and cpu consumption reduction, which is the main goal of this connection mode.
    ~ Madrid

  • How to know Dedicated or Shared ...

    Hi there,
    I want to know what is the default architecture (dedicated or shared) when a database is created thru Installtion or Creation Wizard and how we can verify from the database? And also I wanna know how we can manually configure a database to dedicated or shared architecture? Can anybody help me in this regard?
    Thanks in advance.
    Regards,
    Aqueel.

    I want to know what is the default architecture (dedicated or shared) when a database is created thru Installtion or Creation Wizard ?
    r.- The installer is going to request from you the option but the default is dedicated
    we can verify from the database?
    lsnrctl services
    It is one of the method to realize if the database is in shared or dedicated way.
    another can be checking the parameters.
    Depending if you are working in 8i or 9i the parameters
    are different for a Shared Server(9i) or Multi-Thread Server(8i)
    parameters in 8i for a dedicated Server:
    mts_dispatchers = "(protocol=TCP)(disp=15)(con=25)"
    mts_max_dispatchers = 20
    mts_servers = 12
    mts_max_servers = 18
    I wanna know how we can manually configure a database to dedicated or shared architecture ?
    The parameters to set the kind of mode is going to depend of what release you are using.
    What release you are using, 8i or 9i ?
    Joel P�rez

  • OCI8 - dedicated or shared connection

    Does anyone know what type of connection is created through ruby-OCI8 using database.yml? Is it a dedicated or shared connection?
    Thanks,
    James

    I think it's a shared connection.
    In rails/activerecord/lib/active_record/base.rb, it says:
    Connections are usually created through ActiveRecord::Base.establish_connection and retrieved by ActiveRecord::Base.connection. All classes inheriting from ActiveRecord::Base will use this connection. But you can also set a class-specific connection. For example, if Course is a ActiveRecord::Base, but resides in a different database you can just say Course.establish_connection and Course and all its subclasses will use this connection instead.
    This feature is implemented by keeping a connection pool in ActiveRecord::Base that is a Hash indexed by the class. If a connection is requested, the retrieve_connection method will go up the class-hierarchy until a connection is found in the connection pool.

  • Problem switching dedicated to shared

    Hello,
    I'm trying to switch from DEDICATED to SHARED server mode. I'm running oracle ee r2(8.1.6) on redhat 6.2. I have some oracle documentation that says to add the following lines to the end of init.ora
    mts_dispatchers = "(protocol=TCP)(DISP=1)(mul=OFF)(pool=OFF)"
    mts_servers = 1
    mts_max_servers = 20
    I shutdown oracle to make the changes to init.ora and then restarted. Oracle comes up fine, but when I check server in v$session I get all DEDICATED. Please help.
    Thanks,
    David

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by davidxm:
    Hello,
    I'm trying to switch from DEDICATED to SHARED server mode. I'm running oracle ee r2(8.1.6) on redhat 6.2. I have some oracle documentation that says to add the following lines to the end of init.ora
    mts_dispatchers = "(protocol=TCP)(DISP=1)(mul=OFF)(pool=OFF)"
    mts_servers = 1
    mts_max_servers = 20
    I shutdown oracle to make the changes to init.ora and then restarted. Oracle comes up fine, but when I check server in v$session I get all DEDICATED. Please help.
    Thanks,
    David<HR></BLOCKQUOTE>
    I had the same problem. I'm following through the Oracle 8i for Linux Starter Kit, by Steve Bobrowski.
    After editing the initoralin.ora file and adding the mts_ parameters, I tried
    sqlplus system/manager@oralin
    and got
    ERROR:
    ORA-12154: TNS:could not resolve service name
    I did a search for ORA-12154 and found a windows-related doc with a solution.
    The answer was to add the following to $ORACLE_HOME/network/admin/sqlnet.ora:
    names.default_domain = x
    where x is the same as the domain specified by the service_name.domain parameter in the tnsnames.ora file in the same directory.

  • Home Sharing Question # 1001

    I know there are a lot of Home Sharing questions but haven't found the answer to this.
    My wife and I have been able to share movies and music but not apps. She is on a PC and I am on a Mac.Not sure if that would make a difference.

    No answers to this?

  • Dedicated vs shared vs processes vs cpu - how much to set

    hi guys,
    straight to the question ;)
    I am running on dedicated mode.
    I am on ORACLE 10G redhat linux.
    q1) is there a limit on the parameter file processes parameter ?
    q2) how do i calculate how much processes can be created on my machine ?
    q2.1) is there any way to know how much resource each of my process is taking up ?
    I am going to simultaneous handle a few hundred/thousand transaction at a time.
    q1) i need to know how much shared process can be created on my machine
    q2) how do you calculate or gauge
    i) how much process will be needed for x volume of concurrent transaction / requests / connection
    ii) how much process can be supported by your machine ?
    Regards
    Noob
    Edited by: user12050668 on May 23, 2011 1:59 AM

    Number of processes (Oracle) depend on limits kernel.
    This is probe and error.
    To monitoring dispatcher use v$dispatcher
    To monitoring shared_server use v$shared_server, if all process are status = EXEC, you need more process, usually only 15-20% of process in EXEC status is fine.
    Remember
    - To kill sessions using MTS use "disconnect session" if you use kill you are killing shared process or dispatcher process.
    - Don't use MTS for batch processes, only OLTP
    HTH
    Antonio NAVARRO

  • Dedicated or shared  server configuration

    Hi all,
    Good day...We have a 10204 rac db running on a linux server. Our concurrent connection are more than 1000..Is that good to have a shared server configuration or we can continue with dedicated server configuration...
    thanks,
    baskar.l

    baskar.l wrote:
    Good day...We have a 10204 rac db running on a linux server. Our concurrent connection are more than 1000..Is that good to have a shared server configuration or we can continue with dedicated server configuration...You make the question sound to exclusive - "shared OR dedicated".
    In reality, all Oracle databases are capable of supporting both shared AND dedicated connections at the same time.
    So perhaps the question becomes:
    Based on the workload (typical transaction style) of the connections, how many shared and how many dedicated connections are required?
    To answer that YOU need to understand your workload.

  • Home Sharing Questions

    Hello,
    I have two questions regarding home sharing while I am on vacation. I understand that if I am not on the same network, I will not have access to my files on my iMac or my PC, however, I do have two questions:
    1. If my iMac and my iPad are signed into the same VPN, will home sharing work if I am on vacation? Both my iMac and my iPad will be signed on to the same server.
    2. I have Xfinity as my Internet provider, and they provide hotspots all over the country that are free for me to use. Since my iMac/PC are on thee Xfinity newtwork, if I sign into the Xfinity hotspot while, say in Maine and my equipment is in Florida, will home sharing work?
    My fear is that I must be logged into the same network ID, and they will not be available to me. However, I do have two Network ID's (one is a 2.4Ghz and the other is a 5GHz and they have different names, and Home Sharing does work if my AppleTV is on one and the iMac/PC/iPad is on the other.
    The same questions I guess will apply to my AppleTV device, however, if I can get access to my Home Sharing on my iPad, which along with my AppleTV device, I will be bringling with me, I can always change the airplay to play on the AppleTV from my iPad.
    Even though I have a WIFI Seagate drive that I use as both a backup and storage for my photos (I am a professional photojournalist) I have all my iTunes files backed up on that device (good thing because if an artist pulls their work from iTunes and you store it Apple's Cloud, it will be deleted) and had I not had a backup, all the Celtic Woman concert videos (close to $60 worth) would be gone
    Anyway. thanks for taking your time to read this and considered answering.
    George McGinn
    Venice, FL
    PS. These questions are important for me as I plan to spend 3 months every year traveling throughout the country doing street photography and travel photography as I also shoot stock for Getty Images, so if my movies and music are especially my Home Movies (I have instructional videos and PDF files in iBooks that I may need access to) are not going to be available, I would hate to drag my desktop with me. I will take my WIFI drive and use its player to play my music, as while I can change the directories on my iMac to point to the external drive, I do not know of a way to do this on my iPad.
    If I get a travel trailer to use instead of staying in hotels, I may just bring my iMac with me. But I really would like to leave it save in my house.

    The answer to both questions is no.
    It only automatically syncs new purchases from the iTunes Store between devices, and even then only tracks purchased after the option has been turned on. It won't do a catch up sync to start with.
    Non iTunes Store purchased tracks have to be imported manually.
    You can view all the tracks that are in the source library but not in the target library.
    Then select them all and hit the import button.
    All that will do though is transfer the music, it will not move playlists, etc.

  • Personal File Sharing question

    Hi,
    I have a question about personal file sharing between my iMac Intel (my work computer) and an eMac (student work computer). I work at a college, and our regular back-up system on campus is just not worthwhile, so as a secondary back-up, I created a new account on the eMac (the student computer). I have already successfully accessed the regular student account via personal file sharing (it shows up on the network under the office name given to the computer), but is there a way that I can also connect directly into my new account on the eMac? Is there something that I need to do to make the separate accounts visible?
    Thanks,
    Ken

    I'll try to access this from a Windows PC from the internet first (then try with ubuntu)
    That requires much more work, like finding Outside IP, Port Forwarding, etc., try it locally first.
    1) System Preferences>Sharing>Services tab>Windows Sharing.
    2) Browser won't get you to File Sharing, that would be for System Preferences>Sharing>Services tab>Personal Web Sharing.
    3) By default the Shared folder is shared, but you can log in as the Mac's User & see all that the Mac User can, or Sharepoints for smb...
    http://lowendmac.com/mac2win/04/0623.html
    Get Sharepoints...
    http://www.hornware.com/sharepoints/
    And setup what you wish to share with whom.

  • Library Sharing question

    Hi
    I am not even sure if this is possible
    I have a desktop PC (Vista & iTunes 8) and all my music is on an external 250gb hd.
    I have successfully managed to share this library with my laptop (again Vista & iTunes 8)over my wireless network. None of the music is actually on the hd of the laptop.
    My question is , is it possible to edit the song info on the laptop?
    Regards
    Graeme

    Yes. That itunes sharing feature lets folks in dorms & offices share music.
    So, itunes is not going to let you edit somebody else's library. In this case the other library also belongs to you, but iTunes doesn't know that.
    You have to make the changes on your desktop PC.

Maybe you are looking for

  • Windows 8 PC can't connect to Verizon Jetpack MiFi 5510L

    I have a Verizon Jetpack MiFi 5510L and I am unable to get my Windows 8.1 PC to connect to the Jetpack. My iPhone 5 with iOS 7.0.4 and my Lenovo T400 running Windows 7 Ultimate can both connect to the Jetpack with no issue or changing of settings. Th

  • Boot with rescue CD ??

    HI! I have installed the last Solaris 8 recommended Patch-Cluster. The installation on my SUN Blade 150 takes a long time, and I had problems at the Patch with the ID 108528-29. This patch needed more than 5 hours and so i stopped the installation an

  • Create customer in workflow

    hi gurus, what is the business object for create customer, how to solve  this  scenario. pl help me  1) Create customer master 2) Change Customer master 3) Display customer master 4) When the customer master record is created it should trigger a work

  • 10.4.7 Update Issues

    I'm seeing quite a few issues with the latest update. Since updating my system it has been so unstable I actually copied all my data over and did a fresh install to make sure it was not a conflict with any software. Since the install I'm still having

  • Is There any way to read lyrics on itunes in fullscreen?

    I would like to know if there's a way to do it... If it does please reply...