Oracle shared server default connection

We are currently trying to use shared server on an Oracle 11.1.0.7 standard edition database.
We don't have any problem regarding parameters or performance yet. We can connect either with dedicated or shared connection.
Our problem or issue is with tnsnames.ora.
trdb =
(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = X.X.X.X)(PORT = 1521))
(CONNECT_DATA =
(SID = orcl)
We do not specify if this connection is shared neither dedicated. Connection defaults to dedicated and we would like to force that users connect to a shared server connection.
It would be really usefull to avoid having to go client by client on remote sites. We do no have any centralized management tool to change the file (not on remote sites).
We could, of course make the application to distribute a new file, but since every client is unique, it could be risky.

Try to use SERVICE_NAME instead of SID in tnsnames.ora and make sure this service is mapped to a dispatcher in database init. file.
Example with 11.2.0.1:
1. DISPATCHERS parameter
SQL> show parameter dispatchers
NAME                                 TYPE        VALUE
dispatchers                          string      (PROTOCOL=TCP) (SERVICE=DB112XDB)
max_dispatchers                      integer2. TNSNAMES.ORA:
$cat tnsnames.ora
DB112 =
(DESCRIPTION =
   (ADDRESS_LIST =
     (ADDRESS = (PROTOCOL = TCP)(HOST = lx01.localdomain)(PORT = 1521))
(CONNECT_DATA =
   (SERVICE_NAME = DB112XDB)
)3. Test with SQL*Plus:
sqlplus  system/xxx@DB112 @tss
SQL*Plus: Release 11.2.0.1.0 Production on Mon Feb 15 21:37:35 2010
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select username, program, server, service_name
  2  from v$session
  3  where server<> 'DEDICATED';
USERNAME                       PROGRAM
SERVER    SERVICE_NAME
SYSTEM                         [email protected] (TNS V1-V3)
SHARED    DB112XDB

Similar Messages

  • Question about Oracle Shared Server Performance

    Is it true that the performance of the Oracle Shared Server on Windows plataformns, like 2003 server is poor. ?
    And so that, I cant see any advantages to change its configuraton, on a 200 users configuration, where I can have at most 2.000 session.
    Tks for help and some tips if you guys have them.
    Fernando

    Hi Fernando,
    Is it true that the performance of the Oracle Shared Server on Windows plataformns, like 2003 server is poor. ? In general (not just Windows), shared servers (the MTS) should only be used if you have an acute RAM shortage.
    Tom Kytes notes:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:5269794407347
    "Unless you have a real reason to use MTS -- don't."
    "a shared server connection is by design "slower" than a dedicated server (more stuff goes on, more complex) it is most likely only getting in the way."
    Also, remember that you can use AWE to take the data buffer above the line and free-up more low-memory RAM for connections. Here are my notes:
    http://www.dba-oracle.com/oracle_tips_ram_waste.htm
    http://www.dba-oracle.com/t_mts_multithreaded_servers_shared.htm
    My experience concurs that Oracle shared servers should not be used without a compelling reasons (i.e. super high connect/disconnect rates on an instance with limited resources) and that the vast majority of Oracle databases will run more efficiently without shared servers.
    Dedicated server connects are far faster than multi-threaded server connections, and 64-bit Oracle combined with the low cost of RAM has driven-down the rare cases where shared servers are justified.
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author

  • Oracle Shared Server Session Scheduling

    Hi,
    We're currently evaluating the shared server architecture for production use. As far as we know, Oracle schedules N sessions across M operating system threads, dependent on the configured limits.
    An essential requirement for our production system is to be able to associate a given operating system thread belonging to an Oracle shared server process with a session (more specifically the session owner) and maintain this information externally. Because a shared server thread may handle multiple sessions in random order with interruption, the assumption that a given thread and its corresponding thread identifier always processes a specific session throughout the thread lifetime is incorrect, thus we cannot directly associate a thread and session via the thread identifier.
    Does Oracle provide a way to be notified (native callback) before and/or after a shared server level scheduling "session context switch" so that a thread id could be used to associate a thread with a session at any given time?
    Thanks in advance for any insights!
    cheers,
    Horst Reiterer

    You can realize if your database is working in shared mode through several ways:
    1.- Looking the background process at the OS level
    2.- Looking some init parameters and other methods
    What is your OS ?
    Joel Pérez
    http://otn.oracle.com/experts

  • Configure Oracle Shared Server

    Hi,
    Can i shutdown the dispatcher (Shared server) when there is existing connection doing the transaction. as i discover the dispatcher causing the high CPU usage sometime. If Shutdown dispatcher, how to restart the dispatcher when the instance is up and running without restart the instance.
    Regard
    Liang

    user13290160 wrote:
    Can i shutdown the dispatcher (Shared server) when there is existing connection doing the transaction. as i discover the dispatcher causing the high CPU usage sometime. No, no and no.
    What about killing the kernel process as it too sometimes causes high CPU usage? How about killing the swap process daemon for the same reason? Why even bother booting the server at all when there will always be the risk of this situation occurring, that according to you is so bad that it needs to be responded with killing the "offending" process?
    Surely, by your reasoning, the best approach to this problem and prevent processes from sometimes using "too much" CPU, is not running any processes at all - and simply not powerup the server.
    Sounds stupid? Well, so does your killing of a dispatcher process based on high CPU usage, without identifying an actual problem, or even bothering to determine what is causing that symptom of high CPU usage.
    The very first step to ANY IT or IS issue is "*Identify The Problem!*".
    All you have observed is a symptom - high CPU usage. This is not a problem. You need to determine WHY it is happening and that will tell you whether there is a problem.
    Simply wanting to kill the "offending" process? That is wrong. Period.

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

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

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

  • Can someone decode this diagram of a shared server?

    Hi.
    This diagram
    http://esupport.csci.unt.edu/oracle/server.901/a90117/manproc.htm
    of the Oracle Shared Server setup is quite useful but I would like to ask anyone here to tell me what the numbers 1 and 7 , and 4 represent.
    Im thinking that between 1 and 7 we have the user process.
    And that for number 4 we have the server process.
    Cheers.
    DA

    I believe these number is used to demonstrate the sequence of shared server flow.
    1. User application called to dispatch process to request for connection
    2. Dispatch place user request to Request Queue
    3. User request is served by Shared Server Processes
    4. Making necessary interaction with SGA, buffer cache, shared pool etc
    5. After request processed, result place to Response Queue
    6. Result was routed to Dispatch process
    7. Served back to User Application

  • Oracle 9i Shared Server Configuration

    My working platform is as:
    O.S. : Windows 2000 Server
    Database: Oracle 9i Release 2
    Database Configuaration is as:
    Database: Manually created (not the default one) and SID = test
    Listener :
    Name: listener1
    Port No. : 1523 (Not the default 1521)
    Associated with "test" database.
    Dispatchers: (PROTOCOL = TCP) (DISPATCHERS = 3)
    Shared Server: Set to 2
    At Client side (connected through LAN) : I am configured a "Service Name" using Oracle NetManager and Set the following parameter : Connection type = "Shared Server", SID = test, Listener Port = 1523, Host Name = IP Addrs of Server Machine
    In this scenario, whenever I want to test the connection from client side (from Oracle NetManager), it shows the following error message.
    Listener is not configured to handle this type of connection
    Please help me to solve that problem.

    "Listener is not configured to handle this type of connection"
    When I try to connect through Listener which is running at non-default port ( i.e. apart from 1521) the above message is shown.
    As soon as, I checked the service status of the running listener and I observed that listener is handling one handler which is for "Dedicated" only. There is no other handler initiated for that listener to handle "Dispatchers"

  • Problems establishing a Shared Server connection

    I am trying to establish a connection to a shared server on a test database. The database is 10.2.0.4 and runs on Solaris 10. Here are some setting for my init file, and I think the last two do not need to be set.
    # Shared Server
    dispatchers="(PROTOCOL=TCP) (SERVICE=DBA10XDB)"
    shared_servers=5
    shared_server_sessions=20
    I connect from my client which uses a tnsnames.ora file and does NOT specify a dedicated server. Here is the result of LSNRCTL SERVICES:
    LSNRCTL for Solaris: Version 10.2.0.4.0 - Production on 22-MAR-2011 10:07:04
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    Services Summary...
    Service "BUILDTST" has 1 instance(s).
    Instance "BUILDTST", status READY, has 1 handler(s) for this service...
    Handler(s):
    "*DEDICATED*" established:1 refused:0 state:ready
    LOCAL SERVER
    Service "BUILDTST_XPT" has 1 instance(s).
    Instance "BUILDTST", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:1 refused:0 state:ready
    LOCAL SERVER
    Service "DBA10XDB" has 1 instance(s).
    Instance "BUILDTST", status READY, has 1 handler(s) for this service...
    Handler(s):
    "*D000*" established:0 refused:0 current:0 max:992 state:ready
    DISPATCHER <machine: dbtest, pid: 20864>
    (ADDRESS=(PROTOCOL=tcp)(HOST=dbtest)(PORT=50059))
    The command completed successfully
    V$SESSION shows the connections to be DEDICATED. Any suggestions as to what I may be doing incorrectly? Reading all I can find on this seems to indicate all I need to do is have DISPATCHERS and SHARED_SERVERS set and then connections will automatically be shared server connections.

    Thanks. Your post helped me get things straightened out. After changing my tnsnames file I was getting an ORA-12520. Hmmm. I then noticed the (SERVICE=DBA10XDB) on my DISPATCHERS parameter, which was there by default when Oracle configured the init file initially. I removed that and it worked.
    Then I was able to get connections to the shared server with and without the SERVER=SHARED setting. I knew I had read that Oracle will default to shared server if not specified, but your post indicated that a client connection can be forced to use the shared server, even when no dispatchers are registered. I think mine was not registered to my instance due to the (SERVICE=DBA10XDB) setting. If there are no registered dispatchers the connection request is rejected.

  • Error creating connection to Oracle Application Server 10g(10.1.3)

    Hey
    Im using Oracle JDeveloper 10g and when i tried to create a new connection to Oracle App Server 10.1.3 and test it, I received the following error message
    Error while parsing OPMN dump in XML format: XML Parse Exception: tag=[null] Ran out of data, content []
    I have no idea what this means and any help on this will be highly appreciated. Thank you
    Arjhun

    OK, in short:
    Cause: Wrong OPMN request port used to configure the connection (third step of "Create Application Server Connection" wizard). You might have kept the default (6003) but your OPMN is configured with different request port.
    Solution: Check $ORACLE_HOME/opmn/conf/opmn.xml file and look for entry like this:
    <port local="6140" remote="6240" request="6040" />
    Create the connection using OPMN request port that is set in opmn.xml file.
    Thanks
    Shail

  • How to Create an Oracle BAM Server Connection?

    I m following the steps at the end of this post to create the connection but at the end I m getting this message from JDev:
    {Unable to write to
    /C:/JDeveloper/mywork/Application1/.adf/META-INF/connections.xml
    because it is a read-only. Either make it writable or allow it to be made writable through source control.}
    it creates the directory C:/JDeveloper/mywork/Application1/.adf/META-INF/ with only a adf-config.xml file but NOT the connections.xml any one knows what is wrong?
    Bellow is the stpes I m following. Its exactly what is written at the Oracle Fusion Middleware Developer´s guide for Oracle SOA Suite 11g Release 1(11.1.1) E10224-01
    To create an Oracle BAM connection:
    1. Select New from the File main menu in Oracle JDeveloper.
    The New Gallery dialog opens.
    2. Choose Connections from the General category.
    3. Select BAM Connection in the Items list, and click OK.
    The BAM Connection wizard opens.
    4. Provide a name for the connection. Leave the Create Connection In selection as
    Application Resources.
    5. Click Next.
    6. Enter the following connection information about the Oracle BAM instance.
    7. Click Next.
    8. Test the connection by clicking Test Connection. If the connection was successful,
    the following message appears:
    Passed.
    9. Click Finish.
    Note: You can create connections to Oracle BAM in the Oracle
    JDeveloper Resource Palette as well as the Application Resources
    panel of a specific application. It is recommended that you create these
    connections in the Application Resources pane rather than the
    Resource Palette.
    Field Description
    BAM Web Host Enter the name of the host on which the BAM report server and
    Web server are installed. In most cases, the BAM Web host and
    Oracle BAM Server host are the same.
    BAM Server Host Enter the name of the host on which the Oracle BAM Server is
    installed.
    User Name Enter the Oracle BAM Server user name (typically bamadmin).
    Password Enter the password of the user name.
    HTTP Port Enter the port number or accept the default value of 8888. This is
    the HTTP port for the BAM Web host.
    RMI Port Enter the port number or accept the default value of 9085. The
    RMI port is for the BAM report cache, which is part of the Oracle
    BAM Server.
    Use HTTPS Select this check box if you want to use secure HTTP (HTTPS) to
    connect to the Oracle BAM Server during design time.
    Otherwise, HTTP is used.
    Message was edited by:
    Mario.Mesquita

    Ok that will be nice, but is not the case I dont want to read the tutorial, the problem is I already start to read and execute the tutorial you told me the problem is this tutorial it doesnt show how to do everything from scratch because you already have inside the zip file everything like xmls etc etc, and I want to get my DO and create the process myself, I dont want to get something that it is already done, this tutorial does not show for example how to create this composite.xml, this file it is already inside the zip file, so this way I just follow half of the process and dont learn how to make the whole process.
    tks

  • Deleting the  Shared library in oc4j instance of Oracle Application Server

    Hi Friends,
    I am using Oracle Application Server (10.1.3.4.0). I have some system level shared libraries. When i am deploying the application in home instance the application is deploying fine, but when i create an another instance using the default group i am getting two more system level shared libraries that are not present in the home instance. Because of this two shared libraries i am not able to deploy the application.
    Is there a way to delete the system level shared libraries. If so provide the related information. If there is any other alternative solution provide me that also. This is very urgent to me. Please help me in resolving this issue.
    Thank You,
    Ravi kumar.

    Hi Shail,
    i referred the link you have sent it was helpful to me, but the thing is while deleting the shared library apache.webservices it is saying the shared library is in use. When we brought down the Application Server and try to run the removeSharedLibrary command we got other error.
    Error: "Failed at "Could not get DeploymentManager".
    This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details being supplied.
    Is the way which i have done is correct ?? Please reply me.
    Thank You,
    Ravi kumar.

  • Oracle BI Publisher - can not access Shared Folder , using Oracle BI Server

    Hi there,
    We have an installed OBIEE and BIP (BI Publisher) system which is the security setting of BIP using "Oracle BI Server".
    Our OBIEE security is using the combination of LDAP (authentication) and Relational Table (for grouping user privillege)
    The integration connection between OBIEE and BIP is successfull, and I can connect using Administrator to the BIP
    But when I assign a general user using group : XMLP_Admin (define in rpd file and relational table), the user can log in to BIP, but can NOT access the Shared Folder.
    the error desc : "Error 500: SRVE0199E: OutputStream already obtained"
    Anyone can help ?
    Thanks a lot
    -toni

    Did you define Roles and Permissions to the shared folder from BIP Admin?
    -Prakash

  • Oracle 10gr2 rac, ora-12545 error when configured in shared server mode

    Hi i have fresh installation on two node rac on linux, with oracle 10gr2. It is running successfully, when i configure it in shared server mode and try to connect from client it gives error ora_12545:
    I have referred the oracle metalink notes and configured the local_listener as well as the remote_listener,
    still it is giving the error. I am able to tnsping all the entries on tnsnames.ora,
    i m also able to ping the hostnames,
    It connects most of the times succeessfully but some times it gives the error.
    how to solve this problem,
    please help me

    Basically this error means you misspelled the hostname or typed a wrong IP Address.
    Oracle Error :: TNS-12545+
    Connect failed because target host or object does not exist
    Cause
    The address specified is not valid, or the program being connected to does not exist.
    Action
    Ensure the ADDRESS parameters have been entered correctly; the most likely incorrect parameter is the node name. Ensure that the executable for the server exists (perhaps "oracle" is missing.) If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the host name to a numeric IP address and try again.
    I suggest you to check the dispatcher instance parameter.
    ~ Madrid
    http://hrivera99.blogspot.com

  • 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

  • Error in oracle application server connection

    The following error appears when I try to add and test oracle application server connection in JDev 10.1.3 :
    Error getting OC4J Process for: opmn-home+oc4j-Orbit-7777-default:
    Error while parsing OPMN dump in XML format: XML Parse Exception: tag=[null] Ran out of data, content []
    please what I can do to solve this problem

    Hi
    The OS is windows XP. The steps are as the following
    1.     Start Oracle process manager
    2.     from connections tap; right click on Application server and select new application server connections
    3.     enter connection name and select type from the list “oracle application server 10g 10.1.3 and press next
    4.     enter user name and password then next
    5.     enter hostname which is my PC name='Orbit' , OPMN port = 7777, OC4J instant name = “home” and select ‘single instant ‘
    6.     test the connection
    7.     get error
    “Error getting OC4J Process for: opmn-home+oc4j-orbit-7777-default:
    Error while parsing OPMN dump in XML format: XML Parse Exception: tag=[null] Ran out of data, content []”

Maybe you are looking for

  • Can you change Layout of php and filter?

    HI All, I have some code: function tc($v) { if (!$v) { return 'NULL'; } else { return '\''.mysql_real_escape_string($v).'\''; $field = array( array("surname", "Surname"), array("forename", "Forename(s)"), array("address", "Address"), array("post_code

  • Xcode 5 doesn't work with Bots or Jenkins

    I have Mac Mini i5 4G RAM, running OS X 10.9.1 , Server 3.0.1 & Xcode 5.0.2 I created new Bots from Xcode for applications that I build successfully several times from Xcode directly, but when the build comes through xcode Bot it gives the following

  • How to include "alias" in custom report

    Is there a method for generating a report in Zen 10.1 that will include the name of the computer assigned in zenworks (Alias)? I have tried all obvious choices such as machine name. Its possible to report on the folder that contains the computer but

  • My touchSmart is taking over 10 hrs to add update once it was shut down

    Its running windows 7 64 bit and using wireless.  My notebook ran the 9 updates quick This question was solved. View Solution.

  • Splitting multiple rows onto one row with different fields

    Hi all, I have a table. One Course_Code have multiple section_codes i.e. ("NUM" column does not relate to sectype its just an order!) Code--------num----Sec_code---Sectype---DESC----------------WEIGHT 1603--------1-------7427-----------C------------C