not able to connect as shared server [message #296578] |
Mon, 28 January 2008 05:38 |
NandKumar
Messages: 92 Registered: June 2007 Location: v$hyderabad
|
Member |
|
|
OS windows server 2003 EE
DB oracle 10.2.0
RAM 8G
Hi friends, i have configured shared server in my database, though the clients are connecting as Dedicated connections.
I have configured shared server by setting the parameters shared_servers=10
dispatchers='(PROTOCOL=TCP) (DISPATCHERS=3)'
Can you please give me suggestions where iam wrong.
Regards
Nand Kumar
|
|
|
|
|
Re: not able to connect as shared server [message #296605 is a reply to message #296582] |
Mon, 28 January 2008 06:42 |
NandKumar
Messages: 92 Registered: June 2007 Location: v$hyderabad
|
Member |
|
|
Thank you friends for your prompt response.
Yes, the default is dedicated server connection if we dont specify 'server' parameter in Tnsnames.ora ....I dont know how i missed that trivial thing. Now Iam able to connect.
Thankyou Mr Cadot and Mr Bhati
NandKumar
|
|
|
|
Re: not able to connect as shared server [message #296620 is a reply to message #296609] |
Mon, 28 January 2008 07:37 |
NandKumar
Messages: 92 Registered: June 2007 Location: v$hyderabad
|
Member |
|
|
Michel, I have a doubt, if iam running on dedicated server mode, after some time I have set the parameters for shared server, then the new client connections...(assume they dont have server=shared parameter in the tnsnames.ora) will they be dedicated connections or shared connections?
On my test database, iam able to connect as shared server connection, but on production, iam facing the error
ORA-12523: TNS:listener could not find instance appropriate for the client connection
The status of listener on the server shows status 'UNKNOWN'. Whereas on the test database shows 'READY'. I have read that status ready is when the PMON registers the database information with the server.
So, is this the cause that Iam not able to connect to database using shared server connection( status=UNKNOWN)
|
|
|
|
|
|
|
Re: not able to connect as shared server [message #296746 is a reply to message #296578] |
Mon, 28 January 2008 23:17 |
mkbhati
Messages: 93 Registered: February 2007 Location: Mumbai
|
Member |
|
|
Quote: | I beg to differ.
There is no default.
If you say nothing and your instance is configured for shared server then you use shared server, if it is not configured then you use dedicated server.
|
Michel, my sincere apologies for contradicting your opinion. Either you configure shared servers or not there is always a default $USER service in every oracle database which provides dedicated connections for all user connection requests which do not specify a service name & server type in connection requests. Some operations require dedicated connections, Try startup/shutdown on a shared connection.
A good pointer is here http://www.psoug.org/reference/dbms_service.html
Regards
Manjit Kumar [mkbhati]
|
|
|
|
|
Re: not able to connect as shared server [message #297006 is a reply to message #296578] |
Tue, 29 January 2008 22:15 |
mkbhati
Messages: 93 Registered: February 2007 Location: Mumbai
|
Member |
|
|
Michel my sincere thanks for giving your valuable attention. OP's problem is solved but if you permit can we hang on this thread for a while.
Just for sake of test can you try it on local without using Oracle net i.e. without @mika0. Just try sqlplus user_name/user_password on local & see which server you get shared or dedicated ?.
Regards
Manjit Kumar [mkbhati]
|
|
|
|
|