Amazon RDS Custom SQL-Server: Agent not running

0

Hello,

I am an absolute beginner to Amazon RDS. I've created an RDS Custom Instance for SQL Server Standard. After connecting; I've tried to activate SQL Jobs:

 sp_configure 'show advanced options', 1; 
 GO 
 RECONFIGURE; 
 GO 
 sp_configure 'Agent XPs', 1; 
 GO 
 RECONFIGURE 
 GO

Now I 'm able to create jobs, but they are not runnable. Error message is: Enter image description here

I've found no advanced setting in RDS admin or Management Studio where I am able to activate the agent. According to the documentation, this feature should work: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.SQLServer.CommonDBATasks.Agent.html

Can anybody point me into the right direction please how to get it running? Thanks in advance.

已提問 2 年前檢視次數 650 次
2 個答案
0
已接受的答案

Did a support request, if anyone else stumbles upon this: Use the underlying EC2 instance to start the service. You can open a PowerShell-Session. There you can start services.

已回答 2 年前
0

You should change the agent log file path to D drive.

-- enable SQL Server Agent
exec sp_CONFIGURE 'show advanced options',1;
GO
RECONFIGURE WITH OVERRIDE;
GO
exec sp_CONFIGURE 'Agent XPs', 1;
GO
RECONFIGURE WITH OVERRIDE;
GO

-- update the SQL Server Agent log file path
USE [msdb] 
GO
EXEC msdb.dbo.sp_set_sqlagent_properties @errorlog_file=N'D:\rdsdbdata\Log\SQLAgent.out';
GO
zzaaee
已回答 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南