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
Similar Messages
-
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,
AtanuAChatterjee 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. -
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 manager125 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 -
How to convert dedicated server-mode to shared server-mode ?
Hi
I am having 3 oracle client machines(each with sql*plus or Toad tool),all these 3 client are to be connected through Jboss-4.0.5(application server) to Oracle 10g database server.
[ all 3 clients + 1 application server + 1 database server are with different ip address]
Question-1
Is it possible to convert a running Oracle-10.1.0.2.0 database server in[b] Windows server-2003 os from dedicated server-mode to shared server-mode ?
Question-2
What all are the init parameters I have to change ?
So far I have changed (a) alter system set shared_servers=5;
(b) alter system set dispatchers=(pro=tcp)(dis=3);
(c) alter system set max_dispatchers=10;
(d) alter system set shared_server_sessions=5;
(e) alter system set circuits=300;
Question-3
How to configure Listener in the Client system ?
Question-4
What all are the changes to be made in Jboss server ?
Regards
Sbmk_designad 1) Yes this is possible
Ad 2) From the top of my head, these seem like the settings to change
Ad 3) You do not have to change the listener (ow.. and clients have no listener) just make sure that you do not have '"server=dedicated" in your local tnsnames.ora file
Ad 4) in jboss, just check your datasource. If it is using a thin connection you are ok, if you are using a oci connection check the tnsnames.ora file. -
Long process on shared server?
I built an application that has 2 scheduled tasks. One of
them sends
e-mails to a list on a daily basis and the other completes an
HTTP
request.
The number of records is getting larger and these tasks are
failing
because they exceed the timeout set on the ColdFusion or web
server.
I'm using a shared hosting environment at Network Solutions
and it's
unlikely I'd be able to increase the timeout.
This application is built using ColdFusion Components.
I had heard of a asynchronous gateway I might be able to use,
but
again, I don't know if I'd be able to set that up on a shared
hosting
environment.
Does anyone have any ideas, aside from getting a dedicated
server?
I thought about maybe instead of performing all these
requests in a
single page call, but instead, scheduling each request a few
seconds
from each other, but I don't know if CFSCHEDULE will allow
hundreds of
entries at a time.
Thanks,
AndyI do not know how this plays in shared hosting environment so
use with
extreme caution. But you can use the <cfsetting
requesttimeout=""> tag
at the beginning of a page to specify how long that page has
to run,
somewhat overriding the setting given in the administrator.
But I could
see hosting companies controlling this tag for what it could
do to the
performance of their servers if misused.
Async gateways are a good option if they are available to
you. They do
require the 'enterprise' level of CF. Gateways are not
included in the
'standard' edition. They also require some CF-Administrator
configuration, but nothing more then a scheduled task or DSN
configuration does. -
Reg : Shared server process or dedicated server process
Hi,
Apologies if i have asked a silly question.How do we know whether our DB is running in dedicated server process or shared server process.Hi,
How do we know whether our DB is running in dedicated server process or shared server process.
I assume that, you are asking about the view of Oracle Processes in different OS Platform.
In a UNIX environment, Oracle processes (also other DB Processes) can be viewed as individual system processes.
On Windows platform Oracle Processes (also other DB Processes) are implemented as threads that run within one common Oracle operating system process, oracle.exe (e.g. in DB2, db2syscs.exe process). These processes are not visible when you list processes at operating system level.
Regards,
Bhavik G. Shroff -
Killing users Dedicated server / Shared Server
Hi,
I have a Web Applications that connects to our Oracle database and I can see a lot of users
stuck in the server and I have to manually kill these users.
To do this I´ve set a idle time to the conections , and using this script I´m able to kill these users :
sqlplus system/xxxxxx@instance <<EOF
spool $tmpfile
select p.spid from v\$process p,v\$session s
where s.paddr=p.addr
and s.status='SNIPED';
spool off
EOF
for x in `cat $tmpfile | grep "^[0123456789]"`
do
kill -9 $x
done
rm $tmpfile
I´ve also configured dead conections detection.
But unfortunatelly This machine has limited resources and the number of users will grow a lot in near future. So my only option is to change the database to shared server. In Shared server I cannot use my script anymore, because it kills all the connected users of that shared server , and dead connections detections is not working very well too ...
Anybody have a similar problem ? What could be done to clear the users that have already disconected from application and still use shared server mode ?
Whn users Log off the application it works ok, but sometimes the user closes the browser or we have blue screen in windows, etc and the conection remains forever
Thank you in advance,Really think this should be application issues rather than database issues. Application or application server should have a way to handle idle sessions. It's not a clean way to kill session in the background like that.
In my environment, after developers changed application we don't have this problem any more. -
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 -
Convert dedicated server to shared server in oracle 10g
Dear,
Anybody help me how to change dedicated server setting into shared server in oracle 10g.
Regards,
Saeed ul haqRefer to Oracle Documentation :
http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/intro.htm#sthref54
http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/plan.htm#sthref570
http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/dispatcher.htm#i453786
Regards
Rajesh -
Need to create a Database in Shared Serve Mode
Hi,
Please help me in Creating a Manual Database in Shared Server Mode. (I am a Student and It is a Learning Process).
I am able to Create Database (Without DBCA) in Dedicated Mode and I have no doubts in that.
What are the parameters i need to specify
Please post me Helpful LinksPoorna Prakash wrote:
Hi,
Please help me in Creating a Manual Database in Shared Server Mode. (I am a Student and It is a Learning Process).
I am able to Create Database (Without DBCA) in Dedicated Mode and I have no doubts in that.
What are the parameters i need to specify
Please post me Helpful LinksYOu need to understand that ... as far as the database is concerned ... it's not an either/or situation between dedicated and shared server. Setting shared server parameter like DISPATCHERS simply allows the database to handle shared server connections. But it is up to the client to specify which method it wants, and the database will always allow dedicated server connections. -
Dear experts,
Below is my environment details:
DB: Oracle 10gR1 Base (10.2.0.1)
OS: RHEL 5
I have configured shared servers as shown below:
1) Set the following parameters
dispatchers='(protocol=tcp)(dispatchers=2)'
max_dispatchers=10
shared_servers=4
max_shared_servers=10
circuits (not configured)
2) Changed TNS parameter as below
I modified SERVER=DEDICATED to SERVER=SHARED
3) lsnrctl services
the output of this command shows dispatchers ready
Now coming to the issue, when i connect to the database using new tns alias, i see "NONE" displayed under "SERVER" column of the V$SESSION view. It should have been SHARED.
Appreciate your help in this regard.
Thanks
PIn Shared Server configuration when we see value 'NONE' , it means there is no task being processed by shared server for that session. The server column will infact show status of 'SHARED' if there is some task being processed at that particular time by the shared server process for that session. Hence to check the status, fire some big query and then check the server status .
you can check the shared server as
select server from v$session where machine='XXXX' ;--neeraj -
How do I set up a shared server Oracle 9i
I'm trying to switch from a dedicated server to a shared server. I added mts_dispatchers, mts_servers and mts_max_servers to my configuration file, but got a message saying they have been depricated.
How is this done in 9i?
Thanks for your time,
AnthonyFor iPhoto 09 (version 8.0.2) and later:
What you mean by 'share'.
If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
Remember iPhoto must be running in both accounts for this to work.
If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
(You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up. -
Has anyone every had this issue occur?
I had a system slow down on one of our database servers, running Linux AS3 Oracle 10g (10.1.0.2.0). During the slow down (CPU spikes), sqlplus querries were running very slow on our client/server applications connected. The alert log shows this:
found dead shared server 'S002', pid = (13, 1)
I have never seen this before, what do you recommend. We normally run shared servers set at 50, I found that this was a bit high considering we normally see s001-s005 running. Shortly after the dead server error I dropped the shared servers from 50 to 20, that seemed to curb the high CPU spikes. We currently run on dispatcher as well, should I have more dispatchers running to handle the 20 shared servers? I have done the math, and it looks like we need only 2 dispatchers, but I was curious to know if increasing dispatchers and lowering shared servers is a true benefit to performance.
Thanks again for any advice, I do not know what impact a dead shared server means, does Oracle simply move to s003 and disregard s002 if it is dead?We changed our database from dedicated server mode to shared server (since users were not able to connect to the database...listener log showed tns-12518 and related errors....previously it used to show ora-04030 in alert log).
You have switched to shared server just because users were unable to connect? I think you need to fix the problem before thinking of switching to shared server. -
Shared server/dedicated server process doubt?
when oracle database is not configured for shared server is it compulsay to include SERVER=DEDICATED clause in the connect descriptor.?
Thankx.Hi,
is it compulsay to include SERVER=DEDICATED clause in the connect descriptor.?No, the MTS is defined at startup time, via the MTS parms.
Here is a sample of shared server definition in the init.ora file:
# Multi-threaded Server parameters
local_listener="(address_list=
(address=(protocol=tcp)(host=sting.janet.com)(port=1521))
MTS_MAX_DISPATCHERS=5
MTS_MAX_SERVERS=20
MTS_DISPATCHERS="(ADDRESS=
(PROTOCOL=tcp)(HOST=sting.janet.com))(DISPATCHERS=3)
service_names=testb1
http://www.dba-oracle.com/unix_linux/epc_disabled.htm
However, be aware that the MTS is not a panacea, especially at times when you want to invoke a dedicated process for your program. For Pro*C programs and I/O-intensive SQL*Forms applications, or any batch processes that have little idle time, you may derive better performance using a dedicated listener process. For shops that segregate task into online and batch modes, the DBA sometimes create separate listeners—one with the MTS and another for dedicated connections.
Hope this helps. . . .
Donald K. Burleson
Oracle Press author -
I have one query regarding Shared Server Process.
1)Why SHUTDOWN needs dedicated server process and not shared server process?
Thanks in advance>
1)Why SHUTDOWN needs dedicated server process and not shared server process?
>
Because Oracle maintains the connection for the user performing the shutdown until the shutdown is complete and their is still more work to be performed after the shared server processes are shutdown.
If you look at the shutdown part of the alert log when a shutdown is performed you will see that the dispatchers and shareds servers are shutdown before the database is closed and dismounted. There would be no more connection if a shared server were being used.
Consider the example shutdown log from this article
http://oracleappstechnology.blogspot.com/2007/08/oracle-11g-db-startup-and-shutdown.html
Find the portion that shows these steps
>
All dispatchers and shared servers shutdown
ALTER DATABASE CLOSE NORMAL
Wed Aug 15 18:24:35 2007
SMON: disabling tx recovery
SMON: disabling cache recovery
Wed Aug 15 18:24:35 2007
Shutting down archive processes
>
See how the CLOSE is issued AFTER the dispatchers and shared servers are shutdown?
See how the SMON service is still running?
If you then look at the very end you will see this
>
Stopping background process VKTM:
>
That last background process is described in chapter 9 (Process Architecture) in the Database Concepts doc
http://docs.oracle.com/cd/B28359_01/server.111/b28318/process.htm
>
•VKTM (virtual keeper of time) is responsible for providing a wall-clock time (updated every second) and reference-time counter (updated every 20 ms and available only when running at elevated priority).
>
Grandfather time is the last process to be stopped.
When your time comes to an end - you too will be 'shutdown' (chances of a successful recovery are not good even with extensive logs).
Here's hoping that your personal shutdown is 'normal' and not 'immediate' or 'abort'!
Maybe you are looking for
-
Preface: This is my second new AEBS in two weeks. They've both had this issue (which seems unique from the other disconnect postings I've found), so it's not AEBS hardware. I've also had a perfectly functioning Airport Express in the exact same confi
-
I am unable to reinstall Photoshop CS6 (I do have the serial number) on my Macbook Pro 10.9.5 (Mavericks os). and am getting the message "Installation on case-sensitive volumes is not supported. Please choose a different volume for installation." I
-
Regarding Obsolete Function Modules
Hi all, can anybody tell me the alternative ECC6.0 function modules of the following Obsolete function modules DOWNLOAD UPLOAD WS_DOWNLOAD WS_UPLOAD WS_FILENAME_GET WS_QUERY POPUP_TO_CONFIRM_STEP POPUP_TO_CONFIRM_WITH_MESSAGE thnks Sandeep
-
Why can I not register a user? It just gives error..
It tells me I am already registerd, I am trying to use the eprint service. Edit: It says it needs an activation code on my phone, and that is has been emailed to me. But I am not getting the mail.. So I do not know the code. Love loving life!
-
Upgrading from CS5.5 to CS6
thinking of upgrading from CS5.5 to 6 anything i should know about the difference here - i am used to building folios with 5.5 ?