Troubleshoot one failed job

Job : Step 1, 'step1' : Began Executing 2014-02-16 15:30:00
Msg 49999, Sev 18, State 1: Failed to login to SQL Server [SQLSTATE 42000]
What could be the issue?This is transcation log backup job running every 30 minutes. Sometime it fails and I find above log.
Job owner is "sa".
Thanks

1. Please check again that the JOB is actually execute under the sa user. this is a connection failor and if the service is running well the sa should be able to login.
the job is running under a service. check who is the service user that execute the job. look for the service:
run -> services.msc -> SQL Server Agent 
Double click -> go to "log on: tab -> check who is the user
[Personal Site] [Blog] [Facebook]

Similar Messages

  • Server Group not working when one of Job Servers is down

    I have a Server Group of two job servers. They have the same version 12.2.2.3 and are attached to the same Local Repository of version 12.2.2.0.
    When I execute a batch job (from the Designer) and explicitly specify on which job server it should run, it works fine for either job server. Also, when I specify Batch Job execution on Server Group, it works fine.
    However, when I shutdown one of the Job Servers, and then try to execute the job on Server Group, I'm getting two error messages, BODI-1111011 that one Job Server is down, and BODI-1111009 that another Job Server has failed.
    At the same time, when I check the Server Group in the Management Console, it shows that the allegedly failed Job Server is in the status green.
    That error is not reflected in a job server eveng log, nor there is anything written to webadmin log, not in the job trace (the latter isn't created at all).
    Is there anything I can do at this point except raise a support message?

    The issue was with different users for Local Repository in Admin and Job Server config. I discovered it when trying to run the job from Admin Console. Designer is probably not the best diagnostic tool for such kind of issues.

  • Failed Job Query on Central Management Registered Servers - Host Server is not included in results

    The following standard query works great for showing failed jobs on servers. Executing this in Central Management Registered Servers works as expected, but the Host Server results are not listed, and the same query needs to be executed against the host server
    too.
    e.g.
    Registered Servers are defined on Server A
    Results are displayed from servers B, C, D & E - but results are not displayed for Server A.
    How do we receive results from Server A without having to execute a separate query ?
    DECLARE @PreviousDate datetime
    DECLARE @Year VARCHAR(4)
    DECLARE @Month VARCHAR(2)
    DECLARE @MonthPre VARCHAR(2)
    DECLARE @Day VARCHAR(2)
    DECLARE @DayPre VARCHAR(2)
    DECLARE @FinalDate INT
    -- Initialize Variables
    SET @PreviousDate = DATEADD(dd, -7, GETDATE()) -- Last 7 days
    SET @Year = DATEPART(yyyy, @PreviousDate)
    SELECT @MonthPre = CONVERT(VARCHAR(2), DATEPART(mm, @PreviousDate))
    SELECT @Month = RIGHT(CONVERT(VARCHAR, (@MonthPre + 1000000000)),2)
    SELECT @DayPre = CONVERT(VARCHAR(2), DATEPART(dd, @PreviousDate))
    SELECT @Day = RIGHT(CONVERT(VARCHAR, (@DayPre + 1000000000)),2)
    SET @FinalDate = CAST(@Year + @Month + @Day AS INT)
    -- Final Logic
    SELECT j.[name],
    s.step_name,
    h.step_id,
    h.step_name,
    h.run_date,
    h.run_time,
    h.sql_severity,
    h.message,
    h.server
    FROM msdb.dbo.sysjobhistory h
    INNER JOIN msdb.dbo.sysjobs j
    ON h.job_id = j.job_id
    INNER JOIN msdb.dbo.sysjobsteps s
    ON j.job_id = s.job_id
    AND h.step_id = s.step_id
    WHERE h.run_status = 0 -- Failure
    AND h.run_date > @FinalDate
    ORDER BY h.instance_id DESC
    John

    Hi vsla,
    According to your description, I do a test. When I designate a Central Management Servers and create server groups, then execute statements against
     multiple configuration targets simultaneously, it
     indeed only contains the results of server groups, you need to execute again on the host server (Central Management Servers) then display the results of Central Management Servers, because the Central Management Server cannot be a member
    of a group that it maintains.
     If you want to get all servers results by executing the statement one time. I recommend you use Local Server Groups, create new register server and add all servers to the Local Server Groups, then right click “new query
    “, execute the statements, it will display all results about all servers. There are more details about administering multiple servers using Central Management Servers, you can review the following article.http://technet.microsoft.com/en-us/library/bb895144
    http://technet.microsoft.com/en-us/library/bb964743
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Last one month jobs execution time in sql server 2008 r2

    Dear Friends,
    We configured replication between three servers two are publishers and one subscriber for two publisher.
    my question is daily basis one job running on subscriber end it truncate and insert the data every night .
    unfortunately today job was failed I observed in jobs view history. but client requirement manually run the job and data dump into the table. but I want know its previous execution time as per that I will run the job in production hours but in jobs view
    history showing only today's fail job history. how to find the last execution time .
    note: yesterday job was successfully completed.
    Message
    Executed as user: NT AUTHORITY\SYSTEM. Cannot initialize the data source object of OLE DB provider "SQLNCLI10" for linked server "server name". [SQLSTATE 42000] (Error 7303)  OLE DB provider "SQLNCLI10" for linked
    server "server name" returned message "Unable to complete login process due to delay in opening server connection". [SQLSTATE 01000] (Error 7412).  The step failed.
    mastanvali shaik

    But what about to that particular job ? what is the name of the job ? Please assign that job name in the below script and check .. Its sure that history is not exist for that particular job anyway for your confirmation please use the below scripts and try...
     make sure to add the name .. when was the last backup taken for your system databases ?
    WHERE    JOB.name = 'Your JobName'  -- Add your job name..
    SELECT      [JobName]   = JOB.name,
                [Step]      = HIST.step_id,
                [StepName]  = HIST.step_name,
                [Message]   = HIST.message,
                [Status]    = CASE WHEN HIST.run_status = 0 THEN 'Failed'
                WHEN HIST.run_status = 1 THEN 'Succeeded'
                WHEN HIST.run_status = 2 THEN 'Retry'
                WHEN HIST.run_status = 3 THEN 'Canceled'
                END,
                [RunDate]   = HIST.run_date,
                [RunTime]   = HIST.run_time,
                [Duration]  = HIST.run_duration
    FROM        sysjobs JOB
    INNER JOIN  sysjobhistory HIST ON HIST.job_id = JOB.job_id
    WHERE    JOB.name = 'Your JobName'
    ORDER BY    HIST.run_date, HIST.run_time
    Raju Rasagounder Sr MSSQL DBA

  • Unable to view failed jobs

    i am using oracle application server 10.1.2.3.
    when i deploy and run the report i m getting unable to run report error but when i want to see the reason for the error in enterprise manager failed jobs link of the report server where i have deployed,then it is blank.
    infront of failed jobs it is 100 but when i click the link nothing appears in the next screen where it supposed to show all failed jobs.
    i m using one and only default report server.
    so any body knows how it can be achieved, if i am not knowing the reason for the failure of report i am unable to solve.
    thanks...

    HI, you may wanna read this, to enable trace.
    Link:[http://download.oracle.com/docs/cd/B14099_19/bi.1012/b14048/pbr_tune.htm] 20.1.2 Report Trace
    Hope this helps.
    Greetings.

  • Broken jobs and failed jobs

    hi all..
    please tell me difference between broken jobs and failed jobs
    thanks

    Please refer documentation .
    Failed Jobs
    If a job has the status of FAILED in the job table, it was scheduled to run once but the execution has failed. If the job was specified as restartable, all retries have failed.
    If a job fails in the middle of execution, only the last transaction of that job is rolled back. If your job executes multiple transactions, you need to be careful about setting restartable to TRUE. You can query failed jobs by querying the SCHEDULERJOB_RUN_DETAILS views.
    Broken Jobs
    A broken job is one that has exceeded a certain number of failures. This number is set in max_failures, and can be altered. In the case of a broken job, the entire job is broken, and it will not be run until it has been fixed. For debugging and testing, you can use the RUN_JOB procedure.
    You can query broken jobs by querying the SCHEDULERJOBS and SCHEDULERJOB_LOG views.
    Regards
    Renjith Madhavan

  • DBMS_SCHEDULER failed jobs  status

    Hi
    how to check DBMS_SCHEDULER failed jobs status ?

    Don't duplicate thread.Please close one of the threads
    oracle   failed DBMS_SCHEDULER jobs status?

  • CCMS in CPS for monitoring failed jobs

    hello,
    One quick help needed. Is it possible to monitor failed jobs in CPS using CCMS?
    Thanks
    Anju

    Hello Anju,
    perhaps you want to check out https://service.sap.com/jsm in order to learn more about the integration possibilities between SAP Solution Manager and SAP Central Process Scheduling by Redwood. Because of this comprehensive integration there is no specific CCMS integration but of course CPS can also write information into the CCMS via XMW interface.
    Best Regards
    Volker

  • Any way to re-run all failed jobs?

    DB: 10gR2
    OS: Win2k3
    I was able to query all the jobs that failed by:
    select log_date, job_name, status from dba_scheduler_job_log
    where owner='xyzx'
    order by log_date desc
    My question is, is there a quick and painless way to run a script or something that will re-run all the failed jobs?? If anyone has written a script, please enlighten me.
    Thanks/

    I am. I marked it as helpful. Gave me some ideas on how to proceed.
    I tried your script ... and thought i just try executing one of the jobs (eg ABCD_PROC) as test. but, I got an error ORA-00900: invalid SQL statement on the --execute immediate(stmt);* line.
    >
    create or replace
    procedure failed_job_test as
    --set serveroutput on
    --declare
    stmt varchar2(100);
    begin
    for i in (SELECT job_name FROM DBA_SCHEDULER_JOB_LOG
    where owner='XYZX'
    and to_char(log_date,'mmddyy') = to_char(sysdate,'mmddyy')
    and status = 'FAILED') loop
    stmt:='dbms_scheduler.run_job('''||i.job_name||''')';
    dbms_output.put_line(stmt);
    --if i.job_name = 'ABCD_PROC' then
    --execute immediate(stmt);
    --end if;
    end loop;
    end;
    >
    DBMS_OUTPUT showed dbms_scheduler.run_job('ABCD_PROC')

  • Failed Jobs

    Hi,
    sun update connection jobs failed with the following message:
    Unrecognized I18N key:"javax.xml.bind.JAXBException: PatchInstallOrderServiceError: Updates List size does not match Ordered list". Please contact Sun Support for comment explanation.
    Regards
    Marco

    Hi,
    all patches (i.e. 10) for a certain server failed as described. This server also acts as sun update connection proxy. The whole thing seems to be a major Problem now, since all other servers also have failed jobs. But the messages is different: "Installation of update failed". But one server was capable to install 9 of 93 patches the other failed too - strange.
    Here are some answers you ask for:
    - Patches (on Proxy): 1220199-09 124630-11 126303-02 120812-19 120473-12 120222-21 125166-05 122860-05 119814-17 123003-03 125279-03
    - /var/log/swupas/swupas.error.log is empty on all systems
    - I was able to install a patch manually (e.g. 120499-09) on proxy
    I unregistered the proxy the day before yesterday and waited 24h for re-registration. So, maybe the problem connected to this. The registration was made by
    sconadm register -a -r registrationprofile.properties -e softwareUpdate
    The proxy is a sun update connection proxy only and not a web proxy. So I understand, that 'sconadm proxy' isn't necessary.
    Marco

  • Scheduling one background job inside another

    Hi All,
    Is it possible to Scheduling one background job inside another.? i.e In my Z program I am calling job_open, job_submit, job_close and to execute one standard report in background. And after that I am executing my Z program itself  from SE38 as Program->Execute->Background->Execute Immediately. Is this logically correct? I am asking this because I am not getting the desired result
    Thanks & Regards,
    Neethu.

    HI,
    Check the job steps in SM36.
    First schedule the Standard job and in the job steps schedule the z report.
    Schedule job in chain

  • Is it possible to have Multiple Spool requests in one batch job overview?

    Hi,
    While running one of my z program in back ground, there are two spools generated (one by write statement and one by OPEN_FORM statement and both the spools are available in SP01 Transaction), but when i see the job overview in transaction SM37, I only see one spool request (that of the last spool request). Can any body in the group please tell me is it possible to see multiple spool requests in the job overview of one Abap program and if yes, how?
    Thank you.
    Abinash

    Hi Jayanthi,
    Thank you for the link. But probably that discussion was also an unsolved one.
    Anyway, does any one in the group think that display of multiple spools per one step job is dependent on client / SAP Server setting? Because as evident from the chain of mails in the link provided by Jayanthi, some people say that they see multiple spool requests for one program in batch mode job overview (SM37)? If yes, can some body tell me the required configuration?

  • How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.

    How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.
    When I start a backup. Time Machine says "Oldest Backup: None; Latest Backup: None", so it seems like it should do a complete backup, but it only does a partial. 

    Hi I'd like to jump in here. Your app showed me this:
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 749.3 GB Disk used: 453.81 GB
              Destinations:
                        Plastic Wrapper [Local] (Last used)
                        Total size: 999.86 GB
                        Total number of backups: 64
                        Oldest backup: 2013-07-24 23:25:11 +0000
                        Last backup: 2013-11-17 01:40:47 +0000
                        Size of backup disk: Too small
                                  Backup size 999.86 GB < (Disk used 453.81 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
              /sbin excluded from backup!
              /usr excluded from backup!
              /System excluded from backup!
              /bin excluded from backup!
              /private excluded from backup!
              /Library excluded from backup!
              /Applications excluded from backup!
    Aside from the size of my backup drive, which I will increase at some point, I'd really like to have time machine backing up all system folders, especially Applications. How to I reset this hidden exclusions?
    Thanks,
    Darcy

  • Restart of failed jobs while export of a SAP instance

    Hi,
    I am performing export of a source system for unicode conversion. 8 parallel processes have been configured. 40 jobs completed and 3 jobs failed in export with an error "Unable to extend tempfile".
    Now that tempfile has been added. My questions is how to restart a failed job while the export of SAP instance is in progress?
    Thanks

    If I stop sapinst and restart it, will it cause loss of data? (The 2 jobs failed when 24 job completed. How 200 jobs have already completed)
    Based on the above, I have the following questions.
    1- If I restart sapinst, will it process the 2 failed jobs and the proceed from 201 job, since already 200 have completed.
    2- In sapinst, there is no stop button. Do I have to logoff and restart sapinst -> continue old installation?
    Thanks,
    Haleem

  • CCMS alert emails for failed jobs

    Hello All
    What are the steps to set a ccms alert for failed jobs? Also is it possible to set ccms to warn us of long running jobs. I would like to set the sysem so that we get a email notification on any failed jobs or long running jobs.
    I appreciate any input or leads.
    Thanks

    Hi,
    You can get the alerts for failed jobs, Just maintain the realted setting in the ccms_onalert_email
    maintain the address and then assign this as auto reaction method in your ccms template for background jobs.
    Also i request to search SDN there are many threads related to auto reaction mails.
    Regards,
    Vamshi.

Maybe you are looking for

  • NI LabVIEW Run-Time Engine + TCP/IP

    Hello, Anybody knows how to activate TCP/IP service on PC with standard NI LabView Run-Time Engine installed. If I trying communicate with server from my PC (LVRTE) its works correctly.   However, when I am trying interchange client and server applic

  • Veriface and Windows 8

    Hi i just bought your Lenovo G780 laptop... it runs preinstalled Windows 8  I have now spended the entire evening trying to find out how to get the veriFace to start and Work. WHERE is it. This is the reason i choosed your laptop so i really want it

  • Importing from burned DVDs

    Hi, I'm about to buy a Canopus ADVC300 to import old VHS home movies into FCE, but I'd also like to import footage from some full length burned DVDs so that I can add effects, titling etc. (They're school plays, so no copyright protections, etc.) Can

  • Conversion old blog from Blogger to iWeb

    I have an old blog that I created in 2006 on the blogger.com site. I have not updated it since then but I would like to move it into my web site created with iWeb. I used the Blogger export process to download the blog. It saved on my computer as a .

  • Finding and moving files in multiple folders

    Hi I am trying to locate and move hundreds of .wav files currently situated in 193 subfolders inside a folder called "ambient". They are mixed with other filetypes. I want to move all these wav files into a new folder called "new ambient" but without