Maintance jobs with Maintenance plans - troubleshooting

Some of our old servers have maintenance jobs created with inbuilt mainteance plans. We find difficulty in troubleshooting these kind of jobs when it fails. Can anyone shed a detailed analysis of how to troubleshoot these jobs which are created with maintenance
plan like where to look, any system table/view that could help etc. The job history gives very minimal details and often result in cropped off messages.
I was told that if we alter the maintenace plans associated with the jobs and save it. It will break the job, is it so?

For SQL server 2000
You can check the failure logs either from jobs or Maintenance plan history
In enterprise manager, expand the server group
Expand the management folder and select the database maintenance plans
Right click the maintenance plan that failed and select the Maintenance plan history
Check for the failure occurred and double click the failed row to see more details or on failure
Similarly from SQL server 2005 onwards maintenance plan history, you can check from maintenance plan
In SSMS, connect to SQL instance
Expand the Management folder and select the maintenance plans
Select the maintenance plan and click on maintenance plan history and check for the failure
Please click the Mark as answer button and vote as helpful if this reply solves your problem

Similar Messages

  • Problem with full backup with copy only in maintenance plan sql server 2008

    Hello
    I am starter DBA for sql server in general
    I have problem related to backup with maintenance plan in sql server 2008 and 2008 r2
    I created maintenance plan to take full back up  with copy only option checked, but when I check the back up in backupset table is_copy_only column it shows 0 for databases that I run job for.
    I did the same steps on sql server 2012 and I checked backupset table is_copy_only column it shows 1 for databases that I run job for .so it works as it should be
    Note: all the servers I mention here are production servers 

    Copy-only Backup  by using GUI ( SSMS) in SQL Server 2008 but it was not available in  Maintenance Plan "Back
    Up Database Task". Now in SQL Server 2012 It is included in "Back Up Database
    Task". 
    http://sqlage.blogspot.in/2013/06/dba-maintenance-plan-back-up-database.html

  • SQL maintenance plan job problem - cannot remove a job

    Hi,
    I have a SQL 2008 R2 server running SP2. I changed the start time  to hour A on a maintenance job under maintenance plan, a few weeks later I changed it back (hour B). The maintenance job still runs at the changed start time (hour A). I even completly
    deleted the job, and I do not see that job under SQL maintenance plan and agent job anymore.  But somehow SQL still tries to start the job at the changed time (hour A), and sends out error messages saying the job fails. 
    I have restarted the entire server also. Same issue.
    The job is not a special one. Just a db index optimize script that ran fine within the maintenance job before I changed the time. Actually, now I just set it up as a SQL agent job, not a maintenance job, and it runs fine. 
    Any advice?
    Thanks in advance.

    Martians!  That is the sign of computer invasion by martians!
    Did you try to delete the maintenance plan (not the job!) and recreate it?
    The following query may be helpful:
    select * from msdb.dbo.sysjobschedules ORDER BY job_id;
    schedule_id job_id next_run_date next_run_time
    1 1016 28EC0B2D-6BA2-4CC7-B99C-03DF945A3763 20140121 124000
    2 1013 ED3E89DF-0ED6-4D1B-9A6E-100E04412E2B 20140120 32700
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Database updates statistics maintenance plan issue.

    Hi team,
    We are configured one job through maintenance plan that job name is “database update statistics” and database size is 280 Gb, this job executing 13 to 15 hours but job was not finished  still it’s continually running.
    This same job I am running through below script it’s executing within 2 hours.
    Use database
    Go
    Exec sp_updatestats
    What is the main problem if this maintenance plan.
    Note: on this server no jobs and no traffic, only abc_update subpaln1 Job.

    Hello,
    Updating stats for whole database which is 280 G will always result in problem.It is better to run update statistics for tables and indexes which are changed frequently.
    Now to your question few points which sp_Updatestas list in BOL
    http://technet.microsoft.com/en-us/library/ms173804.aspx
    sp_updatestats updates statistics on disabled nonclustered indexes and does not update statistics on disabled clustered indexes.
    sp_updatestats updates only the statistics that require updating based on the rowmodctr information in the sys.sysindexes catalog view, thus avoiding unnecessary updates of statistics
    on unchanged rows.
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Maintenance Plan and Subsequent Order Generation in Preventive Maintenance

    Hai,
    I have an equipment which has 6 Maintenance Activities.
    The following is the sequence of maintenance schedules:
    1) Activity I - Maintenance scheduled once in a year - During March
    2) Activity II - Maintenance scheduled twice a year - During March and September
    3) Activity III - Maintenance scheduled thrice a year - During January, May, September
    4) Activity IV - Maintenance scheduled thrice a year - During February, June, October
    5) Activity V - Maintenance scheduled four times a year - January, April, July, October
    6) Activity VI - Maintenance scheduled six times a year - January, July
    7) Activity VII - Maintenance scheduled six times a year - February, August
    How to create a Task list for the above scenario and subsequent maintenance plan. If orders are generated from the maintenance plant how can they be scheduled according to the above scenario. Should we create a single task list with only one group counter or should there be multiple group counters for each of the above given activities.
    Can anyone throw some light on the subject.
    Regards,
    R. Vijayakumar

    hi
    it is not possible to acheive your requirement with single task list.
    Also you cannot specify the exact month where the call date will lie on the month specified,even you create strategy for once in 3 month and 9 months it will be rotated from the last scheduled one ,ie after completion of 9 month then next will be 12 month instead of next year 3 rd month
    either you create seperate task list with maintenance plan on fixed date ,for example create a maintenance plan for once in year cycle and put start date for Act 1 as 01/03/2009 hence system will create call object on the specified period or refer [HELP|http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/23608bc1c211d395c400a0c93029cf/content.htm]
    regards
    thyagarajan
    Also post in EAM forum for maxim response

  • Backwards Counters and Maintenance Plans

    HI Experts,
    I am looking for information relating to setting up backward counters to schedule Maintenance Plans. When I try to create a Maintenance Plan linked to a Backward Counter, I receive the error "Only counters that run forwards can be entered - Error IP124" . What am I doing wrong? How can I use backwards counters with maintenance plans?
    We have several clocks that count down the hours til the next major or minor pm is due. The technician manually records the time from these clocks. Worst case is that we can subtract the counter time from a constant if we have to, but I'd like to have the technician enter in the clock time directly with out any manipulation needed.
    Thanks in advance,

    I am unable to find note 115087 on http://www.sapossnotes.com/search?q=115087
    The return I get is "No posts matching the query: 115087. Show all posts"
    Is this note possibly archived or at a different location?
    Thank You for your assistance in advance.

  • Certain Maintenance Plan not getting scheduled in the background job

    Hi Gurus,
    I am facing an issue here.
    A weekly background job (RISTRA20) runs every weekend and schedules the maintenance plans.
    But we have noticed that some maintenance plans are not getting scheduled. i.e no orders or schedule is getting generated.
    When I run IP30 manually for these plans then the schedule gets generated and orders get called.
    I have checked up the background job and it is running fine.
    Also, i have noticed a similarity in all these plans which are not getting scheduled. There schedule has been restarted (through IP10) at somepoint or the other.
    But i don't see any direct impact of this?
    Can any of you provide some help on this?? Points will be rewarded.
    Thanks and regards,
    Nitin Saini

    Hi Narender,
    Thanks for replying.
    The message number for 'Groups don't match' is ME303.
    I think this does not have anything to do with the restart as i have done further investigation.
    Whenever I run IP30 with sortfield input as AS02*, i get the error as mentioned above for a certain number of maintenance plans while the remaining plans get scheduled.
    If i run IP30 for any other sort fields, it runs fine and i don't encounter the error
    mentioned above.
    If you send me ur email address, i could forward you screen-shots of the issue.

  • Single Maintenance plan creation for multiple equipemnts with different cyc

    Dear Experts,
    I had a following scenario to map in PM module. can anybody guide me to map this process?
    we had no.of equipments under one functional location and will go through preventive maintenance on yearly basis. For this, i will create the single cycle yearly maintenance plan which comprices of maintenance items, which is fine. out of these equipments some of the equipments will go for routine maintenance like quarterly, half-yearly, tri-quarterly. user want to club these scenarios also in single preventive maintenance plan. when we scdule this plan, system has to deliver monthly orders and as well as yearly orders from single preventive maintenance plan.
    Thanks & Regards,
    Krishna

    Hi Krishna Murthy,
    It can be acheived in the following Manner.
    Create a Strategy say "Test" with Packages 1M, 2M,Q,H,Y packages.
    Create 5(say) Equipment Task Lista for each of the 5 Equipment at that FL.
    1st Task List will have Operations related to say Monthly(1M), Quartely(Q), yearly (Y)
    2nd Task List will have Operations related to say Monthly(1M), Quartely(H), yearly (Y)
    And so on... as per Business Requirement.
    Now create a Maintenance Plan with 5 maintenance Items with respective Task Lits.
    Now Schedule the Plan and give the Last Completion date as the Yearly package (A date one year less than the day you wanetd the yearly plan).
    Then check the calls.
    Regards
    MLN Prasad

  • Maintenance Plan with Counter

    Dear All,
    I have the following requirement, would be of great help if you can help me get the solution:
    Their is a pump which is to be maintained. The orders need to be generated on the basis of two parameters:
    1. Number of hours the pump has ran. This can be recorded against measuring point.
    2. Number of calendar days elapsed.
    The maintenance order should be created which ever condition is met first. For example: Every 200 hrs the pump runs, a maintenance order should be created also if the time elapsed is 2 months the order should be created. Now whatever of the above two comes first the order should be created against that only.
    Can anyone please tell how to achieve this.
    I have thought of two options though they dont look good:
    Option 1: Create two maintenance plan. Delete/TECO the extra order generated.
    Option 2: Create one maintenance plan with multiple counters, one for running hours and the other for calendar days. Keep OR relation. But here we need to update calendar days counter every day which is not feasible.
    Thanks
    Geravine

    Hi...
    First of all you have to create the Measuring Counter for your Pump using the T.code IK01 and then post the initial measurement  document against the measuring counter using T.code IK11.
    After above create the Cycle set for Multiple counter using T.Code IP11Z, and define the Cycle for your Multiple Counter Plan.
    In your condition, define the cycle length as "2" and UOM as "MON" and second cycle length as "200" and UOM as "HRS" and also provide the short text for Cycle short text as per you convenience. This is one time activity.
    Then create the Multiple counter Plan using the T.Code IP43 and cycle set created in earlier step. Provide the Technical Object i.e. Pump (Most probably Equipment) all other details are copied from it. Enter the created Measuring Counter for your Technical Object in the Maintenance Plan Cycle Tab against the 200 Hrs Row in Counter Columns. In the Second Tab i.e. Maintenance Plan scheduling parameter Choose "OR" Link . Enter the value Scheduling Period which help you to show the future plan in advance.
    And as per requirement you can also check the box  available for Completion Requirement, Check the box if you required that New Maintenance Order  will not be generate until the previous order is get closed.
    Hope this will resolve your query

  • Segregating maintenance plan with reference to planner group & cycle.

    Hi,experts,
    Is there any t-code to search maintenance plan as per planner group as well as cycle length?I tried with t-code IP15, but there is neither planner group or maintenance item field?please,suggest .thanks in advance.
    rgds
    rajib

    Hi,
    There is no relationship or filed which directly u can get like planner gr,section etc. One way  can use is use filed named as Maint Plan Sort Field. Provide here some details after making proper codification through Customeriastion.
    One way Like Maint plant + Planner Gr = Maint Plan Sort.
    Attach appropriate sort filed in each plan then with ip10,1p30,1p19,ip24 u can retrive the information.
    Ramesh

  • Table name with feild Duration of Task/Frequency , Change in Duration/Frequency for maintenance plan

    hi experts,
    i need a table for maintenance plan which has field
    1) Duration of Task/Frequency
    2) Change in Duration/Frequency
    below i have elaborated my requirements.
    among those fields i have got the table name mpos,mpla,plpo except the above listed two feilds.
    i have to create a report with these requirements.
    anyone tell me in which table can i get that 6 and 7th fields.
    Requirement1:
    Maintenance Plan Number 
    Operation Code 
    Standard Teode(assigned to Plan)
    Standard Text Key description
    Cost Center
    Duration of Task/Frequency
    Change in Duration/Frequency
    Created Date
    Created By 
    Changed On 
    Changed By
    Requirement 2: layout of the report should be modifiable with the existing fields.
    Requirement 3: A transaction will be created to access the report.
    Requirement 4: In the report, Maintenance Plan number will be hyperlinked which will divert to AMP screen (display view of maintenance Plan) once clicked on it.
    Requirement 4: Report should contain all created and changed Maintenance Plan details.
    Requirement 5: Initial selection parameter for the report will be only Date. Based on the entered date, records created or changed during the duration should be picked up in the report.
    Requirement 6: Change in frequency will only be picked for single cycle plan. Strategic Plan will not be considered in case frequency change made in it.
    Requirement 7: Change By and Created By should be the complete name instead of User ID.
    regards,
    priya

    can anyone answer for my above question?
    regards,
    priya

  • Maintenance Planning with Cycles of Different Dimensions

    Hello All,
    I am having trouble finding the solution for the following requirement in PLM310 "Maintenance Planning with Cycles of Different Dimensions": I am having trouble creating a maintenance strategy that can handle both time and measurement.
    SImple version of the requirement: perform car maintenance every three months OR 3000 miles, whichever comes first.
    I can see where SAP can handle multiple counters, but where I can mix time and performance measurements.
    Thank you all for your help in advance.
    Alex

    Hi,
    You can achive this in two ways.
    1. If you have strategy only as you mentioned 3Months or 3000 miles then you can use T code IP43 Multiple counterplan.
    2. Is you create cycle sets in IP11Z tcode and use them as like strategy. In this typr you can maintain different UOM.
    Regards,
    N.Nagaraju

  • BAPI for Maintenance Plan Scheduling with EHP5

    Hello.
    In documentation for LOG_EAM_CI_4 mentioned that: [API functions have been developed for the scheduling of maintenance plans. These APIs provide the same functions as transaction IP10: the creation of maintenance calls or the changing of existing maintenance calls|http://help.sap.com/erp2005_ehp_05/helpdata/EN/33/46AC67364447A3BA2F4EFA65B8C014/frameset.htm].
    We have activated EHP5 and all LOG_EAM_CI* business functions in our system, but still can't find this "magic" BAPI.
    Does anybody know its name?
    BR,
    Pavel
    Edited by: Pavel Nedvijaev on Nov 7, 2011 5:37 PM

    Maheswaran.K thanks for your reply, but as i wrote above we have activated all LOG_EAM_CI* including LOG_EAM_CI_3.
    Version of software components SAP_APPL, EA-APPL is 605 as it needed.

  • Table name to display status for maintenance plan with active /inactive status

    i need status table which display only active/inactive status of the maintenance plan.

    really it helps me ..........
    thanks raymond 
    regards,
    priya

  • Backup Maintenance Plan on SQL AlwaysOn Availability Group Secondary Read-Only node

    I have 3 node SQL 2012 AlwaysOn Availability nodes with the 3rd node as Read-Only.
    The backup job within SQL Maintenance plan is failing with the following error:
    Failed:(-1073548784) Executing the query "declare @backupSetId as int
    select @backupSetId =..." failed with the following error: "Cannot open backup device 'C:\\SQLDBName_backup_2014_06_08_170156_9292095.bak'. Operating system error 2(The system cannot find the file specified.).
    VERIFY DATABASE is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    I have verified the SQL AlwaysOn Backup preference to be "Prefer Secondary"
    Is there any special steps/settings I need to do to setup and run the backups using maintenance plan in SQL AlwaysOn?

    Hi,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Thanks.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for

  • HP laptop won't turn on. I get 5 sleep icon flashes...that's it.

    I have a HP NV55C laptop. It's been working just fine when suddenly while I was watching something on it the laptop turned off and won't power back up. All I get is 5 flashes from the light bulb icon. I've plugged it into different outlets, unplugged

  • Calendar font and color change no reason

    I am attempting to create a calendar with the new Iphoto and I have to say it is harder to use then the old one. I am trying to manually enter birthdays. Typed couple of entries with Hoefler Text size 8 and worked. All of a sudden tried typing in ano

  • Do i need to get a new ipod??

    So my ipod has been restored a couple times now, every once in a while it will start skipping songs, and not playing, and then show me the icon telling me to go to apple.com, it wont show up on my desktop, and the updater says it is up to date, i don

  • 802.1x phone with two MAC address

    Hello, I have following scenario: Computers are connected behind phones, and phones are authenticating with MAB. The problem is with phones, because they have two mac addresses one is in voice vlan and another is in data vlan. Both phone and computer

  • ONLY One user can't sign into outlook

    So we have Exchange 2013 and Server 2012 R2 Remote collections setup. A user logs into the remote collection and can open outlook. If it's the first time they get the usual detecting account and everything works fine. But for one user, it just doesn'