June 22, 2010 at 7:50 pm
I installed the Oracle 11g client on my (Windows 2008 SPK2/SQL 2008 R2) and set up a Linked server to an Oracle database and now I'm getting the same error message ever 5 seconds in the SQL logs. Not much information on Google about the error. Any help would be appreciated.
Thanks in advance.
*******************************************************
Date6/22/2010 9:44:57 PM
LogSQL Server (Current - 6/22/2010 2:19:00 PM)
Sourcespid32s
Message
The activated proc '[dbo].[sp_syspolicy_events_reader]' running on queue 'msdb.dbo.syspolicy_event_queue' output the following: 'Cannot execute as the database principal because the principal "##MS_PolicyEventProcessingLogin##" does not exist, this type of principal cannot be impersonated, or you do not have permission.'
June 22, 2010 at 9:35 pm
Message
The activated proc '[dbo].[sp_syspolicy_events_reader]' running on queue 'msdb.dbo.syspolicy_event_queue' output the following: 'Cannot execute as the database principal because the principal "##MS_PolicyEventProcessingLogin##" does not exist, this type of principal cannot be impersonated, or you do not have permission.'
Make sure the ##MS_PolicyEventProcessingLogin## exists in the MSDB and MASTER database.
SELECT * FROM master.sys.database_principals WHERE [name] LIKE '%##%'
SELECT * FROM msdb.sys.database_principals WHERE [name] LIKE '%##%'
If possible remap the user in the MSDB & Master database.
"More Green More Oxygen !! Plant a tree today"
June 23, 2010 at 12:01 pm
It was an orphaned account in the MSDB database. The following two commands fixed it.
exec sp_change_users_login ‘report’
EXEC sp_change_users_login 'Auto_Fix', '##MS_PolicyEventProcessingLogin##',NULL, 'Password01!';
October 28, 2013 at 11:53 pm
I had did all but Issue is not sloved.
Can please suggest other way ?
April 24, 2014 at 12:12 pm
Got the same error message in the error log.
Did the above scripts but it returned nothing; implying no orphaned login. And the error messages were still logging in the error log.
Any other solution would be appreciated.
April 24, 2014 at 12:35 pm
kenyeung70 (4/24/2014)
Got the same error message in the error log.Did the above scripts but it returned nothing; implying no orphaned login. And the error messages were still logging in the error log.
Any other solution would be appreciated.
I found a fix on my problem. I have to run the above scripts two times; each with "USE master;" and "USE msdb;" before the scripts. How the error message is no longer logged in the error log file.
September 19, 2014 at 1:41 pm
Fixed my problem by running Orphan users Script for two times on msdb, master databases. Thanks
Srini
May 6, 2015 at 2:59 pm
.
September 11, 2015 at 7:47 am
Thank you!! My error was similar and the orphaned user in msdb was the issue. 😀
April 3, 2016 at 2:03 am
smitty-1088185 (6/23/2010)
It was an orphaned account in the MSDB database. The following two commands fixed it.exec sp_change_users_login ‘report’
EXEC sp_change_users_login 'Auto_Fix', '##MS_PolicyEventProcessingLogin##',NULL, 'Password01!';
Thanks a lot. This works.
July 25, 2016 at 10:34 am
Using WINDOWS Authentication only., and login is not an orphaned used for master, nor msdb.
Still looking for a solution with SS_2014 SP2.
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply