Forcing shared/dedicated server

Hey, I have two questions about dedicated and shared server.
1. If the applications use directory naming and shared server, but for one host we want to use dedicated in we can create another service for the same instance but using dedicated server, right?
Is it possible to set, in sqlnet.ora for that one "dedicated" application
NAMES.DIRECTORY_PATH=(TNSNAMES,LDAP)
then create tnsnames.ora with THE SAME service name as in ldap, but using dedicated server? Since there's TNSNAMES before LDAP in sqlnet.ora will the tnsnames service name be used first? Or will we get error?
2. If I have sqlplus on remote machine with tnsnames.ora indicating the connections to orcl use shared server, but I connect to sys as sysdba (or just an administrator) will the use of dedicated server be forced?
Thx.
A.

1) That should work. If the SQL*Net layer is told to look in the tnsnames.ora file first and the alias is found in the tnsnames file, it shouldn't look in OID. On the other hand, you'd eliminate a lot of the utility of having OID set up since you'd have to modify a bunch of tnsnames files when other connection information changed.
I would tend to think that you want the applications rather than the hosts themselves to determine whether to use a shared server connection or a dedicated server connection and that you want to have TNS aliases for SomeDatabase_Shared and SomeDatabase_Dedicated in OID.
2) Yes, SYSDBA connections are forced to use dedicated server connections.
Justin

Similar Messages

  • 10g (10.2.0.1.0) | Is it shared / dedicated server ?

    Hi,
    I am little confused with 10g default behaviour of Shared / dedicated server.
    I did not want Shared server. but show parameter shows that I have shared server but all my connections are dedicated, how is that possilbe.
    I am using 10.2.0.1.0 on linux, I get following:
    SQL> show parameter dispatchers
    dispatchers string (PROTOCOL=TCP)(DISPATCHERS=5)(SERVICE=FOOXDB)
    max_dispatchers integer
    SQL> show parameter shared
    max_shared_servers integer
    shared_servers integer 1
    SQL> select server, count(*) from V$SESSION group by server;
    SERVER COUNT(*)
    DEDICATED 319
    How is that possible? And why?
    Thanks in advance for any tips
    Message was edited by:
    sape007

    Sound like you have a dispatcher starting at startup. You may have something like this in your alert log on startup.
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Warning: Shared server clients will not be able to connect because SHARED_SERVERS is 0
    Check your dispatchers parameter and see if it says (PROTOCOL=tcp)
    "If SHARED_SERVERS is greater than 0, then DISPATCHERS defaults to '(PROTOCOL=tcp)', causing 1 TCP/IP dispatcher to be created."

  • Dedicated Server Connection Vs Shared Server Connection

    Hi Gurus,
    I have few doubts regarding Dedicated Server Connection Vs Shared Server Connection -
    1) How do I know which connection mechanism is configured in my system.
    2) Which connection faster and reliable.
    3) Is there any risk to using shared server connection?
    4) Which concept is new comparatively?
    5) It is possible to restrict specific user for Dedicated Server Connection and other for Shared Server Connection in a same database.
    Regards,
    Atanu

    AChatterjee wrote:
    Thanks for your post.... but still i have doubt on below points -
    1) How do I know which connection mechanism is configured in my system.Search for dispatcher parameter (both words in the search box) in the docs.
    2) It is possible to restrict specific user for Dedicated Server Connection and other for Shared Server Connection in a same database.You might be able to do something like this by using the RULE parameter with cman, limiting specific users (via local security setups) to specific client IP's and forcing them to particular service names. This is a net services issue, so does not conflict with what Billy said. It assumes you control whether your users will query the db appropriately, too. Many apps don't do that right.

  • IFS uses Oracle DEDICATED server instead of SHARED

    Hi all,
    Context:
    OS = HPUX 11.00 64 bits
    Oracle 8.1.7.0
    iFS 1.1.9
    I have configured my Oracle DB server to use MTS (Multi Threaded
    Server) mode, using the "mts_dispatcher" parameters suite in
    the 'init.ora' file.
    I have also re-configured the listener to force SHARED server
    mode, using the "netasst" graphical tool.
    From that point, after restarting the DB server and the
    listener, my standard Oracle client (SQL worksheet) are
    connecting to the base using a dispatcher and a SHARED server,
    as I can see from the v$session view.
    However, when I start iFS (./ifsstart), all agents and protocol
    servers are still using several DEDICATED servers...instead of
    SHARED server mode.
    How can I change this behaviour ?
    Did I miss something in the DB server configuration, or in iFS
    configuration ?
    This point is very critical to us since we are experiencing
    problems when too many iFS connections occur at the same time,
    when reaching a ceil of oracle processes, the kernel refuses to
    spawn new ones...causing new iFS connections to fail.
    Thanks in advance for any information.
    Regards,
    Arnaud Chiaberge

    Note that we don't certify the JDBC thin driver, only the JDBC
    OCI driver.
    I don't know enough about how MTS works to be able to fully
    answer your question about why the processes come up in
    DEDICATED mode.
    However, I'm more concerned about the issue where you say that
    too many Oracle shadow processes are being created and the
    kernel is refusing to do so.
    Note that you can adjust the maximum number of iFS processes
    that can be created using the Target and Maximum Readonly and
    Writeable connection pool settings. Also, you can adjust the
    time that iFS will wait before trying to spawn a new connection,
    once the Target setting has been reached.
    If your problem is more challenging than that, please open a
    Technical Assistance Request with Oracle Worldwide Support, and
    give us more details, so we can see how we can help.

  • Shared and Dedicated server modes

    Hi,
    We have been having some issues with connections and listeners. Please find here... Link [Post1|http://forums.oracle.com/forums/message.jspa?messageID=3665455] and Link [Post2|http://forums.oracle.com/forums/message.jspa?messageID=3677914].
    Despite this help from this forum, I still face some problem configuring listener in both Shared and Dedicated server modes.
    Pls find the below the problem...
    Two listeners namely, LSNR1 and LSNR2 have been started.
    listener.ora:
    LSNR2 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dbdev.website.org)(PORT = 1522))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    SID_LIST_LSNR2  =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = TESTDB)
          (ORACLE_HOME = /u02/app/oracle)
    LSNR1 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dbdev.website.org)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    SID_LIST_LSNR1 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = TESTDB)
          (ORACLE_HOME = /u02/app/oracle)
      )LSNR1 works with both Shared and Dedicated configurations, whereas LSNR2 neither DEDICATED nor SHARED configurations...
    Here is the TNS names entry at the client (for LSNR2)...
    serv2=
    (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1522))
        (CONNECT_DATA =
          (SERVICE_NAME=DEDICATED)
      )When I try to connect using this, it says
    + ORA-12514: TNS: Listener does not know of service requested in connect descriptor +
    Pls help.
    Thanks,
    Aswin.

    Aswin,
    I didnt see the other posts but the error is fairly simple,
    >
    ORA-12514:
    TNS:listener does not currently know of service requested in connect descriptor
    Cause:     The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:     
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    >
    So check what you are passing in the connection string.
    HTH
    Aman....

  • Shared and Dedicated Server...

    Dear All,
    Can anybody tell what's the difference between shared and dedicated server? Our database is Oracle 9.0.1 in Windows 2003. Our total session is around 200. Our server is dedicated server. What will be the benefit if we change our database to shared server for specific users???
    Shared pool size = 728MB
    Buffer Cache = 592MB
    Java pool = 104MB
    Large pool = 60MB
    There is no pga_aggregate_target in our database. Is the configuration ok for more than 200 users??? Most of the times we get 'out of process memory error'. What should we do in this situation??? Plz suggest.

    mrashid07 wrote:
    Can anybody tell what's the difference between shared and dedicated server?Dedicated server is the default. It means that each and every user session is serviced by a dedicated Oracle server process. 200 user connections? 200 dedicated server processes.
    On Windows these are however threads inside the physical oracle.exe process (and not actual separate process images like on Unix/Linux for example). A standard thread on Windows needs around 2MB of kernel space. So 200 threads, for 200 dedicated server connections, need 200 x 2MB RAM.
    Shared server works differently. A pool of dispatchers and shared servers are created. The dispatcher processes deals with the communication between the Oracle client and the Oracle instance. A dispatcher places client requests on a virtual circuit. These requests are picked up by idle shared server processes and processed. The results are send back to the client via a dispatcher process.
    So instead of having 200 dedicated server processes to service 200 users, you can for example use 5 dispatcher processes and 30 shared server processes to service the 200 sessions of those 200 users. In this case 35 processes are used that translates into 35 threads at a basic 2MB RAM cost per thread. (also note that the UGA now moves from the Oracle PGA to the Oracle SGA and the SGA needs to be sized accordingly).
    However, should such a user session send a long and complex request, that will tie up that shared server for a long time.. and this is bad. When the shared server process is busy, it cannot service any new requests. When all the shared servers in the pool are busy, no new request can be serviced. So you want the requests from the clients to be short and sweet - with a shared server not spending more than a few seconds per request.
    So typically OLTP requests are fine for shared servers.. OLAP requests not.
    Our database is Oracle 9.0.1 in Windows 2003. You should have been on 9.2.0.7 (last 9i patch set). You should currently being in the process of upgrading to 11gR2. 9i is basically an unsupported product. It is not a good idea to use an unsupported product in production. Even worse when you are not using the latest patchset for that product.
    As for using Windows.. why? 32bit is old hat. 64bit CPUs are standard even in today's desktop PCs. Consider using Linux instead. It is Open Source, is free ito purchasing (you only pay for support and maintenance) and it has had de-facto 64bit support for many years now. There's no need to hack the operating system, like Windows with its AWE extensions to address more than 4GB RAM.

  • How to specify server type (shared/dedicated/pooled) through a datasource

    Hi, subject says all, I could not find such info in the JDBC users guide.
    I would need to select the server type - e.g shared/dedicated/pooled - on a per-connection base.
    This would imply to set this type to the datasource, likely through some property. No info, though.
    Thanks for any help.

    Hi,
    Don't think you can. This is server side process architecture, not something you set up per connection?
    Edit:
    Sorry, maybe you can
    http://download.oracle.com/docs/cd/E11882_01/network.112/e10835/tnsnames.htm#i454847
    Maybe an Oracle Net key-value pair in jdbc oci?
    http://download.oracle.com/docs/cd/E11882_01/java.112/e16548/instclnt.htm#CHDDGJDJ
    Regards
    Peter
    Edited by: Peter on May 3, 2011 3:04 PM

  • Shared vs dedicated server

    Any reason to select one over the other?
    The reason I'm asking is because two texts that I have which were not written by Oracle suggest using dedicated server processes, while all of the Oracle-written texts suggest shared (although I did finally find a note which mentions "NOTE:...if your machine has plenty of memory to support dedicated servers, you should use that approach. In this situation, performance is likely to be better.")
    -cf

    Actually it depends upon the requirement.
    Shared and dedicated server environment are meant for different purposes and requirements.
    If server process is ideal for long time than same server process can be used to server other clients. Eg. On a web site user searched for Oracle Tuning books and now he is taking time to go through the title, contents, price. Your Server process is ideal during this time where as it can used to server other clients.
    Similarly if I use dedicated server process for batch processing it will be more effective than shared server because there is no ideal time.
    It is not true shared server requires more resources or dedicated server requires more memory. It will depend upon the proper utilization of resources. With the same given resources dedicated server environment may work more efficiently for one scenario and in the another scenario with the same resources a shared server works very well.
    Manu

  • 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

  • Dedicated server/shared server

    Hi everyone,
    can you Explain me about the shared server/dedicated server mode .
    THANKS IN ADVANCE

    think of the oracle server process as a genie- the magical being from the story of Aladdin-because your wish for a oracle data is the server process command-
    dedicated server(one genie one master):-_in this setup every single user connecting to oracle will have a personal genie handling data retrieval from disk in to buffer cache. if there are 120 users connecting to oracle there will also be 120 genies out there grabbing data from disk and putting it in the buffer cache for those user. this architectural setup  means that every user gets his or her data retrieval requests acted upon immediately. it also means there will be additional memory and cpu overhead on the mechine running the oracle database.
    shared server:-(one genie one master):-* in this setup there is a small pool of server process running in oracle that supports data retieval requests for a large number of users. several users are served by one server process.if there are 120 users connecting to oracle there will be only 1 genie out there for grabbing data from disk and putting it in the buffer cache for those user.

  • Shared or dedicated server

    Dear all,
    Would you tell me how to check out whether a database instance is a shared or a dedicated server?
    Thanks

    Firstly, thanks for your help.
    I posted my problem in another thread. The problem is listed below.
    BTW, when I create a new instance as dedicated server. I don't have this problem anymore.
    So I wonder it is setting shared server is different from setting dedicated server.
    Previous post:
    ===============================================================
    I have a problem of network configuration. I installed an Oracle 8.1.7 standard edition database server. I can logon using sqlplus at local database machine without any problem. I can logon as system using sqlplus in a remote workstation, but I cannot logon using sqlplus as a normal user in a remote workstation. The normal user is granted connect role and create session system privilege.
    Also, once I have a failed logon using normal user I cannot logon as system anymore until I restart the listener on the db server.
    Please help. I don't have this problem on 9i, 10g.
    The error is demostrated below:
    ===============================================================
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri Feb 24 21:45:11 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Release 8.1.7.4.0 - Production
    JServer Release 8.1.7.4.0 - Production
    SQL>
    SQL> connect ars
    Enter password: *****
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Warning: You are no longer connected to ORACLE.
    SQL> connect system
    Enter password: *******
    ERROR:
    ORA-12560: TNS:protocol adapter error
    ===============================================================
    The listener.ora, sqlnet.ora in the server is listed below:
    ===============================================================
    # LISTENER.ORA Network Configuration File: /u01/app/oracle/product/8.1.7/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.20.2.18)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/8.1.7)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = stustg.urban.com.hk)
    (ORACLE_HOME = /u01/app/oracle/product/8.1.7)
    (SID_NAME = stustg)
    ===============================================================
    # SQLNET.ORA Network Configuration File: /u01/app/oracle/product/8.1.7/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    #SQLNET.AUTHENTICATION_SERVICES= (NONE)
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    ===============================================================

  • Shared or Dedicated server mode

    My database is configured like:
    9i Release2, Enterprise edition, OLTP, DEDICATED server mode!
    I have more than 40 users who connect to db through WAN.
    Is this good selection, I meen on server mode, or is better way to use SHARED s.mode. And way?!
    Also where could I see which server mode of db is installed?
    Thanks!

    If we are talking about 40 physical end users, I wouldn't consider shared server mode. Shared server is ideal when you have so many users that the server would simply fall over if it tried to spawn that many dedicated connections.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Dedicated server vs multi threaded server archcitechture ( shared servers)

    http://www.dba-oracle.com/t_mts_multithreaded_servers_shared.htm
    1. I read the above for dedicated server vs multi threaded server archcitechture ( shared servers), please make it easy for a novice like me to understand in brief. Is the difference between the two only that MTS spawn multiple virtual servers which share and same memor ?
    2. How does the dedicated server work right from a db user logs in to when the user logs out ?
    Thanks in advance.
    Gony

    Posting it in [General Forum|http://forums.oracle.com/forums/forum.jspa?forumID=61] is more appropriate.
    SS

  • Dedicated server or shared server ?

    Hai ALl
    What is the criteria for a Database set in dedicated server or shared server. This is users dependent or processes dependent?.How to change the mode(dedicated or shared) after database creation.
    Please help...
    Shiju

    If you're not sure, use the default, which is dedicated server. You generally want to use shared server when you want to have more simultaneous sessions than your hardware could support without swapping and there aren't a lot of applications that really require this sort of thing. In the "olden days", one might also consider using shared server when the overhead of creating and destroying physical connections was a significant concern, but modern architectures (i.e. 3-tier development rather than client-server applications) generally makes that irrelevant because the middle tier can just use a connection pool.
    Instructions on enabling shared server are in the documentation.
    Note that just because shared server is enabled does not mean that all connections will use shared server. The client can always request a dedicated server connection.
    Justin

  • Dedicated Server against Shared Server

    I have a server on which we have installed several clients database isntances. Recently there were several performance issue for one of the client at which time I heard that was becasue of their instance is an shared server and if make it dedicated the performance will improve. How do you find out whether an instance running on a particular box is a dedicated server connection or shared server connection. What is the definition of those in simple lay mans terms. How do you change a shared connection to dedicated connection and vice versa? Does it depend on the memory/cpu size etc. Any help is higly appreciated.

    Dear User,
    Search on the forum.
    http://forums.oracle.com/forums/search.jspa?threadID=&q=%22dedicated+shared+server%22&objID=f61&dateRange=all&userID=&numResults=15

Maybe you are looking for

  • Download Word .doc file saved in MIME Repository to local PC

    I need to store a static Word document on the SAP server and download to the user's browser via a BSP application.  I have found code in the IT00 BSP Application to download the Word doc in xstring form to the browser, which will work for what I'm do

  • Internal errorcode, Errorcode 9050 "disk_not_accessible"  Please Help....

    Hi, I'm getting error in Installation-SAP Netweaver 2004s on AIX 5.3 usingMaxDB as database. Error Log ERROR 2007-03-10 16:09:10 The dbmcli call for action SET_LOG_WRITER_OFF failed. Check the logfile XCMDOUT.LOG. ERROR 2007-03-10 16:09:10 The dbmcli

  • Object and reference accessing for primitives, objects and collections

    Hi, I have questions re objects, primitives and collection accessing and references I made a simple class public class SampleClass {      private String attribute = "default";      public SampleClass()      public SampleClass(SampleClass psampleClass

  • Sapscript MEDRUCK/Zedruck Sapscript printing problem

    Hi, I have a problem in SAP version ECC SAP ECC 6.0 with the PO print  program SAPFM06P and the sapscript ZEDRUCK. From within ME23N when I do a print preview of the PO everything looks OK, however when I print it out to a HP Laserjet 1320n there is

  • New EOS Plug-in fcp7 cutting clips.

    I have noticed when importing footage using the new EOS pluging for fcp, that it randomly cuts the length of your clips, a 3 min clip was cut to 25 seconds. Why is this happening? it does it randomly, Now youhave to check all your clips for Duration.