Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Transaction replication : Distribution clean up: distribution failed

$
0
0

Hi I am replicating transaction replication  2014 to 2016 . I am having error with "Distribution clean up: distribution" agent job as follows.

Msg 20015, Level 16, State 1, Procedure sp_MSreplremoveuncdir, Line 92
Could not remove directory '\\networkshareTES\unc\PUB\20191002105458\'. Check the security context of xp_cmdshell and close other processes that may be accessing the directory.
Replication-@rowcount_only parameter must be the value 0,1, or 2. 0=7.0 compatible checksum. 1=only check rowcou: agent distribution@rowcount_only parameter must be the value 0,1, or 2. 0=7.0 compatible checksum. 1=only  scheduled for retry. Could not clean up the distribution transaction tables.

++++++++++++++++++++++++++++++++++++++

Work around I did as follows

1. 

EXEC master.dbo.sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
EXEC master.dbo.sp_configure 'xp_cmdshell', 1
RECONFIGURE WITH OVERRIDE

2. Jobs running with "distributor_admin" . But I tried it manual cleaning with my access "elevated user" and still failed

use distribution
go
EXEC dbo.sp_MSdistribution_cleanup @min_distretention = 0, @max_distretention = 72. 

any one can advise on this please 


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>