Shared server and starting up a database
hi guys,
I am reading in a book:
And it is logically impossible to issue startup or shutdown commands through a shared server: the shared servers are part of the instance and thus not available at the time you issue a startup command.
So the administrator should always have a dedicated server connection.
This confuses me. How can a DBA have a dedicated server connection if we're using shared servers?
thanks.
OracleGuy777 wrote:
hi guys,
I am reading in a book:
And it is logically impossible to issue startup or shutdown commands through a shared server: the shared servers are part of the instance and thus not available at the time you issue a startup command.
So the administrator should always have a dedicated server connection.
This confuses me. How can a DBA have a dedicated server connection if we're using shared servers?
thanks.You've already marked the answer as correct, but let me clarify something for your.
A database doesn't really operate in "shared server" mode vs. "dedicated server" mode. A database will always accept dedicated server connections. In addition, it may accept shared server conditions if it is configured to do so by specifying the dispatchers. It is always the responsibility of the client connection to specify what type of connection is requested.
Similar Messages
-
Log on to remote server and start database -error while installing CI in HA
Hello All,
We are installing ECC 6.0 with High Availability using HP-UX. We have completed installation in ASCS and Database Instance. Now when were trying to install in Central Instance, we encountered an error at Start Instance which informed us to Log on to remote server and start database. However the database is already running in DB node. Please find the log below.
TRACE 2011-06-10 16:31:45.825 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 25742
INFO 2011-06-10 16:31:45.835
CJSlibModule::writeInfo_impl()
Output of /usr/sap/PE2/SYS/exe/run/startsap all DVEBMGS01 DBMCI001 is written to the logfile start_PE2_DVEBMGS01.log.
WARNING 2011-06-10 16:31:46.345
CJSlibModule::writeWarning_impl()
Execution of the command "/usr/sap/PE2/SYS/exe/run/startsap all DVEBMGS01 DBMCI001" finished with return code 6. Output:
Database PE2 must be started on remote server
Log on to remote server and start database
WARNING[E] 2011-06-10 16:31:46.355
CJSlibModule::writeError_impl()
CJS-20022 Could not start instance 'DVEBMGS01' of SAP system PE2.
TRACE 2011-06-10 16:31:46.355 [iaxxejsbas.hpp:408]
handleException<ESAPinstJSError>()
Converting exception into JS Exception EJSException.
TRACE 2011-06-10 16:31:46.355
Function setMessageIdOfExceptionMessage: ind-rel.ind-os.ind-db.webas.startInstanceFailed
WARNING[E] 2011-06-10 16:31:46.355
CJSlibModule::writeError_impl()
CJS-20022 Could not start instance 'DVEBMGS01' of SAP system PE2.
TRACE 2011-06-10 16:31:46.355 [iaxxejsbas.hpp:483]
EJS_Base::dispatchFunctionCall()
JS Callback has thrown unknown exception. Rethrowing.
TRACE 2011-06-10 16:31:46.405 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 25793
ERROR 2011-06-10 16:31:46.525 [sixxcstepexecute.cpp:950]
FCO-00011 The step start with step key |NW_ABAP_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|10|0|NW_CI_Instance_Start|ind|ind|ind|ind|2|0|start was executed with status ERROR .
TRACE 2011-06-10 16:31:46.555 [iaxxgenimp.cpp:752]
CGuiEngineImp::showMessageBox
<html> <head> </head> <body> <p> An error occurred while processing option SAP ERP 6.0 EHP4 Ready - Support Release 1 > SAP Application Server ABAP > Oracle > High-Availability System > Central Instance . You can now: </p> <ul> <li> Choose <i>Retry</i> to repeat the current step. </li> <li> Choose <i>View Log</i> to get more information about the error. </li> <li> Stop the option and continue with it later. </li> </ul> <p> Log files are written to /tmp/sapinst_instdir/ERPEhP4/AS-ABAP/ORA/HA/CI. </p> </body></html>
TRACE 2011-06-10 16:31:46.555 [iaxxgenimp.cpp:1255]
CGuiEngineImp::acceptAnswerForBlockingRequest
Waiting for an answer from GUI
Kindly let us know how to rectify the error and prroceed further with the instalaltion.
Thanks
RishiDear Guys,
we didnt change the date and time but i m very sure it is same trans.log file.
for your kind information please note SID and Nodes details
Sid (PE2)
DB Node : DBMDB001
CI Node : DBMCI001
also i am attaching starting part of the file.
4 ETW000 R3trans version 6.14 (release 701 - 26.01.09 - 12:46:00).
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 07.11.2010 - 03:44:06
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: R3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Sun Nov 7 03:44:06 2010 295 0.000295
4 ETW000 [dev trc ,00000] db_con_init called 22 0.000317
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 116 0.000433
4 ETW000 [dev trc ,00000] Loading DB library '/usr/sap/PC1/SYS/exe/run/dboraslib.so' ...
4 ETW000 64 0.000497
4 ETW000 [dev trc ,00000] load shared library (/usr/sap/PC1/SYS/exe/run/dboraslib.so), hdl 0
4 ETW000 32161 0.032658
4 ETW000 [dev trc ,00000] Library '/usr/sap/PC1/SYS/exe/run/dboraslib.so' loaded
4 ETW000 39 0.032697
4 ETW000 [dev trc ,00000] function DbSlExpFuns loaded from library
/usr/sap/PC1/SYS/exe/run/dboraslib.so
4 ETW000 111 0.032808
4 ETW000 [dev trc ,00000] Version of '/usr/sap/PC1/SYS/exe/run/dboraslib.so' is "700.08",
patchlevel (0.25)
4 ETW000 265 0.033073
4 ETW000 [dev trc ,00000] function dsql_db_init loaded from library
/usr/sap/PC1/SYS/exe/run/dboraslib.so
4 ETW000 41 0.033114
4 ETW000 [dev trc ,00000] function dbdd_exp_funs loaded from library
/usr/sap/PC1/SYS/exe/run/dboraslib.so
4 ETW000 82 0.033196
4 ETW000 [dev trc ,00000] New connection 0 created 52 0.033248
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES,
reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 41 0.033289
4 ETW000 [dev trc ,00000] db_con_connect (con_name=R/3) 84 0.033373
4 ETW000 [dev trc ,00000] find_con_by_name found the following connection for reuse:
4 ETW000 31 0.033404
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES,
reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 37 0.033441
4 ETW000 [dev trc ,00000] Oracle Client Version: '10.2.0.4.0' 601 0.034042
4 ETW000 [dev trc ,00000] -->oci_initialize (con_hdl=0) 25 0.034067
4 ETW000 [dev trc ,00000] Client character set UTF16 -> UTF8 35674 0.069741
4 ETW000 [dev trc ,00000] Client NLS setting (OCINlsGetInfo): 'AMERICAN_AMERICA.UTF8'
4 ETW000 57 0.069798
4 ETW000 [dev trc ,00000] Logon as OPS$-user to get SAPSR3's password 55 0.069853
4 ETW000 [dev trc ,00000] Connecting as /@PC1 on connection 0 (nls_hdl 0) ... (dbsl 700
151208)
4 ETW000 34 0.069887
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet C
EnvHp ErrHp ErrHpBatch
4 ETW000 52 0.069939
4 ETW000 [dev trc ,00000] 0 UTF8 0
0x6000000001052910 0x600000000105a3c0 0x600000000106ab38
4 ETW000 58 0.069997
4 ETW000 [dev trc ,00000] Allocating service context handle for con_hdl=0 40 0.070037
4 ETW000 [dev trc ,00000] Allocating server context handle 27 0.070064
4 ETW000 [dev trc ,00000] Attaching to DB Server PC1
(con_hdl=0,svchp=0x600000000106aa68,srvhp=0x600000000106de78)
4 ETW000 63 0.070127
4 ETW000 [dev trc ,00000] Assigning server context 0x600000000106de78 to service context
0x600000000106aa68
4 ETW000 60612 0.130739
4 ETW000 [dev trc ,00000] Allocating user session handle 97 0.130836
4 ETW000 [dev trc ,00000] Starting user session: OCISessionBegin(con_hdl=0,
usr='/',svchp=0x600000000106aa68, srvhp=0x600000000106de78, usrhp=0x60000000010fc940)
4 ETW000 64 0.130900
4 ETW000 [dev trc ,00000] Assigning user session 0x60000000010fc940 to service context
0x600000000106aa68
4 ETW000 9302 0.140202
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=53, stmth_p=0x6000000001077608)
4 ETW000 198 0.140400
4 ETW000 [dev trc ,00000] BEGIN DBMS_APPLICATION_INFO.SET_MODULE(:A0,:A1); END;
4 ETW000 38 0.140438
4 ETW000 [dev trc ,00000] CbApplInfoGet() failed! Ignore, but uninstall callback to avoid more
erroneous calls
4 ETW000 291 0.140729
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=54, stmth_p=0x6000000001078660)
4 ETW000 33 0.140762
4 ETW000 [dev trc ,00000] BEGIN DBMS_APPLICATION_INFO.SET_CLIENT_INFO(:A0); END;
4 ETW000 35 0.140797
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
4 ETW000 937 0.141734
4 ETW000 [dev trc ,00000] SELECT SID FROM V$MYSTAT WHERE ROWNUM<2
4 ETW000 36 0.141770
4 ETW000 [dev trc ,00000] Connected to session 297. 639 0.142409
4 ETW000 [dev trc ,00000] Now '/@PC1' is connected: con_hdl=0, nls_hdl=0, session_id=297.
4 ETW000 38 0.142447
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
4 ETW000 37 0.142484
4 ETW000 [dev trc ,00000] ALTER SESSION SET NLS_SORT = BINARY
4 ETW000 36 0.142520
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
4 ETW000 327 0.142847
4 ETW000 [dev trc ,00000] SELECT USERID, PASSWD FROM SAPUSER WHERE USERID IN (:A0, :A1)
4 ETW000 36 0.142883
4 ETW000 [dev trc ,00000] Got SAPSR3's password from OPS$-user 728 0.143611
4 ETW000 [dev trc ,00000] Disconnecting from connection 0 ... 38 0.143649
4 ETW000 [dev trc ,00000] Rolling back transaction ... 31 0.143680
4 ETW000 [dev trc ,00000] Closing user session
(con_hdl=0,svchp=0x600000000106aa68,usrhp=0x60000000010fc940)
4 ETW000 210 0.143890
4 ETW000 [dev trc ,00000] Now I'm disconnected from ORACLE 721 0.144611
4 ETW000 [dev trc ,00000] Connecting as SAPSR3/<pwd>@PC1 on connection 0 (nls_hdl 0) ... (dbsl
700 151208)
4 ETW000 40 0.144651
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet C
EnvHp ErrHp ErrHpBatch
4 ETW000 37 0.144688
4 ETW000 [dev trc ,00000] 0 UTF8 0
0x6000000001052910 0x600000000105a3c0 0x600000000106ab38
4 ETW000 37 0.144725
4 ETW000 [dev trc ,00000] Assigning username to user session: con_hdl=0,
usrhp=0x60000000010fc940
4 ETW000 35 0.144760
4 ETW000 [dev trc ,00000] Assigning password to user session: con_hdl=0,
usrhp=0x60000000010fc940
4 ETW000 40 0.144800
4 ETW000 [dev trc ,00000] Starting user session: OCISessionBegin(con_hdl=0, usr=SAPSR3/<pwd>,
svchp=0x600000000106aa68, srvhp=0x600000000106de78, usrhp=0x60000000010fc940)
4 ETW000 337 0.145137
4 ETW000 [dev trc ,00000] Assigning user session 0x60000000010fc940 to service context
0x600000000106aa68
4 ETW000 4085 0.149222
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=54, stmth_p=0x6000000001077608)
4 ETW000 63 0.149285
4 ETW000 [dev trc ,00000] BEGIN DBMS_APPLICATION_INFO.SET_CLIENT_INFO(:A0); END;
4 ETW000 37 0.149322
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
4 ETW000 585 0.149907
4 ETW000 [dev trc ,00000] SELECT SID FROM V$MYSTAT WHERE ROWNUM<2
4 ETW000 36 0.149943
4 ETW000 [dev trc ,00000] Connected to session 297. 350 0.150293
4 ETW000 [dev trc ,00000] Now 'SAPSR3/<pwd>@PC1' is connected: con_hdl=0, nls_hdl=0,
session_id=297.
4 ETW000 38 0.150331
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
4 ETW000 38 0.150369
4 ETW000 [dev trc ,00000] ALTER SESSION SET NLS_SORT = BINARY
4 ETW000 34 0.150403
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
4 ETW000 294 0.150697
4 ETW000 [dev trc ,00000] SELECT VALUE FROM V$NLS_PARAMETERS WHERE PARAMETER IN
('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET') ORDER BY PARAM
4 ETW000 66 0.150763
4 ETW000 [dev trc ,00000] ETER
4 ETW000 34 0.150797
4 ETW000 [dev trc ,00000] Database NLS settings: AMERICAN_AMERICA.UTF8 329 0.151126
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
4 ETW000 856 0.151982
4 ETW000 [dev trc ,00000] SELECT UPPER(INSTANCE_NAME),HOST_NAME,VERSION,TO_CHAR
(STARTUP_TIME,'MON DD, YYYY, HH24:MI:SS') FROM V$INSTANCE
4 ETW000 36 0.152018
4 ETW000 [dev trc ,00000] DB instance PC1 is running on scmdb001 with ORACLE version
10.2.0.4.0 since NOV 07, 2010, 03:23:10
4 ETW000 349 0.152367
4 ETW000 [dev trc ,00000] -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
4 ETW000 38 0.152405
4 ETW000 [dev trc ,00000] SELECT SUBSTR(NAME,1,3), TO_CHAR(CREATED,'YYYYMMDDHHMMSS')
FROM V$DATABASE -
Different between shared server and dedicated server
could you explain difference between shared server and dedicated server.
Oracle has two modes, a shared server mode and a dedicated server mode. In dedicated server mode (the default), the Oracle server creates one process per connection.
This quickly limits the number of connections the Oracle Server can support due to the following:
1.There is an OS limit on how many processes/file descriptors can be supported
2.Oracle has an internal PROCESSES parameter that prevents it from launching more than the specified number of processes.
When it is anticipated that these limits may be exceeded, which frequently happens for 50-100 concurrent connections, you should either configure Oracle in shared server mode or increase the limits above, so that many concurrent connections can be supported by each Oracle process. Oracle states that running in shared server mode is slightly slower than in dedicated server mode. -
Shared Server and Dedicated Connetion
Scenerio:
We have 1000 dedicated server database connection. My boss want me to configure one shared server connection out of 1000 dedicated connection for 100+ user of one particular module. Is it possible?
I guess if we activated shared server at database level then for 999 connetion we have to pass SERVER=DEDICATED at connection string. Which is not feasible for me seeing my current enviroment.Rajib Sutradhar wrote:
Scenerio:
We have 1000 dedicated server database connection. My boss want me to configure one shared server connection out of 1000 dedicated connection for 100+ user of one particular module. Is it possible?
I guess if we activated shared server at database level then for 999 connetion we have to pass SERVER=DEDICATED at connection string. Which is not feasible for me seeing my current enviroment.Yes, you're correct.
Unless you start using a shared tnsnames.ora file ( some where at a netwerk share ) and have pointing TNS_ADMIN to it, it means updating every tnsnames on every client you have.
However I found this link:
http://www.filibeto.org/sun/lib/nonsun/oracle/11.1.0.6.0/B28359_01/server.111/b28310/manproc003.htm
Where it says you can limit the number of concurrent shared sessions used by setting the parameter SHARED_SERVER_SESSIONS
Reading more of it, it looks like you can also define a seperate listener, with a seperate port for the shared server configuration and configure the dispatchers with that listener information.
So, it looks like you don't even have to change 1000 clients
Good Luck,
FJFranken
My Blog: http://managingoracle.blogspot.com -
Shared server and dispatcher configuraiton
Hi All,
Can any one suggest what are the changes requried if I want to use Shared server instead of Dedicated server in my oracle 10.2.0.4 setup?
is there any configuration requried for dispatcher separtely (I am using TCP/IP protocol with default listener port 1521)?
is it requried to restart database?
Thanks...Start from here :-)
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm#ADMIN00502 -
How to make appliction server and how to make database server
Hi all
Release 12.1.1 software bundle are labeled as follows:
• Start Here - Disk 1
• APPL_TOP - Disk n
• RDBMS - Disk n
• Tools - Disk n
• Databases - Disk n
i want to make database server and other one is application server
which one software is install in database server and which one software is install in appliction severHello,
Please, find enclosed a link about Oracle Application Concept:
[http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120oacg.pdf]
[http://download.oracle.com/docs/cd/B40089_10/current/html/homeset.html]
You'll get many answers and the best practices.
Hope it can help.
Best regards,
Jean-Valentin -
SHARED server and DEDICATED server
Hi,
our dB in 8.1.7 on Win2003. How to see if it is SHARED server or DEDICATED ? If shared can we come back to DEDICATED ?
Many thanks.Hi,
Oracle 8i on 2003 looks strange to me. Check v$version.
If you are on 8i, check the parameter mts_dispatchers should have some big string in it (showing the detail dispatcher configuration) and there should be a non-zero value for parameter "dispatcher(s)".
Regards -
I need to shutdown all my databases (ifs_Data and OEMREP), because computer people are going to run periodically a process to backup them. But I cannot find how to stop and start my oracle databases by commands (I need to create a bat file). I am using Win2000, Oracle 9 and iFS 9.0.1
Thanks for the suggestions,This can be a procedure to shutdown a database:
SET ORACLE_SID=<database_sid>
sqlplus /nolog
conn / as sysdba
shutdown <option>;
exit
<option> = Abort ( Not recommendable ), Immediate, transactional, normal.
Joel Pérez -
Shared server connections.
we are running a third party application with an 11g database shared server configuration and OAS 10gR2. Dispatchers set to 10 and shared servers set to 100. When the database instance is started, the 100 shared server and 10 dispatcher sessions start up and I can see these processes with ps -ef. They show as ora_s0* processes and ora_d0* respectively.
At some point after the startup of the application, it establishes a connection pool of 100 sessions (10 per dispacher). The process Id of these sessions correspond to the pids of the dispatcher processes not the shared server processes.
The 100 sessions in the connection pool remain idle until a user logs on to the system. When a successful login is made, I see that about 8 of the idle sessions become active and remain so until the user finishes with the application and logs out.
Questions :
1. Is there a query I can do to show me the shared sherver sessions i.e. ora_s0* being used?
3. Are the 100 sessions (in the connection pool) really the shared server sessions even though they show up with the pid of the parent dispatcher?
2. I need to record the number of connections being made to the system over a period and how long each user is connected for, could you suggest the best method (including queries) of going about this task?
Thank you.user8869798 wrote:
we are running a third party application with an 11g database shared server configuration and OAS 10gR2. Dispatchers set to 10 and shared servers set to 100. When the database instance is started, the 100 shared server and 10 dispatcher sessions start up and I can see these processes with ps -ef. They show as ora_s0* processes and ora_d0* respectively.
At some point after the startup of the application, it establishes a connection pool of 100 sessions (10 per dispacher). The process Id of these sessions correspond to the pids of the dispatcher processes not the shared server processes.
The 100 sessions in the connection pool remain idle until a user logs on to the system. When a successful login is made, I see that about 8 of the idle sessions become active and remain so until the user finishes with the application and logs out.
Questions :
1. Is there a query I can do to show me the shared sherver sessions i.e. ora_s0* being used?You can use v$shared_server s, v$circuit c, v$session n
with this as joining condition- s.circuit = c.circuit and c.saddr = n.saddr
3. Are the 100 sessions (in the connection pool) really the shared server sessions even though they show up with the pid of the parent dispatcher? you can query server column of v$session to check if they are shared or dedicated.
2. I need to record the number of connections being made to the system over a period and how long each user is connected for, could you suggest the best method (including queries) of going about this task?
I see only ash the option for you, else you need to have your own scheduled script/procedure that would gather that information.
Thank you. -
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. -
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 -
Shared server error in RAC ?
_I changed my RAC database from dedicated to shared server . Then I changed client tnsnames.ora to meet shared server and tried to connect . It worked fine and I could do my job as normal.
But when I connected as sysdba and used (select server from v$session) to verify , there were 1 session NONE and no session SHARED . I tried to connect 5 more session from clients and there were 5 more NONE .
Then I used (select circuit,dispatcher from v$circuit) and there were exact 6 circuits.
_Is this an error in RAC ? Did I fail to convert from dedicated to shared server ?Please help.
My system : RAC10g , OracleEnterpriseLinux5_This is my tnsnames.ora in client
HTI =
(DESCRIPTION =
(LOAD_BALANCE=yes)
(ADDRESS = (PROTOCOL = TCP)(HOST = dataht1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = dataht2-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = HTI)
_Clients can connect and work as normal with this tnsnames.ora . But when I try to find out how many sessions are in SHARED mode using (select server from v$session) there is 0 SHARED session althought there are about 20 client connections with the tnsnames.ora . There are 2 type of session when I use (select server from v$session) : NONE and DEDICATED . The more clients connect with the tnsnames , the more NONE sessions are created and no more DEDICATED sessions are created.
_I really don't understand what NONE means ! -
Hello All Gurus;
I m a new bie to oracle 9i working on Windows XP sp1. Where learning Configuring and Tuning Shared Server. I could not found the answer to the question how to configure a shared server or define in a Database that shared server will be used. Where and when it is to be defined on .... session/user/database level ?
Pl. Guide me
Thank YouHi Ora-boy,
Where learning Configuring and Tuning Shared Server. First, never use shared servers (MTS) if you have enough RAM:
http://www.dba-oracle.com/t_mts_multithreaded_servers_shared.htm
Oracle's Tom Kyte notes that the MTS should not be used without a "real reason" and he notes that shared server connections are slower than with dedicated database connections (Oracle's default behavior):
"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, here are my notes on configuring shared servers:
http://www.dba-oracle.com/concepts/shared_pool_mts.htm
Hope this helps. . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference":
http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm -
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. -
SQL Developer, SQL Server and the ampersand
Hello,
I am connected to a SQL Server database (2008) and am having difficulty getting a query to run properly in SQL Developer (3.1.07).
Simplified Example
select table_field
from table
where table_field <> 'This & That';
Expected results
table_field
Other stuff
Other stuff
Other stuff
Actual results
table_field
Other stuff
This & That
This & That
I cannot seem to get SQL Developer to recognize the & as a literal ampersand. I've tried escaping it numerous ways, but it always thinks it is a variable.
The query works exactly as expected in MS SQL Management Studio and Toad. Of course, I can just run it in one of those but I'd like to try to get this to work in SQL Developer. Suggestions?
Please let me know if I can provide further information. Thanks.Hi,
SQL Developers worksheet is designed for Oracle, but we allow you to run statements against SQL Server and other non Oracle databases.
This can lead to some quirks, like the one you experienced.
Oracles SQL*Plus uses ampersand to define substitution variables.
Oracle SQL Developer has implemented the same concept.
Unfortunately this does not make sense when running something against a non Oracle database.
As a workaround, you can run the following SQL*Plus command in SQL Developer, before your SQL Server query.
SET DEFINE OFF;
select 'hello & goodbye';
The following maybe of some help as well.
http://dermotoneill.blogspot.com/2010/11/workheet-hints.html
http://dermotoneill.blogspot.com/2010/12/sql-server-and-sybase-browsing.html
Regards,
Dermot.
SQL Developer Team.
Maybe you are looking for
-
Corrupt or damaged pdf logo only in adobe reader
Hello Using quickbooks to make pdf's of invoice with custom business logo ... the logo comes blurry when attached to an email and opened with adobe reader ... but if I use an online viewer, like my google drive to view the pdf, the logo is fine what
-
Please can you help me! Searched the web & found plently of advice but still getting formatting display issue when viewing HTML newsletter in MS Outlook. Fully aware on the basics regarding the multiple issues when creating HTML newsletters but this
-
"Error Occured" after Task completed at Work flow status in threestate-work flow of Sharepoint list
Hi There, I have created a list as Alerts where we have Threstate workflow to assign the task to the user. Everything is working fine as expected but sometime the Workflow status getting "Error Occured" by User ID "System Account" after completed the
-
Recurring prompts to download Adobe Flash--help!!
About every two minutes, I get an irritating prompt to reinstall Adobe Flash. I'm running IE 32 bit on a Windows 7 machine...64 bits. I also run Mozilla Firefox and have Comcast as a service provider at 12mB speed. Can anyone tell me how to get ri
-
Warehouse Stock Analytics u0096 Inventory Turnover
Has anyone experienced any problems with the (Business Content provided) BEx query 0IC_C03_Q0024 (Warehouse Stock Analytics Inventory Turnover), defined on the 0IC_C03 (Material Stocks/Movements) InfoCube? Apparently the used BEx variable 0CYEAR-1