IBM Support

BMXAA4211E - Database error number -803 has occurred when operating on MAXLICPRODAPPS

Troubleshooting


Problem

When Manage's server bundle pods are starting up, database errors may appear in the Manage logs on duplicate keys when inserting a MAXLICPRODAPPS record.

Symptom

Error stack traces like these are in the Manage log:
20 Jan 2022 02:46:21:245 [ERROR] [mas22907a-masdev-ui-756f57c49-dch52] [] One or more values in the INSERT statement, UPDATE statement, or foreign key update caused by a DELETE statement are not valid because the primary key, unique constraint or unique index identified by "2" constrains table "MAXIMO.MAXLICPRODAPPS" from having duplicate values for the index key.. SQLCODE=-803, SQLSTATE=23505, DRIVER=4.29.24
com.ibm.db2.jcc.am.SqlIntegrityConstraintViolationException: One or more values in the INSERT statement, UPDATE statement, or foreign key update caused by a DELETE statement are not valid because the primary key, unique constraint or unique index identified by "2" constrains table "MAXIMO.MAXLICPRODAPPS" from having duplicate values for the index key.. SQLCODE=-803, SQLSTATE=23505, DRIVER=4.29.24
    at com.ibm.db2.jcc.am.b7.a(b7.java:806)
    at com.ibm.db2.jcc.am.b7.a(b7.java:66)
    at com.ibm.db2.jcc.am.b7.a(b7.java:140)
    at com.ibm.db2.jcc.am.k9.b(k9.java:2491)
    at com.ibm.db2.jcc.am.k9.c(k9.java:2472)
    at com.ibm.db2.jcc.t4.ab.n(ab.java:917)
    at com.ibm.db2.jcc.t4.ab.a(ab.java:118)
    at com.ibm.db2.jcc.t4.p.a(p.java:50)
    at com.ibm.db2.jcc.t4.aw.b(aw.java:220)
    at com.ibm.db2.jcc.am.k_.bm(k_.java:3632)
    at com.ibm.db2.jcc.am.k_.a(k_.java:4677)
    at com.ibm.db2.jcc.am.k_.b(k_.java:4215)
    at com.ibm.db2.jcc.am.k_.be(k_.java:832)
    at com.ibm.db2.jcc.am.k_.executeUpdate(k_.java:806)
    at psdi.mbo.MboSet.insertMbo(MboSet.java:8353)
    at psdi.mbo.MboSet.saveTransaction(MboSet.java:7749)
    at psdi.txn.MXTransactionImpl.saveTransaction(MXTransactionImpl.java:221)
    at psdi.txn.MXTransactionImpl.save(MXTransactionImpl.java:156)
    at psdi.mbo.MboSet.save(MboSet.java:7553)
    at psdi.mbo.MboSet.save(MboSet.java:7477)
    at psdi.app.lictrack.MaxLicMonitorService.updateAppColumn(MaxLicMonitorService.java:1109)
    at psdi.app.lictrack.MaxLicMonitorService.writeMaxLicProdApps(MaxLicMonitorService.java:983)
    at psdi.app.lictrack.MaxLicMonitorService.init(MaxLicMonitorService.java:134)
    at psdi.server.ServiceCoordinator.init(ServiceCoordinator.java:154)
    at psdi.server.MXServer.init(MXServer.java:2724)
    at psdi.server.MXServer.start(MXServer.java:3869)
    at psdi.servlet.MAXIMOStartupServlet.init(MAXIMOStartupServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:299)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1401)
    at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:1201)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:1169)
    at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1067)
    at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6687)
    at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:470)
    at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApplication(DynamicVirtualHost.java:465)
    at com.ibm.ws.webcontainer.osgi.WebContainer.startWebApplication(WebContainer.java:1179)
    at com.ibm.ws.webcontainer.osgi.WebContainer.access$100(WebContainer.java:110)
    at com.ibm.ws.webcontainer.osgi.WebContainer$3.run(WebContainer.java:976)
    at com.ibm.ws.threading.internal.ExecutorServiceImpl$RunnableWrapper.run(ExecutorServiceImpl.java:238)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522)
    at java.util.concurrent.FutureTask.run(FutureTask.java:277)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.lang.Thread.run(Thread.java:825)
20 Jan 2022 02:46:21:253 [ERROR] [mas22907a-masdev-ui-756f57c49-dch52] [] BMXAA4211E - Database error number -803 has occurred when operating on MAXLICPRODAPPS :  =PLUSGRSK =OILGAS. Report the error to the owner of the deployment.
psdi.util.MXSystemException: BMXAA4211E - Database error number -803 has occurred when operating on MAXLICPRODAPPS :  =PLUSGRSK =OILGAS. Report the error to the owner of the deployment.
    at psdi.mbo.MboSet.saveTransaction(MboSet.java:7776)
    at psdi.txn.MXTransactionImpl.saveTransaction(MXTransactionImpl.java:221)
    at psdi.txn.MXTransactionImpl.save(MXTransactionImpl.java:156)
    at psdi.mbo.MboSet.save(MboSet.java:7553)
    at psdi.mbo.MboSet.save(MboSet.java:7477)
    at psdi.app.lictrack.MaxLicMonitorService.updateAppColumn(MaxLicMonitorService.java:1109)
    at psdi.app.lictrack.MaxLicMonitorService.writeMaxLicProdApps(MaxLicMonitorService.java:983)
    at psdi.app.lictrack.MaxLicMonitorService.init(MaxLicMonitorService.java:134)
    at psdi.server.ServiceCoordinator.init(ServiceCoordinator.java:154)
    at psdi.server.MXServer.init(MXServer.java:2724)
    at psdi.server.MXServer.start(MXServer.java:3869)
    at psdi.servlet.MAXIMOStartupServlet.init(MAXIMOStartupServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:299)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1401)
    at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:1201)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:1169)
    at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1067)
    at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6687)
    at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:470)
    at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApplication(DynamicVirtualHost.java:465)
    at com.ibm.ws.webcontainer.osgi.WebContainer.startWebApplication(WebContainer.java:1179)
    at com.ibm.ws.webcontainer.osgi.WebContainer.access$100(WebContainer.java:110)
    at com.ibm.ws.webcontainer.osgi.WebContainer$3.run(WebContainer.java:976)
    at com.ibm.ws.threading.internal.ExecutorServiceImpl$RunnableWrapper.run(ExecutorServiceImpl.java:238)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522)
    at java.util.concurrent.FutureTask.run(FutureTask.java:277)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.lang.Thread.run(Thread.java:825)
20 Jan 2022 02:46:21:255 [WARN] [mas22907a-masdev-ui-756f57c49-dch52] [] ==>> MaxLicMonitorService.writeMaxLicProdApps(): error BMXAA4211E - Database error number -803 has occurred when operating on MAXLICPRODAPPS :  =PLUSGRSK =OILGAS. Report the error to the owner of the deployment. is ignored.

Cause

The current design is to update the MAXLICPRODAPPS table with the list of apps based on installed products.  This is done at server startup, and when there are multiple servers starting at the same time and every server is trying to insert the same data this duplicate index problem can easily occur. 

Resolving The Problem

This error can be ignored if the server bundle pods are started successfully.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSRHPA","label":"IBM Maximo Application Suite"},"ARM Category":[{"code":"a8m50000000CbOcAAK","label":"General-\u003EMaximo Base"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.7.0"}]

Document Information

Modified date:
15 November 2022

UID

ibm16838725