{"id":647,"date":"2016-04-30T20:28:04","date_gmt":"2016-04-30T14:58:04","guid":{"rendered":"http:\/\/www.middlewareprimer.com\/blog\/?p=647"},"modified":"2016-04-30T20:28:04","modified_gmt":"2016-04-30T14:58:04","slug":"xa_recover-operation-xaer_rmerr","status":"publish","type":"post","link":"http:\/\/www.middlewareprimer.com\/blog\/2016\/04\/30\/xa_recover-operation-xaer_rmerr\/","title":{"rendered":"xa_recover operation XAER_RMERR"},"content":{"rendered":"<p>xa_recover operation XAER_RMERR error shows up in logs frequently in Websphere Portal Server v8.0 when configured with Oracle database. In Portal server system out logs, below exception is seen frequently. Customer was repeatedly asking me whats the issue and why its throwing very often.<\/p>\n<p>Error occurred on,<\/p>\n<p>Portal server v8.0.0.1<\/p>\n<p>Oracle Database v12c<\/p>\n<p>AIX 7 Operating system<\/p>\n<p>IBM Support link explains clearly on the issue and also a resolution here, <a href=\"http:\/\/www-01.ibm.com\/support\/docview.wss?uid=swg21196663\" target=\"_blank\">http:\/\/www-01.ibm.com\/support\/docview.wss?uid=swg21196663<\/a><\/p>\n<p>Exception details:<\/p>\n<p><code>WTRN0037W: The transaction service encountered an error on an xa_recover operation. The resource was com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl@1114a62. The error code was XAER_RMERR. The exception stack trace follows: javax.transaction.xa.XAException<br \/>\nat oracle.jdbc.xa.OracleXAResource.recover(OracleXAResource.java:726)<br \/>\nat com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl.recover(WSRdbXaResourceImpl.java:954)<br \/>\nat com.ibm.ws.Transaction.JTA.XARminst.recover(XARminst.java:137)<br \/>\nat com.ibm.ws.Transaction.JTA.XARecoveryData.recover(XARecoveryData.java:609)<br \/>\nat com.ibm.ws.Transaction.JTA.PartnerLogTable.recover(PartnerLogTable.java:511)<br \/>\nat com.ibm.ws.Transaction.JTA.RecoveryManager.resync(RecoveryManager.java:1784)<br \/>\nat com.ibm.ws.Transaction.JTA.RecoveryManager.run(RecoveryManager.java:2241)<\/code><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\">Resolution<\/span><\/p>\n<p class=\"wordwrap\">1. Run the following commands as user <b>SYS<\/b>:<\/p>\n<p class=\"wordwrap\"><tt>grant select on pending_trans$ to &lt;user&gt;;<\/tt><br \/>\n<tt>grant select on dba_2pc_pending to &lt;user&gt;;<\/tt><br \/>\n<tt>grant select on dba_pending_transactions to &lt;user&gt;;<\/tt><br \/>\n<tt>grant execute on dbms_system to &lt;user&gt;; \u00a0(If using Oracle 10.2.0.3 or lower JDBC driver)<\/tt><br \/>\n<tt>grant execute on dbms_xa to &lt;user&gt;; (If using Oracle 10.2.0.4 or higher JDBC driver)<\/tt><\/p>\n<p>Where &lt;user&gt; is the username configured in the Oracle datasource&#8217;s authentication alias.<\/p>\n<p class=\"wordwrap\">2. If the recovery of the inflight transactions is not important, then one possible workaround to this problem is to remove the transaction logs.<\/p>\n<p class=\"wordwrap\">&lt;PROFILE_NAME&gt;\\tranlog\\&lt;CELL_NAME&gt;\\&lt;NODE_NAME&gt;\\&lt;SERVER_NAME&gt;\\transaction<\/p>\n<p>To remove the transaction logs, do the following:<br \/>\n(1) Stop the server.<br \/>\n(2) Delete the &#8216;<code>\\transaction<\/code>&#8216; folder and all subdirectories.<br \/>\n(3) Restart the server.<br \/>\nThe above exceptions will no longer occur.<\/p>\n<p>Though one of the solution is to update the Oracle database privileges, but in my case, customer was not ready to do (infact the oracle database team didn&#8217;t agree to do). So as this doesn&#8217;t affect much, during any restarts they normally clean up the transactions logs (after taking a backup of portal server partition).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>xa_recover operation XAER_RMERR error shows up in logs frequently in Websphere Portal Server v8.0 when configured with Oracle database. In Portal server system out logs, below exception is seen frequently. Customer was repeatedly asking me whats the issue and why its throwing very often. Error occurred on, Portal server v8.0.0.1 Oracle Database v12c AIX 7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[177,176],"class_list":["post-647","post","type-post","status-publish","format-standard","hentry","category-websphere-portal-server","tag-xa_recover-operation","tag-xaer_rmerr"],"_links":{"self":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=647"}],"version-history":[{"count":4,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/647\/revisions"}],"predecessor-version":[{"id":651,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/647\/revisions\/651"}],"wp:attachment":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}