DI API Deadlocks in SQL 2005 database server

Hello All,
I have an Issue, which is coming on large databases ( > 50GB) and number of users >  20.
I have read the following notes
1269591, 1489753, 1318311, 1231444 , 1344641 , 1316554
also contributed in the following thread:
Workaround:
Each SAP B1 Client is using an addon, which do a WM (Warehouse management) based on WHSE Journal. Until upgraded to 2007 version, this was working fine, no issue came up only system was slow.
Process with pseudo code like this
'incoming cases - when an item is entering into the warehouse
Add Logistics documents (action success = true)
- start transaction
  - check Warehouse journal
  - record changes done by this document (based on oinm) into (UDT)
- finish transaction
'outgoing cases - where an item is carried out from the warehouse - create a self pick list example: sales order:
start transaction
- loop on every rows of the sales order
  - read ordered quantity
  - look for place where it is stored,
- if found make  a reservation in (UDT)
  - add position to self created pick list  (UDT)
finish  transaction
'release from warehouse
start transaction
  - look for pick list position (UDT)
  - reduce stock value (UDT)
  - update pick list  with packed quantity (UTD)
  - create delivery note
finish  transaction
Depending from activity the users receive various error messages like Could not commit transaction / Deadlock ...  / -2038 Internal error xxxx messages, when trying to access to UDT-s or any marketing documents, and the system is frozen. I go to activity monitor, and check and tell them which client is causing dead locks, they log off ,and can continue work or if the process runs to timeout, it sends the error message to SAP B1 Client.
Also we have an addon which reads (only reads) data from database from OITM / OITW / and one of these UDT above. (queries against stock value from UDT). here we receive 2 type of error messages
- Deadlock
- Timeout
I know these messages are coming from: other computers /Users are issueing documents in transaction.
Any ideas to resolve this issue / has anybody happened this issue ?
Every ideas, comments are welcome.
The system is b1 2007 SP 01 PL 10. Average document position between 50-100.
Solution Architect team? Any workaround?
Regards
János

HI Janos,
I also faced little bit same type of Issue in one of the project.
Please look
Link: [Large data processing Issue | SAP Hanging Problem using Transactions;
After applying this my issue was resolved.
regards:
Sandy
Edited by: Sandeep Saini | Roorkee | India on Sep 6, 2010 7:16 PM

Similar Messages

  • SAP IDES ECC5.0 (SQL 2005 Database) installation Error at  Database instan.

    At the time IDES ECC 5.0 installation (SQL 2005 database), I was copy all DVD on Hard drive and start setup then at installation of database instance, following Errors are occured. so I cant continue with the installation, if anyone have installation guide/or solve the following error please mail me at [email protected]
    from Log file SAPCLUST
    Interface access functions from dynamic library dbmssslib.dll loaded.myCluster
    (3.5.Imp): 613: error when retrieving table description for physical table AABLG.
    myCluster (3.5.Imp): 614: return code received from nametab is 32
    myCluster (3.5.Imp): 296: error when retrieving physical nametab for table AABLG.
    (CNV) ERROR: code page conversion failed
                 rc = 2
    from sappool.log
    Interface access functions from dynamic library dbmssslib.dll loaded.failed to read short nametab of table ARCH_NUM     (rc=32)conversion failed for row 0 of table  VARKEY = ⁘††††††††††††††††††††††††
    (CNV) ERROR: code page conversion failed
    So please send me solution/ or any configuration need for SQL 2005 / installation guide thanks

    This may be hard disk problem, some file not able to write on HDD.
    Regards
    Rajnish

  • Use a SQL 2012 database server with Reporting Services 2008?

    Hello, we have a SQL Server 2008 R2 Reporting Services Standard server with the reporting databases running on a SQL Server 2008 Standard database server. I would like to upgrade the database server to SQL Server 2012 before I upgrade the reporting server.
    Can I run SQL Server 2008 R2 Reporting Services against a 2008-version database running on a SQL 2012 database server? Thanks for your help.

     
    Hi Nicole
    Thanks for your posting.
    Are you asking if we can connect from SSRS 2008 r2 to a database sitting on SQL Server 2012.  Am I right?, please ignore me if I misunderstood your question. If that is your question
    then I think you will be able to using BIDS 2008, I have created A database on SQL Server 2012 and I use that database table inside  my SSRS 2008 R2 dataset. I can even think that you can use a database of compatibility level of 2012(110) as well
    Many thanks
    Syed Qazafi Anjum

  • Change the sql 2005 database  C drive to E drive

    hi,
    it is possible to change the sql 2005 database  C drive to E drive
    if ,yes then step:-?
    Regards
    Amit

    Hello Amit,
    >it is possible to change the sql 2005 database C drive to E drive
    >if ,yes then step:-?
    You can also check note [363018|http://service.sap.com/sap/support/notes/363018].
    Regards,
    Eduardo

  • CLEANUP_USESSAUD is locked in MS SQL 2005 database

    Hi team,
    CLEANUP_USESSAUD stored procedure is encrypted bydefault in MS SQL 2005 database.
    May i know, how to unlock and modify this procedure?

    Hi,
    We have used a utility called Optillect to look into the encrypted stored procedures.
    Regards
    Alex

  • SQL 2005 Linked server to Oracle append

    Hi Oracle Exprets,
    i am using an SQl 2005 linked server too pull data from specific table in Oracle data base.
    the thing is i have to pull data daily and append this data to the exsisting table.
    here is my code :
    EXEC sp_tables_ex @table_server ='LINKED_ORA',@table_schema='Myschema'
    INSERT INTO dbo.ARS20091
    SELECT * FROM OPENQUERY(LINKED_ORA,
    'SELECT
    TROUBLEID,
    CREATE_DATE,
    DATE ''1970-01-01'' + CREATE_DATE / 24 / 60 / 60
    CREATEDATE
    FROM CLIENT_TROUBLE
    WHERE CREATE_DATE between ''1230768001'' AND ''1239043005''');
    GO
    this code works but i have to change the date daily and do a complete insert in a new table.
    Is there a way to append data daily ?
    thanks

    Hi sanjay,
    but why sysdate is giving me the today's date and when i use getdate ...it does not give me anything..
    i am using openquery tooracle data base..usually i have to use Oracle command..
    Mo..

  • SQL 2005 Databases not Discovered

    We have a SQL 2005 server, where the DB instance itself has been discovered but the SQL DBs themselves have not. Any way to understand / troubleshoot why not. Other instances work just fine.

    The account is just fine, and it is a sysadmin on the server. It discovered the instance even, unlike by my other post:
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/7da4b442-c9e4-4aac-9cb9-d2af0b1ffbaa/clustered-database-engine-not-discovered?forum=operationsmanagermgmtpacks&prof=required
    That said, it doesn't discover DBs. I haven't seen any errors in the event log pertaining to the discovery. The bug fix posted above also hasn't helped me.
    When trying to run this MP script manually it also returns XML:
    http://blogs.technet.com/b/jimmyharper/archive/2009/06/11/sql-database-properties-not-discovered.aspx
    So, I'm not really sure that is going on here. What is the expected return I am supposed to get.

  • Upgrade sql 2000 win xp  to sql 2005 win2003 server

    Hi,
    We had installed sap b1 2005b on winxp and database  as sql 2000.
    Now ,we want to install sap b1 2007b on win 2003 and database as sql 2005.
    Can the sql 2000 winxp database backup  be restored on sql 2005 win2003 database.
    Since both the OS are different can the backup be restored .
    Pls let me know about the same.
    Regards,
    Rajeev

    Hi Rajeev
    step 1) Install SQL Server 2005.
    step 2) Install [SAP Business One|http://www.brio.co.in/products/sap-business-one/] 2005
    step 3) Get the new license key for your windows 2003 server if you dont have
    step 4) Create a company with same name and database name this will create a company record in SBOCommon database
    step 5) Take the backup of the database of the company in MS SQL 2000.
    step 6) Restore it on your windows 2003 and sql server 2005 system
    step 7) Download an upgrade for 2005 to 2007 from software download center
    step 8) Run the upgrade exe
    THATS IT, YOU ARE ON YOUR NEW SYSTEM.
    Regards
    [Abdul Muneem|http://www.brio.co.in]
    Edited by: Muneem Abdul on Nov 22, 2010 12:22 PM

  • OCS 2007 R2 with SQL 2005 database mirroring failover?

    We have OCS 2007 Enterprise Edition installed fine and with the databases mirrored to a backup server/location.  I'm testing our environment for a potential disaster, including losing our primary SQL server (SQL 2005).  I fail the databases over and update the backend pool to the backup SQL server name, but we cannot connect via Office Communicator and I see this error on the OCS server:
    OCS User Services, error category 1006, event id 30962:
    Connection to back-end database succeeded, but failed to execute registration stored procedure on the back-end. This error should not occur under normal operating conditions. Contact product support.
    Back-end Server: databkp Database: rtc Sql native error: 515 Connection string of:
    driver={SQL Native Client};Trusted_Connection=yes;AutoTranslate=no;server=databkp;database=rtc;
    Cause: Possible issues with back-end database.
    Resolution:
    Ensure the back-end is functioning correctly.
    Can anyone shed some light on this SQL 515 error?  Thanks in advance!
    -Erik

    We're having a similar issue but with error number 601. I've tried a million different things aside from restoring the database, which may be next. I tried editing the procedure and I *think* I edited the right lines 77 and 105 for me. Changed:
        delete dbo.DbConfigDateTime
          from @DbTime as t
         where dbo.DbConfigDateTime.Name = t.ValueName
           and t.StoredDbName = N'rtc'
           and t.Value is null
    to:
        delete dbo.DbConfigDateTime
          from @DbTime as t
         where dbo.DbConfigDateTime.Name = t.ValueName
           and t.StoredDbName = N'rtc'
           and t.Value is not null
    and 
        delete rtcdyn.dbo.DbConfigDateTime
        from @DbTime as t
        where rtcdyn.dbo.DbConfigDateTime.Name = t.ValueName
        and t.StoredDbName = N'rtcdyn'
        and t.Value is null
    to:
        delete rtcdyn.dbo.DbConfigDateTime
        from @DbTime as t
        where rtcdyn.dbo.DbConfigDateTime.Name = t.ValueName
        and t.StoredDbName = N'rtcdyn'
        and t.Value is not null
    Not sure if that's where the modification is supposed to go. Any clarity here? Anyone else get a 601 error?

  • B1 create User Defined Field as nvarchar(max) in SQL 2005 database

    Hi everyone,
    I just created a UDF in B1 as alphanumeric(12), and noticed that B1 created a field in SQL 2005 as nvarchar(max) instead of nvarchar(12). I tested with both 2005A SP01 patch 14 and patch 20. It always creates UDF as nvarchar(max). Is this a bug? It will cause db file use more disk space and also reduce the query performance. Also, B1 won't create the index on the UDF even if you select the option.
    Thanks for help,
    David

    Hi David,
    I was running on patch 19 when I wrote my earlier posts. I'm now running patch 20 without any issues. I also have a range of clients who are running SBO 2005A SP1 on various patch levels above 10 (though not all are on SQL 2005) and I've yet to come across this issue.
    Did you log this with SAP Support? Have they come up with any suggestions?
    Maybe this will work:
    1) Start SBO. When you get to the login screen, click on Choose Company.
    2) Change the Current Server field from SQL 2005 to SQL 2000. Reenter your server settings if prompted
    3) Login as normal and try and create your field.
    4) Log out and go back in to change back to SQL 2005
    Kind Regards,
    Owen

  • Failing to install SQL 2005 on server.

    I am failing to install SQL 2005 on the server with message below:-
    TITLE: Microsoft SQL Server 2005 Setup
    The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, "How to: View SQL Server 2005 Setup Log Files" and "Starting SQL Server Manually."
    For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=MicrosoftSQLServer&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=29503&EvtType=sqlsetuplib%5cservice.cpp%40Do_sqlScript%40sqls%3a%3aService%3a%3aStart%40x42b
    BUTTONS:
    &Retry
    Cancel
    It was removed after it started developing problems. We tried to go to MS SQL site buts its not opening the site. I thought maybe you could help although it is a SQL error. For some time we are failing to run SAP B1 because of this.
    Thank you.

    Hi,
       Check the SQL Services  go to start->AllPrograms->Microsost
    SQL Server 2005->ConfigurationTools->SQL Server Configuration Manager
    Pl check The following Services is Running State
    1.SQL Server Browser
    2.SQLServer(MSSQLSERVER)
    Regards
    JambuLingam.P

  • Issues connecting to sql 2005 database using Oracle sql developer 1.2

    I just installed the sql developer and was trying to use the quick migrate to try a migration from a sql server to oracle..
    I am getting the following error message when i click on the retrieve database after entering the database credentials
    Status : Failure net.sourceforge.jtds.jdbc.driver
    I am getting another error message when i click on the 'test' button
    Status: Failure - Unable to find driver: net.sourceforge.jtds.jdbc.driver
    I downloaded the jtds driver from source forge and i am wondering what I should do to get the sql developer to make successful connections to sql server.
    Any help is appreciated.
    Thanks

    I have the same issue with both version 1.1.3 of the SQL developer and the latest version(1.2.1). I have added the jar file path in tools->preferences->Database->Third Party etc...
    I got the jar file from this download: jtds-1.2.2-src.zip
    I get this error when trying to connect to an sql server:
    oracle.jdeveloper.cm.CMException: Unable to find driver: net.sourceforge.jtds.jdbc.Driver
         at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.createConnection(RaptorConnectionWrapper.java:175)
         at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.getJdbcConnection(RaptorConnectionWrapper.java:202)
         at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.getPresentation(RaptorConnectionWrapper.java:68)
         at oracle.dbtools.raptor.utils.Connections$ConnectionInfo.createConnection(Connections.java:1004)
         at oracle.dbtools.raptor.utils.Connections$ConnectionInfo$ConnectRunnable.doWork(Connections.java:876)
         at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:553)
         at java.lang.Thread.run(Thread.java:595)
    Any help would be appreciated. I like the tool would hate to have to abandon it, it works like a charm on our oracle databases.

  • Cann't Drag and Drop Tabels from MS SQL 2005 Database using JDBC connectio

    I've created a I've installed cr4e-all-in-one-win_2.0.1 (Crystal Reports for Eclipse) created a new Connection with MS-2005 SQL using SQLJDBC.jar file, Connection is working and I can see all Databases and under dbo schema.
    My problem is when i try to add database in my report (using drag and drop or via option menu) nothing happens... there's no error please guide

    Hi K,
    First of all, thank you so much for your help and advice.
    When i create the repository, i encountered below error in compiler log;
    Error(26,2): PL/SQL: SQL Statement ignored
    Error(29,23): PL/SQL: ORA-00904: : invalid identifier
    Error(2486,9): PL/SQL: Statement ignored
    Error(2486,30): PLS-00201: identifier 'DBMS_LOB' must be declared
    Error(2487,9): PLS-00201: identifier 'DBMS_LOB' must be declared
    Error(2487,9): PL/SQL: Statement ignored
    Error(2488,9): PLS-00201: identifier 'DBMS_LOB' must be declared
    Error(2488,9): PL/SQL: Statement ignored
    Error(2559,5): PL/SQL: Statement ignored
    Error(2559,26): PLS-00201: identifier 'DBMS_LOB' must be declared
    Error(2560,5): PLS-00201: identifier 'DBMS_LOB' must be declared
    Error(2560,5): PL/SQL: Statement ignored
    Error(2561,5): PLS-00201: identifier 'DBMS_LOB' must be declared
    Error(2561,5): PL/SQL: Statement ignored
    When i right click on those errors and click 'go to source', it doesn't go anywhere.
    But it mentioned that repository created successfully.
    So that I tried to quick migrate and got below migration error:
    Error ocurred during capture:
    ORA-04063: package body "REPOOWNER.MD_META" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "REPOOWNER.MD_META"
    ORA-06512: at "REPOOWNER.MD_PROJECTS_TRG", line 3
    ORA-04088: error during execution of trigger 'REPOOWNER.MD_PROJECTS_TRG'
    I really don't know how to solve this.
    Thus, please help to advice how to solve on this matter and I do really appreciate your help.
    Thank you so much for all your help.
    Edited by: Sai Lin Naung on May 30, 2010 8:32 PM

  • SQL 2005 database authentication Problem

    In the past we have used sql user authentication to create
    the CF datasource for SQL databases, however, we would like to use
    windows authentication instead, does CF support windows
    authentication?

    OK, so in 7.01, you need to upgrade the drivers to get
    Windows Authentication to work. The drivers that were built-in in 7
    were the 3.4 version from Merant/DataDirect. They weren't updated
    (as a default in the install of CF) until 8,when they were updated
    to 3.6.
    The 3.5 drivers added Windows authentication, and you can
    apply them to a CF 7/7.01/7.02 install. Check out my blog entry:
    http://carehart.org/blog/client/index.cfm/2006/8/8/jdbc3.5_update
    If you wonder what version of the drivers you may already be
    running (in case someone may already have updated the drivers), see
    this entry:
    http://www.carehart.org/blog/client/index.cfm/2006/8/8/checking_jdbc_driver_version
    Or more simply, just try removing the username/password
    values in the setup for the SQL Server DSN, to see if it works. If
    not (and assuming it's not complaining about the CF account
    username not being an authorized user of the DB), then it seems an
    update of the drivers is in order. See my first blog entry above
    for more on what the drivers offer, and why Adobe didn't just
    update the drivers in the 7 updaters and cumulative hot fixes, so
    that you must apply the update manually.

  • SQL 2005 backup

    Hi,
    I'm using Small Business Server 2003.
    I've installed SQL 2005 Database Server for ERP.
    I need to take the backup of the both SMB 2003 and SQL Database.
    If I take Full back from SMB 2003 will this also take backup of my SQL 2005. Or do I need to take SQL backup separately.
    Sathish

    If I take Full back from SMB 2003 will this also take backup of my SQL 2005.
    Not the databases, they are permanent in access by SQL Server and therefore you can't perform file backups on them You have to use the backup Feature of SQL Server instead, see:
    Introduction to Backup and Restore Strategies in SQL Server
    Back Up and Restore of SQL Server Databases
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for