Database locking issues

Dear all,

We had two node oracle RAC 10 g 2 of last 2-3 years. Now plans to add the third node. The node is added but increase that store the locking on a table of ID_USER_SESSION, in this user session information.
SELECT table_name, nom_tablespace, temporary from user_tables where table_name = 'ID_USER_SESSION ';


TABLE_NAME NOM_TABLESPACE T
------------------------------ ------------------------------ -
I HAVE D_USER_SESSION AFSYS_DATA_SPACE N




ID Planhash % activity % event SQL SQL text event

* 9y6v6907gzts2 4077075788 88.82 enq: TX - line lock contention 88.71 DELETE FROM ID_USER_SESSION WH... *.

bz1d91crtmmfp 2.41 enq: TX - line lock conflict 2.40 INSERT IN ID_USER_PROGRAM_DE...


can you guys please guide me how to solve this problem.


Thank you and best regards,
Shir khan

SHERKHAN wrote:

DELETE FROM ID_USER_SESSION WHERE (USER_SESS_ID =: = USER_SESS_SERIAL AND B2: B1) OR (USER_SESS_ID, USER_SESS_SERIAL) NOT IN (SELECT SID, SERIAL # FROM V$ SESSION);

(Sid, serial #) are only unique within the lifetime of a single instance. The same (sid, serial #) may exist simultaneously in all three of your RAC instances. Somehow, you need to change your table and the code to include the number of proceedings initiated by the session on.

Concerning
Jonathan Lewis

Tags: Database

Similar Questions

  • T410s - Ultrabay Battery and locking issues

    OK just - my new newegg.com ultrabay battery:

    http://www.Newegg.com/product/product.aspx?item=N82E16834994268

    is having intermittent problems. I will list out them:

    • Connect the questions of recognition.
    • Wake up sleep (as HERE)
    • Charge of issues - it is stuck at 18% now and does not load!

    To explain more. When I got the battery that I plugged it in and the system immediately recognized and began to charge. I have let it charge all the way up. I used it for say 30 minutes on battery which worked as expected. The battery of the UB exhausted up to 70% or something and put it to sleep. When I woke up the machine (the cover) the battery ejected, and whenever I have it plug back, said he is ready to be removed. To resolve this problem, I have to restart or sleep again then he semi works.

    Now it to something else - it shows as connected but still drains the MAIN battery and not the UB even if she is charged. When I remove the main battery and boot the system with just the ultrabay battery starts to beep at me (like beep beep beep beep as no stop). It is always powered of course and shows always have a battery.

    Now even when I plug (adapter 65W and 90W sector) it shows "Connected at no charge" and it's there. Power Manager indicates that the battery is in good conditon, always 0 cycles. First used 7-11 - Manufacturered 12/10.

    Last issue being the lock, I guess do it several times now, it's super hard to remove the battery, it seems as if I'm doing it wrong, but the first time when I arrived to the farm, I did to remove the DVDRW in it easily, there even 1 fingers. Now, it's like I'm breaking my fingers to get it open. The first switch, is more difficult to move too so the time switch is crazy hard to slide!

    So, anyone got any ideas? I have 3 years warranty so I can send it, but it is my only system so I'm going to be naked for awhile until she coming back to me (no guarantee on the spot on this system, I "improved" to a T410 which was spot on.).

    Thank you

    PS - Sorry for the long post, I just wanted to give some details

    FYI - apparently it was all the way down to the motherboard that needs to be replaced. Had to send in twice but the 2nd time that the Board of Directors has been replaced and now fresh stuff as it should. It also allows the hot plug and the switch is also easily removable.

    Didn't want to be one of 'those' posts where the questions are asked but no solution posted later or "NVM - it is fixed.

  • Several X201T problems solved - sleep problems, lock issues, multiple monitors / dock issues

    Hi, guys.

    Immediately after obtaining my Tablet last summer, I installed Win 7 Enterprise, our company holds a license for a microsoft SA customer.  Win 7 Enterprise has all the features of Ultimate edition, including Bitlocker, I needed.  I even restored the machine using discs I got from our Lenovo account manager and had the same problems as the image of the company.  My Tablet has the touch screen feature.

    I had the following problems with the Tablet, which are now resolved:

    Trackpad spoil randomly

    http://forums.Lenovo.com/T5/X-series-Tablet-ThinkPad-Laptops/X201T-trackpad-issues-randomly-tries-to...

    The tablet on the first day, there's a new trackpad.  The party has had more than 4 weeks to arrive, but it fixed the problem once it was replaced.  I tried 1 billion software solutions (different drivers, settings, etc...) and blew a lot of time, so if you have this problem, get your replaced trackpad.

    External monitor did not work with docking station

    http://forums.Lenovo.com/T5/X-series-Tablet-ThinkPad-Laptops/X201T-multi-monitor-issue-with-ultrabas...

    The solution was to use an adapter displayport to DVI to my Dell 24 "monitor.  The Displayport takes a long time to synchronize with the monitor that he thinks it isn't getting a signal, and the laptop turns off the display shortly after having tried to activate it.  In this case most of the time.  With the help of an adapter DVI worked very well.  I found myself propping my tablet in portrait mode with a cheap portable stand in a big box office supply store so I can have the OneNote upward on the tablet screen throughout the day.

    The final two problems have been solved with the application of a patch of Windows:

    http://www-307.IBM.com/PC/support/site.WSS/document.do?lndocid=MIGR-74813

    Thanks RP68

    Laptop won't sleep or shut

    http://forums.Lenovo.com/T5/X-series-Tablet-ThinkPad-Laptops/X201T-won-t-shut-down-hard-disk-light-f...

    At the end of each computer session, I had to shut down windows with one hand on the power button.  It was extremely disruptive.

    Laptop won't lock, will not close the session cannot bring up the Ctrl-Alt-Del screen

    http://forums.Lenovo.com/T5/X-series-Tablet-ThinkPad-Laptops/X201T-tablet-can-t-lock-the-computer-or...

    It was awful.  As I sometimes ran programs in respect of the whole of the high network privileges and have a sensitive Inbox, it meant that I had to basically hold the power to stop the machine when I go to the toilet.

    Why no system update?

    Lenovo - the fact that this fix does not appear as an update required in Lenovo System Update caused me a lot of grief.  If you have a technical reason why it was available on the site, I would like to hear about it.  The case, please make your tablet customers a favor and put this in the system update.  There is absolutely no doubt in my mind that the fix has solved all of my most serious problems, despite a description of Microsoft that doesn't seem to match the symptoms.

    I'm a happy guy now that all my stuff works.  A bad computer can really make your life difficult.

    @deathbots,

    Thanks for sharing the steps you have taken to solve the problem, I will drop a comment to the TVSU on this topic to see if it is possible to implement this go ahead.

    Thanks again
    JMT

  • OBPM 10 gR 3 database locks

    Environment:

    Oracle BPM 10 gR 3 Version: 10.3.1.0.0 build: #99954

    WebLogic Server 10.0 MP1 in cluster area

    JDBC driver - WebLogic Type 4 XA (weblogic.jdbcx.oracle.OracleDataSource)

    We have a BPM project deployed to the Cluster of WLS 10.0 MP1, which worked very well for the last 18 months. But all of a sudden we live errors locks on database for these days, when we try to restart the engine of BPM.

    WebLogic JTA Timeout = 30 seconds

    Database Distributed_Lock_Timeout = 60 seconds

    WebLogic Datasources directory and engine XA Connection Timeout = 30 seconds



    Error


    Process of ' / Test #Default - 1, 0' could not be started. Details: \nProcess error runtime execution.
    Caused by: Exception [java.sql.SQLException: [BEA] [Oracle JDBC Driver] [Oracle] ORA-02049: timeout: distributed transaction waiting for lock].
    Caused by: [BEA] [Oracle JDBC Driver] [Oracle] ORA-02049: timeout: distributed transaction waiting for lock

    fuego.papi.impl.EngineExecutionException: Error executing for the process execution engine.
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:139)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:79)
    at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:185)
    at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:86)
    at fuego.ejbengine.service.EJBActiveProcessService.startProcess(EJBActiveProcessService.java:92)
    at fuego.server.service.ActiveProcessService.runProcessesLoader(ActiveProcessService.java:118)
    at fuego.server.service.ActiveProcessService.activateProcesses(ActiveProcessService.java:88)
    at fuego.ejbengine.service.EJBActiveProcessService.doActivateProcesses(EJBActiveProcessService.java:63)
    at fuego.ejbengine.cluster.DistributedEJBActiveProcessService.initialize(DistributedEJBActiveProcessService.java:37)
    at fuego.ejbengine.cluster.ClusterObjectFactory.initializeActiveProcessService(ClusterObjectFactory.java:33)
    at fuego.ejbengine.Engine.startServices(Engine.java:448)
    at fuego.ejbengine.Engine.start(Engine.java:129)
    at fuego.ejbengine.servlet.AbstractSchedulerServlet.init(AbstractSchedulerServlet.java:91)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletInitAction.run (StubSecurityHelper.java:282)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs (unknown Source)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
    to weblogic.servlet.internal.StubLifecycleHelper. < init > (StubLifecycleHelper.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:507)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1853)
    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1830)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1750)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2909)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:973)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361)
    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
    to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:182)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:359)
    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
    to weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: fuego.directory.DirectoryRuntimeException: Exception [java.sql.SQLException: [BEA] [Oracle JDBC Driver] [Oracle] ORA-02049: timeout: distributed transaction waiting for lock].
    at fuego.directory.DirectoryRuntimeException.wrapException(DirectoryRuntimeException.java:85)
    at fuego.directory.provider.jdbc.oracle.OraclePersistenceManager.mapSQLException(OraclePersistenceManager.java:183)
    at fuego.directory.provider.jdbc.datadirect.oracle.DataDirectOraclePersistenceManager.mapSQLException(DataDirectOraclePersistenceManager.java:50)
    at fuego.directory.provider.jdbc.JDBCServiceAccessor.mapSQLException(JDBCServiceAccessor.java:78)
    at fuego.directory.provider.jdbc.JDBCProcessAccessor.updateDeployedProcess(JDBCProcessAccessor.java:1330)
    at sun.reflect.GeneratedMethodAccessor92.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    to fuego.directory.provider.DirectorySessionImpl$ AccessorProxy.invoke (DirectorySessionImpl.java:756)
    to $Proxy57.updateDeployedProcess (Unknown Source)
    at fuego.directory.DirDeployedProcess.update(DirDeployedProcess.java:1022)
    at fuego.server.ActiveProcessManager.handleProcess(ActiveProcessManager.java:496)
    at fuego.server.service.ActiveProcessService.startProcess(ActiveProcessService.java:136)
    at fuego.ejbengine.service.EJBActiveProcessService.startProcessImpl(EJBActiveProcessService.java:107)
    in fuego.ejbengine.service.EJBActiveProcessService.access$ 100 (EJBActiveProcessService.java:32)
    to fuego.ejbengine.service.EJBActiveProcessService$ 2.execute(EJBActiveProcessService.java:95)
    to fuego.server.execution.DefaultEngineExecution$ AtomicExecutionTA.runTransaction (DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    ... 52 more
    Caused by: java.sql.SQLException: [BEA] [Oracle JDBC Driver] [Oracle] ORA-02049: timeout: distributed transaction waiting for lock

    at weblogic.jdbc.base.BaseExceptions.createException (unknown Source)
    at weblogic.jdbc.base.BaseExceptions.getException (unknown Source)
    at weblogic.jdbc.oracle.OracleImplStatement.execute (unknown Source)
    at weblogic.jdbc.base.BaseStatement.commonExecute (unknown Source)
    at weblogic.jdbc.base.BaseStatement.executeUpdateInternal (unknown Source)
    at weblogic.jdbc.base.BasePreparedStatement.executeUpdate (unknown Source)
    at weblogic.jdbcx.base.BasePreparedStatementWrapper.executeUpdate (unknown Source)
    at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:125)
    at fuego.jdbc.FaultTolerantPreparedStatement.executeUpdate(FaultTolerantPreparedStatement.java:623)
    at fuego.directory.provider.jdbc.JDBCPersistenceManager.update(JDBCPersistenceManager.java:946)
    at fuego.directory.provider.jdbc.JDBCProcessAccessor.updateDeployedProcess(JDBCProcessAccessor.java:1327)
    ... more than 68

    Ensure that time-out values conform to this rule DISTRIBUTED_LOCK_TIMEOUT > = XA Transaction Timeout > = time-out JTA in WebLogic Server

    And BP timeout in the console (process administrator) BPM method should be<= jta="">

    After editing the values of time-out as a result, you have to bounce the BPM and WLS Cluster engine

    Ask the ADMINISTRATOR to address the current locks for user database directory and the user of the database engine. If the locks are not released by BPM, then a rebound in the database could help

    Thank you
    Ashok

  • Database design issues

    Y at - it a forum that deals with issues of General database design, such as the definition of primary keys, unique constraints, Check constraints, indexes, etc.?
    I searched but could not find it. Maybe I missed it. Thank you.

    General, database or SQL/PLSQL:

    http://forums.Oracle.com/forums/category.jspa?categoryID=18

  • Database locked row when the user closes the browser after a change without saving changes

    Hello

    I have a page in which the user can enter some data and save it.
    When the user asks a row and update it.
    Without saving changes, if the browser is closed, next time when the page is loaded for the update, he said that the line of database is locked with the following error.

    Error: Cannot lock the file, another user owns the lock.
    Unable to lock the file, another user owns the lock.

    How we handle this?
    We can unlock the line when the browser is closed?

    Thanks for any help.
    Sameer

    Assuming you are using ADF BC to access your database, change the optimistic locking setting:
    http://download.Oracle.com/docs/CD/E14571_01/Web.1111/b31974/bcstatemgmt.htm#BABGCDDD

  • During database migration issues in SQL Serever

    Hello

    In single database migration in SQL Server, what are all the possible questions, that allows us to get.

    Please help me on this.

    RD

    SQL server questions should be asked on the Technet site

    http://social.technet.Microsoft.com/forums/en-us/home

  • Can not access my database locked due to the fact that I've lost my password! Can you help me please?

    Hello, I created a MS Access database and put a password on it, but I lost the password subquently and have no way to get back into my database already created. Is there a way to do it unlocked?

    Hello

    Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features. For more information about this policy, please see the article below:

    Microsoft's strategy concerning lost or forgotten passwords
    http://support.Microsoft.com/default.aspx/KB/189126/

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • "Number Lock" issue in Virtual PC 2007

    Hi, I have a problem with Virtual PC 2007, what happens is that the 'NumLock' key is automatically activated whenever I have start a Virtual Machine - and it cannot be disabled, it's incredibly annoying and I already tried things like pressing the SHIFT key to try to prevent this, however does not.

    Does anyone know how to fix this?

    Hello

    I suggest that you post the application on Microsoft TechNet forum because we have experts working on these issues. You can check the link to post the same query on TechNet:

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itprovirt

    It will be useful.

  • Database update issue with JavaScript and local storage

    Hi all

    I come from a PHP background and a newbie with HTML5 and JavaScript, and local storage


    Currently I'm building a mobile web application that uses a remote database.

    I have a question about the update database.

    Currently, I set it up so that when the user logs on successfully - Local Storage fields are loaded from the remote database query using a jQuery.Get. This seems to work well.

    When it's time to update the data, I fill the form in local storage, allow the user edit fields, then:

    -a form post to send data to the remote php page that updates the database...

    Here is where I have a question: How can I make sure the edit went through good - what is better to do it now?

    -Can I set up a json response to say whether or not the update was successful

    or

    -Query the database once more and recover the fields to compare the edit results

    or

    -Another technique to do of course change it went through OK

    - then if successful, I can update the local storage

    Q: what is the best way to ensure that the database has been correctly updated (and also not lose time with Access database useless)?

    Is there a recommended for this?

    In addition, if possible this beginner can use a clear example...

    Why not to use jquery get () callback status where if the success is returned then to update local storage?

    best,

    Shocker

  • ORACLE_HOME on best practice database backup issue

    Hello
    The next question is about best practices.
    I would like to know if the ORACLE_HOME on the physical database should have the same name
    as the basis of primary data.
    For example, if the primary database name is: / u01/app/oracle/prodcut/1120/PROD
    According to best practices should also be: / u01/app/oracle/product/1120/PROD or it should be:
    / u01/app/oracle/product/1120/STDY?
    Thank you

    Yes.

    Given what you just said I agree that is the way to do it. So when patch arrives, you should be less likely to make a mistake.

    I probably create a 'home' of the decoder sheet and hung it near my desk.

    Best regards

    mseberg

  • JCA database adapter issue because of the dependence of database schema

    Hello

    I use the database JCA adapter to call a stored procedure. The adapter uses the schema of database name while calling the stored procedure. The schema name is added to the namespace XSD, wsdl files.
    If I have to use a different database schema name, how can I change the code without a lot of change.

    Thank you!

    You can change this property in the JCA file

  • the essbase database access issue: Essbase cannot allocate enough blocks to perform the calculation

    Hello

    I have a problem with my report and smartView and I have this error:

    «Query execution error: error: internal error Essbase JAPI: [(1012700): dynamic calc processor cannot allocate more than the blocks [1982] CAs.]» The parameter CalcLockBlock is too low or the size of data cache setting is too low. Increase the setting of the CalcLockBlock or the size of data cache setting and then try again"


    Block size: 51648


    CalcLockBlockDefault: 10000

    CalcLockBlockDefault: 20000


    Thank you.

    Try DynamicCalcCache 199 M in cfg, recycle essbase services... and check

    See you soon!

    SH! going

  • Database schema locks - how to detect and/or prevent

    We have a few instances of database, where almost every night, the scheme we use is "locked." Then we need to unlock almost every morning.

    I know that connection attempts that failed will cause the schema should be blocked, but I think we have ruled that out as a possibility. It comes in the night with the person using the computer, etc.. We also run this script to be sure:
    CHANGE the DEFAULT PROFILE LIMIT failed_login_attempts UNLIMITED;

    But the scheme keeps getting locked. issues related to the:

    (1) how can I detect what/why the schema gets locked?
    (2) can I put a trigger to detect? If so, please point me in the direction as to the nature of the trigger.
    (3) I'd assign a user/schema to "never lock". Is this possible?

    Any advise appreciated.

    For mental health, the account in question uses the default profile? Or is he using another profile? FAILED_LOGIN_ATTEMPTS Unlimited parameter to the value default profile does not change if the account in question uses a default profile.

    Other that a DBA doing explicitly an ALTER USER ACCOUNT LOCK, the only other source of locks of account I can think is connection failures. 99 times out of 100, the problem is that someone has a batch to the application somewhere that runs during the night which inadvertently use the wrong password.

    Have you tried audit of connection failures?

    Justin

  • How to check the locks in the database

    Hello

    oracleDatabase version: 11 GR 2
    OS: Solaris

    How to check the locks on database objects .it can be any lock?
    None Select sql query to check the levlel of objects of database locks? what basis locks occur?

    Please explain on the locks or share notes MOS?

    Rgds,
    Sam.

    Check below sql.

    Select s1.username. '@' || S1.machine
    || ' (SID =' | s1.sid | block him ') '
    || S2. UserName | '@' || S2.machine | ' (SID =' | s2.sid |) ') ' AS blocking_status
    v $ lock l1, v$ session s1, v$ lock l2, s2 of v$ session
    where s1.sid = l1.sid and s2.sid = l2.sid
    and l1. BLOCK = 1 and l2.request > 0
    and l1.id1 = l2.id1
    and l2.id2 = l2.id2;

    http://psoug.org/snippet/locks-view-locked-Objects_866.htm
    http://www.DBA-Oracle.com/t_locked_rows_user_locks.htm

Maybe you are looking for