Locking error with BDSQL 5.2.36

I am using BDB 5.2.36 . My application uses the SQL interface and has multiple process & some of the processes have multiple threads. Occasionally, pne of the threads get stuck with the following stack trace -
0: 60000000c01e2930 : __lwp_cond_wait_sys() + 0x30 (/lib/hpux32/libpthread.so.1)
1: 60000000c00f99c0 : __pthread_cond_wait_spin() + 0x7b0 (/lib/hpux32/libpthread.so.1)
2: 60000000c00f57c0 : pthread_cond_wait() + 0x2660 (/lib/hpux32/libpthread.so.1)
3: 60000000c00f3230 : pthread_cond_wait() + 0xd0 (/lib/hpux32/libpthread.so.1)
4: 60000000d0618ff0 : __db_pthread_mutex_lock() + 0x8b0 (/opt/fin/unn/lib/libdb_sql-5.2.so)
5: 60000000d06c1b50 : __lock_get_internal() + 0x3280 (/opt/fin/unn/lib/libdb_sql-5.2.so)
6: 60000000d0988be0 : __lock_get_api() + 0x520 (/opt/fin/unn/lib/libdb_sql-5.2.so)
7: 60000000d09884b0 : __lock_get_pp() + 0x690 (/opt/fin/unn/lib/libdb_sql-5.2.so)
8: 60000000d0c8b570 : btreeDbHandleLock() + 0x3f0 (/opt/fin/unn/lib/libdb_sql-5.2.so)
9: 60000000d0c8a6d0 : btreeCleanupCachedHandles() + 0x960 (/opt/fin/unn/lib/libdb_sql-5.2.so)
10: 60000000d0c9a4c0 : sqlite3BtreeBeginTrans() + 0x3c0 (/opt/fin/unn/lib/libdb_sql-5.2.so)
11: 60000000d0d12680 : sqlite3VdbeExec() + 0x11230 (/opt/fin/unn/lib/libdb_sql-5.2.so)
12: 60000000d0cfde90 : sqlite3Step() + 0x410 (/opt/fin/unn/lib/libdb_sql-5.2.so)
13: 60000000d0cfbc60 : sqlite3_step() + 0x180 (/opt/fin/unn/lib/libdb_sql-5.2.so)
14: 00000000005735e0 : DbStatement::step()() at DbStatement.cpp:119
15: 0000000000631e60 : LoglNode::get(sdm_ln_ds&) const() at LoglNode.cpp:81
16: 000000000058b060 : getLoglNode(sdm_ln_ds&)() at SandmAccessApi.cpp:1048
17: 0000000000590350 : getPhysIdentFromLoglIdent(int,int&)() at SandmAccessApi.cpp:1287
18: 000000000038a6b0 : UNNLifeSignal::Run()() at /opt/aCC/include_std/memory:250
19: 60000000d2feb9d0 : SwMTThread::ThreadFunction(void*)() + 0x3b0 (/opt/fin/unn/otherlib/libswfrmcom.so)
20: 60000000c010f6e0 : __pthread_bound_body() + 0x190 (/lib/hpux32/libpthread.so.1)
I was wondering whether the change #20862 (in 5.3.15) addresses this issue. Will appreciate if you could give me the patch.
Regards,
Rittick

Lauren,
We have just migrated to 5.2. It will be very expensive testing etc - to migrate to 5.3. If you could provide the patches (and the file names) I will appreciate that very much.
Thank you.
Rittick

Similar Messages

  • While transferring several files to the G-Raid, the G-Raid device locks up with the following warnings:   "The Finder can't complete the operation because some data in (whatever file) can't be read or written (Error code - 36)."

    While transferring several files to the G-Raid, the G-Raid device locks up with the following warnings:   "The Finder can't complete the operation because some data in (whatever file) can't be read or written (Error code - 36).” NOt sure this is a G-Raid problem, can anyone help?

    This is likely a problem with the drive itself. This error indicates unspecified I/O errors with the drive, which can be from a hardware fault, or a formatting issue. If the drive has valuable data on it, then try connecting it to another PC to get the data off, and then try fully partitioning and formatting the drive with Disk Utility. If this corrects the error then you should be able to use the drive again as it was likely a formatting issue, but if the problem continues then it is likely a hardware fault and the best solution is to be safe and replace the drive.

  • I downloaded new version of itunes. Then itunes asked if i wanted the latest version for ipod. itunes said it was getting ipod ready for download, then there was an error message. Now ipod is locked up with a apple on the screen and a line under it

    I downloaded the latest version of itunes. Then itunes asked if i wanted the latest version on ipod. Itunes was getting ipod ready then a error happened. Now ipod is locked up with a apple on screen with a download line under it. Also itunes will not recognize ipod like it has before. If anyone can help it would be appreciated. Thanks

    Do a hard reset, put it in DFU Mode and do a manual install, as outlined in the link below.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • Lock error when starting wl70

    Hello,
    Sometimes when starting wl, we receive the following error:
    Starting WebLogic Server...
    <Jun 9, 2003 6:54:44 AM EDT> <Notice> <Management> <140005> <Loading configuration
    /d001/DEV/app/bea/user_projects/devdomain/./config.xml>
    <Jun 9, 2003 6:54:50 AM EDT> <Error> <EmbeddedLDAP> <171517> <An error occurred
    while attempting to get exclusive access to the embedded LDAP data files directory
    - ./devserver/ldap/ldapfiles. The exception thown is java.io.IOException: lock
    error, ./devserver/ldap/ldapfiles/EmbeddedLDAP.lok, Permission denied, errno=13.>
    <Jun 9, 2003 6:54:50 AM EDT> <Critical> <WebLogicServer> <000364> <Server failed
    during initialization. Exception:weblogic.server.ServiceFailureException: Error
    getting exclusive access to embedded LDAP data files - with nested exception:
    [java.io.IOException: lock error, ./devserver/ldap/ldapfiles/EmbeddedLDAP.lok,
    Permission denied, errno=13]
    java.io.IOException: lock error, ./devserver/ldap/ldapfiles/EmbeddedLDAP.lok,
    Permission denied, errno=13
    at weblogic.ldap.FileLock.openWithLock(Native Method)
    at weblogic.ldap.EmbeddedLDAP.ensureExclusiveAccess(EmbeddedLDAP.java:893)
    at weblogic.ldap.EmbeddedLDAP.initialize(EmbeddedLDAP.java:204)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:717)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
    at weblogic.Server.main(Server.java:32)
    Deleting or renaming the EmbeddedLDAP.lok file allows us to start wl.
    This doesn't happen every time we start wl.
    Any ideas?
    Thank you.

    You should post the seucirty newsgroup to be sure, but I think this happens
    when you have two WLS instances running pointing to the same ldap
    configuration portion of a domain.
    cheers
    mbg
    "Steve Diese" <[email protected]> wrote in message
    news:3ee48228$[email protected]..
    >
    Hello,
    Sometimes when starting wl, we receive the following error:
    Starting WebLogic Server...
    <Jun 9, 2003 6:54:44 AM EDT> <Notice> <Management> <140005> <Loadingconfiguration
    /d001/DEV/app/bea/user_projects/devdomain/./config.xml>
    <Jun 9, 2003 6:54:50 AM EDT> <Error> <EmbeddedLDAP> <171517> <An erroroccurred
    while attempting to get exclusive access to the embedded LDAP data filesdirectory
    - ./devserver/ldap/ldapfiles. The exception thown is java.io.IOException:lock
    error, ./devserver/ldap/ldapfiles/EmbeddedLDAP.lok, Permission denied,errno=13.>
    >
    <Jun 9, 2003 6:54:50 AM EDT> <Critical> <WebLogicServer> <000364> <Serverfailed
    during initialization. Exception:weblogic.server.ServiceFailureException:Error
    getting exclusive access to embedded LDAP data files - with nestedexception:
    [java.io.IOException: lock error,
    ./devserver/ldap/ldapfiles/EmbeddedLDAP.lok,> Permission denied, errno=13
    java.io.IOException: lock error,./devserver/ldap/ldapfiles/EmbeddedLDAP.lok,
    Permission denied, errno=13
    at weblogic.ldap.FileLock.openWithLock(Native Method)
    atweblogic.ldap.EmbeddedLDAP.ensureExclusiveAccess(EmbeddedLDAP.java:893)
    at weblogic.ldap.EmbeddedLDAP.initialize(EmbeddedLDAP.java:204)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:717)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
    at weblogic.Server.main(Server.java:32)
    Deleting or renaming the EmbeddedLDAP.lok file allows us to start wl.
    This doesn't happen every time we start wl.
    Any ideas?
    Thank you.

  • Error while doing multiple object updation from EP ! object lock error

    HI all,
    I am doing multiple  object updation using a standard RFC(BAPI_PROJECT_MAINTAIN). The RFC i am calling from Enterprise portal. I am sending data to RFC one by one. But the error i am getting is object is locked by user so data can't be save.
    Though i am using Lock and unlock method before and after calling RFC the project lock error comes up.
    What might be the reason
    regards
    sandeep

    Hi Sandeep,
    Is the RFC you use for locking in the same model as the bapi BAPI_PROJECT_MAINTAIN? If it is not then you are using two connections for communication with the sap R/3 backend.
    You can do 2 things.
    1. You could add the RFCs for locking in the same model as the BAPI_PROJECT_MAINTAIN
    2. Instead of adding the RFCs in one model synchronize the connections the models use as follows:
    IWDDynamicRFCModel model1 = (IWDDynamicRFCModel) WDModelFactory.getModelInstance(Model1.class);
    IWDDynamicRFCModel model2 = (IWDDynamicRFCModel) WDModelFactory.getModelInstance(Model2.class);
    model1.setConnectionProvider(model2);
    You can do this in the wdDoInit. This will make sure both models use the same connection but closing a connection will close both at the same time.
    The same problem applies to commit/rollback functionality.
    Regards,
    Jeschael

  • Read/Write errors with FileVault-protected folders

    Hi-
    New to Mac OS, etc. I have been using the new MacBook Pro for about six weeks, and have now encountered my third show-stopper with a FileVault protected user profile. Each time has basically required a from-scratch removal and replacement of the user account. Now I can't ignore it, since I can't go through this again. Before you tell me (as so many websites do) to drop FileVault, I can't. I'm under a government mandate to encrypt "all user data." I'm open to other approaches, but this should "Just Work," no?
    Over time, I start seeing various hiccups in accessing files. These seem to present as longer and longer beachballing inside applications which access the disk (oddly, Firefox seems to be the one most commonly affected; then Mail.app seems to have problems either with file locking, or with bits of one email showing up in another, or much more random lockups with beachballs...)
    I have no idea how to troubleshoot... nothing obvious shows up in logs or console (ask me if you know of something in particular to look for.)
    This time, I decided to copy the contents of the sparse disk image off to a backup before trying to disable FileVault, since that failed completely last time resulting in significant loss of data (mostly emails that had not yet been backed up). I can now reproduce a problem predictably ... looking for help. In trying to copy the entire contents of my user profile, I get about a few hundred megs (into an 18 GB sparse disk) and bump into a file copy error. It happens in the same file every time. I get a dialog in finder that says "The Finder cannot complete the operation because some data in "xxx.mp3" could not be read or written. (Error code -36)" xxx.mp3 is obviously a real file name, I've elided here.
    Now, I try to copy the same file from the terminal using cp, to copy to some stable place like the root of the current (administrator) user's directory. In this case, the system goes somewhat nonresponsive -- big pause at the command line, other applications beachball, mouse works fine, but some parts of other applications non-responsive. Ctrl-C seems to work, after a time, and things go back to normal. "cat xxx.mp3" has the same response.
    I have run the Disk Utilities over the sparse image in question, and they report nothing wrong or nothing to fix.
    Help! The only comment I find on the support forums for error -36 has to do with SMB, not in the picture here.
    JA

    As I stated earlier, "The -36 is an i/o error. This means either the file, the directory or the data sectors are damaged."
    This message can be generated at the source end or at the destination end when you are copying a file.
    The copy process can give the same message if it has trouble reading a damaged sector at the read location or when it tries to write a file to damaged sectors at the destination location.
    You have told me that disk utility is telling you that the source directory and data sectors are fine.
    Verify disk is not perfect. There are literally hundreds millions of sectors on a drive and it would take hours to check each sector so verify disk is usually an adequate scan but not infallible.
    You say you have isolated the issue to corrupt files.
    You are blaming the file corruption on file vault when that is not necessarily true.
    That is why I had asked you to try to make a copy of the Mail folder to the desktop.
    The internal drive is verified.
    If you had trouble with that copy I was going to go with data corruption.
    The symptom you describe at the beginning was longer and longer processing times with a spinning cursor.
    The main reason for that is some kind of conflict that doesn't allow processing to proceed/complete.
    This can be due to page faults, permissions issues, font conflicts or corruption.
    Open font book and choose all fonts.
    Look in the second column and see if any of the fonts have a black dot to the right.
    If they do then select a font in the second column go to the edit menu and select all.
    Then select resolve duplicates from the edit menu.
    Now with the second column still selected go to the file menu and select validate fonts.
    Check to see that all fonts have a check marked circle.
    Any fonts that have any other designation should have their box checked and the remove checked choice selected.
    Data that you keep bringing back could be causing further corruption.
    The data that you have saved can be saved on an external device if you end up having to zero your drive and reinstall.
    You should then reinstall just the apple software that came with your computer and update.
    Turn on file vault without bringing back in data or extra applications.
    Then add applications one at a time if you are not having problems.
    As to data safety you can encrypt the data stored on the external device by putting it in a folder(s) and choosing to create an encrypted disk image of it.
    You do that in disk utility by selecting the folder and choosing new from the file menu.
    The choose disk image from folder then choose image.
    Then encryption - then save.
    You will still be able to unlock the encrypted disk image and get data you may need.
    Document what you are adding back to the system if the cleanly reinstalled system is stable.

  • Restore using TSPITR Results  Dead lock error

    This is the step is followed but i am getting deadlock error .please give your valuable suggestion .
    Product Used:oracle 11g in linux environmnet
    1)Before taking backup get SCN number for restore.
    Command applied: Select current_scn from v$database;
    2)running Full backup of database
    Command applied:
    configure controlfile autobackup on;
    backup database;
    CROSSCHECK BACKUP;
    exit;
    3)Running level 0 incremental backup
    Command applied:
    BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL 0 TAG ='WEEKLY' TABLESPACE TEST;
    exit;
    3) Running level 1 incremental backup
    Command applied:
    BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL 1 TAG ='DAILY' TABLESPACE TEST;
    4)Before Restore(TSPITR) following procedure are applied under sysdba privilege
    Command applied:
    SQL 'exec dbms_backup_restore.manageauxinstance ('TSPITR',1)';
    5)TSPITR Restore command
    Command applied:
    run
    SQL 'ALTER TABLESPACE TEST OFFLINE'
    RECOVER TABLESPACE TEST UNTIL SCN 1791053 AUXILIARY DESTINATION '/opt/oracle/base/flash_recovery_area';
    SQL 'ALTER TABLESPACE TEST ONLINE';
    and i tried with this option also(the same error i was getting)
    Command applied:
    run
    SQL 'ALTER TABLESPACE TEST OFFLINE';
    SET UNTIL SCN 1912813;
    RESTORE TABLESPACE TEST ;
    RECOVER TABLESPACE TEST UNTIL SCN 1912813 AUXILIARY DESTINATION '/opt/oracle/base/flash_recovery_area';
    SQL 'ALTER TABLESPACE TEST ONLINE';
    The follwing error i get for above mentioned restore command
    Recovery Manager: Release 11.2.0.1.0 - Production on Tue Aug 17 18:11:18 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: NEW10 (DBID=2860680927)
    RMAN> run
    2> {
    3> SQL 'ALTER TABLESPACE TEST OFFLINE';
    4> RECOVER TABLESPACE TEST UNTIL SCN 1791053 AUXILIARY DESTINATION '/opt/oracle/base/flash_recovery_area';
    5> SQL 'ALTER TABLESPACE TEST ONLINE';
    6> }
    7>
    using target database control file instead of recovery catalog
    sql statement: ALTER TABLESPACE TEST OFFLINE
    Starting recover at 17-AUG-10
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=404 device type=DISK
    RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point-in-time
    List of tablespaces expected to have UNDO segments
    Tablespace SYSTEM
    Tablespace UNDOTBS1
    Creating automatic instance, with SID='BkAq'
    initialization parameters used for automatic instance:
    db_name=NEW10
    db_unique_name=BkAq_tspitr_NEW10
    compatible=11.2.0.0.0
    db_block_size=8192
    db_files=200
    sga_target=280M
    processes=50
    db_create_file_dest=/opt/oracle/base/flash_recovery_area
    log_archive_dest_1='location=/opt/oracle/base/flash_recovery_area'
    #No auxiliary parameter file used
    starting up automatic instance NEW10
    Oracle instance started
    Total System Global Area 292933632 bytes
    Fixed Size 1336092 bytes
    Variable Size 100666596 bytes
    Database Buffers 184549376 bytes
    Redo Buffers 6381568 bytes
    Automatic instance created
    Running TRANSPORT_SET_CHECK on recovery set tablespaces
    TRANSPORT_SET_CHECK completed successfully
    contents of Memory Script:
    # set requested point in time
    set until scn 1791053;
    # restore the controlfile
    restore clone controlfile;
    # mount the controlfile
    sql clone 'alter database mount clone database';
    # archive current online log
    sql 'alter system archive log current';
    # avoid unnecessary autobackups for structural changes during TSPITR
    sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';
    executing Memory Script
    executing command: SET until clause
    Starting restore at 17-AUG-10
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=59 device type=DISK
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /opt/oracle/base/flash_recovery_area/NEW10/autobackup/2010_08_17/o1_mf_s_727280767_66nmo8x7_.bkp
    channel ORA_AUX_DISK_1: piece handle=/opt/oracle/base/flash_recovery_area/NEW10/autobackup/2010_08_17/o1_mf_s_727280767_66nmo8x7_.bkp tag=TAG20100817T142607
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
    output file name=/opt/oracle/base/flash_recovery_area/NEW10/controlfile/o1_mf_66o0wsh8_.ctl
    Finished restore at 17-AUG-10
    sql statement: alter database mount clone database
    sql statement: alter system archive log current
    sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;
    contents of Memory Script:
    # set requested point in time
    set until scn 1791053;
    # set destinations for recovery set and auxiliary set datafiles
    set newname for clone datafile 1 to new;
    set newname for clone datafile 8 to new;
    set newname for clone datafile 3 to new;
    set newname for clone datafile 2 to new;
    set newname for clone datafile 9 to new;
    set newname for clone tempfile 1 to new;
    set newname for datafile 7 to
    "/opt/oracle/base/oradata/NEW10/test01.dbf";
    # switch all tempfiles
    switch clone tempfile all;
    # restore the tablespaces in the recovery set and the auxiliary set
    restore clone datafile 1, 8, 3, 2, 9, 7;
    switch clone datafile all;
    executing Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    renamed tempfile 1 to /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_temp_%u_.tmp in control file
    Starting restore at 17-AUG-10
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_AUX_DISK_1: restoring datafile 00001 to /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_system_%u_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00008 to /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_system_%u_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00003 to /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_undotbs1_%u_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00002 to /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_sysaux_%u_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00009 to /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_sysaux_%u_.dbf
    channel ORA_AUX_DISK_1: reading from backup piece /opt/oracle/base/flash_recovery_area/NEW10/backupset/2010_08_17/o1_mf_nnndf_TAG20100817T140128_66nl7174_.bkp
    channel ORA_AUX_DISK_1: piece handle=/opt/oracle/base/flash_recovery_area/NEW10/backupset/2010_08_17/o1_mf_nnndf_TAG20100817T140128_66nl7174_.bkp tag=TAG20100817T140128
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:02:45
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_AUX_DISK_1: restoring datafile 00007 to /opt/oracle/base/oradata/NEW10/test01.dbf
    channel ORA_AUX_DISK_1: reading from backup piece /opt/oracle/base/flash_recovery_area/NEW10/backupset/2010_08_17/o1_mf_nnnd0_WEEKLY_66nl9m8k_.bkp
    channel ORA_AUX_DISK_1: piece handle=/opt/oracle/base/flash_recovery_area/NEW10/backupset/2010_08_17/o1_mf_nnnd0_WEEKLY_66nl9m8k_.bkp tag=WEEKLY
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:06:55
    Finished restore at 17-AUG-10
    datafile 1 switched to datafile copy
    input datafile copy RECID=6 STAMP=727294911 file name=/opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_system_66o0x1sf_.dbf
    datafile 8 switched to datafile copy
    input datafile copy RECID=7 STAMP=727294911 file name=/opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_system_66o0x1r9_.dbf
    datafile 3 switched to datafile copy
    input datafile copy RECID=8 STAMP=727294911 file name=/opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_undotbs1_66o0x1vr_.dbf
    datafile 2 switched to datafile copy
    input datafile copy RECID=9 STAMP=727294911 file name=/opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_sysaux_66o0x1vj_.dbf
    datafile 9 switched to datafile copy
    input datafile copy RECID=10 STAMP=727294911 file name=/opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_sysaux_66o0x1rs_.dbf
    contents of Memory Script:
    # set requested point in time
    set until scn 1791053;
    # online the datafiles restored or switched
    sql clone "alter database datafile 1 online";
    sql clone "alter database datafile 8 online";
    sql clone "alter database datafile 3 online";
    sql clone "alter database datafile 2 online";
    sql clone "alter database datafile 9 online";
    sql clone "alter database datafile 7 online";
    # recover and open resetlogs
    recover clone database tablespace "TEST", "SYSTEM", "UNDOTBS1", "SYSAUX" delete archivelog;
    alter clone database open resetlogs;
    executing Memory Script
    executing command: SET until clause
    sql statement: alter database datafile 1 online
    sql statement: alter database datafile 8 online
    sql statement: alter database datafile 3 online
    sql statement: alter database datafile 2 online
    sql statement: alter database datafile 9 online
    sql statement: alter database datafile 7 online
    Starting recover at 17-AUG-10
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting incremental datafile backup set restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00007: /opt/oracle/base/oradata/NEW10/test01.dbf
    channel ORA_AUX_DISK_1: reading from backup piece /opt/oracle/base/flash_recovery_area/NEW10/backupset/2010_08_17/o1_mf_nnnd1_DAILY_66nmf6qs_.bkp
    channel ORA_AUX_DISK_1: piece handle=/opt/oracle/base/flash_recovery_area/NEW10/backupset/2010_08_17/o1_mf_nnnd1_DAILY_66nmf6qs_.bkp tag=DAILY
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
    starting media recovery
    archived log for thread 1 with sequence 39 is already on disk as file /opt/oracle/base/flash_recovery_area/NEW10/archivelog/2010_08_17/o1_mf_1_39_66nmc1dg_.arc
    archived log for thread 1 with sequence 40 is already on disk as file /opt/oracle/base/flash_recovery_area/NEW10/archivelog/2010_08_17/o1_mf_1_40_66nmcfw4_.arc
    archived log for thread 1 with sequence 41 is already on disk as file /opt/oracle/base/flash_recovery_area/NEW10/archivelog/2010_08_17/o1_mf_1_41_66nmcwcf_.arc
    archived log for thread 1 with sequence 42 is already on disk as file /opt/oracle/base/flash_recovery_area/NEW10/archivelog/2010_08_17/o1_mf_1_42_66nmddbw_.arc
    archived log for thread 1 with sequence 43 is already on disk as file /opt/oracle/base/flash_recovery_area/NEW10/archivelog/2010_08_17/o1_mf_1_43_66o0wyys_.arc
    archived log file name=/opt/oracle/base/flash_recovery_area/NEW10/archivelog/2010_08_17/o1_mf_1_39_66nmc1dg_.arc thread=1 sequence=39
    archived log file name=/opt/oracle/base/flash_recovery_area/NEW10/archivelog/2010_08_17/o1_mf_1_40_66nmcfw4_.arc thread=1 sequence=40
    archived log file name=/opt/oracle/base/flash_recovery_area/NEW10/archivelog/2010_08_17/o1_mf_1_41_66nmcwcf_.arc thread=1 sequence=41
    archived log file name=/opt/oracle/base/flash_recovery_area/NEW10/archivelog/2010_08_17/o1_mf_1_42_66nmddbw_.arc thread=1 sequence=42
    archived log file name=/opt/oracle/base/flash_recovery_area/NEW10/archivelog/2010_08_17/o1_mf_1_43_66o0wyys_.arc thread=1 sequence=43
    media recovery complete, elapsed time: 00:00:50
    Finished recover at 17-AUG-10
    database opened
    contents of Memory Script:
    # make read only the tablespace that will be exported
    sql clone 'alter tablespace TEST read only';
    # create directory for datapump import
    sql "create or replace directory TSPITR_DIROBJ_DPDIR as ''
    /opt/oracle/base/flash_recovery_area''";
    # create directory for datapump export
    sql clone "create or replace directory TSPITR_DIROBJ_DPDIR as ''
    /opt/oracle/base/flash_recovery_area''";
    executing Memory Script
    sql statement: alter tablespace TEST read only
    sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/opt/oracle/base/flash_recovery_area''
    sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/opt/oracle/base/flash_recovery_area''
    Performing export of metadata...
    EXPDP> Starting "SYS"."TSPITR_EXP_BkAq":
    EXPDP> Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
    EXPDP> Processing object type TRANSPORTABLE_EXPORT/TABLE
    EXPDP> Processing object type TRANSPORTABLE_EXPORT/GRANT/OWNER_GRANT/OBJECT_GRANT
    EXPDP> Processing object type TRANSPORTABLE_EXPORT/INDEX
    EXPDP> Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/CONSTRAINT
    EXPDP> Processing object type TRANSPORTABLE_EXPORT/INDEX_STATISTICS
    EXPDP> Processing object type TRANSPORTABLE_EXPORT/TRIGGER
    EXPDP> Processing object type TRANSPORTABLE_EXPORT/TABLE_STATISTICS
    EXPDP> Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
    EXPDP> Master table "SYS"."TSPITR_EXP_BkAq" successfully loaded/unloaded
    EXPDP> ******************************************************************************
    EXPDP> Dump file set for SYS.TSPITR_EXP_BkAq is:
    EXPDP> /opt/oracle/base/flash_recovery_area/tspitr_BkAq_82690.dmp
    EXPDP> ******************************************************************************
    EXPDP> Datafiles required for transportable tablespace TEST:
    EXPDP> /opt/oracle/base/oradata/NEW10/test01.dbf
    EXPDP> Job "SYS"."TSPITR_EXP_BkAq" successfully completed at 18:25:02
    Export completed
    contents of Memory Script:
    # shutdown clone before import
    shutdown clone immediate
    # drop target tablespaces before importing them back
    sql 'drop tablespace TEST including contents keep datafiles';
    executing Memory Script
    database closed
    database dismounted
    Oracle instance shut down
    sql statement: drop tablespace TEST including contents keep datafiles
    Removing automatic instance
    shutting down automatic instance
    target database instance not started
    Automatic instance removed
    auxiliary instance file /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_temp_66o1k480_.tmp deleted
    auxiliary instance file /opt/oracle/base/flash_recovery_area/NEW10/onlinelog/o1_mf_3_66o1k0mg_.log deleted
    auxiliary instance file /opt/oracle/base/flash_recovery_area/NEW10/onlinelog/o1_mf_2_66o1jyt4_.log deleted
    auxiliary instance file /opt/oracle/base/flash_recovery_area/NEW10/onlinelog/o1_mf_1_66o1jx3w_.log deleted
    auxiliary instance file /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_sysaux_66o0x1rs_.dbf deleted
    auxiliary instance file /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_sysaux_66o0x1vj_.dbf deleted
    auxiliary instance file /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_undotbs1_66o0x1vr_.dbf deleted
    auxiliary instance file /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_system_66o0x1r9_.dbf deleted
    auxiliary instance file /opt/oracle/base/flash_recovery_area/NEW10/datafile/o1_mf_system_66o0x1sf_.dbf deleted
    auxiliary instance file /opt/oracle/base/flash_recovery_area/NEW10/controlfile/o1_mf_66o0wsh8_.ctl deleted
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 08/17/2010 18:25:36
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of sql command on default channel at 08/17/2010 18:25:25
    RMAN-11003: failure during parse/execution of SQL statement: drop tablespace TEST including contents keep datafiles
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00060: deadlock detected while waiting for resource
    Recovery Manager complete.
    please give your valuable suggestion .It should be more helpful for us.
    Edited by: user10750009 on Aug 20, 2010 1:07 AM
    Edited by: user10750009 on Aug 20, 2010 1:15 AM

    I want TSPITR ,during this operation i faced this deadlock error.
    Before that we faced roll backsegment error for that we applied follwing workaround .
    If i applied follwing workaround before every backup and restore .i didn't get any error .all things went successful.
    spool /tmp/Createtest.log
    connect / as sysdba
    REM Perform startup in case we are still down
    ALTER SYSTEM SET PROCESSES=500 SCOPE=SPFILE;
    SHUT IMMEDIATE;
    STARTUP MOUNT EXCLUSIVE;
    ALTER DATABASE ARCHIVELOG;
    ARCHIVE LOG START;
    ALTER DATABASE OPEN;
    connECT / as sysdba;
    alter system set undo_management = MANUAL scope=spfile;
    shutdown immediate;
    startup;
    Connect / as sysdba;
    DROP TABLE TEST123;
    create table test123 (t1 number, t2 varchar2(10));
    begin
    for i in 1.. 300000 loop
    insert into test values (i,'AAAAAAAAAA');
    end loop;
    end;
    delete test123;
    commit;
    alter system set undo_management = auto scope=spfile;
    shutdown immediate ;
    startup ;
    The above workaround we applied before creating tablespace and datafile ,after that we face some dead lock error while restore TSPITR .Did you need any more information
    Edited by: user10750009 on Aug 20, 2010 1:12 AM

  • [ADF-11.1.2] Locking issue with SQL 92

    I see one Locking issue with SQL92 Oracle ADF Application.
    ADF Version: [ADF-11.1.2]
    Database: Oracle 10g Express Edition
    Situation 1:
    With Following setting:
    File: Application Resource > Description > ADF META-INF > adf-config.xml
        <startup>
          <amconfig-overrides>
            <config:Database jbo.SQLBuilder="SQL92" jbo.locking.mode="optimistic"/>
          </amconfig-overrides>
        </startup>I have a page showing record 'x' of view object. I open same record on another page. Now I have same record showing on two different tabs of browser.
    1. I modify first record and save it. It worked... Got commited to database.
    2. I goto second tab and modify same record and tried to same it. It throws me an error - Another user has changed the row with primary key oracle.jbo.Key[38 ] . As expected...
    3. I then, reopen the same record on 3rd tab of browser. Modify it and tried to save it. It just hang... as if it is processing the record endlessly.
    If I see the Log:
    <BaseSQLBuilderImpl> <doEntitySelectForAltKey> [312] BaseSQLBuilderImpl Executing doEntitySelect ... (true)
    <BaseSQLBuilderImpl> <doEntitySelectForAltKey> [313] Generating new LOCK statement
    <BaseSQLBuilderImpl> <buildSelectString> [314] Built select: 'SELECT ID, CI_ID, COLUMN_NAME, DISPLAY_COLUMN_NAME, COLUMN_VALUE, CREATE_DATE, CREATE_BY FROM ESUSER.CI_AUDIT'
    <BaseSQLBuilderImpl> <doEntitySelectForAltKey> [315] Executing LOCK "SELECT ID, CI_ID, COLUMN_NAME, DISPLAY_COLUMN_NAME, COLUMN_VALUE, CREATE_DATE, CREATE_BY FROM ESUSER.CI_AUDIT WHERE ID=? FOR UPDATE"
    <BaseSQLBuilderImpl> <bindWhereAttrValue> [316] Where binding param 1: 38
    That's it.. nothing happens further.. If I execute above query on SQL Worksheet, it doesn't come up with the result. Just hang for something...
    SELECT ID, CI_ID, COLUMN_NAME, DISPLAY_COLUMN_NAME, COLUMN_VALUE, CREATE_DATE, CREATE_BY FROM ESUSER.CI_AUDIT WHERE ID='38' FOR UPDATE I can execute above query for other record of same table but not '38'. Even if I fire commit command to database, it is not working.
    I have to restart the database services to bring everything to normal state.
    Situation 2:
    With Oracle as Database :
        <startup>
          <amconfig-overrides>
            <config:Database jbo.SQLBuilder="Oracle" jbo.locking.mode="optimistic"/>
          </amconfig-overrides>
        </startup>Everything is working file. i.e. at step 3, record is getting modified successfully with following log:
    <OracleSQLBuilderImpl> <doEntitySelectForAltKey> [27] OracleSQLBuilder Executing doEntitySelect on: ESUSER.CI_AUDIT (true)
    <ADFLogger> <begin> Entity read all attributes
    <OracleSQLBuilderImpl> <buildSelectString> [28] Built select: 'SELECT ID, CI_ID, COLUMN_NAME, DISPLAY_COLUMN_NAME, COLUMN_VALUE, CREATE_DATE, CREATE_BY FROM ESUSER.CI_AUDIT CIAudit'
    <OracleSQLBuilderImpl> <doEntitySelectForAltKey> [29] Executing LOCK...SELECT ID, CI_ID, COLUMN_NAME, DISPLAY_COLUMN_NAME, COLUMN_VALUE, CREATE_DATE, CREATE_BY FROM ESUSER.CI_AUDIT CIAudit WHERE ID=? FOR UPDATE NOWAIT
    <ADFLogger> <addContextData> Entity read all attributes
    <OracleSQLBuilderImpl> <bindWhereAttrValue> [30] Where binding param 1: 38
    <ADFLogger> <addContextData> Entity read all attributes
    <ADFLogger> <end> Entity read all attributes
    <ADFLogger> <end> Lock Entity
    <ADFLogger> <begin> Before posting the entity's changes
    <ADFLogger> <begin> Updating audit columns
    <ADFLogger> <end> Updating audit columns
    <ADFLogger> <end> Before posting the entity's changes
    <OracleSQLBuilderImpl> <doEntityDML> [31] OracleSQLBuilder Executing, Lock 2 DML on: ESUSER.CI_AUDIT (Update)
    <OracleSQLBuilderImpl> <buildUpdateStatement> [32] UPDATE buf CIAudit>#u SQLStmtBufLen: 210, actual=60
    <OracleSQLBuilderImpl> <doEntityDML> [33] UPDATE ESUSER.CI_AUDIT CIAudit SET COLUMN_VALUE=? WHERE ID=?
    <ADFLogger> <begin> Entity DML
    <OracleSQLBuilderImpl> <bindUpdateStatement> [34] Update binding param 1: cip7ri1
    <OracleSQLBuilderImpl> <bindWhereAttrValue> [35] Where binding param 2: 38
    <ADFLogger> <addContextData> Entity DML
    <ADFLogger> <end> Entity DML
    Can any one please tell me, what is the issue with SQL92 setting ?
    Edited by: Anandsagar Sah on Mar 11, 2012 8:10 AM

    The framework works correctly in the Situation #1. Please, note that the locking statement in this case is "SELECT ... FOR UPDATE", but not "SELECT ... FOR UPDATE NOWAIT" (as it is in the Situation #2). When you entered the 2nd tab and tried to update the row, then the framework executed the locking statement and the row was locked (and it remained locked because the framework detected that another user had modified the row, so it stopped the processing and no COMMIT operation was executed). When you entered the 3rd tab and tried to update the row, then the framework tried to lock the row againg, but the locking statement was blocked by the existign lock and it started waiting on the lock from the 2nd tab. So this is expected behaviour.
    The interesting question is why you do not get any error in the Situation #2. In my opinion you should get an error because the locking statement from the 3rd tab should fail immediately (because the row should have been locked from the 2nd tab and the locking statement is with NOWAIT option). I suspect that when the DB is Oracle and you use Oracle SQLBuilder, then the ADF issues a DB savepoint at the beginning of the DML operation and rolls back to the savepoint is a case of some failure, so the 2nd tab has not left any lock. You can check this by setting on SQL trace on the DB server.
    Dimitar

  • My grandsons new Apple refurbed 35g ipad keeps locking up with a black screen amd nothing else. I have reset it many times pressing the home and off buttons together but uit keeps locking up. Help,please!

    My grandsons new Apple refurbed 35g ipad keeps locking up with a black screen amd nothing else. I have reset it many times pressing the home and off buttons together but it keeps locking up. Help,please!

    Thank you for trying to help. I followed your instructions, it took 6 hours to download, and then said it could not solve the problem (something to do with error 9?). It will have to go back to Apple - its only 3 days since it came out of the package and its very disappointing for him. Looks like I have to hang around in the Apple store in Plymouth all tomorrow until they can fix it, or will change it. Thanks for your help.

  • I have a Win7Pro SP1 PC locked down with a Group Policy as it is a public facing PC. PDF fillable forms cannot be completed when logged on as the restricted user. The forms work as a normal user. What are the user requirements/permissions needed to fill f

    I have a Win7Pro SP1 PC locked down with a Group Policy as it is a public facing PC. PDF fillable forms cannot be completed when logged on as the restricted user. The forms work as a normal user. What are the user requirements/permissions needed to fill forms?

    Well, try this (I was able to fix my with these steps):
    Go Utilities > Disk Utility
    Select your Startup Disk, e.g. Macintosh HD
    Then, under the First Aid Tab, click Verify Disk Permissions.
    If there are errors, then click repair Disk Permissions.
    After it is done, restart the computer and see if your problem is resolved.
    I hope this help.
    Zeke
    www.ZekeYuen.com/blog/

  • Record lock error occurs randomly, when same task opened in 2 browser tabs

    I am having an ADF UI taskflow with two flows(paths):
    Flow1 - Edit DFF
    ProcessParameters ----> router---> IFEDIT---->SetEditedStatusAttribute MethodCall --> editDFFpage
    Flow2 - Manage DFF Accross All Modules
    ProcessParameters ----> router---> IFSEARCH---->SearchQuerypanel editbutton>SetEditedStatusAttribute MethodCall --> editDFFpage
    These two flows can be triggered from links in a task panel. Screenshot [http://act.us.oracle.com/~vmeka/lockerror/lockerror.JPG]
    the method call setEditedStatusAttribute, calls an EOImpl method to set an attribute.
    This in turn triggers lock() for all the associated EOs.
    In following scenario failure occurs:
    ->1. Click Edit DFF task and keep the web browser tab/window open - lock is acquired.
    ->2. Open http://localhost7101/ManageFlex-WebApp_Test-context-root/faces/ManageFlex in another tab/window and open the Edit DFF task. lock is acquired again.
    ->3. In the same tab re-run the page by removing session details suffix.
    Eg. http://dadvml0082.us.oracle.com:7108/ManageFlex-WebApp_Test-context-root/faces/ManageFlex?_afrLoop=19870268404083601&_afrWindowMode=0&_adf.ctrl-state=sbc4nhzgh_116
    Remove the end part that starts with ?_afrLoop= and press enter in the Address bar of browser. lock is acquired third time.
    ->5. This re-runs the page, open Edit task again
    ->6. Without pressing cancel , open Manage DFF task
    ->7. Do not perform any search operation and open Edit FF task again. lock is acquired fourth time.
    ->8. Repeat steps 5-7 a few number of times
    In step 5 or 7 I am hitting an exception with following message
    JBO-26030: Failed to lock the record, another user holds the lock.
    stack: (complete stack at [http://act.us.oracle.com/~vmeka/lockerror/stack1.txt] )
    oracle.jbo.AlreadyLockedException: JBO-26030: Failed to lock the record, another user holds the lock.
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:1085)
    at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:546)
    at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:1485)
    at oracle.apps.fnd.applcore.flex.dff.model.entity.DescriptiveFlexfieldEOImpl.updateDeploymentStatus(DescriptiveFlexfieldEOImpl.java:1804)
    at oracle.apps.fnd.applcore.flex.dff.model.entity.DescriptiveFlexfieldEOImpl.setEditedStatus(DescriptiveFlexfieldEOImpl.java:1753)
    at oracle.apps.fnd.applcore.flex.dff.uiModel.applicationModule.DFFSetupUIAMImpl.editDescriptiveFlexfield(DFFSetupUIAMImpl.java:770)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Any Idea why the lock error occurs after a few iterations, and not immediately after Edit DFF is opened in a second tab?
    Thanks,
    vikranth
    Edited by: user10124649 on Nov 25, 2009 8:04 AM

    Hi,
    on the ApplicationModule, did you set the locking behavior to optimistic ? For web applications it should be optimistic and not pessimistic, which is the default setting. Select the AM and choose "Configurations" from the context menu. Click edit and select the property tabs. Look for the locking setting, which should be set to "pessimistic if you did not change it before. Just replace the current value with optimistic
    Frank

  • Getting ORA-22920 Error With 'FOR UPDATE' clause

    Hello all,
    I scanned through all the messages regarding this error and the suggestion posted was to have 'FOR UPDATE' in the SELECT query. I do have that, but I am still getting ORA-22920 (row containing the LOB value is not locked) error.
    I am using JDBC thin driver with 8.0.5. I know the thin driver installation works because I can read data that I inserted using 'INSERT INTO ...' from svrmgr30.
    Can anyone show me some light on this?
    Thanks
    Suresh

    Hi,
    This helped me:
    Before the insert statement:
    connection.setAutoCommit(false);
    ..what you like to do
    at the end..
    connection.commit()
    HTH
    Martin

  • System Locking Error - WebAS 6.40 ABAP

    My Netweaver 6.40 ABAP edition is now up and running. License is installed. I had to resolve an index-problem in the database layer by recreating a corrupt index via DBMCLI, but now the database seems to be fine.
    But I still can't "lock" anything. When I e.g. try to change client settings in SCC4, I get an error message:
    "System error: Unable to lock table/view T000".
    When I try to activate a service in SICF, I get "System locking error" (SR053). It seems that the enqueue server doesn't work.
    SM12 (Lock entries) diagnostics say: "System error during lock operation. Execute diagnostics in SM12" (03113). Interesting message, but not much help as I just did execute the diagnostics in SM12.
    The current workprocess configuration is:
    rdisp/wp_no_dia=2
    rdisp/wp_no_btc=1
    rdisp/wp_no_vb=0
    rdisp/wp_no_vb2=0
    rdisp/wp_no_enq=0
    rdisp/wp_no_spo=0
    Which is the default. I also tried
    rdisp/wp_no_dia=2
    rdisp/wp_no_btc=0
    rdisp/wp_no_vb=0
    rdisp/wp_no_vb2=0
    rdisp/wp_no_enq=1
    rdisp/wp_no_spo=0
    but that did not help.
    My hostname is NLVEHVHSE1NB272 (15 characters!). 6.10 could not be installed on a computer with such a long name, but 6.40 can.
    My rdisp/enqname is "NLVEHVHSE1NB272_NSP_", where I would expect "NLVEHVHSE1NB272_NSP_00".
    Does anybody know what the reason for my locking problems could be ? Thanks !

    Hi Ralf
    I had an identical problem and have been able to solve it by shortening the host name to less than 13 characters.
    OSS Notes 611361 and 23538 may he of help
    Cheers
    Grahame

  • Microsoft sql client deadlocked on lock resources with another process

    Hi
    I wrote a forecasting report for a customer which creates an excel spreadsheet with the information
    Depending on how they run the report it can take between 5 to 15 minutes to run
    We have just upgraded the customer to SAP 8.8 PL10 and Microsoft SQL Server 2008 and they seem to be getting an error -
    Microsoft sql client deadlocked on lock resources with another process .......
    The error seems intermittent, they may get the error once and the next time they run it, it is fine.
    I have never seen this error before and they never had it before on SAP 2005
    Can anyone suggest anything please?
    Thanks
    Regards Andy

    Hi Andy,
    I was having the same problem. I'm gonna tell you what i did.
    My query usually takes from 10 to 15 minutes to show results. That long time also block all transaction in the database.
    I was reading about some techniques to improve queries performance. Some of the tips are:
    1. Review indexes in the table you are querying
    2. Use Views
    3. Avoid cursors
    4. Archive old data
    5. Use the correct transaction isolation level
    The last one, was the tip that helped me to avoid the block in the database.
    By default the isolation level in SQL Server is Read Commited, that explains why the database block some transactions. For example, if you have a query that take data from JDT1 table and it takes several minutes to show the results, other transactions that try to write in the same table should be blocked if they arrive at the same time of the first query.
    To solve this, you can make your query in a transaction with Snapshot isolation level. It means that your select query will take a snapshot of the data without blocking any other transaction.
    Here is an example how you can make it. The difference is that you may use ADO.NET connection replacing DI API Connection:
    oConnection = OK1.Generic.Helpers.setConnection(server, password, userID, db); // You have to set anyway your sqlconnection
                        if (oConnection.State == ConnectionState.Open)
                            oCommand = new SqlCommand();
                            oCommand.Connection = oConnection;
                            oCommand.CommandTimeout = System.Convert.ToInt32(timeOut);
                            oCommand.CommandText = "ALTER DATABASE " + db + " SET ALLOW_SNAPSHOT_ISOLATION ON";
                            oCommand.ExecuteNonQuery();
                            sqlTran1 = oConnection.BeginTransaction(IsolationLevel.Snapshot);
                            oCommand.CommandText = query;
                            oCommand.Transaction = sqlTran1;
                            oCommand.ExecuteNonQuery();
                            sqlTran1.Commit();
                            oCommand.CommandText = "ALTER DATABASE " + db + " SET ALLOW_SNAPSHOT_ISOLATION OFF";
                            oCommand.ExecuteNonQuery();
                            if (oConnection.State == ConnectionState.Open)
                                oConnection.Close();
    In this example I write the data to show in the report in other table, then the report takes the data from that table.
    I hope it will be helpful for you.
    Regards,
    Juan Camilo

  • IDOC Error with STATUS 51

    HI,
    I has a JMS-XI-IDOC Scenario where i has used BPM to get the response from RFC wehre the RFC input is the message from JMS.
    The Response Message from RFC is mapped to IDOC .The Scenario is working and the IDOC is getting created in SAP System Iam getting the Error with Status = 51 and the required field LIFNR not found.
    Request you to please provide the suggestion whether i need to make any settings to resolve this.
    Thanks & Regards,
    Y.Raj.

    Hi !
    Status 51 in most cases is because of lock occured in R3, you can check the kind of error in BD87. If it is a lock error then you can directly say process all
    also check in the last page of this URL
    http://help.sap.com/saphelp_nw04/helpdata/en/d4/0d67e4d85511d2a6080060087832f8/frameset.htm
    Thanks
    Edited by: Abhishek Agrahari on Sep 22, 2008 9:54 AM

Maybe you are looking for

  • Using SQL instances - how to configure the db connection

    WCI 10.3.0 We changed the DB server, and instead of a regular SQL server using the 1433 port, we are using an instance SQLSERVER1\_SQLINSTANCE1 The problem is that, in this case, the port is dynamic allocated. The question is: How I configure this in

  • Album art in wrong place

    My album art seems to come up randomly based on the song playing. As in that two songs from the same artist and album will have different cover art. usually another artists album art that is also on my iPOD. Is anyone else having this problem? Does a

  • Areca Raid controller, which one?

    I am looking at purchasing the Areca ARC-1880i. Is there a big difference in preformance between this controller that has 512mb and the next cards up (1880ix's) with 2g or 4g of memory.

  • Java in Stored Procedures

    Hi all, This is the Problem i am facing. Can anyone help please !!!! I hv creaeted a java source file to print "Hello World" and compiled to create java class file. Now i hv both the .java and .class file under the directory c:\suresh\javaexam. I tri

  • Ipad freezes when upgrading to 6.1.3

    ipad 3rd Gen freezes when upgrading to 6.1.3. I tried to reset it by holding down the Sleep button and the Home button together, but all I am getting is the Apple icon. I tried it several times. Can anyone help?