sql server agent service can not start

sql server agent service can not start

background

Recently, we have a number of sql server database server to replace some of the hard disk, the operation of the service during a routine check and found that agent can not start a server for this process are reported below.

Environmental conditions

Microsoft SQL Server 2017 (RTM-CU14) (KB4484710) - 14.0.3076.1 (X64) Mar 12 2019 19:29:19 Copyright (C) 2017 Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2012 R2 Datacenter 6.3 <X64> (Build 9600: ) (Hypervisor) 

Idea

agent fails to start, check the system event viewer, the following information:
- System 

  - Provider 

   [ Name]  SQLSERVERAGENT 
 
  - EventID 324 

   [ Qualifiers]  49152 
 
   Level 2 
 
   Task 4 
 
   Keywords 0x80000000000000 
 
  - TimeCreated 

   [ SystemTime]  2019-06-13T11:05:09.000000000Z 
 
   EventRecordID 3097 
 
   Channel Application 
 
   Computer iZvtmqn0iz9qduZ 
 
   Security 
 

- EventData 

   Failed to initialize SQL Agent log 
   系统找不到指定的路径。 
 
 
 
 
Direct point sql server agent will report the following error (error: 15281)

operating

Set in the database
sp_CONFIGURE 'SHOW ADVANCE',1
GO
RECONFIGURE WITH OVERRIDE
GO
sp_CONFIGURE 'AGENT',1
GO
RECONFIGURE WITH OVERRIDE
GO
 
 
 
Right then point sql server agent query properties
Because when we replace the hard drive, the original D drive has been uninstalled.
Because we replace the hard disk, the disk D torn down. After finding the cause, the problem becomes how to modify the route of the problem.
USE [msdb] 
EXEC msdb.dbo.sp_set_sqlagent_properties @errorlog_file=N'F:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\Log\SQLAgent.out'
GO
 
 
 
 
Modify the restart the agent service to normal;

 

Guess you like

Origin www.cnblogs.com/jil-wen/p/12486515.html