Author Topic: ARSMAINT -r error - Resolved  (Read 5264 times)

Gordon R

  • Guest
ARSMAINT -r error - Resolved
« on: March 05, 2013, 08:11:40 AM »
Morning All;
                       We are having an issue with ARSMAINT specifically with the ?r.
We are running 8.4.1 and recently upgraded the DB to Oracle 11g.
The first run after the Oracle 11g upgrade the ?r started failing.
Running AIX 6.1  The full error in the CMOD System Log is as follows,
       02/27/2013 01:18:36   ARSMAINT      15794180   Error   No       13   DB Error: RUNSTATS ON TABLE ars.SL2 -- SQLSTATE=Not Defined, SQLCODE=-1, File=arssys.c, Line=1354

The full ARSMAINT string is  -vrmcds  and all work individually when run, except the -r   

Any assistance, would be greatly appreciated.
Gord


« Last Edit: March 11, 2013, 06:20:58 AM by Gordon R »

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1202
Re: ARSMAINT -r error
« Reply #1 on: March 05, 2013, 01:37:40 PM »
Gord - this is not my area of expertise but I run arsmaint -r quite often but always against DB2, never against Oracle.

http://publib.boulder.ibm.com/infocenter/cmod/v8r4m1/index.jsp?topic=/com.ibm.ondemand.administeringmp.doc/dodma003.htm

Quote
-r
    Runs database statistics, which causes the database manager to optimize application group index data and make access to information as efficient as possible. IBM recommends that you schedule the ARSMAINT program to optimize the database every day.

Does arsmaint -r work against anything other than DB2?

Ed
#zOS #ODF

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • Tenacious Consulting
Re: ARSMAINT -r error
« Reply #2 on: March 06, 2013, 07:11:33 AM »
I've noticed occasional failures of the arsmaint -r option.  Have your DBA issue the reorg/runstats commands (or their equivalent on Oracle) manually for the table, and if it runs successfully, you shouldn't get that error in the future.  If it doesn't, it's time for a PMR.  :)

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Gordon R

  • Guest
Re: ARSMAINT -r error
« Reply #3 on: March 06, 2013, 09:09:06 AM »
Ed / Justin;
                    Thanks for the replies.
Our DBA ran the runstats (or Oracle equivalent) last Wednesday.  He states that a reorg/compress is not necessary due to all the 1.4 million records are on One Table in Oracle and taking that action would not ?do anything?. 

Gordon R

  • Guest
Re: ARSMAINT -r error - Resolved
« Reply #4 on: March 11, 2013, 06:19:38 AM »
RESOLVED -
Our DBA was able to run the "ANALYZE TABLE?" while I ran the ARSMAINT -r in the Q.A. system which does not have an error.
Then we ran the same in our Production system ane he was able to see an Oracle error. See below...

The SYSTEM tablespace was at 70% usage (out of 400MB) when arsmaint ?r failed the first time. After I increased another 100MB to SYSTEM, I was able to run the ANALYZE TABLE? statement while Gord was able to run arsmaint ?r on the unix side. In addition, I noticed that the ARS database account is configured to use SYSTEM as temporary tablespace which I have reset to use TEMP now.

Thanks for the help.  It guided us on the correct path to resolve this.
Gord

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • Tenacious Consulting
Re: ARSMAINT -r error - Resolved
« Reply #5 on: March 11, 2013, 08:27:33 AM »
Thanks for keeping us posted with a solution.  If you could provide a little more detail (which commands, etc.) it might help someone else who comes across this issue in the future -- thanks!

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

johnnoel

  • Jr. Member
  • **
  • Posts: 35
Re: ARSMAINT -r error - Resolved
« Reply #6 on: May 28, 2013, 07:56:38 AM »
I found this explaination

http://www-01.ibm.com/support/docview.wss?uid=swg21383609

Problem(Abstract)
Running the arsmaint utility against my IBM? Content Manager OnDemand server to update database statistics intermittently throws the following similar error in the System Log:

ARSMAINT 434684 Error No 13 DB Error: RUNSTATS ON TABLE root.SL25 -- SQLSTATE=Not Defined, SQLCODE=1, File=arssys.c, Line=1287

Cause
The error is occurring because runstats is attempting to update statistics on a table that is currently being inserted into.

Arsmaint -r should be run at a time when little to no activity is occurring in the OnDemand System.