Configuring Lock timeout in Oracle 8i

I need to reduce the time Oracle is waiting for a locked record to be released.
At this moment, when a transaction tries to update a record that is being updated in another transaction, Oracle waits forever to that record be unlocked.
I need to change this so Oracle waits until just a defined time for record to be unlocked, and after thats finalizes excetution with any error I can check.
I'd tried the LockTimeOut property of ORAODBC.INI, but there is a Know Bug in the Oracle ODBC Driver 8.01.07 and above, for Windows NT that prevents this feature from working.
Regards,
Victor Espina

The problem is not with a SELECT statement but with another UPDATE statement.
I'm accessing the Oracle database from Visual Foxpro, using ODBC driver.
I reproduced the problem in this way:
LOCAL cConnectString
cConnectString="Driver={Oracle ODBC Driver};Dbq=EM;uid=system;pwd=manager"
*-- Entablish a connection to Oracle databse
Hnd1=SQLSTRINGCONNECT(cConnectString)
*-- Entablish another connection
Hnd2=SQLSTRINGCONNECT(cConnectString)
*-- Configuring both connections to use manual
* transactions. In this mode, a transacction
* is started automatically whan a DML statement
* is sent to the server, and it finished with
* a COMMIT or a ROLLBACK statment.
SQLSETPROP(Hnd1,"transactions",DB_TRANSMANUAL)
SQLSETPROP(Hnd2,"transactions",DB_TRANSMANUAL)
*-- Start a new transaction a lock a row
Exec("SAVEPOINT P1",Hnd1)
Exec("UPDATE t1 SET nom='TEST' WHERE cod='01'",Hnd1)
*-- Start another transaction in 2nd connection
* and try to update the SAME RECORD being updated
* in 1st connection. In this point, SQLEXEC() does
* not NEVER returns beacuse Oracle waits forever for
* locked record being released. This is what i need
* to avoid.
Exec("SAVEPOINT P1",Hnd2)
Exec("UPDATE t1 SET nom='TEST' WHERE cod='01'",Hnd2)
*-- Rollback any change in both connections
Exec("ROLLBACK",Hnd1)
Exec("ROLLBACK",Hnd2)
*-- Disconnect both connections
SQLDISCONNECT(0)
I hope this clearifies my point.
Regards,
Victor Espina

Similar Messages

  • Intermittent Lock Timeout Exceptions with JE 5.0.58

    Hi,
    During tests, the system continues to experience Lock Timeout problems from time to time, even with the latest version 5.0.58. The collection contains data which is typically removed shortly after inserted, so records usually have a short lifetime. There are multiple writer threads and 1 delete / reader thread.
    Any tips? Note the timeout is already a healthy 3 minutes long, so I don't think that's the problem. Stack trace and details below.
    Maybe the best thing to do is to reduce the lock timeout in order to not block the data pipeline, if a simple retry fixes it?
    Thanks,
    Karl
    ERROR@00:08:03 com.sleepycat.je.LockTimeoutException: (JE 5.0.58) Lock expired. Locker 879535510 -1_dbreader--Thread-5_ThreadLocker: waited for lock on database=persist#ListenerStore#com.procon.data.msg.local.BerkeleyDBMessage LockAddr:
    892328566 LSN=0xffffffff/0x5882af type=READ grant=WAIT_NEW timeoutMillis=180000 startTime=1344323103818 endTime=1344323283850
    Owners: [<LockInfo locker="1242902705 -1_CAL-dbwriter--Thread-18_ThreadLocker" type="WRITE"/>]
    Waiters: []
    com.sleepycat.je.txn.LockManager.newLockTimeoutException(LockManager.java:664)
    com.sleepycat.je.txn.LockManager.makeTimeoutMsgInternal(LockManager.java:623)
    com.sleepycat.je.txn.SyncedLockManager.makeTimeoutMsg(SyncedLockManager.java:97)
    com.sleepycat.je.txn.LockManager.lockInternal(LockManager.java:390)
    com.sleepycat.je.txn.LockManager.lock(LockManager.java:276)
    com.sleepycat.je.txn.BasicLocker.lockInternal(BasicLocker.java:118)
    com.sleepycat.je.txn.Locker.lock(Locker.java:443)
    com.sleepycat.je.dbi.CursorImpl.lockLN(CursorImpl.java:2589)
    com.sleepycat.je.dbi.CursorImpl.lockLN(CursorImpl.java:2390)
    com.sleepycat.je.dbi.CursorImpl.searchAndPosition(CursorImpl.java:2118)
    com.sleepycat.je.Cursor.searchInternal(Cursor.java:2666)
    com.sleepycat.je.Cursor.searchAllowPhantoms(Cursor.java:2576)
    com.sleepycat.je.Cursor.searchNoDups(Cursor.java:2430)
    com.sleepycat.je.Cursor.search(Cursor.java:2397)
    com.sleepycat.je.Cursor.readPrimaryAfterGet(Cursor.java:3703)
    com.sleepycat.je.SecondaryCursor.readPrimaryAfterGet(SecondaryCursor.java:1470)
    com.sleepycat.je.SecondaryCursor.retrieveNext(SecondaryCursor.java:1448)
    com.sleepycat.je.SecondaryCursor.getNext(SecondaryCursor.java:560)
    com.sleepycat.util.keyrange.RangeCursor.doGetNext(RangeCursor.java:897)
    com.sleepycat.util.keyrange.RangeCursor.getNext(RangeCursor.java:451)
    com.sleepycat.persist.BasicCursor.next(BasicCursor.java:80)
    com.sleepycat.persist.BasicIterator.hasNext(BasicIterator.java:49)
    com.procon.data.msg.local.BerkeleyDBMessageStore.queryMessages(BerkeleyDBMessageStore.java:498)
    com.procon.listener.DatabaseReader.runMain(DatabaseReader.java:161)
    com.procon.base.BasicRunnable.run(BasicRunnable.java:274)
    java.lang.Thread.run(Thread.java:662)

    Karl,
    With a 3 minute timeout, you may have a true deadlock (which are sometimes expected) or a bug in your app where you neglect to close a cursor or close a transaction. Increasing the lock timeout is usually not the solution, but the first step is to diagnose what is causing it, and you haven't given us enough information to do that. You haven't said what isolation modes you're using, what transactions are active, how many records are involved in each transactions, etc.
    I suggest that you read:
    http://docs.oracle.com/cd/E17277_02/html/TransactionGettingStarted/index.html
    in particular the Concurrency chapter.
    Also see:
    http://www.oracle.com/technetwork/database/berkeleydb/je-faq-096044.html#HowdoIdebugalocktimeout
    for how to get more information about this particular lock conflict.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • System wide Lock timeout

    Hi,
    I'd like to set a system wide lock timeout to 10 secs, i est I want that if a transaction waits for a row more than 10 seconds, the Oracle forces a ROLLBACK!
    Looking in the documentation I found the trigger:
    CREATE OR REPLACE TRIGGER resumable_default_timeout AFTER SUSPEND ON DATABASE BEGIN DBMS_RESUMABLE.SET_TIMEOUT(10); END;
    ... but it seems not to work.
    Is there any system wide parameter, or another trigger, or I missed something with the above trigger (I shutdown any session to test)!
    thank you
    G.

    Steve,
    your answer is complete, the problem I am facing is that:
    1 - I should instruct my programmers of the usabily of this tecnique the SELECT ... FOR UPDATE WAIT n, so the timeout is faced from application perspective, and it isn't so bad, in fact every single query could be customized regarding the WAIT time!
    The drawback is that if the programmer doesn't use this technique, the application waits for the eternity.
    2 - A system wide lock timeout, in any case could force, in any case, a default behaviour, ...
    3 - If you are doing a porting from a different RDBMS see DB2, that implements a db lock timeout, you should recode all the SQL, and the porting needs more review and testing of the application!
    Thank you
    very much
    G.

  • Configuration locked by user in fusion middleware enterprise obiee 11g

    Hi All,
    one of my team member locked the configuration and forgot to release the lock.when i login to the fusion middleware i m getting warning configuration locked by User.
    Please help me to solve the issue.
    Reply ASAP.
    Thanks and Regards
    Kiran.

    I have cleared the tmp Folder under the Admin Server Directory and restarted the server..but still facing the same error..How to resolve the error *"oracle.adf.share.security.authentication.AuthenticationServlet"*

  • Configure sysprep timeout

    I've read this in the release notes of 3.2.2
    Bugfix 6997235 - Sysprep/fastprep timeout should be configurable
    We are running:
    Oracle Virtual Desktop Infrastructure 3.2.2 (Build 29)
    I'm unable to find where I can configure this timeout or what its currently set at (seems very high by default).
    Regards,
    Evert

    Hi Evert,
    typically such settings are provided as global properties which can be adapted using the vda settings-setprops command. If you execute the following command on your VDI server, then you get a list of all available settings:
    */opt/SUNWvda/sbin/vda settings-setprops --help*
    vbox.connect.timeout=<vbox.connect.timeout>
    Connection timeout to the VirtualBox web service, in
    milliseconds
    vbox.request.timeout=<vbox.request.timeout>
    Request timeout to the VirtualBox web service, in
    milliseconds
    sysprep.timeout=<sysprep.timeout>
    Timeout in seconds to wait for desktop customization
    to complete
    fastprep.timeout=<fastprep.timeout>
    Timeout in seconds to wait for desktop Oracle VDI
    FastPrep to complete
    Thus executing */opt/SUNWvda/sbin/vda settings-getprops -p sysprep.timeout* will show the currently applied setting
    Desktop Customization Timeout: 2400
    Executing */opt/SUNWvda/sbin/vda settings-setprops -p sysprep.timeout=<your desired value in seconds>* allows to set the timeout as needed.
    Hope that helps,
    - Klaus
    Edited by: klausruehl on Aug 5, 2011 4:09 AM

  • Lock Timeouts and Heap Space Exhaustion

    I'm having some trouble figuring out the best way to handle resource constraints in my application. Generally speaking, the application works well after starting for about a day or so, but inevitably starts generating "Lock timeout" messages and eventually runs out of heap space.
    Here is the main entity class:
    http://github.com/justindthomas/flower_as/blob/master/src/java/name/justinthomas/flower/analysis/statistics/StatisticalInterval.java
    Here is a supporting, persistent class:
    http://github.com/justindthomas/flower_as/blob/master/src/java/name/justinthomas/flower/analysis/statistics/StatisticalFlow.java
    This is the data accessor:
    http://github.com/justindthomas/flower_as/blob/master/src/java/name/justinthomas/flower/analysis/statistics/StatisticsAccessor.java
    And here is the class that controls the insertion and retrieval of data:
    http://github.com/justindthomas/flower_as/blob/master/src/java/name/justinthomas/flower/analysis/statistics/StatisticsManager.java
    The general flow is that a netflow packet is received from a sensor and the StatisticsManager normalizes the flow as it is inserted into the database. The normalization converts the summarized flow into several "resolutions." For example, one resolution might be 5000 ms. So the StatisticsManager takes the flow's end time/5000 - start time/5000 and divides the volume by the result and inserts that data into the database. It sounds kind of confusing, but results in a dataset that allows me to query for netflow activity for any time frame.
    It also means that the database is queried as it is written to; existing data is updated more frequently than new data is written.
    Regardless, Sleepycat seems to be holding on to more data than it needs to. Once an interval has passed (maybe 5 minutes or so), it is unlikely to be accessed again until queried to create charts. However, the memory usage grows out of control despite the lack of necessity for keeping all but recently entered entries in cache.
    This is how the trouble generally starts (note that I've increased the timeout to 15000 ms to try to accommodate for longer wait times, but that just seems to delay the onset of the issue by a day or so):
    [#|2010-10-23T13:46:00.854-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=64;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 30264205 -1_pool-6-thread-8_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:32426808 node=17057517 type=READ grant=WAIT_NEW timeoutMillis=15000 startTime=1287866745448 endTime=1287866760795
    Owners: [<LockInfo locker="29616818 -1_pool-6-thread-5_ThreadLocker" type="WRITE"/>]
    Waiters: [<LockInfo locker="7246740 -1_pool-6-thread-6_ThreadLocker" type="READ"/>, <LockInfo locker="26940477 -1_pool-6-thread-2_ThreadLocker" type="WRITE"/>, <LockInfo locker="5099094 -1_pool-6-thread-4_ThreadLocker" type="READ"/>]
    |#]
    [#|2010-10-23T15:00:41.343-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=65;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 14184769 -1_pool-6-thread-1_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:32730917 node=17057517 type=READ grant=WAIT_NEW timeoutMillis=15000 startTime=1287871223679 endTime=1287871241341
    Owners: [<LockInfo locker="23975039 -1_pool-6-thread-8_ThreadLocker" type="WRITE"/>]
    Waiters: [<LockInfo locker="19650664 -1_pool-6-thread-6_ThreadLocker" type="READ"/>]
    |#]
    [#|2010-10-23T15:32:13.090-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=66;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 17937364 -1_pool-6-thread-7_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:20265315 node=17057517 type=WRITE grant=WAIT_NEW timeoutMillis=15000 startTime=1287873113904 endTime=1287873133089
    Owners: [<LockInfo locker="3251671 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>]
    Waiters: [<LockInfo locker="32174859 -1_pool-6-thread-8_ThreadLocker" type="READ"/>, <LockInfo locker="33186148 -1_pool-6-thread-4_ThreadLocker" type="WRITE"/>, <LockInfo locker="17825718 -1_pool-6-thread-2_ThreadLocker" type="READ"/>]
    |#]
    [#|2010-10-23T15:32:13.096-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=64;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 32174859 -1_pool-6-thread-8_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:20265315 node=17057517 type=READ grant=WAIT_NEW timeoutMillis=15000 startTime=1287873118064 endTime=1287873133092
    Owners: [<LockInfo locker="3251671 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>]
    Waiters: [<LockInfo locker="33186148 -1_pool-6-thread-4_ThreadLocker" type="WRITE"/>, <LockInfo locker="17825718 -1_pool-6-thread-2_ThreadLocker" type="READ"/>]
    |#]
    [#|2010-10-23T15:32:13.367-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=67;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 33186148 -1_pool-6-thread-4_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:20265315 node=17057517 type=WRITE grant=WAIT_NEW timeoutMillis=15000 startTime=1287873118366 endTime=1287873133366
    Owners: [<LockInfo locker="3251671 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>]
    Waiters: [<LockInfo locker="17825718 -1_pool-6-thread-2_ThreadLocker" type="READ"/>, <LockInfo locker="25145711 -1_pool-6-thread-6_ThreadLocker" type="READ"/>, <LockInfo locker="5544029 -1_pool-6-thread-5_ThreadLocker" type="READ"/>]
    |#]
    [#|2010-10-23T15:33:14.030-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=68;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 31602565 -1_pool-6-thread-5_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:11219992 node=17057517 type=WRITE grant=WAIT_NEW timeoutMillis=15000 startTime=1287873175916 endTime=1287873194019
    Owners: [<LockInfo locker="27649147 -1_pool-6-thread-2_ThreadLocker" type="WRITE"/>]
    Waiters: [<LockInfo locker="3895581 -1_pool-6-thread-7_ThreadLocker" type="WRITE"/>, <LockInfo locker="8345933 -1_pool-6-thread-8_ThreadLocker" type="WRITE"/>, <LockInfo locker="12576013 -1_pool-6-thread-6_ThreadLocker" type="WRITE"/>, <LockInfo locker="5695501 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>]
    |#]
    [#|2010-10-23T15:33:23.334-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=64;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 8345933 -1_pool-6-thread-8_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:11219992 node=17057517 type=WRITE grant=WAIT_NEW timeoutMillis=15000 startTime=1287873184851 endTime=1287873203333
    Owners: [<LockInfo locker="3895581 -1_pool-6-thread-7_ThreadLocker" type="WRITE"/>]
    Waiters: [<LockInfo locker="12576013 -1_pool-6-thread-6_ThreadLocker" type="WRITE"/>, <LockInfo locker="5695501 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>, <LockInfo locker="13327115 -1_pool-6-thread-4_ThreadLocker" type="READ"/>, <LockInfo locker="11939897 -1_pool-6-thread-5_ThreadLocker" type="READ"/>]
    |#]
    [#|2010-10-23T15:33:23.344-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=69;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 12576013 -1_pool-6-thread-6_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:11219992 node=17057517 type=WRITE grant=WAIT_NEW timeoutMillis=15000 startTime=1287873184893 endTime=1287873203343
    Owners: [<LockInfo locker="3895581 -1_pool-6-thread-7_ThreadLocker" type="WRITE"/>]
    Waiters: [<LockInfo locker="5695501 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>, <LockInfo locker="13327115 -1_pool-6-thread-4_ThreadLocker" type="READ"/>, <LockInfo locker="11939897 -1_pool-6-thread-5_ThreadLocker" type="READ"/>]
    |#]
    Those errors go on and on and on, until I eventually see this:
    [#|2010-10-23T17:37:29.876-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=71;_ThreadName=Thread-1;|Exception in thread "ContainerBackgroundProcessor[StandardEngine[com.sun.appserv]]" |#]
    [#|2010-10-23T17:37:34.915-0700|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=23;_ThreadName=Thread-1;|In main loop, we have serious trouble: java.lang.OutOfMemoryError: Java heap space|#]
    [#|2010-10-23T17:37:56.516-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=66;_ThreadName=Thread-1;|Exception in thread "pool-6-thread-7" |#]
    [#|2010-10-23T17:39:11.060-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=23;_ThreadName=Thread-1;|Exception in thread "{felix.fileinstall.poll=5000, felix.fileinstall.bundles.new.start=true, service.pid=org.apache.felix.fileinstall.fd8877ce-71aa-41d2-8ddc-15ce996cde1b, felix.fileinstall.dir=/opt/glassfishv3/glassfish/domains/domain1/autodeploy/bundles/, felix.fileinstall.filename=org.apache.felix.fileinstall-autodeploy-bundles.cfg, service.factorypid=org.apache.felix.fileinstall, felix.fileinstall.debug=1}" |#]
    [#|2010-10-23T17:39:11.070-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=66;_ThreadName=Thread-1;|java.lang.OutOfMemoryError: Java heap space
         at java.util.IdentityHashMap.init(IdentityHashMap.java:261)
         at java.util.IdentityHashMap.<init>(IdentityHashMap.java:207)
         at com.sleepycat.je.utilint.IdentityHashMap.<init>(IdentityHashMap.java:25)
         at com.sleepycat.je.cleaner.LocalUtilizationTracker.<init>(LocalUtilizationTracker.java:39)
         at com.sleepycat.je.recovery.Checkpointer.flushDirtyNodes(Checkpointer.java:665)
         at com.sleepycat.je.recovery.Checkpointer.syncDatabase(Checkpointer.java:604)
         at com.sleepycat.je.dbi.DatabaseImpl.sync(DatabaseImpl.java:977)
         at com.sleepycat.je.dbi.DatabaseImpl.handleClosed(DatabaseImpl.java:863)
         at com.sleepycat.je.Database.closeInternal(Database.java:458)
         at com.sleepycat.je.Database.close(Database.java:314)
         at com.sleepycat.je.SecondaryDatabase.close(SecondaryDatabase.java:331)
         at com.sleepycat.persist.impl.Store.closeDb(Store.java:1454)
         at com.sleepycat.persist.impl.Store.close(Store.java:1059)
         at com.sleepycat.persist.EntityStore.close(EntityStore.java:630)
         at name.justinthomas.flower.analysis.persistence.FlowReceiver.addFlow(FlowReceiver.java:94)
         at name.justinthomas.flower.analysis.persistence.FlowReceiver.addFlow(FlowReceiver.java:65)
         at name.justinthomas.flower.collector.FlowWorker.parseData(FlowWorker.java:382)
         at name.justinthomas.flower.collector.FlowWorker.v9(FlowWorker.java:111)
         at name.justinthomas.flower.collector.FlowWorker.run(FlowWorker.java:61)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
         at java.lang.Thread.run(Thread.java:636)
    |#]
    [#|2010-10-23T17:39:11.124-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=23;_ThreadName=Thread-1;|java.lang.OutOfMemoryError: Java heap space
    |#]
    [#|2010-10-23T17:39:11.141-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=72;_ThreadName=Thread-1;|Exception in thread "pool-6-thread-3" |#]
    [#|2010-10-23T17:39:11.144-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=72;_ThreadName=Thread-1;|java.lang.OutOfMemoryError: Java heap space
    |#]
    It's very frustrating, because things run so well at first and then just deteriorate into a resource nightmare. Any suggestions would be welcome. The application is running with 3 CPU cores and 2GB RAM.
    Edited by: justindthomas on Oct 23, 2010 7:19 PM: I initially tried to use the forum's "URL" mechanism, but that doesn't seem to work worth anything, so I un-did it.

    I've disabled that thread for now. While debugging that, I ran into a SecondaryIntegrityException and I read that I shouldn't use secondary indexes without also using transactions. I enabled transactional processing, but the locking issues grew far worse. I opted to find ways to not use secondary indexes instead.You're right that with secondaries it is important to use txns. But I'm not sure why you're having such severe locking problems with txns. Were you using a txn with a cursor, to perform a scan? If so, I can probably suggest ways of doing that without the txn, if you can describe what you're doing and/or point me to your source code. Or, perhaps you've decided not to use secondaries, and this isn't an issue anymore?
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Install and configure report service on Oracle Application Server 10g

    i want to know how to install and configure report service on Oracle Application Server 10g Release 3 (10.1.3.1.0)
    Thanks

    the case is that we developed an ADF Application, so we want to deploy it on the latest version of Oracle Application server.
    our application communicate with Oracle reports (run oracle reports from our Application) as there are no Oracle report products for JEE Application.
    so if there are not report service that can run on Oracle Application Server 10g Release 3 (10.1.3.1.0),
    what is the other choices that oracle supports that can help us in this case ???

  • Locking data in oracle spatial

    Is it possibile to define a priori some policies of oracle spatial data? Or does it depend only from sql statements used in custom applications? for example select for update, and so on...
    Thanks in advance to everyone.

    Well, like I recommend to all our new database code hires..
    Read this book before writing code:
    http://www.amazon.com/gp/product/1590595300/qid=1124156571/sr=8-1/ref=pd_bbs_1/103-9669230-6117467?n=507846&s=books&v=glance
    ..And for more answers to questions, go here (try a search on locking):
    http://asktom.oracle.com/pls/ask/f?p=4950:1:9680994403836262994:RESET::1
    ..Another good site is:
    http://www.jlcomp.demon.co.uk/
    If that doesn't do it, try this forum:
    General Database Discussions
    To answer your question, you can lock rows any way you need to. I try not to ever lock rows, unless absolutly required (few and far between). If you are comming from another database you may find, after reading the above, that there is no need to create locks in Oracle to do the same thing as the other database.

  • Is row locking available in Oracle 10g?

    Hi,
    Does anybody knows if Oracle 10g can do a row locking?
    Thanks,
    Amorsolo

    Teymur Hajiyev wrote:
    amorsolo wrote:
    Hi,
    Does anybody knows if Oracle 10g can do a row locking?
    Thanks,
    AmorsoloIn my opinion locking mechanism in Oracle is one of the features/option which made Oracle the best in Database world.
    Regards,
    Teymur Hajiyev
    Oracle 10g Certified Master
    http://teymur-hajiyev.blogspot.com
    http://dba.az
    Agree with Teymur. As Tom Kyte said in the "Comparison between Oracle and Others" topic:
    For example -- all of the above would get check marks for having "row level locking". Once you look at the implementations however, you'll find they are way different. In Oracle, the overhead of having 1 lock is the same as having 1billion locks (eg: none).
    In the others there is a HUGE different between the two as locks are a scare resource in those systems, they consume memory, take up space, are stored in in-memory data structures. Our implementation of the feature is so different as to not be comparable.
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1886476148373

  • Configure UCP/FCF for oracle RAC 11g R2 in JBOSS

    I am trying to configure UCP/FCF with Oracle RAC 11g R2.
    Currently, I have configured oracle-ds.xml in Jboss in my deploy folder.
    I have got this working using jboss connection pool
    <xa-datasource>
    <jndi-name>name1</jndi-name>
    <track-connection-by-tx>true</track-connection-by-tx>
    <isSameRM-override-value>false</isSameRM-override-value>
    <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
    <xa-datasource-property name="URL">
    jdbc:oracle:thin:@(description=(address_list=(load_balance=on)(address=(protocol=tcp)(host=sample1.oracle.com)(port=1521)))(connect_data=(service_name=ha1)))
    </xa-datasource-property>
    <xa-datasource-property name="User">dbo_9</xa-datasource-property>
    <xa-datasource-property name="Password">dbo_9</xa-datasource-property>
    <exception-sorter-class-name>
    org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
    </exception-sorter-class-name>
    <no-tx-separate-pools/>
    <min-pool-size>100</min-pool-size>
    <max-pool-size>100</max-pool-size>
    <check-valid-connection-sql>SELECT 1 FROM DUAL</check-valid-connection-sql>
    <new-connection-sql>SELECT 1 FROM DUAL</new-connection-sql>
    </xa-datasource>
    1. I have configured ONS on database server. (racnode1:6200,racnode2:6200)
    2. I have copied ons.jar,ucp.jar,ojdbc6.jar in classpath.
    Now, how do I enable UCP and configure FCF in jboss.
    can anybody please help me?
    Edited by: user10697869 on Dec 14, 2011 12:22 PM

    not supported ..

  • Lock types in oracle 10g with sql examples

    can some body easily in simple words tell some thing about the table locks types in oracle 10g with some sql examples?

    Oracle locking is a complex topic that may not easily be explained with simple words.
    Please try to read above mentioned link starting from simple examples to used lock types. I don't think it's a good idea to "over simplify" the topic starting from the different lock types.
    Another way to explain some lock types can be found in following OTN discussion with Tom Kyte (who is also one of the primary author of Concepts Guide 11.2): TM / TX Locks ( Tom Kyte and Oracle Docu) ; note the different points of view about what is the row lock ...
    Edited by: P. Forstmann on 29 juin 2011 14:00

  • How to configure debug mode in Oracle 11g ?

    I am making Oracle Argus system based on Oracle 11g DB.
    I heard there is debugging mode in Oracle DB to investigate trouble.
    How to configure debug mode in Oracle 11g ?

    Are you talking about oradebug:
    SQL> oradebug setmypid
    SQL> oradebug unlimit
    SQL> oradebug dump systemstate 266
    SQL> oradebug dump systemstate 266
    SQL> oradebug -g all hanganalyze 3 ---> g is for RAC database instances
    Thanks,
    http://gssdba.wordpress.com

  • Configuring Web Services for Oracle XML DB

    Hi all...
    I think I need some help one this subject....
    We have a 10G Release 2 Oracle single instance ( not RAC) install on a Linux Redhat v5.3 64 bit server. Are developers are user Visual Studio .Net and wnat to send xml files to a web service so that the xml file (containing data) can call a PL/SQL package (to be written) which will take the data out of the xml input file and insert rows into a prefined table within the instance. Now they have browsed the web and have come upon the following links...
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb_web_services.htm
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb22pro.htm#i1026724
    Currently, within the database I looked at the schema XDB and have unlocked the account and connected as the user XDB. There are some 680 objects in the following groups...
    SQL> select object_type, count(*) from dba_objects where owner='XDB' group by object_type;
    OBJECT_TYPE COUNT(*)
    SEQUENCE 2
    PROCEDURE 5
    OPERATOR 8
    LOB 334
    LIBRARY 12
    PACKAGE 20
    PACKAGE BODY 17
    XML SCHEMA 25
    TYPE BODY 5
    TRIGGER 12
    TABLE 36
    INDEX 51
    FUNCTION 5
    INDEXTYPE 2
    VIEW 2
    TYPE 144
    16 rows selected.
    Now in the links above it mentions that the xdbconfig.xml needs to be altered etc. However, I have searched the entire $ORACLE_HOME and there is no file definition of that description.
    From a DBA prospective...what do I have to install on the Linux server? I assume from the Oracle Database 10g Companion Products I need to lay down Oracle HTTP Server in a new Oracle home as the first step...or not? Does the HTML DB need to be installed as well?
    And for Configuring Web Services for Oracle XML DB...what else has to be installed? And from what product line?
    Thanks in Advance....
    Cheers
    Roegr

    Hi Marco...
    First of all ...thanks for the reply.
    I followed the link and the infor in that web page. However, there were a few things that did not work....
    1. The http://localhost:8080/ as is brought up a web page withe the heading as
    ==========
    ORACLE DATABASE 10g EXPRESS EDITION LICENSE AGREEMENT..
    ==========
    The other browser test ftp://localhost:2100/
    did not find any page?
    2. Then I went onto running (as the sysdba) the pl/sql to enable the ORAWSV Entry Service
    however it error out. So I did a describe on DBMS_XDB and the function deleteServlet does not appear
    then I had a look and this link to > http://www.liberidu.com/blog/?p=471
    was for 11G and the other link > http://docs.oracle.com/cd/B28359_01/appdev.111/b28369.pdf
    was for 11G.
    However, we are on 10G
    =================
    SQL> select * from V$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    ==================
    So is there must be other sql for 10G?
    Cheers
    Rog

  • Lock timeout error trying to create a partition

    I'm getting a lock timeout error attempting to partition a large BSEG table.  I have done this before successfully on other tables but for some reason this keeps failing with the following error:
    Could not execute 'ALTER TABLE "OURSCHEMA"."BSEG" PARTITION BY RANGE (GJAHR) (PARTITION 1 <= VALUES < 1999, PARTITION ...' in 2:30:35.927 hours . SAP DBTech JDBC: [131]: transaction rolled back by lock wait timeout: Lock timeout occurs while waiting TABLE_LOCK of mode EXCLUSIVE(TRANSACTION_ID=128, UPDATE_TRANSACTION_ID=2123074)
    NOTE: We have SUSPENDED the replication of BSEG while this partition is happening.
    Anybody experience this problem?
    Thanks,
    -Patrick

    Hi,
    Try partitoning the BSEG table from SLT using the t-code IUUC_REPL_CONTENT - Maintaining the replication settings.
    Select the schema, select BSEG, go to 'Edit settings' and enter the script in the 'Partition Command' of BSED.
    eg,: PARTITION BY HASH(GJAHR) PARTITIONS 5
    Try replicating now from Data Prov.
    Hope it works...
    Regards,
    Papil

  • IO Exception: Lock timeout exceeded for documents , wait time = 60014

    Hi,
    We are getting an error while uploading any document on portal in KM content area. The full error details as follows
    #D27E2001B003002500000D210005D0D20004520E6FF2B6FB#1216121868039#com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager#sap.com/irj#com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager#BMERRON#71986##<host name>_7664450#BMERRON#3f730c80526211ddb0fcd27e2001b003#SAPEngine_Application_Thread[impl:3]_4##0#0#Error##Plain###error while handling event - com.sapportals.wcm.WcmException: IO Exception: Lock timeout exceeded for <documents>, wait time = 60006
         at com.sapportals.wcm.repository.service.appproperties.PropertiesService.setProperty(PropertiesService.java:984)
         at com.sapportals.wcm.repository.service.appproperties.PropertiesService.setProperty(PropertiesService.java:1203)
         at com.sapportals.wcm.repository.service.appproperties.PropertiesManager.setProperty(PropertiesManager.java:176)
         at com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager.updateLastReadDate(AccessStatisticManager.java:177)
         at com.sapportals.wcm.repository.service.accessstatistic.AccessStatisticManager.received(AccessStatisticManager.java:253)
         at com.sapportals.wcm.util.events.ReceiverEntry.doSend(ReceiverEntry.java:223)
         at com.sapportals.wcm.util.events.EventBroker.send(EventBroker.java:86)
         at com.sapportals.wcm.util.events.TransactionalEventBroker.send(TransactionalEventBroker.java:56)
         at com.sapportals.wcm.repository.manager.ResourceEventBroker.send(ResourceEventBroker.java:219)
         at com.sapportals.wcm.repository.manager.AbstractRepositoryManager.sendEvent(AbstractRepositoryManager.java:322)
         at com.sapportals.wcm.repository.RMAdapter.sendEvent(RMAdapter.java:342)
         at com.sapportals.wcm.repository.ResourceImpl.sendEvent(ResourceImpl.java:4206)
         at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:119)
         at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:132)
         at com.sapportals.wcm.service.xmlforms.transformation.ResourceDemultiplexer.getContentStream(ResourceDemultiplexer.java:71)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformation.render(Transformation.java:209)
         at com.sapportals.wcm.app.xmlforms.PreviewServlet.sendForm(PreviewServlet.java:165)
         at com.sapportals.wcm.app.xmlforms.PreviewServlet.doGetAction(PreviewServlet.java:130)
         at com.sapportals.wcm.app.xmlforms.XFBaseServlet.doGet(XFBaseServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.wcm.app.xmlforms.XFBaseServlet.service(XFBaseServlet.java:134)
         at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:333)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(AccessController.java:242)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Any Help?
    Regards,
    Sree

    Hi sreedhar Gunda,
    Check whether the repositories are in active and running mode or not. If they are running fine. then check the authorization is sufficient from BASIS people.
    points if useful
    Thanks
    Suresh

Maybe you are looking for

  • Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination

    Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination Problem in committing transactions in Multiple Forms (Oracle Forms) with POST built-in command: Consider that the following statements are written in WHEN-WINDOW-CLOSED trigger o

  • GS60-2QE (970M) Stuck at MSI Splash Screen

    Evening all, Just went to use my laptop and I'm stuck at the MSI splash screen. I can't get to the BIOS or anything. I haven't ever dropped it and it's always handled with care. Last night it was last used and has been working totally fine up until n

  • DVD player doesn't play some DVDs

    I've had my macbookpro for several months now. I've been mostly satisfied, but the DVD player seems to be messed up. I have never had a problem with software or CDs, but every once in a while, the DVD player will not play movies. Most of the time, th

  • Adobe Interactive Form on BlackBerry device

    Hi, I am trying to open an adobe interactive form (generated by SAP and Adobe LifeCycle Designer) on my BlackBerry device. Instead of the document's content I get the following message: When opening a PDF document containing an XFA form on the BlackB

  • Dbms_job in Oracle SQL Developer

    Can someone tell me if i will be able to setup a dbms_job from SQL Developer interface. Thanks