Re: shared server or dedicated server -- How to find ?
I would use: select server, count(*) from v$session group by server; That way you'll see how many sessions are using shared servers how many are forced to be dedicated. (you can have dedicated connections in MTS as well). Otherwise, you can check views v$mts, v$dispatcher, v$shared_server for statistics. Tanel. - Original Message - To: "Multiple recipients of list ORACLE-L" [EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 6:19 AM List , I would like to know whether my database is running on shared server (MTS) or dedicated server mode ? How do i find it out ? it's oracle 9.2.0.3 on Win2k. Regards, Jp. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Prem Khanna J INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Tanel Poder INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: shared server or dedicated server -- How to find ?
Tanel , v$mts, v$dispatcher, v$shared_server all have a record each. but: SQL select server, count(*) from v$session group by server; this query says that all conn are dedicated. but the tnsnames.ora in the client (webserver) doesn't enforce for a dedicated conn. ...and LSNCRSTL STATUS doesn't show anything reg. dispatcher. why it is so ? any thoughts ?!! Thanks Regards, Jp. 02-12-2003 15:54:24, "Tanel Poder" [EMAIL PROTECTED] wrote: I would use: select server, count(*) from v$session group by server; That way you'll see how many sessions are using shared servers how many are forced to be dedicated. (you can have dedicated connections in MTS as well). Otherwise, you can check views v$mts, v$dispatcher, v$shared_server for statistics. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Prem Khanna J INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: shared server or dedicated server -- How to find ?
Tanel List, SQL select name,network,status, from v$dispatcher; NAME: D000 NETWORK : (ADDRESS=(PROTOCOL=tcp)(HOST=oradb)(PORT=1027)) STATUS : WAIT my listener.ora doesn't have an entry for this and LSNRCTL STATUS doesn't show that it's listening on port 1027. but still,if i change my port no in client tnsnames.ora to 1027, i'm able to connect.totally confused :(( Thanks and Regards, Jp. 02-12-2003 15:54:24, "Tanel Poder" [EMAIL PROTECTED] wrote: I would use: select server, count(*) from v$session group by server; That way you'll see how many sessions are using shared servers how many are forced to be dedicated. (you can have dedicated connections in MTS as well). Otherwise, you can check views v$mts, v$dispatcher, v$shared_server for statistics. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Prem Khanna J INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: shared server or dedicated server -- How to find ?
Use "lsnrctl services" to see which services have been registered with your listener. Your dispatcher hasn't probably registered it's services with listener. Try "alter system register". If you still don't see any "shared" services (handler=dispatcher) under lsnrctl services, then your dispatchers register with wrong listener (or don't register at all). Check values of local_listener, remote_listener, mts_listener_address and see if they match your listener's address. If the parameters are default then dispatchers try to register them with listener on localhost:1521 If you get your services registered, but all new connections still remain DEDICATED, then check whether you don't have (SERVER=EDICATED) in your tnsnames.ora entries. Note that background processes servers in v$session are always dedicated. Tanel. - Original Message - To: "Multiple recipients of list ORACLE-L" [EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 10:39 AM Tanel , v$mts, v$dispatcher, v$shared_server all have a record each. but: SQL select server, count(*) from v$session group by server; this query says that all conn are dedicated. but the tnsnames.ora in the client (webserver) doesn't enforce for a dedicated conn. ...and LSNCRSTL STATUS doesn't show anything reg. dispatcher. why it is so ? any thoughts ?!! Thanks Regards, Jp. 02-12-2003 15:54:24, "Tanel Poder" [EMAIL PROTECTED] wrote: I would use: select server, count(*) from v$session group by server; That way you'll see how many sessions are using shared servers how many are forced to be dedicated. (you can have dedicated connections in MTS as well). Otherwise, you can check views v$mts, v$dispatcher, v$shared_server for statistics. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Prem Khanna J INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Tanel Poder INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: shared server or dedicated server -- How to find ?
Don't worry about dispacther's address, they ought to be running on different ports than listener anyway. Don't use lsnrctl status for checkin services, lsnrctl services is for that. Yes, in Oracle you can directly connect to your dispatcher as well if you want to (some people have resolved firewall port issues that way, by setting dispacther to run on specific port). But generally you should use listener to connect. Listener acts just like a middle-man when estabilishing connection. When a new connection is made to listener and service "orcl" is requested for example, then listener checks whether it has a service "orcl" configured in it's confifguration (listener.ora) or has anyone registered this kind of service with it. If it finds the service, it also knows on which ports are the dispatchers or with which SID should it spawn a new server process. Tanel. - Original Message - To: "Multiple recipients of list ORACLE-L" [EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 11:04 AM Tanel List, SQL select name,network,status, from v$dispatcher; NAME : D000 NETWORK : (ADDRESS=(PROTOCOL=tcp)(HOST=oradb)(PORT=1027)) STATUS : WAIT my listener.ora doesn't have an entry for this and LSNRCTL STATUS doesn't show that it's listening on port 1027. but still,if i change my port no in client tnsnames.ora to 1027, i'm able to connect.totally confused :(( Thanks and Regards, Jp. 02-12-2003 15:54:24, "Tanel Poder" [EMAIL PROTECTED] wrote: I would use: select server, count(*) from v$session group by server; That way you'll see how many sessions are using shared servers how many are forced to be dedicated. (you can have dedicated connections in MTS as well). Otherwise, you can check views v$mts, v$dispatcher, v$shared_server for statistics. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Prem Khanna J INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Tanel Poder INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: shared server or dedicated server -- How to find ?
This may help ... select server from v$session where audsid = USERENV ('SESSIONID') ; Thanks, Nick Khimani -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Nikhil Khimani INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: shared server or dedicated server -- How to find ?
Let me note that I used listener status to figure out services because the output of stat is more compact and easier to read. Of course, one should always use services to look see how services are configured. On 12/02/2003 04:59:25 AM, Tanel Poder wrote: Don't worry about dispacther's address, they ought to be running on different ports than listener anyway. Don't use lsnrctl status for checkin services, lsnrctl services is for that. Yes, in Oracle you can directly connect to your dispatcher as well if you want to (some people have resolved firewall port issues that way, by setting dispacther to run on specific port). But generally you should use listener to connect. Listener acts just like a middle-man when estabilishing connection. When a new connection is made to listener and service orcl is requested for example, then listener checks whether it has a service orcl configured in it's confifguration (listener.ora) or has anyone registered this kind of service with it. If it finds the service, it also knows on which ports are the dispatchers or with which SID should it spawn a new server process. Tanel. - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 11:04 AM Tanel List, SQL select name,network,status, from v$dispatcher; NAME : D000 NETWORK : (ADDRESS=(PROTOCOL=tcp)(HOST=oradb)(PORT=1027)) STATUS : WAIT my listener.ora doesn't have an entry for this and LSNRCTL STATUS doesn't show that it's listening on port 1027. but still,if i change my port no in client tnsnames.ora to 1027, i'm able to connect.totally confused :(( Thanks and Regards, Jp. 02-12-2003 15:54:24, Tanel Poder [EMAIL PROTECTED] wrote: I would use: select server, count(*) from v$session group by server; That way you'll see how many sessions are using shared servers how many are forced to be dedicated. (you can have dedicated connections in MTS as well). Otherwise, you can check views v$mts, v$dispatcher, v$shared_server for statistics. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Prem Khanna J INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Tanel Poder INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Mladen Gogala Oracle DBA Note: This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mladen Gogala INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: shared server or dedicated server -- How to find ?
Prem, MTS configuration requires cooperation of two peaces of software: RDBMS and listener. It's not enough to check the database configuration, you should also check listener.ora and tnsnames.ora On 12/02/2003 03:39:26 AM, Prem Khanna J wrote: Tanel , v$mts, v$dispatcher, v$shared_server all have a record each. but: SQL select server, count(*) from v$session group by server; this query says that all conn are dedicated. but the tnsnames.ora in the client (webserver) doesn't enforce for a dedicated conn. ...and LSNCRSTL STATUS doesn't show anything reg. dispatcher. why it is so ? any thoughts ?!! Thanks Regards, Jp. 02-12-2003 15:54:24, Tanel Poder [EMAIL PROTECTED] wrote: I would use: select server, count(*) from v$session group by server; That way you'll see how many sessions are using shared servers how many are forced to be dedicated. (you can have dedicated connections in MTS as well). Otherwise, you can check views v$mts, v$dispatcher, v$shared_server for statistics. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Prem Khanna J INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Mladen Gogala Oracle DBA Note: This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mladen Gogala INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: shared server or dedicated server -- How to find ?
Your database is not running on either share or dedicated session mode. Your sessions are connecting to either a dedicated server or a shared server. You can have a mix as well. Some sessions may be connecting to dedicated servers while others may be utilizing shared servers. It doesn't sound very logical, but if you want to find out about your sessions, you should go and consult V$SESSION. There is, believe or not, a column called SERVER Here is an example of a query that should tell you everything: SQL select username,server,module from v$session 2 where type='USER'; USERNAME SERVERMODULE - --- OPS$MGOGALA SHAREDSQL*Plus SYSTEM DEDICATED TOra SCOTTSHAREDSQL*Plus SYSTEM DEDICATED TOra SCOTTDEDICATED SQL*Plus So, I have a user called OPS$MGOGALA (I know, I'm a lazy bum, but I hate typing. I really do) logged in using shared server connection from SQL*Plus, user SYSTEM logged in using dedicated server connection using tora (2 connections, schema browser and sessions monitor) , then SCOTT logged in using shared server connection and another SCOTT using a dedicated server connection. Such a mix is typical. For some things I used shared servers, for others I utilize dedicated ones. V$SESSION tells me what is what. Database is said to be in the shared server mode as soon as you have dispatchers and shared servers configured and are able to connect in the shared server mode. Listener should look something like this: SQL $ lsnrctl stat LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 02-DEC-2003 00:19:25 Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=medo)(PORT=1521))) STATUS of the LISTENER Alias LISTENER Version TNSLSNR for Linux: Version 9.2.0.4.0 - Production Start Date02-DEC-2003 00:02:02 Uptime0 days 0 hr. 17 min. 22 sec Trace Level off Security OFF SNMP OFF Listener Parameter File /oracle/product/9.2.0/network/admin/listener.ora Listener Log File /oracle/product/9.2.0/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=medo)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=o9i))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=medo)(PORT=2100))(Presentation=FTP)(Session=RAW)) Services Summary... Service PLSExtProc has 1 instance(s). Instance PLSExtProc, status UNKNOWN, has 1 handler(s) for this service... Service o9i.adelphia.net has 2 instance(s). Instance o9i, status UNKNOWN, has 1 handler(s) for this service... Instance o9i, status READY, has 3 handler(s) for this service... The command completed successfully $ Here are 3 dispatchers: 1) Protocol=TCP, host=medo, port=1521 2) Protocol=IPC key=$ORACLE_SID 3) EXTPROC, for procedural extensions. XDM was commented out. This database is in the MTS mode, but I can still connect using dedicated server if I want to. Did I tell you that I hate typing? Well, I'm on strike until tomorrow morning. On 2003.12.01 23:19, Prem Khanna J wrote: List , I would like to know whether my database is running on shared server (MTS) or dedicated server mode ? How do i find it out ? it's oracle 9.2.0.3 on Win2k. Regards, Jp. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Prem Khanna J INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Mladen Gogala Oracle DBA -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mladen Gogala INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).