Shared versus dedicated connections in the fragmentation of shared pool mem

Hi,
I have a old Oracle 8.1.7 database server.
I have a legacy application with no source code. This application don't use memory efficiently (no bind variables, etc.) , ie memory becomes fragmented.
I know that exists two ways to connect the database (dedicated and shared)
Based on this, I want to know which of the two options creates more fragmentation. I know that recommendation is to use dedicated connection, but I'm not sure if this is recomendation is applicable in this particular environment.
Thanks in advance.

Whether you use shared or dedicated connections makes no difference for fragmentation in the shared pool. Whether your hard parse or do not hard parse does matter.
Measures you can take
- make sure often used packages like dbms_standard are pinned in the shared pool using a startup trigger
- set session_cached_cursors to 50 or 100. This will reduce parsing.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Can oracle work in shared and dedicated mode at the same time?

    Hi All,
    can oracle work in shared and dedicated mode at the same time?
    Thanks

    A database can work only in one mode at a time.
    If the database is started in Dedicated Mode then it can not run in the Shared Mode. If you need to run it in the Shared Mode, bring down the Database , change DISPATCHERS, SHARED_SERVER, SHARED_SERVER_SESSIONS parameters in initfile and bring up the database to run it in Dedicated Mode.
    But there is one catch here, if you have started the database in Shared Server Mode even then you can make a Dedicated connection to server.
    Thanks!
    M-

  • Modify Database Shared/Dedicated Connections

    Newbie question - we're running Grid Control 10.2.0.4 on RHEL 4. I have quite a few databases on other servers configured via the Grid Control GUI. Recently we discovered Grid Control was connecting to these databases via a SHARED Oracle network connection, and I would like to change this to a DEDICATED one. However, none of these databases are listed in any of the .../network/admin/tnsnames.ora files, so I'm guessing there is somewhere else to configure this in Grid Control?
    I've looked on this forum and searched through the Grid Control manuals, but for the life of me I can't find where/how to configure this, so I'm guessing that I'm probably looking with/for incorrect terminology. I'm okay with reading up on how to do this, but am just wondering if someone can point me in the right direction of where to read on this? Thanks in advance for any input!

    Take a look at Metalink Doc ID 757339.1 "How to : Configure Grid Control Agent to Use Dedicated Server Processes".
    The agent will automatically make use of shared server connections, if the database is running in the shared server mode. But it seems you can edite the targets.xml file from the agent side edit to use dedicated.

  • Connecting to the db is taking too long with Shared Servers connection

    Hi all
    OS: Solaris 11 SPARC 64 bits
    DB: 2-node RAC Oracle 11.2.0.3.5
    After doing a migration of a 40GBs database from a 9i database to a 11g database, it's takin too long to connect to the db, which is using shared server. In the moment, there aren't any applications using the db, just myself. Doing some tests, i saw that when i use a dedicated connection, i can connect almost instantly, but using the shared connection, it takes almost 4 seconds to connect, via sqlplus. Here are some shared server parameters:
    shared_server_sessions               integer
    shared_servers                          integer     1
    max_shared_servers                   integer     20
    dispatchers                               string      (protocol=TCP)(disp=5)
    max_dispatchers                        integer     5
    lsnrctl service
      Instance "INSTANCE", status READY, has 6 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:5 refused:0 state:ready
             LOCAL SERVER
          "D004" established:93 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: orahml01, pid: 4073>
             (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=65402))
          "D003" established:85 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: orahml01, pid: 4070>
             (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=44055))
          "D002" established:90 refused:0 current:2 max:1022 state:ready
             DISPATCHER <machine: orahml01, pid: 4066>
             (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=41277))
          "D001" established:89 refused:0 current:1 max:1022 state:ready
             DISPATCHER <machine: orahml01, pid: 4062>
             (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=61887))
          "D000" established:91 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: orahml01, pid: 4060>
             (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=44222))
      INSTANCE =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = hostname-scan)(PORT = 1521))
          (CONNECT_DATA =
            (SERVER = SHARED)
            (SERVICE_NAME = INSTANCE)
    INSTANCE1 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = hostname-vip)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = INSTANCE)
          (INSTANCE_NAME = INSTANCE1)
    INSTANCE2 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = hostname-vip)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = INSTANCE)
          (INSTANCE_NAME = INSTANCE2)
      ) The alert.log doesn't show anything wrong.
    What can be causing this issue with shared servers?
    Thanks in advance.
    Edited by: Fabricio_Jorge on 27/03/2013 06:14

    Hello,
    Refer to the documentation is a great help.Please have a look at the below link:
    http://docs.oracle.com/cd/B10501_01/server.920/a96533/features.htmLook at the part :
    Performance of certain database features can improve when a shared server architecture is used, and performance of certain database features can degrade slightly when a shared server architecture is used. For example, a session can be prevented from migrating to another shared server while parallel execution is active.i know that this maynot be the case here but please read this document and apply it as it will help you understand what is going on.
    BR
    Mohamed ELAzab
    http://mohamedelazab.blogspot.com

  • VNCing a Mac Connected to the Net through an iBook's Internet Sharing?

    I have a B&W G3 connected to the internet via an iBook's ethernet port. It can VNC into the B&W G3, but on my local network no other computer can. Is there a way of making the B&W G3 accessible to every computer on the local network?

    Not really. You should get a real router, instead of using the iBook internet sharing.
    The problem is that your B&W G3 is on a totally different subnet private from everything else. All the typical descovery protocols will not cross a subnet boundary, so only the iBook has access to the B&W G3.
    If ou get a real router (they are dirt cheap), and have everyone going though the same router, then everyone should see everyone else.
    If the reason for using the iBook is to act as a WiFi range extender, then get a dedicated range extender, or get a pair of PowerLine Ethernet Adaptor that will route ethernet signals through you home electrical wiring.

  • Why can't Apple TV's and iOS devices see home sharing on my Windows 7 computer when iTunes libraries on other computers on the same network and connected to the same Home Sharing can?

    I have never previously had any problems with Home Sharing, I have always found it to be completely reliable as advertised. I have 2 computers in the house, (one MacBook and one Windows Desktop) connected to the same Home Sharing account, connected to the same BT Home Hub 4. My situation is that I have nearly 2TB of data of which I would like to share with the home wirelessly, in my mind the desktop is the logical place for this to be shared from.
    When running, iTunes on this desktop broadcasts to other iTunes libraries, but no other iOS devices or Apple TV's connected to the same Home Sharing account cannot see it.
    I have tried turning Home Sharing off, and then turning it back on, closing iTunes, restarting the computer, going to Network and Sharing Centre and unticking IPv6 in the network adapter properties, even completely wiping the computer and reinstalling Windows 7.
    One of the Apple TV's in the house was recently purchased by my parents with the promise from me that everything would work seamlessly... so far it isn't and I am frustrated that the Apple technology that I have come to rely on isn't working as expected.
    One thing that has occurred to me upon writing this is that it is a very large amount of data, and I have not attempted to share this with another computer that is currently working and broadcasting it's Home Share fine.
    I am sorry if I have ommitted any important details, any further questions don't hesitate to ask. I would be so grateful of any suggestions, my parents are depending on me.

    I have found with AppleTV that it is the IPV6 on the computer you want to access is the problem.  The issue is that Homegroup on Win 7 or Win 8 requires IPV6 to work, but AppleTV won't work with IPV6.  (So maybe double check you have IPV6 turned off)
    So you have to make a choice - Homegroup or AppleTV.... but you can't have both, until Apple brings ATV up to date. (crazy that it does not recognise IPV6 - c'mon Apple!)
    You can set up sharing individually in Win 7 or 8 and have the ATV access files that way.
    Having said that, there is always the exception.. I have an old HP home server running Win8 and it services ATV - but is part of the Homegroup... have no idea why it works on both, but no other machine on the home network will talk to both ATV and Homegroup at the same time!

  • Recently upgraded to 10.8.5 however the Himedia player connected to my iMac via sharing can no longer connect to the iMac.

    please help. recently upgraded to 10.8.5 however the Himedia player connected to my iMac via sharing can no longer connect to the iMac. the media player recognizes the imac and the shared files, however when you try to connect from himedia to imac it give a login unsuccesful.
    Have contacted Himedia and they say its something to do with Mountain lion

    This helps but
    scroll bar very flat, slim and hard to see not able to customize
    at least I know I have to suck it up and not loose anymore time
    Thanks

  • HT4557 Selecting a shared library starts connecting and gets to what looks to be 50% of the time circle and stops without connecting to the shared library..... Has anyone experience this before and knows how to overcome it?

    I have an iphone 5 with the current operating system and an up to date itunes as of 01.04.13. The strange thing about this problem is that I have the "remote" app also installed and the Iphone can access the shared library and control what is played on itunes on the PC but not the other way around. What I want to do is play from my library through my Iphone but it is not connecting through the music application???

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • HT4356 I have an older HP connected to the usb port of my Time Machine, and have it shared.  I want to print from my iPhone on the network, but it can not be found in airport?  How do I make this work?

    I have an older HP connected to the usb port of my Time Machine, and have it shared.  I want to print from my iPhone on the network, but it can not be found in airport?  How do I make this work?

    AirPrint printers connected to the USB port of the Apple AirPort Base Station or Time Capsules are not supported with AirPrint.
    Read through this for information about Airprint printers and how to use them:
    http://support.apple.com/kb/ht4356

  • I have 2 Macs, connected to the same Wifi network. But sometimes, the shared computers does not appear on the left hand menu of the toolbar for me to access shared folders between the computers. Am I doing something wrong?

    I recently bought a MacBook Air for work. Whilst at home, both my Macbooks are connected to the same Wifi network. Sometimes, the 2 Macbooks are connected and I can access the shared folders, which is great. However, every now and again, the connection seems to be lost. Is there something I need to set up so that every time both Macbooks are switched on and connected to my Wifi, it will automatically be linked?
    Any help is much appreciated!

    I have found with AppleTV that it is the IPV6 on the computer you want to access is the problem.  The issue is that Homegroup on Win 7 or Win 8 requires IPV6 to work, but AppleTV won't work with IPV6.  (So maybe double check you have IPV6 turned off)
    So you have to make a choice - Homegroup or AppleTV.... but you can't have both, until Apple brings ATV up to date. (crazy that it does not recognise IPV6 - c'mon Apple!)
    You can set up sharing individually in Win 7 or 8 and have the ATV access files that way.
    Having said that, there is always the exception.. I have an old HP home server running Win8 and it services ATV - but is part of the Homegroup... have no idea why it works on both, but no other machine on the home network will talk to both ATV and Homegroup at the same time!

  • My time capsule will allow only one machine to connect to the internet at a time. Connection sharing is "off" on the Airport Utility. When I try to share an IP address I get the message that "DHCP range that I entered conflicts with the WAN IP address" I

    Suddenly, my time capsule will not allow more than one computer to connect to the internet at a time. On the Airport Utility on the internet tab, Connection Sharing is "Off (Bridge Mode)" When I try to change it to sharing an IP address, I get two messages that the beginning and ending DHCP addresses that the DHCP addresses I've entered conflict with the WAN address of my Apple wireless device."
    Any ideas?
    Thanks

    I use a DSL to connect to the internet. The modem is a Westell C90-810030-06. Two things happened in connection with the fail. I upgraded the firmware in both my Time Capsule (connected to the DSL) and the Airport Extreme (connected to my printer--used to extend the network). I also upgraded my Colof Nook to the Android Faux Tablet version. I can't imagine that that is creating some sort of mismatch.
    I have now downgraded the firmware on the Time Capsule to 7.4.1 which is what I had before. Fortunately, I found the trick to downloading the older airport utility to find the older firmware. All the older versions disappeared from my computers.
    I still have the same problem. Wifi works fine. If a second device connects to the wifi, then it works fine, but the first no longer has a connection.
    And my Airport Extreme is not working at all. It cannot be seen by the computer. I tried resetting it. I'm going to connect it by ethernet and downgrade the firmware on it.
    I appreciate any help. This is so frustrating.

  • We have a movie downloaded on a laptop connected to the internet pluged into our router in the basement and an apple tv upstairs trying to play the movie through home sharing but it wont play. can anyone tell me whats wrong?

    we have a movie downloaded on a laptop connected to the internet pluged into our router in the basement and an apple tv upstairs trying to play the movie through home sharing but it wont play. can anyone tell me whats wrong? it comes to the last loading page where it shows the desscription of the movie befor it acually plays.

    It can come about without any change done by the user, and it's not just from other networks. The placement of the router can also affect performance. Also make sure router is up to date.
    Apart from that would be the reboots.

  • Has anyone found a solution to error 2146893032? I am obviously connected to the internet but I cannot activate home sharing from my computer. Not my firewall..

    I am trying to set up our Apple TV but we cannot activate Home Sharing. We keep getting error 2146893032. Please don't post the tutorial or troubleshooting guide. Been there already. We have also checked our virus software. Like another person who posed this question, obviously we are connected to the internet or we would not be able to post. This may reall be an iTunes issue but either way, I hope someone can help. Thanks

    What are you doing to activate home sharing?  Is it enabled on iTunes?
    obviously we are connected to the internet or we would not be able to post.
    You are connected, that does not mean ATV is. 

  • Every time i try to connect to the internet it says it can't be shared because of 802.1x.

    every time i try to connect to the internet it says it can't be shared because of 802.1x.

    iOS: Troubleshooting Personal Hotspot

  • Unable to connect to the database to product shared services

    Hi
    I got an error in configuring shared services with the Oracle server database
    "" Unable to connect to the database to product shared services ""
    I created a database that is working properly when accessed by a client.
    I typed everything in config utility, Does we need to take care of any other servies?
    I appreciate if any one help with this.
    Thanks
    Abel Junior
    Version: Hyperion System 9 and Oracle 9i

    John is of course correct that XP is not a supported environment for Essbase 9.3.x.
    Having said that, I have successfully installed Shared Services, Essbase, and EAS on multiple XP laptops. I have done so with 9.2 (painful) and 9.3.1 (just about painless) although always against SQL Server. This is strictly for development/kick the tires work, never as a production environment.
    Planning has quite an issue with XP (and Vista) although I have heard that there is a Windows Registry fix for this.
    Of course Oracle support is going to gong you if you call up with questions about your laptop -- it isn't supported.
    One last thing -- Shared Services and laptop suspends =! stability. For my development purposes, I have backed off Shared Serivces and just go with Essbase as a service with native security and EAS.
    Regards,
    Cameron Lackpour
    P.S. VMs are probably the way to go if your desktop/laptop has the horsepower to drive a proper OS with the VM overhead. On a 4 gigabyte laptop with a Duo Core (no, not a Mac, I just can't remember what Intel calls it -- the power of marketing) VMServer running Windows Server 2003 and the full stack is pretty slow, but it works.

Maybe you are looking for