2012-09-06 120 views
0

我想在两台计算机,我的工作PC和服务器之间设置一些复制。我已经在我的工作电脑上与另一个实例上的订阅者在我的工作PC上测试了发布者,它工作正常。我在工作电脑上创建了发布者,并且现在正在服务器上创建订阅者。当代理开始,我得到以下日志:MS SQL Server 2008 R2复制插入日志文件丢失

2012-09-06 07:26:29.362 The process could not read file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\ReplData\unc\LGX-PAW_REPTEST_REPTESTPUB\20120906085935\InsertLog_4.pre' due to OS error 3. 
2012-09-06 07:26:29.377 Category:OS 
Source: 
Number: 3 
Message: The system cannot find the path specified. 

我检查的路径,它不存在,所以错误是有道理的,在REPLDATA文件夹丢失。 现在的问题是,为什么这个文件夹丢失?

完善的日志:

Date  06-09-2012 09:26:27 
Log  Job History (LGX-PAW-RepTest-RepTestPub-PLX_SWDEV01\REPL2-DestinationDB-9A7A263C-E427-447C-982E-BC2FAD174935) 

Step ID  1 
Server  PLX_SWDEV01\REPL2 
Job Name  LGX-PAW-RepTest-RepTestPub-PLX_SWDEV01\REPL2-DestinationDB-9A7A263C-E427-447C-982E-BC2FAD174935 
Step Name  Run agent. 
Duration  00:00:02 
Sql Severity  0 
Sql Message ID  0 
Operator Emailed   
Operator Net sent  
Operator Paged  
Retries Attempted  0 

Message 
2012-09-06 07:26:27.770 Copyright (c) 2008 Microsoft Corporation 
2012-09-06 07:26:27.770 Microsoft SQL Server Replication Agent: distrib 
2012-09-06 07:26:27.770 
2012-09-06 07:26:27.770 The timestamps prepended to the output lines are expressed in terms of UTC time. 
2012-09-06 07:26:27.770 User-specified agent parameter values: 
      -Publisher LGX-PAW 
      -PublisherDB RepTest 
      -Publication RepTestPub 
      -Distributor LGX-PAW 
      -SubscriptionType 1 
      -Subscriber PLX_SWDEV01\REPL2 
      -SubscriberSecurityMode 1 
      -SubscriberDB DestinationDB 
      -Continuous 
      -XJOBID 0x668947F23F047547879065B816A17E32 
      -XJOBNAME LGX-PAW-RepTest-RepTestPub-PLX_SWDEV01\REPL2-DestinationDB-9A7A263C-E427-447C-982E-BC2FAD174935 
      -XSTEPID 1 
      -XSUBSYSTEM Distribution 
      -XSERVER PLX_SWDEV01\REPL2 
      -XCMDLINE 0 
      -XCancelEventHandle 00000000000006C4 
      -XParentProcessHandle 00000000000006B0 
2012-09-06 07:26:27.770 Startup Delay: 1154 (msecs) 
2012-09-06 07:26:28.925 Connecting to Subscriber 'PLX_SWDEV01\REPL2' 
2012-09-06 07:26:28.940 Connecting to Distributor 'LGX-PAW' 
2012-09-06 07:26:28.972 Parameter values obtained from agent profile: 
      -bcpbatchsize 2147473647 
      -commitbatchsize 100 
      -commitbatchthreshold 1000 
      -historyverboselevel 1 
      -keepalivemessageinterval 300 
      -logintimeout 15 
      -maxbcpthreads 1 
      -maxdeliveredtransactions 0 
      -pollinginterval 5000 
      -querytimeout 1800 
      -skiperrors 
      -transactionsperhistory 100 
2012-09-06 07:26:29.221 Initializing 
2012-09-06 07:26:29.362 The process could not read file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\ReplData\unc\LGX-PAW_REPTEST_REPTESTPUB\20120906085935\InsertLog_4.pre' due to OS error 3. 
2012-09-06 07:26:29.377 Category:OS 
Source: 
Number: 3 
Message: The system cannot find the path specified. 

回答

0

发现,有问题的目录必须是该用户可以访问的共享驱动器上。