Database log switch and WLS connection pool relation
Hi,
We have been facing WLS JDBC connection pool disable and suspension issue very frequently in our environment and as a work around have implemented multi-datasource configuration (fail over method).
But we need to know the root cause for the same and want to fix the issue too.
We have tried many options like increasing no. of processes and transaction on Database, fine tune the weblogic datasource but still we could not isolate the issue.
Recently we have been advised to minimize the log switch on database front and increase the redo log size. Not sure if this will help in isolating the issue or not.
So we are Looking forward for the comments and suggestions on what would be the relationship b/w datasource and log switch be and if someone have faced this issue and resolved the same by fine tuning the database and minimizing the log switch.
We are using WLS 10.3.3.0
-Rohit
turn on jdbc logging. The server log should be showing the troubles WLS is having
while testing connections and trying/failing to make replacement connections.
Similar Messages
-
WLS 5.1 with SP11 and Sybase connection pools
I had posted back in January about an issue with WLS 6.1 and Sybase connection
pools (see posts 12040 - 12043). This issue has now appeared in WLS 5.1 with
SP 11. I have backed out SP11, but I'd take advantage of the clustering enhancements
in this SP. Any suggestions? Would it be possible to get another one off patch
for SP11?Could you fill me in as to what problem you were having. We are also using
Sybase with WLS5.1 and experience intermittent truncating of resultsets.
Regards,
Garvin LeClaire
[email protected]
"Pete Auriemma" <[email protected]> wrote in message
news:3c8669ee$[email protected]..
>
I had posted back in January about an issue with WLS 6.1 and Sybaseconnection
pools (see posts 12040 - 12043). This issue has now appeared in WLS 5.1with
SP 11. I have backed out SP11, but I'd take advantage of the clusteringenhancements
in this SP. Any suggestions? Would it be possible to get another one offpatch
for SP11? -
Logging inbound and outbound connections through my Linksys router
Hi There,
I have a Linksys wireless router (WRT54G series) that I use to connect to the internet with my cable modem. I would like to be able to configure my home network to log inbound and outbound connections through my router.
My router, which I bought brand new a couple of years ago, provides some very basic logging through its administration interface. I can view a current log of very recent (within the past couple of minutes) inbound and outbound connections/traffic. However, I would like to be able to configure my network to log all inbound and outbound traffic for at least 1 or 2 days and have this log saved somewhere so I can retrieve and review it at a more convenient time. I haven't been able to figure out how to do this with my current Linksys router and would like some help in configuring my system.
Is it possible for me to configure (perhaps with a firmware upgrade or even by replacing my older Linksys router with a newer one) my router to continuously log a day or more's worth of inbound and outbound connections? If this is possible, what changes do I need to implement? Does Linksys offer a wireless router that has more sophisticated logging capabilities? What is the longest log period that I can create with a Linksys router?
If it's not possible to create such a log with my router, then what other components would I need to log this information? I've thought about setting up a Linux server with two network cards installed to act as a gateway between my router and cable modem which will log traffic. Would this be a good strategy to implement logging?
Thanks in advance.
Tom
Message Edited by on 07-28-2007 07:44 AM
Message Edited by on 07-28-2007 07:50 AMwell...the router's in-built log will only provide basic information about the incoming/outgoing log . So, it will be a good idea to install a separate log viewer .....
-
Application Server and Driver Connection Pool
Hi,
What is the difference between Connection Pool implemented by the Driver and the Connection Pool implemented by the Application Server?
If i am using a JDBC3.0 compliant driver,i can use PooledDataSource to get a Conenction from the Connection pool. But, even otherwise, the application server (JBOSS) would implement a Connection Pooling mechanism. i.e even from a basic Datasource, i will get the Connection Pool.
1. Can i do away with PooledDataSource of Driver when using an application server?
2. If i have to use both, then what is the criterion for optimal usage?
Can someone answer this please...
If there is some reference available on this topic, please let me know.
Thanks in AdvanceConnection pooling is good that the connection object that have been created can be used later by other client.
Application server is better since server always have more resources( such as memory, processor speed) in order to perform the task.
And this may improve centralization, all connection object managed by a single centralized server.
Pls correct me if i am wrong. -
Reuse of preparedstatements and the connection pool
It seems useful (for performance reasons) to reuse a prepared statement in
subsequent calls to the database. In WebLogic, however, after each call we
return the Connection object to the WebLogic connection pool. A prepared
statement is created on a specific Connection object. The next time we want
to use the same query we get a Connection from the pool, which might be
another instance of the Connection class. Therefor it seems impossible or at
least dangerous to reuse the same prepared statement. Even in the case this
would work we're indirectly using the other Connection, which we already
returned to the pool and which could be retrieved from the pool by someone
else. So, can't we reuse preparedstatements ?Hi Raja,
Currently the only bullet-proof way to make sure that all statements are
cached is to set the cache size to a number of possible prepared statements
in the application.
The only consequence of increased cache size is growing amount of
memory required by a server instance.
Regards,
Slava Imeshev
"Rajiv Jauhari" <[email protected]> wrote in message
news:[email protected]...
Is there an easy way to tell whether the prepared statement cache size one
has set is
appropriate? Some way to monitor cache hit rate or usage count (i.e., the
actual number of statements cached) while running a load test? I'm using
Weblogic 6.1sp3 and Oracle 8.1.7.4.
Another way to think of this question is: is there a negative impact ifthe
cache size is set too large?
In the case of Oracle I believe one might run out of cursors, but is there
any other negative consequence that you know of?
Thanks,
Rajiv
"Joseph Weinstein" <[email protected]> wrote in message
news:[email protected]...
Vyas wrote:
If multiples (of the same statement) can be cached would it not result
in too many
prepared statements of the same type in the cache ?
This could happen
1. When a load test is done when all the threads start doing exactly
the
same work.
Because of contention everybody gets their own statement copy(theoritically, even
if in practice it may not exactly happen like that). In such a case
you
are going
to create load on the database in terms of open cursors.Each thread will get it's own connection, and the statement cache isper-connection.
Cursors, in Oracle's case, do need to be configured to support acache-full of
retained statements. Alternately, the cache should be set to a smallenough size to
require only as many cursors as the DBMS will allow per connection.
Another issue is what happens when the cache limit is hit ?
In the above example let's say cache limit is 50 and I am doing 50
user
load test.
because of load test let's say the cache gets filled with 50 of the
same
statement.
When load test moves to the next sequence of action requiring a
diffrent
statement
what happens to the cache ?
thanks
VyasThe only way a given connection's statement cache will get a duplicatestatement
is if some single JDBC thread required multiple copies of the samestatement. A
multi-user test will usually just ensure that each pooled connectioncaches the
same selection of different statements that the test user used. If thetest user
just repeatedly makes and uses one statement, the first time they do it,the
statement will be cached, and every subsequent repeat of the user codewill get
the same cached statement. The cache will still have 49 empty slotswaiting for
different statements. Currently the cache is simple-minded. It is a
fixed
(configurable)
size per connection, and the first N prepared/callable statements getcached for the
life of the pooled connection that created them. All other subsequentstatements will
be made and closed on a per-connection-use basis. Therefore, it can bethat a startup
or stress load that runs before standard runtime service, and which usessignificantly
different a statement profile could populate the cache with rarely-usedwasted statements.
If I were a customer in this circumstance, I would either prime thecaches, by determining
which statements I wanted cached, and then running a startup class thatreserved all the
pool connections, and made these statements on each before closing them.Alternately,
after startup/stress I would reset the pool, and allow the runtime load
to
fill the cache of
the regenerated pool.
Joe Weinstein at B.E.A.
thanks
Vyas
Joseph Weinstein <[email protected]> wrote:
JS wrote:
It seems useful (for performance reasons) to reuse a prepared
statement
in
subsequent calls to the database. In WebLogic, however, after each
call
we
return the Connection object to the WebLogic connection pool. A
prepared
statement is created on a specific Connection object. The next timewe
want
to use the same query we get a Connection from the pool, which
might
be
another instance of the Connection class. Therefor it seemsimpossible
or at
least dangerous to reuse the same prepared statement. Even in the
case
this
would work we're indirectly using the other Connection, which we
already
returned to the pool and which could be retrieved from the pool bysomeone
else. So, can't we reuse preparedstatements ?We already have you covered! Weblogic caches PreparedStatements along
with the pooled connection they came from. Every time you obtain a
pool
connection and run a prepareStatement() or prepareCall(), we willtransparently
give you a previously made statement, if the SQL exactly matches, andno
other place in the current thread stack is using that statement(multiples
can
be cached)
You are correct, of course, that statements you have should only
be
useable
to you while you have the connection from which they came. We have
you
covered
there too. If you were to try to use any prepared statement that
you'd
gotten
from
a pool connection after you'd put the connection back into the pool,those
statements
would throw an exception saying that they had been made inoperable atthe
time
you'd closed the connection.
Joe Weinstein at B.E.A. -
How to setup and use connection pool in Web AS 7.0?
Hello SDN!
I'm developing a Web Dynpro Java application on SAP Web AS 7.0 My app using a couple of DAO classes as model instead of EJBs. These classes perform direct requests to database using JDBC drivers.
I've read that many of web-servers use their own connection pools. So I want to know:
1) how I can setup connection pool in SAP Web AS ?
2) how I can call this pool in my application?
Could you please give me some examples?
Regards, Lev.hi lev,
check this document for jco pools
http://www.winfobase.de/lehre/lv_materialien.nsf/intern01/FB09D79A41930E34C125709F0046180C/$FILE/Tips&Tricks_JCo_Programming.pdf
ravindra -
Log switch and checkpoint - Oracle 11g
Hi
I've read a documentations and forum, but I can't find clean explanation. I'd like to ask - does switch log trigger checkpoint? I've heard, that from 8i version checkpoint doesn't occur on log switch, but can't find information
in documentation.
Thanks awfully for help.
Regardsbefore 8i , logfile switch caused full checkpoint
8i and above , logfile switch no longer causes full checkpoint , it causes a "log switch checkpoint"
A log switch checkpoint write the contents of "some" dirty buffers to the disk -
Log ssh and telnet connections
Hi guys,
if you want to log all ssh and telnet connections to your system, what entry do you put in /etc/syslog.conf file?
Thank youGoogle is your friend:
http://www.unix.com/solaris/128310-logging-incoming-connections-solaris-10-a.html -
OWB RT Log Switches and Parameter
Good day, all.
For various reasons we find ourselves with an OWB data base repository release 10.1 and the target ODS data base release 10.2.0.4. This is an approved configuration within the Oracle Product Matrix. Both sit on the same MS 2003 64-bit Server. We have had an on going issue that causes the OWB RT Log File to switch sometimes 20 to 30 (although it is rare this many times) during one OWF Workflow session. Our past experience is one workflow session, one owb rt log; that was in a OWB 10.1 and ODS 10.1 scenario. Now we are in an OWB 10.1 and ODS 10.2 environment. With this many possible OWB RT Log swtiches it is difficult to perform any forensics when the system only retains 3 copies of the logs at any given time. Does anyone know where to find that parameter to up the number of logs retained? Disk space is not an issue, reasonably speaking, for possibily retaining 8 to 16 OWB RT Logs.
I can be contacted direct at [email protected]
Thank you for your help in advance.
JeffHi Jeff ,
You can refer MOS note 844211.1 How To Control The Control Center Service Log Files
Thanks,
Sutirtha -
Location Switching and Access Connections 5.62
Under Location Switching, I enable the "Include Ethernet connections..." option. I then see my profiles for LAN connections at the bottom of the list and I can checkmark them. I can't however select them and change the order in the list. Is there a reason for this?
Hi,
in your situation, could you please make sure, that following Windows Services are started:
- Windows Zero Configuration
- Windows Presentation Foundation
- Terminal Services
There are the services, that are fully needed for the correct workflow of Access Connection.
Also please make sure, that you are using the latest version of following apps/drivers, which are also needed for AC to work correctly:
- Power Manager
http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-70602
- Power Management driver
http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-4GXPEG
- Hotkey features
http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-74261
- .NET 2.0 + SP2
Can you also tell me which exact AC service is taking the most CPU ?
Cheers -
The Daily App -- "not logged in" and "cannot connect to itunes store"
Hello,
I subscribed to the Daily App for 1 year. It shows under my itunes subscription.
Two problems: When I log into the daily app, I get "Can't connect to itunes store" 2 or 3 times. I can just hit ok and they'll go away.
The second, and more annoying, is that when I do the crossword puzzle, I don't see anything on the leaderboard and at the bottom, below the puzzle, it says "not logged-in." But when I click the little settings thing, I am logged in. I'm able to comment on articles.
Any ideas?
I've rebooted, restored from backup, reinstalled the app.I have the same issue, I've tried the following and nothing has worked:
I am running the newest version of The Daily, iTunes version 10.2.1, Mac OS 10.6.7 on my MBA and iPad 4.3.1. I've deleted The Daily from both the iPad 2 and the Mac, rebooted both and reinstalled with no luck, it still gave me the same error message that it could not connect to iTunes. I then did a full restore with no luck. I just completed erasing everything on the iPad, deleted all of the iPad apps from my MBA and set up the iPad as a new iPad not using anything from my old setup, still no luck. I am still getting the same error message: "iTunes Error Cannot connect to iTunes".
When I go into account Information it does not recognize my email and password even though I reset it in iTunes. Everything else on the iPad works with that email and password including all the other paid apps I reinstalled trying to fix this issue.
PLEASE HELP -
VARRAY mapping issues using WLS spk2 connection pools
We have an ongoing issue with VARRAY's and WLS Connection pools. The connection
pool of WebLogic does not support certain data structures of Oracle such as VARRAY.
To create array/struct object in java application, we have to register these
objects through array/struct descriptor methods. These methods require Oracle.sql.Connection
as a parameter. There is no way to get Oracle.sql.Connection from Weblogic Server
Connection Pool because the Oracle.sql.Connection is not serializable.
So, what is the recommended solution for a situation in which the application
tends to need to use VARRAYs and can we instead pass tables?
Any recommendations?More information on this issue.
I'm using the method DriverManager.getConnection(URL) to get a connection to
the database, passing in the name of the connection pool. This method is
throwing the following SecurityException:
java.lang.SecurityException: User "john" does not have Permission
"reserve"
based on ACL "weblogic.jdbc.connectionPool.ICOM_DEV2_A".
When running under the LDAP realm:
-calls to getConnection() from within a jsp fail
-calls to getConnection() from within a Session Bean or Entity Bean work
-calls to getConnection() from a non-EJB class fail if it is called directly
from the jsp
-calls to getConnection() from a non-EJB class work if it is called from a
Session Bean
When running under the RDBMS realm, all calls to getConnection() work,
whether they are a jsp, non-EJB class or a Session Bean.
Is there some security context that is only present inside the EJB
container? -
Connection pool and datasource
In WL 7, we need to configure a datasource and a connection pool in order for the application to get a connection to the database. How is the datasource and connection pool related?
In WL 9.2, there is no option to configure the connection pool, there is only the option to configure the data source. Where did the connection pool go in WL 9.2?gerald lee wrote:
In WL 7, we need to configure a datasource and a connection pool
in order for the application to get a connection to the database.
How is the datasource and connection pool related?
It depends on the WLS version. pre-9.X, there can be more than one datasource pointing to a given pool,
but you do need a datasource typically to use a pool.
In WL 9.2, there is no option to configure the connection pool, there is only
the option to configure the data source. Where did the connection pool go in WL 9.2?In 9.X and beyond the relationship is one-to-one, and you will create both at the
same time when creating a datasource.
Joe -
Two Connection Pools In One Database With Two Phisical Schema
I have a database with 2 physical schemas. Each physical schema has a different username and password. So i must create a second connection pool. But i have the problem that physical schemas don't understand which connection pool to use. How can i coincide each physical schema to its connection pool automatically.
RegardsYou need two Physical databases each with its own Connection Pool, within that database will be a single Physical Schema.
Or you could have a single Database/Connection Pool if it has read access to both schemas. -
How can i improve database connectivity with connection pool
Hi,
I used to create a connection to DB per session since the application is pretty small. Now i want to improve the db connectrion with connection pool. However, i am still confused since the book i read says that i have to change something in server.xml in the tomcat server while other people in this forum actually implement a connection pool class. Isnt it has been built into the servlet container? if yes, how can i use it? I suppose i only have to open the connection and the connection pool will reclaim the resource when the session is terminated in the same way the gabage collector reclaim resource when no reference is associated to object, am i correct?
Thaithe documentation for Tomcat 5 DB pooling can be found at:
http://jakarta.apache.org/tomcat/tom...les-howto.html
Here are the Tomcat 4 docs:
http://jakarta.apache.org/tomcat/tom...les-howto.html
The administration console can be found at (under default install):
http:localhost:8080/admin
But, you have to set up a user and password in your
<tomcat-install>/conf/tomcat-users.xml file.
You need to add an "admin" role and a user that will be assigned this
role like this (obviously you won't be using "tomcat" as your password):
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="admin"/>
</tomcat-users>
So, I can log in as Tomcat and have admin privs.
Tomcat 5
http://jakarta.apache.org/tomcat/tom...ger-howto.html
Tomcat 4
http://jakarta.apache.org/tomcat/tom...ion%20A ccess
i'm sure this helps u
Maybe you are looking for
-
Hi, Well basicly, i have purcahsed some tracks from years ago, via itunes, and was on my account the other day and noticed there was about 150 odd songs that were 'hidden in the cloud' so what i did was unhide them expecting them to then appear in th
-
Standard SAP report for purchase price variance
Hi All, I need to know if there is a standard SAP report that shows the purchase price variance. Thanks, Regards
-
Gurus, When time explosion happens, how is the shift differential element supposed to be shown. Is it a separate entry e.g. person gets $1 for working 3rd shift(10pm to 6am). Now would the explosion be like this: Regular 8 hours Shift Differential 8
-
I was working on a secure page this time. Happens every once in a while with no discernible pattern.
-
How can I erase hard disk if SuperDrive is broken (OS 10.6.8)?
I have an old MacBook running OS 10.6.8 which I want to recycle, but its internal SuperDrive doesn't work, so I can't use the install disk to do it. I tried plugging in Apple's external USB SuperDrive which I bought when I upgraded to a MacBook Pro