Number of connections to an instance
How to find the number of connections to an instance
Here read this
http://asktom.oracle.com/pls/ask/f?p=4950:8:11353584018011172977::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:5671284058977
HTH
Similar Messages
-
Unable to connect to an instance using EM but connecting fine with SQL*Plus
Good morning,
I followed these steps (from the 2 Day DBA document):
1. I created a template (including database) from an instance named "orcl" using DBCA, before proceeding to create the template, DBCA informed me that the instance would be shutdown, I told it to proceed.
2. The template was created successfully.
3. I am now unable to log into the orcl instance using EM, yet I can log into that instance without any problems using SQL*Plus.
The Question: Why am I not able to connect to the instance using EM ? and what do I need to do to correct this problem ?
Thank you very much for your help,
John.
PS: in case it may be helpful, the listener, tnsnames and Sqlnet files follow:
# listener.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = E:\Oracle\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:E:\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521))
ADR_BASE_LISTENER = E:\Oracle
# tnsnames.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
DBCA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dbca.localsite.com)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.localsite.com)
# sqlnet.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)Hi Chinar,
What you suggested solved the problem.
I am grateful for your help but, please, the next time you suggest a process that takes over an hour to complete, let me know beforehand.
thank you for your help, I do appreciate it.
John.
PS: here are the result of the process:
0 07:57 [Oracle] [17G] [608M] E:\Temp>emca -deconfig dbcontrol db -repos drop
STARTED EMCA at Aug 15, 2010 7:58:21 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: orcl
Listener port number: 1521
Password for SYS user:
Password for SYS user: abc123
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: y
Aug 15, 2010 7:59:37 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at E:\Oracle\cfgtoollogs\emca\orcl\emca_201
0_08_15_07_58_21.log.
Aug 15, 2010 7:59:38 AM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration
WARNING: EM is not configured for this database. No EM-specific actions can be p
erformed.
Aug 15, 2010 7:59:38 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Aug 15, 2010 8:06:59 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 15, 2010 8:07:17 AM
0 08:09 [Oracle] [17G] [355M] E:\Temp>emca -config dbcontrol db -repos create
STARTED EMCA at Aug 15, 2010 8:09:23 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: orcl
Listener port number: 1521
Listener ORACLE_HOME [ E:\Oracle\product\11.2.0\dbhome_1 ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Password for SYSMAN user: Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
You have specified the following settings
Database ORACLE_HOME ................ E:\Oracle\product\11.2.0\dbhome_1
Local hostname ................ 192.168.3.134
Listener ORACLE_HOME ................ E:\Oracle\product\11.2.0\dbhome_1
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
Do you wish to continue? [yes(Y)/no(N)]: y
Aug 15, 2010 8:10:51 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at E:\Oracle\cfgtoollogs\emca\orcl\emca_201
0_08_15_08_09_23.log.
Aug 15, 2010 8:11:10 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Aug 15, 2010 8:43:41 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Aug 15, 2010 8:44:09 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepos
itory
INFO: Uploading configuration data to EM repository (this may take a while) ...
Aug 15, 2010 8:47:39 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Aug 15, 2010 8:48:31 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareL
ib
INFO: Software library configured successfully.
Aug 15, 2010 8:48:31 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibra
ry
INFO: Deploying Provisioning archives ...
Aug 15, 2010 8:53:19 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibra
ry
INFO: Provisioning archives deployed successfully.
Aug 15, 2010 8:53:34 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Aug 15, 2010 8:54:22 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Aug 15, 2010 8:54:38 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Aug 15, 2010 9:12:50 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Aug 15, 2010 9:13:09 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://192.168.3.134:5501/em <<<<
<<<<<<<
Aug 15, 2010 9:14:22 AM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ WARNING ************************
Management Repository has been placed in secure mode wherein Enterprise Manager
data will be encrypted. The encryption key has been placed in the file: E:/Orac
le/product/11.2.0/dbhome_1/192.168.3.134_orcl/sysman/config/emkey.ora. Please
ensure this file is backed up as the encrypted data will become unusable if this
file is lost.
Enterprise Manager configuration completed successfully
FINISHED EMCA at Aug 15, 2010 9:14:22 AM
0 09:14 [Oracle] [17G] [603M] E:\Temp> -
Establish SSL connection to Oracle Instance w/JDBC Thin Client
Hello all,
I am writing a monitoring utility that will allow me to establish connections to both Oracle instances and LDAP repositories and query them to determine that they are up and running. My utility consists of a number of objects that handle connections to the LDAP and Oracle instances. I need to be able to do SSL and non-SSL connections to said instances.
My issue is this: I am able to do SSL and non-SSL to LDAP, and non-SSL to an Oracle instance. I am having problems, though, establishing an SSL connection to an Oracle instance (I am using the thin client). Whenever I try, a SQLException is thrown that states: "Encountered a problem with the secret store. Check the wallet location for the presense of an <b>open</b> wallet (cwallet.sso) and ensure that the wallet contains the correct credentials..."
Ok, a little background for those who may need it. Oracle uses a wallet to hold certs that allow SSL connections. I have a wallet on my box, and, from the command line, I am able to sqlplus into and tnsping the appropriate Oracle instances, so I know it is setup properly. The inability to connect only occurs in my code. My code looks like this:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Security.addProvider(new oracle.security.pki.OraclePKIProvider());
/*Setup connection properties*/
String connectionString = "testbox01:1000:ssl_instances_name";
String userName = "userName";
String pwd = "password";
Properties props = new Properties();
props.put("oracle.net.ssl_version", 3.0");
props.put("oracle.net.wallet_location", "SOURCE=(METHOD=file)(METHOD_DATA=(DIRECTORY=c:\\wallet)))");
props.put("oracle.net.ssl_cipher_suites", "ssl cipher suites");
props.put("oracle.net.ssl_server_dn_match", "FALSE");
props.put("oracle.net.ssl_client_authentication", "true");
/*Do connection and return connection object
OracleDataSource ods = new OracleDataSource();
ods.setUser(userName);
ods.setPassword(pwd);
ods.setUrl("jdbc:oracle:thin:@" + connectionString);
ods.setConnectionProperties(props);
Connection conn = ods.getConnection(); <---This is where code errors out with SQLException described above.
return conn;
And that's pretty much it. Anyone have any ideas?Ok, that looked horrible. Let's try this again:<br>
<br>
I am writing a monitoring utility that will allow me to establish connections to both Oracle instances and LDAP repositories and query them to determine that they are up and running. My utility consists of a number of objects that handle connections to the LDAP and Oracle instances. I need to be able to do SSL and non-SSL connections to said instances.<br>
<br>
My issue is this: I am able to do SSL and non-SSL to LDAP, and non-SSL to an Oracle instance. I am having problems, though, establishing an SSL connection to an Oracle instance. Whenever I try, a SQLException is thrown that states: "Encountered a problem with the secret store. Check the wallet location for the presense of an <b>open</b> wallet (cwallet.sso) and ensure that the wallet contains the correct credentials..."<br>
<br>
Ok, a little background for those who may need it. Oracle uses a wallet to hold certs that allow SSL connections. I have a wallet on my box, and, from the command line, I am able to sqlplus into and tnsping the appropriate Oracle instances, so I know it is setup properly. The inability to connect only occurs in my code. My code looks like this:<br>
<br>
*****<br>
<br>
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());<br>
Security.addProvider(new oracle.security.pki.OraclePKIProvider());<br>
<br>
/*Setup connection properties*/<br>
<br>
String connectionString = "testbox01:1000:ssl_instances_name";<br>
String userName = "userName";<br>
String pwd = "password";<br>
<br>
Properties props = new Properties();<br>
props.put("oracle.net.ssl_version", 3.0");<br>
props.put("oracle.net.wallet_location", "SOURCE=(METHOD=file)(METHOD_DATA=(DIRECTORY=c:\\wallet)))");<br>
props.put("oracle.net.ssl_cipher_suites", "ssl cipher suites");<br>
props.put("oracle.net.ssl_server_dn_match", "FALSE");<br>
props.put("oracle.net.ssl_client_authentication", "true");<br>
<br>
/*Do connection and return connection object*/<br>
OracleDataSource ods = new OracleDataSource();<br>
ods.setUser(userName);<br>
ods.setPassword(pwd);<br>
ods.setUrl("jdbc:oracle:thin:@" + connectionString);<br>
ods.setConnectionProperties(props);<br>
<br>
Connection conn = ods.getConnection(); <---This is where code errors out with SQLException described above.<br>
<br>
return conn;<br>
<br>
*****<br>
<br>
And that's pretty much it. Anyone have any ideas?<br> -
Weird - can connect to both instances - but not to main SID
As a newbie to RAC I got stuck...
after installation of grid, db SW and a sample DB "QRC" with dbca I can connect to both instances QRC1 and QRC2,
but not to QRC - here sqlplus tells me "connected to an idle instance"
What did I mix up??
rac11a ~ RDBMS > srvctl start database -d QRC -o open
PRCR-1004 : Resource ora.qrc.db is already running
rac11a ~ RDBMS >
[root@rac11a ~]# crsctl status res -t
NAME TARGET STATE SERVER STATE_DETAILS
Local Resources
ora.LISTENER.lsnr
ONLINE ONLINE rac11a
ONLINE ONLINE rac11b
ora.asm
OFFLINE OFFLINE rac11a
OFFLINE OFFLINE rac11b
ora.eons
ONLINE ONLINE rac11a
ONLINE ONLINE rac11b
ora.gsd
OFFLINE OFFLINE rac11a
OFFLINE OFFLINE rac11b
ora.net1.network
ONLINE ONLINE rac11a
ONLINE ONLINE rac11b
ora.ons
ONLINE ONLINE rac11a
ONLINE ONLINE rac11b
Cluster Resources
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac11b
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE rac11a
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE rac11a
ora.oc4j
1 OFFLINE OFFLINE
ora.qrc.db
1 ONLINE ONLINE rac11a Open
2 ONLINE ONLINE rac11b Open
ora.rac11a.vip
1 ONLINE ONLINE rac11a
ora.rac11b.vip
1 ONLINE ONLINE rac11b
ora.scan1.vip
1 ONLINE ONLINE rac11b
ora.scan2.vip
1 ONLINE ONLINE rac11a
ora.scan3.vip
1 ONLINE ONLINE rac11a
[root@rac11a ~]#
rac11a ~ RDBMS > tnsping qrc
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 02-FEB-2012 09:20:54
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = qrcscan.ddnett.de)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = QRC.ditanett)))
OK (40 msec)
rac11a ~ RDBMS > env | grep ORA
dbms_type=ORA
ORACLE_SID=QRC
ORACLE_BASE=/oracle/QRC
ORACLE_HOME=/oracle/QRC/11202
rac11a ~ RDBMS >
rac11a ~ RDBMS > sqlplus " / as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Thu Feb 2 09:21:04 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL>
rac11a ~ RDBMS > lsnrctl status
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 02-FEB-2012 08:23:25
Uptime 0 days 1 hr. 16 min. 21 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/LOCAL/GRID/11202/network/admin/listener.ora
Listener Log File /oracle/LOCAL/BASE/diag/tnslsnr/rac11a/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.141)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.241)(PORT=1521)))
Services Summary...
Service "QRC.ditanett" has 1 instance(s).
Instance "QRC1", status READY, has 1 handler(s) for this service...
Service "QRCXDB.ditanett" has 1 instance(s).
Instance "QRC1", status READY, has 1 handler(s) for this service...
The command completed successfully
rac11a ~ RDBMS >
rac11b ~ RDBMS > lsnrctl status
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 02-FEB-2012 08:24:02
Uptime 0 days 1 hr. 17 min. 12 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/LOCAL/GRID/11202/network/admin/listener.ora
Listener Log File /oracle/LOCAL/BASE/diag/tnslsnr/rac11b/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.142)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.242)(PORT=1521)))
Services Summary...
Service "QRC.ditanett" has 1 instance(s).
Instance "QRC2", status READY, has 1 handler(s) for this service...
Service "QRCXDB.ditanett" has 1 instance(s).
Instance "QRC2", status READY, has 1 handler(s) for this service...
The command completed successfully
rac11b ~ RDBMS >Hi,
after installation of grid, db SW and a sample DB "QRC" with dbca I can connect to both instances QRC1 and QRC2,
rac11a $ env | grep ORA
dbms_type=ORA
ORACLE_SID=QRC
ORACLE_BASE=/oracle/QRC
ORACLE_HOME=/oracle/QRC/11202
rac11a ~ RDBMS >
rac11a $ sqlplus " / as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Thu Feb 2 09:21:04 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL>
The Oracle System ID (SID) is used to uniquely identify a particular database on a system. For this reason, one cannot have more than one database with the same SID on a host.
When using RAC, all instances belonging to the same database must have unique SID's even using different hosts.
So, you must set ORACLE_SID to QRC1 where Instance 1 is running or QRC2 where Instance 2 is running.
To know where instance number is running you can get this info following steps below:
$GRID_HOME/bin/olsnodes -n
lnxora01 1
lnxora02 2In example above all instance created by DBCA on lnxora01 will have prefix 1 (e.g db QRC will have QRC1) and on lnxora02 will have prefix 2. (it's not a rule, because I can set manually the number of instance as I wish)
Or exists another way to find it: (on local node)
ps -ef |grep pmon
ora_pmon_QRC1 So, to connect just set right ORACLE_SID
eg:
export ORACLE_SID=QRC1
sqlplus / as sysdbaRegards,
Levi Pereira -
ORA-12154: Error when connecting to asm instance
hi all, I am now facing new problem with asm of clusterware, I failed to connect to asm instance, there is how I did it:
sqlplus /nologSQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 7 04:58:52 2010
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> connect sys@+ASM as sysasm
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
I consider listener is correct configed.
lsnrctl statusLSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 07-JUL-2010 08:51:49
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 05-JUL-2010 22:12:29
Uptime 1 days 6 hr. 39 min. 23 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\app\11.2.0\grid\network\admin\listener.ora
Listener Log File e:\app\11.2.0\grid\log\diag\tnslsnr\rac1\listener\aler
t\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\LISTENERipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.110)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.112)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+asm2", status READY, has 1 handler(s) for this service...
Service "itpub" has 1 instance(s).
Instance "itpub2", status READY, has 1 handler(s) for this service...
Service "itpubXDB" has 1 instance(s).
Instance "itpub2", status READY, has 1 handler(s) for this service...
The command completed successfully
How to resolve the promblem? Best regards..thank you for you kind.. I forgot it... but after I modify tnsname.ora, Error number changed..
tnsname.ora:
# tnsnames.ora Network Configuration File: E:\oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ITPUB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac-cluster-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = itpub)
+ASM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac-cluster-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = +ASM)
*>sqlplus /nolog*
SQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 7 12:50:07 2010
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> connect sys@+asm as sysasm
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
SQL>
tnsping +asmTNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 07-JUL-2
010 12:51:09
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
E:\oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = rac-clus
ter-scan)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = +as
m)))
OK (20 msec) -
Hi all,
Does anyone know the average and max number of connections a fairly popular service, like a buisness site, a widely used site, a web service container (forum, poll), and a local service, i.e. blog site, (not a web service, like servlets, but a server service like Jigsaw, or Apache) gets at any one time?
Or just a range, like 50-100, 100-200, 1000-1500, ...I have read that in apache conf files that maximum value that you can give for maximun simultanious threads is 256 which means an apache instance cant handle morethan 256 requests/hits at a time.
But remember
(One hit per second is equivalent to about 20 users actively browsing, at the rate of a page per minute where a page requires about 3 accesses. If an average user browses for an hour a day, one hit per second thus translates into 100-150 users.)
above part I took from the documentation of Xitami webserver
---------------------------------------------------------------------------------------- -
Problem with reached maximum number of connections to database
Dear Experts,
Our Production system was not responding properly last week.
The below was the reply from the Basis team.
"It seems that we have again problem with reached maximum number of connections to database. We have extended this number to 100 this year and now it seems that it’s not enough again. It seems that something is running on Production, which takes over too many connections."
They have increased the number to 200 as a work around.
Do we have any means to find out, which component or application is causing the issue.
Please advise me if any better way is available to correct the issue.
Please see the below trace.
From default trace:
======
Caused by: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException occurred in method ConnectionFactoryImpl.getConnection(): javax.resource.R
esourceException: (Failed in component: dbpool, BC-JAS-TRH) Cannot create connection. Possible reasons: 1)Maximum allowed connections to DB or EIS is reached. You
can apply CSN Note 719778 in order to check and resolve connection leaks. 2) Configuration to DB/EIS is wrong or DB/EIS is temporary unreachable. 3) Connections ar
e not enough for current load.
at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:60)
at com.sap.security.core.persistence.datasource.imp.J2EEConnectionPool.getConnection(J2EEConnectionPool.java:205)
... 61 more
Caused by: javax.resource.ResourceException: (Failed in component: dbpool, BC-JAS-TRH) Cannot create connection. Possible reasons: 1)Maximum allowed connections to
DB or EIS is reached. You can apply CSN Note 719778 in order to check and resolve connection leaks. 2) Configuration to DB/EIS is wrong or DB/EIS is temporary unr
eachable. 3) Connections are not enough for current load.
at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:230)
at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:343)
at com.sap.engine.services.connector.jca.ShareableConnectionManager.allocateConnection(ShareableConnectionManager.java:54)
at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:52)
... 62 more
Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException is thrown by the pooled connection: com.sap.sql.log.OpenSQLException: No c
onnection to data source SAPEPPDB available. All 100 pooled connections are in use and 70 connection requests are currently waiting. The connection pool size might
need to be adjusted.
at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:192)
at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:221)
... 65 more
Caused by: com.sap.sql.log.OpenSQLException: No connection to data source SAPEPPDB available. All 100 pooled connections are in use and 70 connection requests are
currently waiting. The connection pool size might need to be adjusted.
======
Thanks and Kind Regards,
JelbinStop all instances(including DB) and start again, Hope it should work.
It may happened that jar has not been synchronized with the database and may be version mismatch with the java.
719778 - Data Source fails to return connection
1650472 - Transactions are interrupted due to database connection periodically failing to establish
1138877 - How to Deploy External Drivers JDBC/JMS Adapters
Change the connection pool so that it can connect to DB as per the note 719778
Regards
Vijay Kalluri -
CAL - Connect to an instance of SAP ERP Foundation Extension powered by SAP HANA
Hello,
I created and activated an instance in CAL today, the ERP on HANA trial.
Once this instance is activated ("green button"), the "connect" option appears but I'm not able to connect to it using http or SAP Gui.
I have no firewall, the error is:
This webpage is not available
Could you help me?
Thank you!hi Pierre,
There could be multiple reasons for not being able to connect to the instance:
1. After click create instance, you need to wait for 45 minutes. Also the green botton comes,in the backend it is still working to complete the creation.
2. Once you have IP address, please try to connect to SAP GUI by manually add the server, instance number, etc into SAP GUI. See if it works. In addition, try to connect to BI launchpad via http:<IP address>:8080/BOE/BI.
3. Some user reported connection problem, we found out that certain AWS account may have problem with VPC layout used for this solution. check out the support AWS account:
• Click on EC2 Dashboard in left side navigation of the AWS Management Console • In upper right section of screen under Account Attributes section the Supported Platforms are listed http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html
regards, Xiaohua -
FMS2 core dies after a number of connections
Howdy folks
My company developed a flash video chat (adult related)
application. We have intensively tested the application without
problems on the developer edition of FMS and afterwards we decided
to buy a license. We have configured the license on the
1000/40/unlimited and fired the site up. But here's the problem.
After a certain number of connections (we counted at about 40
simultaneous streaming sessions plus let's say an average of 2
guests per each stream) the core goes off and dies, therefore not
loading the video anymore. Each time this happends we need to
restart the FMS and it's working fine for another period of time.
The system FMS2 is running on is a Dual Intel Xeon 3.2 Ghz with 4
GB of RAM. The processors are running at about 30 - 40% of their
capacity right before the core goes down.
Anyone else had any similar experience and if yes what was
the solution? Any help is greatly apreciated. Looking forward to
hear from the community.
Warm Regards
Andyquote:
Originally posted by:
anonymous thing
quote:
i'm running fms on the same box with apache/mysql/dns+mysql
We had the same problem: video freeze, etc... and it was
related to the fact that we were running Web Server and FMS on a
single server. It was not the only source of problem : we converted
video/audio file with ffmepg on the fly and it was the thing that
kill our FMS process. We now use several server and everything look
fine....
The best thing to do will be to split your server task(web,
FMS and other) among several server and in this case they don't
need to be incredible beast!
Hey anonymous
Thanks for the feedback. I've been adviced by so many persons
in so many ways but based on flv streaming scenarios. I do not do
that. I am in to a many-to-many scenario where the application
instances (sources of stream) come and goes dinamicaly. I get their
webcams and stream them to any potential viewers.
In the flv streaming case the fix for this issue is simple. I
set the <Scope> to inst and define RollOver and MaxCores
values and i have no stress since the cores will be replacing each
other at the defined period of time.
But in my case (many-to-many) i cant run the fms with the
Scope inst but only as app.
Anyway .. i do hope(think) that separing FMS will solve this
issue.
Regards
Andy -
I see a number of these events on my Lync 2010 Server. NSlookup shows that 75.0.230.1 is an sbcglobal.net server. (See bolded text.) I have no federation or other connections to sbcglobal.net or AT&T, so why is my Lync server attempting to contact this
server (and others) at all?
Log Name: Lync Server
Source: LS Protocol Stack
Date: 3/14/2014 11:34:30 AM
Event ID: 14502
Task Category: (1001)
Level: Error
Keywords: Classic
User: N/A
Computer: EdgeServer.mydomain.com
Description:
A significant number of connection failures have occurred with remote server IP 75.0.230.1. There have been 75 failures in the last 184 minutes. There have been a total of 75 failures.
The specific failure types and their counts are identified below.
Instance count - Failure Type
75 0x80072746(WSAECONNRESET)
This can be due to credential issues, DNS, firewalls or proxies. The specific failure types above should identify the problem.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="LS Protocol Stack" />
<EventID Qualifiers="50153">14502</EventID>
<Level>2</Level>
<Task>1001</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-03-14T16:34:30.000000000Z" />
<EventRecordID>32141</EventRecordID>
<Channel>Lync Server</Channel>
<Computer>EdgeServer.mydomain.com</Computer>
<Security />
</System>
<EventData>
<Data>75.0.230.1</Data>
<Data>
</Data>
<Data>75</Data>
<Data>184</Data>
<Data>75</Data>
<Data>75</Data>
<Data>0x80072746(WSAECONNRESET)</Data>
<Data>
</Data>
<Data>
</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
Blog /
Facebook / TwitterTo combat the issue, enable an HLB port on your FE servers (or any other pool you are using HLB on) and configure the health checks for the load balancer to use that port instead of the port used for TLS traffic.
Start by configuring the pool in Topology Builder, right click the pool, and choose Edit Properties>General. Place a check in the “Enable Hardware Load Balancer monitoring port” and specify a port.
Also you can refer below link
http://ocsguy.com/2011/11/02/lync-hardware-load-balancer-monitoring-port/
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer" -
Hi all,
How can know or change the maximum number of connections in oracle? Any suggession?
Thanks,try to set the "sessions" initialization parameter in init.ora of your instance.
http://download-west.oracle.com/docs/cd/A91202_01/901_doc/
server.901/a90190/ch1187.htm#944206
cheers !
regards,
Kong -
Limiting Number of connections from a single user
Hi ,
I am using 9.2.0.6 DB, i need to restrict the number of connections from a single user to 100.
Currently the user is having DEFAULT profile, this profile is having several other users associated to it.
What are all the available options to create restriction for a single user.
Create a new profile and add the user to the New profile is the option i have.
In that case can i create a copy of the Default profile and changing the SESSIONS_PER_USER to 100? will it work.
Appreciate your suggestion.
Thanks,
Sathis
Edited by: user7043544 on Feb 22, 2010 9:46 PMHi,
Since it is a default profile you can just create a new profile with the resource type you are interested it.
And if you want to copy the existing profile extract its ddl through below command, change the profile name and required resource and run against the db.
select dbms_metadata.get_ddl('PROFILE','<Profile_name>') from dual;Regards
Anurag -
Enterprise manager is not able to connect to database instance
Hi
I am having a problem with Oracle EM. I would appreciate very much if anyone can help me.
I installed Oracle on XP which runs on virtual pc on XP as well. Everything is fine, I can connect to database with sqlplus, and there were no errors during installation.
But the problem is that, when I try to connect to database with EM, it says:
Enterprise manager is not able to connect to database instance . The state of the components are listed below.
Can anoyone help me?user10637311 wrote:
When you want OEM DB , your existing DB should be created by DBCA or if suppose manually creaed DB then you have to configure that DB to EM by
"emca -config dbcontrol db -repos create". for these two cases istener should be running.
emctl start dbconsole -> to start dbconsole service
emctl status dbconsole-> status of servicesI am sorry, I was looking at $ORACLE_HOME\admin . And in the proper path, both listener.ora and tnsnames.ora do exist.
emca -config dbcontrol db -repos create :
<last part>:
INFO: This operation is being logged at C:\oracle\product\10.2.0\db_1\cfgtoollog
s\emca\orcl\emca_2010-02-18_02-01-40-AM.log.
Feb 18, 2010 2:02:46 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\or
cl\emca_repos_create_<date>.log for more details.
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
Refer to the log file at C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
a_2010-02-18_02-01-40-AM.log for more details.
Could not complete the configuration. Refer to the log file at C:\oracle\product
\10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-02-18_02-01-40-AM.log for more deta
ils.
C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\or
cl\emca_repos_create_<date>.log:
Check if repos user already exists.
old 6: WHERE username=UPPER('&EM_REPOS_USER');
new 6: WHERE username=UPPER('SYSMAN');
old 8: IF ( '&EM_CHECK_TYPE' = 'EXISTS') THEN
new 8: IF ( 'NOT_EXISTS' = 'EXISTS') THEN
old 11: raise_application_error(-20000, '&EM_REPOS_USER does not exists..');
new 11: raise_application_error(-20000, 'SYSMAN does not exists..');
old 14: ELSIF ( '&EM_CHECK_TYPE' = 'NOT_EXISTS' ) THEN
new 14: ELSIF ( 'NOT_EXISTS' = 'NOT_EXISTS' ) THEN
old 17: raise_application_error(-20001, '&EM_REPOS_USER already exists..');
new 17: raise_application_error(-20001, 'SYSMAN already exists..');
old 21: raise_application_error(-20002, 'Invalid Check type &EM_CHECK_TYPE');
new 21: raise_application_error(-20002, 'Invalid Check type NOT_EXISTS');
DECLARE
ERROR at line 1:
ORA-20001: SYSMAN already exists..
ORA-06512: at line 17 -
Number of connections made to database at a given time
Hello,
I would like to know the number the history and current number of connections made to the database via oracle application server at a given time. I see Active Connection when I click on HTTP Server, but I am not sure what that means. Does that mean the number of users on the site or does it mean the number of connections made to the database?
Also is there a way to find out the history of connections? Also is there a log file that all this information is recorded into?
Thanks for your help in advance.Hi
Active Connections in HTTP Server -> Number of users connected to your site (active + inactive)
You can get information about database connections in v$session, or , in Enterprise manager -> OC4J container -> Home
If you are using datasources at application level you can get information about pooling in
Entreprise Manager -> 0C4J Container -> Application (select application ) -> DataSources
If you have datasources at OC4J container level you can get info in Entreprise Manager -> OC4J container -> Administration -> datasources
Best Regards
Rui Madaleno -
How to find out number of connections to database?
Hi,
How can I find number of connections connected to the database 4 hours ago. For examply, if current time is 5PM and I want to see total number of connections connected to database (and from what user?) in between 1 and 2 PM, is there a way to find that out?
I see v$session has a column MACHINE from which I can use count function to check the # of concurrent connections but I am not sure how to check the # of connections that happend few hours ago. Any suggestions?
--MMyou should have audit on .. and create logon trigger and make entry in the tabe ..that would give you .
--Girish
Maybe you are looking for
-
How can I use iTunes without connecting the external drive that has all my music on it?
I have all my music on an external drive. Sometimes I would like to access iTunes, for purchases and other, without having that drive plugged in. I used to be able to do this, but something has changed and I can no longer figure out how. There mus
-
Help adding navigational attribute to IC
Hi all, i'm adding a new nagigational attr. to a characteristic, i checked it on an already existing and loaded InfoCube. Then when opening an existing query the new nav. attr. appears so i add it to the free characteristics. I can save the query and
-
Can't play any podcast on ipad 3 - crashes immediately
Hi, I can't play any podcast on my ipad anymore. I can download the podcasts and as soon as I click on them the podcast app crashes. I tried deleting and reinstalling, didin't help. Anybody any idea? I also have problems with some podcast like skynew
-
I got this message: "Photoshop has encountered a problem with the display driver and has temporarily disabled GPU enhancements. Check the video card manufacturer´s website for the latest software. GPU enhancements can be enabled in the performance pa
-
How to Disable Usb Selective Suspend Setting For Windows 8.1 Via Gpo/Registry
Hello everyone, Could help me with a question ? How do I disable USB Seletive Suspended settings in Windows 8.1 is GPO / Registry ?