Wednesday, March 7, 2012
Distributor password in distributor Properties
When I select 'configure publishing, subscribers and Distribution' from the
SQL EM's tool menu\replication, under the distributor tab, there is the
administrator link password, what do they use for password? When I set up
replication for the first time, it doesn't ask me for it so it is unknown to
me. If I change the password, will it affect anything? I also noticed that
during replication setup, it also creates a SQL login for Distribution_Admin
and I also don't know what password it use. Any ideas for these two
passwords? Just curious, why do they set up the password behind the scene?
wingman
Wing
If you didn't set it (remote distributor) this means you have a local
distributor, and it is randomly generated. If you want to change it, you can
use sp_changedistributor_password.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||No, I didn't set it. I assume local distributor means it locates in the
same server as the publisher server.
The reason I ask for the password is that I tried to use the 'generating SQL
script' feature in replication to script the setup. But the script purposely
leaves out the passwrod for security reason so in order for me to run the
script, I need to know the password. So should I run the
sp_changedistributor_password and put the new password in the script to make
it work?
Or is there another way to script a replication setup?
Wing
"Paul Ibison" wrote:
> If you didn't set it (remote distributor) this means you have a local
> distributor, and it is randomly generated. If you want to change it, you can
> use sp_changedistributor_password.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>
>
|||The 'old' password doesn't really need to be retained, and sp_adddistributor
can be fed any value you want for the administrative link password.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Saturday, February 25, 2012
Distribution db doesn't show up after enabling transactional repl
publication wizard..' to create my transaction replication (I took the
default settings), it finished successfully. When I check the database
listing in EM, the 'distribution' database doesn't show up in the list but
the physical .mdf and .ldf files do exist. I thought this is strange, I
went ahead to disable the publication and thought I could start over again
but it gave me an error message " Eror 945: Database 'distribution' cannot be
opened dur to inaccessible files or insufficient memory or disk space'. We
are out out of space or memory. I stop by restart SQL service but it didn't
help. Can anyone help?
Wingman
Do you have the show system databases enabled? This could account for the
invisibility of it. I would clear up space on your machine and then try to
disable publishing.
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Wingman" <Wingman@.discussions.microsoft.com> wrote in message
news:8A3D4193-03DC-4D43-A3D5-A7FE0D2E97CB@.microsoft.com...
> We are using SQL 2k with SP4. After I used the 'Create and Manage
> publication wizard..' to create my transaction replication (I took the
> default settings), it finished successfully. When I check the database
> listing in EM, the 'distribution' database doesn't show up in the list but
> the physical .mdf and .ldf files do exist. I thought this is strange, I
> went ahead to disable the publication and thought I could start over again
> but it gave me an error message " Eror 945: Database 'distribution' cannot
> be
> opened dur to inaccessible files or insufficient memory or disk space'.
> We
> are out out of space or memory. I stop by restart SQL service but it
> didn't
> help. Can anyone help?
> Wingman
Friday, February 24, 2012
Distribution clean up not working
Pulling my hair out trying to find a resolution to the following problem.
Any help would be greatly appreciated.
Windows 2000 OS SP4, SQL Server 2000 SP3 replicating using transactional
replication from one server (lets call this server 1) inside our network out
to the internet to another server (lets calls this server 2)
Replication job failing for Distribution Cleanup on server 1 where articles
are created and replicated from. This is the job which removes all the old
snapshots after a set period of hours.
The error produced is the same each time bar the folder name which changes
depending on the folder it has problems with.
Executed as user: domain\username. Could not remove directory
'\\DEV-SQL\H$\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040601045610\'.
Check the security context of xp_cmdshell and close other processes that may
be accessing the directory. [SQLSTATE 42000] (Error 20015) Associated
statement is not prepared [SQLSTATE HY007] (Error 0)
Replication-@.rowcount_only parameter must be the value 0,1, or 2. 0=7.0
compatible checksum. 1=only check rowcou: agent ReplicationDB@.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.
[SQLSTATE 01000] (Message 14152). The step failed.
The domain user which the sqlserver and sqlserveragent services use is in
the local administrators group on server 1.
If I login as the user which the services use, I can execute xp_cmdshell
'rmdir /S /Q "\\DEV-SQL\H$\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040601045610"' in
query analyzer with no issues and the directory is deleted.
To my knowledge there is nothing accessing the files within the folder which
would stop the server from gaining an exclusive lock on them for deletion.
Thanks
Andy
Andy,
I can't spot anything strange about your setup. Ideally the share shouldn't
be an admin one - it should be in the form \\DEV-SQL\Repldata with the
associated rights on htis share. You could reconfigure with this, but this
shouldn't be the issue in your case. I'd try to schedule a job yourself
which runs the remove directory command and see if it fails with the same
error message. Also check the opened files for any remotely locked files in
computer management. Finally if none of this helps then have a look at
filemon to monitor locked files
(http://www.sysinternals.com/ntw2k/source/filemon.shtml) or if you're on Win
2003, http://www.mvps.org/sramesh2k/processlock.htm. Please post up your
findings, and also I'm assuming that you have a central
publisher/distributor - is this the case?
Regards,
Paul Ibison
|||Paul
Thanks for your response, FileMon has helped me make some progress with this
issue. I have attached some output from the log below. CMD.exe tries to get
the directory but it is already opened by inetinfo.exe and CMD.exe then
returns a sharing violation (towards the bottom of the log output).
InetInfo.exe is the IIS Admin Service Helper, any ideas why it may be
looking at this directory ?
Andy
13591 10:49:22 CMD.EXE:5224 QUERY INFORMATION H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS Attributes: D
13592 10:49:22 CMD.EXE:5224 OPEN H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS Options: Open Directory Access: All
13593 10:49:22 CMD.EXE:5224 DIRECTORY H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS FileBothDirectoryInformation: *
13594 10:49:22 CMD.EXE:5224 READ H: SUCCESS Offset: 0 Length: 4096
13595 10:49:22 CMD.EXE:5224 DIRECTORY H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS FileBothDirectoryInformation
13596 10:49:22 CMD.EXE:5224 OPEN H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.BCP SUCCESS Options: Open Access: All
13597 10:49:22 CMD.EXE:5224 READ H: SUCCESS Offset: 531218432 Length: 4096
13598 10:49:22 CMD.EXE:5224 QUERY INFORMATION H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.BCP SUCCESS FileObjectIdInformation
13599 10:49:22 CMD.EXE:5224 DELETE H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.BCP SUCCESS
13600 10:49:22 CMD.EXE:5224 CLOSE H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.BCP SUCCESS
13601 10:49:22 CMD.EXE:5224 READ H: SUCCESS Offset: 40960 Length: 4096
13602 10:49:22 inetinfo.exe:1080 OPEN H:\Program Files\Microsoft SQL
Server\MSSQL\REPLDATA\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS Options: Open Directory Access: All
13603 10:49:22 CMD.EXE:5224 OPEN H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.SCH SUCCESS Options: Open Access: All
13604 10:49:22 CMD.EXE:5224 READ H: SUCCESS Offset: 531169280 Length: 4096
13605 10:49:22 inetinfo.exe:1080 DIRECTORY H:\Program Files\Microsoft SQL
Server\MSSQL\REPLDATA\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\ NO
SUCH FILE FileBothDirectoryInformation: TBLLAT~1.BCP
13606 10:49:22 CMD.EXE:5224 QUERY INFORMATION H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.SCH SUCCESS FileObjectIdInformation
13607 10:49:22 inetinfo.exe:1080 CLOSE H:\Program Files\Microsoft SQL
Server\MSSQL\REPLDATA\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS
13608 10:49:22 CMD.EXE:5224 DELETE H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.SCH SUCCESS
13609 10:49:22 CMD.EXE:5224 CLOSE H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.SCH SUCCESS
13610 10:49:22 inetinfo.exe:1080 DIRECTORY H:\ SUCCESS Change Notify
13611 10:49:22 CMD.EXE:5224 OPEN H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.IDX SUCCESS Options: Open Access: All
13612 10:49:22 inetinfo.exe:1080 OPEN H:\Program Files\Microsoft SQL
Server\MSSQL\REPLDATA\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS Options: Open Directory Access: All
13613 10:49:22 CMD.EXE:5224 READ H: SUCCESS Offset: 531214336 Length: 4096
13614 10:49:22 CMD.EXE:5224 QUERY INFORMATION H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.IDX SUCCESS FileObjectIdInformation
13615 10:49:22 CMD.EXE:5224 DELETE H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.IDX SUCCESS
13616 10:49:22 inetinfo.exe:1080 DIRECTORY H:\Program Files\Microsoft SQL
Server\MSSQL\REPLDATA\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\ NO
SUCH FILE FileBothDirectoryInformation: TBLLAT~1.SCH
13617 10:49:22 CMD.EXE:5224 CLOSE H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\TBLL
AT~1.IDX SUCCESS
13618 10:49:22 inetinfo.exe:1080 CLOSE H:\Program Files\Microsoft SQL
Server\MSSQL\REPLDATA\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS
13619 10:49:22 CMD.EXE:5224 DIRECTORY H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\ NO
MORE FILES FileBothDirectoryInformation
13620 10:49:22 inetinfo.exe:1080 DIRECTORY H:\ SUCCESS Change Notify
13621 10:49:22 CMD.EXE:5224 CLOSE H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS
13622 10:49:22 inetinfo.exe:1080 OPEN H:\Program Files\Microsoft SQL
Server\MSSQL\REPLDATA\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS Options: Open Directory Access: All
13623 10:49:22 CMD.EXE:5224 OPEN H:\Program Files\Microsoft SQL
Server\MSSQL\ReplData\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SHARING VIOLATION Options: Open Directory Access: All
13624 10:49:22 inetinfo.exe:1080 DIRECTORY H:\Program Files\Microsoft SQL
Server\MSSQL\REPLDATA\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\ NO
SUCH FILE FileBothDirectoryInformation: TBLLAT~1.IDX
13625 10:49:22 inetinfo.exe:1080 CLOSE H:\Program Files\Microsoft SQL
Server\MSSQL\REPLDATA\unc\dev-sql_WebShared_WS_LatestAds\20040602094908\
SUCCESS
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:Or%23DS9%23REHA.2976@.TK2MSFTNGP10.phx.gbl...
> Andy,
> I can't spot anything strange about your setup. Ideally the share
shouldn't
> be an admin one - it should be in the form \\DEV-SQL\Repldata with the
> associated rights on htis share. You could reconfigure with this, but this
> shouldn't be the issue in your case. I'd try to schedule a job yourself
> which runs the remove directory command and see if it fails with the same
> error message. Also check the opened files for any remotely locked files
in
> computer management. Finally if none of this helps then have a look at
> filemon to monitor locked files
> (http://www.sysinternals.com/ntw2k/source/filemon.shtml) or if you're on
Win
> 2003, http://www.mvps.org/sramesh2k/processlock.htm. Please post up your
> findings, and also I'm assuming that you have a central
> publisher/distributor - is this the case?
> Regards,
> Paul Ibison
>
|||Andy,
the only relationship I can see is if you're doing a FTP initialization as
the inetinfo.exe does manage FTP access. Is it possible there is a FTP
subscriber in mid-flow?
Regards,
Paul Ibison
|||Hi Paul
Thanks for you reply.
Cannot see anything to do with FTP replication in our setup here.
If this is of any help, this is a copy if the SQL alert which is sent to me
when the job retries.
DESCRIPTION: Error: 14152, Severity: 10, State: 1
Replication-@.rowcount_only parameter must be the value 0,1, or 2. 0=7.0
compatible checksum. 1=only check rowcou: agent ReplicationDB@.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
Regards
Andy
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:e7iSIwISEHA.1764@.TK2MSFTNGP10.phx.gbl...
> Andy,
> the only relationship I can see is if you're doing a FTP initialization as
> the inetinfo.exe does manage FTP access. Is it possible there is a FTP
> subscriber in mid-flow?
> Regards,
> Paul Ibison
>
|||Andy,
unfortunately this error message is a fairly generic one to the job failing.
Sorry but I really don't know why inetinfo is locking your snapshot files. As an interim solution you could kill the inetinfo process before running the cleanup agent.
I'd post up a question related to this on the IIS newsgroup and see if anyone has any ideas.
Regards,
Paul Ibison
Distribution Agent Startup Parameters
I have scenario where I use two servers: SQL 2K sp4, on Win2K3 sp1. One
server is a publisher, the other a subscriber. The replication topology is
Transaction Replication with 1 queued updating subscriber. The distribution
agent resides on the publisher.
Firstly, I am aware of nosync replication, but my environment requires some
more testing before I can implement it, because I can't take the publisher
offline, and I believe some tweaks are needed to ensure that the data will
truly be in sync. This said, one of my publications has a table article with
234 million records to transfer when the article is reinitialized. I am
having problems with the transaction log growing so large on the subscriber,
that it consumes all server space, and effectively kills the distribution
agent.
To mitigate this, I have tried to use the -BcpBatchSize parameter to try to
get the rows per batch down to manageable size so that I can manually shrink
the transaction log intermittantly while the distribution agent is applying
the snapshot. My strategy is not working.
Questions:
1) does -BcpBatchSize directly control the application of the snapshotted
article's transaction commit size, or is this parameter used outside of the
distribution agent's application of a snapshot?
2) does using -UseInprocLoader affect the -BcpBatchSize parameter? I ask
because bulk insert is different from bcp.
3) would -CommitBatchSize be a more appropriate setting to allow me to
actively manage the transaction log on the subscriber while this huge table
is being transferred?
Thanks for any input,
John T
If you are using concurrent snapshot on SQL2000, your only hope will be to
make sure that you hit the minimal logging code path when the snapshot is
delivered to the subscriber as the *entire* snapshot will be applied in an
atomic transaction. At the risk of telling you something that you may know
already, this means that you need to:
1) Make sure that 'select into\bulk copy' is enabled at the subscriber
database
2) The target table is empty with at most one index or not having any
indexes when the bulk copy occurs. This may be tricky to enforce as the
SQL2000 index creation logic in the distribution agent is not very precise.
You may want to modify the .idx scripts to leave only the primary key index
and then manually create other indexes afterwards.
3) Set -BcpBatchSize to be *larger* than the maximum number of rows in your
published tables. 2^31 - delta should work fine. Notice that you may start
seeing "Agent is waiting for database backend.." messages since the
distribution agent will not be able to log any progress messages until the
entire bulk load operation is done. You have also want to increase
the -QueryTimeout of the distribution agent.
-Raymond
"John T" <JohnT@.discussions.microsoft.com> wrote in message
news:469D5803-1C9E-447E-9513-2AE04EFEB305@.microsoft.com...
> Hello,
> I have scenario where I use two servers: SQL 2K sp4, on Win2K3 sp1. One
> server is a publisher, the other a subscriber. The replication topology
> is
> Transaction Replication with 1 queued updating subscriber. The
> distribution
> agent resides on the publisher.
> Firstly, I am aware of nosync replication, but my environment requires
> some
> more testing before I can implement it, because I can't take the publisher
> offline, and I believe some tweaks are needed to ensure that the data will
> truly be in sync. This said, one of my publications has a table article
> with
> 234 million records to transfer when the article is reinitialized. I am
> having problems with the transaction log growing so large on the
> subscriber,
> that it consumes all server space, and effectively kills the distribution
> agent.
> To mitigate this, I have tried to use the -BcpBatchSize parameter to try
> to
> get the rows per batch down to manageable size so that I can manually
> shrink
> the transaction log intermittantly while the distribution agent is
> applying
> the snapshot. My strategy is not working.
> Questions:
> 1) does -BcpBatchSize directly control the application of the snapshotted
> article's transaction commit size, or is this parameter used outside of
> the
> distribution agent's application of a snapshot?
> 2) does using -UseInprocLoader affect the -BcpBatchSize parameter? I ask
> because bulk insert is different from bcp.
> 3) would -CommitBatchSize be a more appropriate setting to allow me to
> actively manage the transaction log on the subscriber while this huge
> table
> is being transferred?
> Thanks for any input,
> John T
|||Hi Raymond, I though bcpBatchSize is analogous to the batchsize in bcp,
which means that it controls how many rows will be applied at a time in a
batch. Won't setting it to a large value create a very large transaction log
for large tables?
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Raymond Mak [MSFT]" <rmak@.online.microsoft.com> wrote in message
news:evddMLk8GHA.4084@.TK2MSFTNGP05.phx.gbl...
> If you are using concurrent snapshot on SQL2000, your only hope will be to
> make sure that you hit the minimal logging code path when the snapshot is
> delivered to the subscriber as the *entire* snapshot will be applied in an
> atomic transaction. At the risk of telling you something that you may know
> already, this means that you need to:
> 1) Make sure that 'select into\bulk copy' is enabled at the subscriber
> database
> 2) The target table is empty with at most one index or not having any
> indexes when the bulk copy occurs. This may be tricky to enforce as the
> SQL2000 index creation logic in the distribution agent is not very
> precise. You may want to modify the .idx scripts to leave only the primary
> key index and then manually create other indexes afterwards.
> 3) Set -BcpBatchSize to be *larger* than the maximum number of rows in
> your published tables. 2^31 - delta should work fine. Notice that you may
> start seeing "Agent is waiting for database backend.." messages since the
> distribution agent will not be able to log any progress messages until the
> entire bulk load operation is done. You have also want to increase
> the -QueryTimeout of the distribution agent.
> -Raymond
> "John T" <JohnT@.discussions.microsoft.com> wrote in message
> news:469D5803-1C9E-447E-9513-2AE04EFEB305@.microsoft.com...
>
|||Hilary, what you said is true, but the goal of my reccomendations is not to
have small transactions but to hit the minimal logging (or bulk-logged) code
path in the server which is the only feasible way to have a manageable log
size when a concurrent snapshot is applied in SQL2000. If a small batch size
is specified, the server will see the target table as non-empty after the
first batch is loaded and start going down the fully-logged code path after
that. And since there is an outer transaction bounding the delivery of a
concurrent snapshot in SQL2000, the log simply cannot be truncated even with
a small bcp batch size. I can understand why you think this is
counter-intuitive, but my suggestion had worked on a few occasions before
including the following:
http://groups.google.com/group/micro... e49f1fb79fe5
-Raymond
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:uuGAtgk8GHA.2316@.TK2MSFTNGP04.phx.gbl...
> Hi Raymond, I though bcpBatchSize is analogous to the batchsize in bcp,
> which means that it controls how many rows will be applied at a time in a
> batch. Won't setting it to a large value create a very large transaction
> log for large tables?
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "Raymond Mak [MSFT]" <rmak@.online.microsoft.com> wrote in message
> news:evddMLk8GHA.4084@.TK2MSFTNGP05.phx.gbl...
>
|||Ok, got it! Thanks Raymond. Still waiting on that beer you owe me;)
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Raymond Mak [MSFT]" <rmak@.online.microsoft.com> wrote in message
news:Oy1jKJl8GHA.2120@.TK2MSFTNGP03.phx.gbl...
> Hilary, what you said is true, but the goal of my reccomendations is not
> to have small transactions but to hit the minimal logging (or bulk-logged)
> code path in the server which is the only feasible way to have a
> manageable log size when a concurrent snapshot is applied in SQL2000. If a
> small batch size is specified, the server will see the target table as
> non-empty after the first batch is loaded and start going down the
> fully-logged code path after that. And since there is an outer transaction
> bounding the delivery of a concurrent snapshot in SQL2000, the log simply
> cannot be truncated even with a small bcp batch size. I can understand why
> you think this is counter-intuitive, but my suggestion had worked on a few
> occasions before including the following:
> http://groups.google.com/group/micro... e49f1fb79fe5
> -Raymond
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:uuGAtgk8GHA.2316@.TK2MSFTNGP04.phx.gbl...
>
|||Raymond,
Just a couple of points of clarification:
1) If I am using simple recovery mode, I should get the same benefits in
this case as using bulk recovery mode, correct?
2) If I choose the schema option to drop the tables before the snapshot is
applied, this should meet all of the requirements in your second point,
correct?
3) Regarding the -BcpBatchSize setting of 2^31 - delta, what is the delta,
my desired batch commit size?
Thanks
John T
"Raymond Mak [MSFT]" wrote:
> If you are using concurrent snapshot on SQL2000, your only hope will be to
> make sure that you hit the minimal logging code path when the snapshot is
> delivered to the subscriber as the *entire* snapshot will be applied in an
> atomic transaction. At the risk of telling you something that you may know
> already, this means that you need to:
> 1) Make sure that 'select into\bulk copy' is enabled at the subscriber
> database
> 2) The target table is empty with at most one index or not having any
> indexes when the bulk copy occurs. This may be tricky to enforce as the
> SQL2000 index creation logic in the distribution agent is not very precise.
> You may want to modify the .idx scripts to leave only the primary key index
> and then manually create other indexes afterwards.
> 3) Set -BcpBatchSize to be *larger* than the maximum number of rows in your
> published tables. 2^31 - delta should work fine. Notice that you may start
> seeing "Agent is waiting for database backend.." messages since the
> distribution agent will not be able to log any progress messages until the
> entire bulk load operation is done. You have also want to increase
> the -QueryTimeout of the distribution agent.
> -Raymond
> "John T" <JohnT@.discussions.microsoft.com> wrote in message
> news:469D5803-1C9E-447E-9513-2AE04EFEB305@.microsoft.com...
>
>
|||Hi John,
In response to your inquiry:
1) Simple recovery mode is fine.
2) You may still need to make sure that only the primary key index got
created since the index creation logic in SQL2000 distribution agent is not
as optimal as it can be.
3) Delta is just a small number, you only need to make sure that the
resulting bcpbatchsize is bigger than the maximum number of rows in any of
your tables
Hope that helps,
-Raymond
"John T" <JohnT@.discussions.microsoft.com> wrote in message
news:A677C2FE-F672-4473-9B2E-725AFE500039@.microsoft.com...[vbcol=seagreen]
> Raymond,
> Just a couple of points of clarification:
> 1) If I am using simple recovery mode, I should get the same benefits in
> this case as using bulk recovery mode, correct?
> 2) If I choose the schema option to drop the tables before the snapshot is
> applied, this should meet all of the requirements in your second point,
> correct?
> 3) Regarding the -BcpBatchSize setting of 2^31 - delta, what is the delta,
> my desired batch commit size?
> Thanks
> John T
> "Raymond Mak [MSFT]" wrote:
|||Wait a minute, I think you are the one who owe me a beer, and I have proof
for that...
http://groups.google.com/group/micro... c299fb7328e2d
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:%23yI5FQr8GHA.3820@.TK2MSFTNGP02.phx.gbl...
> Ok, got it! Thanks Raymond. Still waiting on that beer you owe me;)
> --
> Hilary Cotter
> Director of Text Mining and Database Strategy
> RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
> This posting is my own and doesn't necessarily represent RelevantNoise's
> positions, strategies or opinions.
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
>
> "Raymond Mak [MSFT]" <rmak@.online.microsoft.com> wrote in message
> news:Oy1jKJl8GHA.2120@.TK2MSFTNGP03.phx.gbl...
>
|||freaking Google.
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Raymond Mak [MSFT]" <rmak@.online.microsoft.com> wrote in message
news:enfPtCt8GHA.1492@.TK2MSFTNGP02.phx.gbl...
> Wait a minute, I think you are the one who owe me a beer, and I have proof
> for that...
> http://groups.google.com/group/micro... c299fb7328e2d
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:%23yI5FQr8GHA.3820@.TK2MSFTNGP02.phx.gbl...
>
|||This suggestion worked excellently. I went from filling up over 275 gigs of
drive space trying to deploy these large tables, to only using 975 megs of
drive space.
Thank you,
John T
"Raymond Mak [MSFT]" wrote:
> Hi John,
> In response to your inquiry:
> 1) Simple recovery mode is fine.
> 2) You may still need to make sure that only the primary key index got
> created since the index creation logic in SQL2000 distribution agent is not
> as optimal as it can be.
> 3) Delta is just a small number, you only need to make sure that the
> resulting bcpbatchsize is bigger than the maximum number of rows in any of
> your tables
> Hope that helps,
> -Raymond
> "John T" <JohnT@.discussions.microsoft.com> wrote in message
> news:A677C2FE-F672-4473-9B2E-725AFE500039@.microsoft.com...
>
>
Distribution Agent fails with Access Violation
updated this server with SQL SP4. The install was successful but after the
installation one of my Publications failed with Data Transformation (DTS)
Failed.
In the Event log I have the following error.
Microsoft SQL Server Replication: The DISTRIB.EXE executable is terminating
abnormally because it hit an exception. Exception Code c0000005.
Check file ReplExceptDist.log for details
This log file does not exist on the Server.
I have traced the problem to a particular article in the publication. If I
Reinitilize this one application with a snapshot it is successful.
Any suggestions would be helpful at this point
Thanks
Janet
I think that this log should be in %windir%\system32
I have seen these events as well.Sometimes it is that the data is not in the
correct form and the distrib agent will fault, but on the next run will work
fine. Query your data to determine if this could account for the problem.
What happens if you restart your agent? Does the error clear?
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Janet" <Janet@.discussions.microsoft.com> wrote in message
news:BC4CCE66-3860-4558-B8BD-1AD6A6D99BD2@.microsoft.com...
> I have a SQL Server 2000 installation on Windows 2000 Server, last night I
> updated this server with SQL SP4. The install was successful but after
the
> installation one of my Publications failed with Data Transformation (DTS)
> Failed.
> In the Event log I have the following error.
> Microsoft SQL Server Replication: The DISTRIB.EXE executable is
terminating
> abnormally because it hit an exception. Exception Code c0000005.
> Check file ReplExceptDist.log for details
> This log file does not exist on the Server.
> I have traced the problem to a particular article in the publication. If I
> Reinitilize this one application with a snapshot it is successful.
> Any suggestions would be helpful at this point
> Thanks
> Janet
|||Log file is not in the system32 we have searched the entire machine for it.
I have checked the data and that looks fine, and the DTS should be ok too
because the Snapshot uses it and works. I have also restarted the SQL Agent
This article has been working now for a couple of months and started to fail
the moment SQL came back up after the SP4 install.
The other thing to note is that now whenever a distrubtion agent fails (for
other publications not just this one) the SPID doesn't seem to clear properly
and when the agent runs again it fails saying that the agent is already
running.
"Hilary Cotter" wrote:
> I think that this log should be in %windir%\system32
> I have seen these events as well.Sometimes it is that the data is not in the
> correct form and the distrib agent will fault, but on the next run will work
> fine. Query your data to determine if this could account for the problem.
> What happens if you restart your agent? Does the error clear?
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "Janet" <Janet@.discussions.microsoft.com> wrote in message
> news:BC4CCE66-3860-4558-B8BD-1AD6A6D99BD2@.microsoft.com...
> the
> terminating
>
>
|||Hi Janet, i write from Italy, i have the same problem.
Have you resolved the problem.
I don' t know more what to make.
Thanks
"Janet" wrote:
[vbcol=seagreen]
> Log file is not in the system32 we have searched the entire machine for it.
> I have checked the data and that looks fine, and the DTS should be ok too
> because the Snapshot uses it and works. I have also restarted the SQL Agent
> This article has been working now for a couple of months and started to fail
> the moment SQL came back up after the SP4 install.
> The other thing to note is that now whenever a distrubtion agent fails (for
> other publications not just this one) the SPID doesn't seem to clear properly
> and when the agent runs again it fails saying that the agent is already
> running.
> "Hilary Cotter" wrote:
|||Same problem, but only on non DTS publications sharing distribution agent.
Sorry, Janet, no answer. Hope somebody find it soon.
Rafa
Distribution agent action messages in session details
between our publishing SQL server and subcribing SQL server.
Here is what I see when I double click an action message (listed as Timeout
Expired) in the listing of Distribution Agent history.
3:24 pm Initializing
3:29 pm The process is running and is waiting for a response from one of
the backend connections.
3:29 pm Timeout expired
The sequence of action took exactly five minutes. And the timeout happened
again at 3:30 pm and last until 3:35 pm. Then at 3:36, it started working
and delivered the transactions.
Can someone tell me what the 'backend connection' the distribution agent is
waiting for?
Also, during this problem period, both publishing and subscribing SQL
servers all of a sudden became activity dead meaning there is no IO and no
SQL internal activity (my perf monitor showed almost a blank screen except
cpu time), the publishing SQL server's cpu time is very minimal but the
subscribing SQL server's cpu is 60% peak and no IO. I checked the proces of
the CPU in Em and it was for replication but it had long wait time. It
looked all a sudden nobody can connect to the SQL servers. In fact, we
confirmed that users can't connect to the web application that use SQL
servers. I don't see any networking error shown in the event log in both
servers. I am assuming there is a 'disconnect' or something is 'hanging', I
like to know if the 'disconnect or hanging' caused the distribution agent to
time out or the distrbitution timeout problem caused the SQL server system to
become 'disconnect or hang'?
wingman
The replication subsystem issues commands and waits for responses. If it
doesn't get a response in a predetermined amount of time it gives the
waiting for a response from one of backend connections.
I can't explain why no-one could connect - perhaps the database or tlog was
auto-growing at that time.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Wingman" <Wingman@.discussions.microsoft.com> wrote in message
news:76F91F8B-925F-4152-9C2D-ACB9EA89FCD5@.microsoft.com...
> We are using SQL 2K std with SP4 and push subscription. We have situation
> between our publishing SQL server and subcribing SQL server.
> Here is what I see when I double click an action message (listed as
> Timeout
> Expired) in the listing of Distribution Agent history.
> 3:24 pm Initializing
> 3:29 pm The process is running and is waiting for a response from one of
> the backend connections.
> 3:29 pm Timeout expired
> The sequence of action took exactly five minutes. And the timeout
> happened
> again at 3:30 pm and last until 3:35 pm. Then at 3:36, it started working
> and delivered the transactions.
> Can someone tell me what the 'backend connection' the distribution agent
> is
> waiting for?
> Also, during this problem period, both publishing and subscribing SQL
> servers all of a sudden became activity dead meaning there is no IO and no
> SQL internal activity (my perf monitor showed almost a blank screen except
> cpu time), the publishing SQL server's cpu time is very minimal but the
> subscribing SQL server's cpu is 60% peak and no IO. I checked the proces
> of
> the CPU in Em and it was for replication but it had long wait time. It
> looked all a sudden nobody can connect to the SQL servers. In fact, we
> confirmed that users can't connect to the web application that use SQL
> servers. I don't see any networking error shown in the event log in both
> servers. I am assuming there is a 'disconnect' or something is 'hanging',
> I
> like to know if the 'disconnect or hanging' caused the distribution agent
> to
> time out or the distrbitution timeout problem caused the SQL server system
> to
> become 'disconnect or hang'?
> wingman
>
>
|||Is it a good idea to increase the query timeout from 300 seconds (default) to
maybe 600 seconds in Distribution Agent profile to accomendate any potential
long running process?
Wingman
"Hilary Cotter" wrote:
> The replication subsystem issues commands and waits for responses. If it
> doesn't get a response in a predetermined amount of time it gives the
> waiting for a response from one of backend connections.
> I can't explain why no-one could connect - perhaps the database or tlog was
> auto-growing at that time.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "Wingman" <Wingman@.discussions.microsoft.com> wrote in message
> news:76F91F8B-925F-4152-9C2D-ACB9EA89FCD5@.microsoft.com...
>
>
|||QueryTimeout is more often used in merge replication than in transactional
replication. I normally set the inactivity level to something higher, but
this could mask other problems.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Wingman" <Wingman@.discussions.microsoft.com> wrote in message
news:649BE7BF-C83E-44DC-8B8A-BD5A498510CB@.microsoft.com...[vbcol=seagreen]
> Is it a good idea to increase the query timeout from 300 seconds (default)
> to
> maybe 600 seconds in Distribution Agent profile to accomendate any
> potential
> long running process?
> Wingman
>
> "Hilary Cotter" wrote:
Friday, February 17, 2012
Distributed Transaction on Windows 2000 Professional
Just curious if anyone out there has had success running a Distributed Transaction on Windows 2000 Professional SP4 lately?
I have come to the conclusion that is is virutally impossible. I am running MSDE on a Win2k Pro machine and trying to run a distributed transaction via linked server and am getting the
"The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction."
error. Yes I have been scouring the web looking for answers and have implemented pretty much everything I have run accross... and Yes the MSDTC service is started on both machines... BTW: If I run the procedure on XP it works great!!!
I am wondering if anyone even uses Win2k Pro anymore let alone trying to run a distributed tarnsaction on the darn thing.
If anyone out there has it running let me know I would love to chat with you for a minute or two.
The server you are connecting to can it see you machine by name. I know previously that the destination server tries to make the connection back to the source server to complete the distributed connection. If you have a firewall or its on a different network/domain it can often be the case that the destination can't get back to the source.
On the destination ping your server and also try and connect by name \\servername. What happens if either of these fail this could be your problem. In which case a hack solution is to put an entry in the hosts file of the target server (if its not a firewall issue)
|||Thanks for the reply!
The machines can "see" each other. I downloaded and ran the dtcping.exe utility and it ran with no errors. I also placed entries in the hosts files on both server and client as well.
I am thinking it has something to do with SP4. I ran across this article
http://support.microsoft.com/kb/908620
and it mentions modifying some registry entires but I looked in my registry and they were not there. I backed up the registry and made the entries but that did not seem to fix the error either.
I'm stumped.
Distributed Transaction Error
and the other on Windows 2000 sp4. Both are SQL Server sp4.
When I design a view on the 2003 machine, using a linked server (Win2k
system), I can get results by running the view. However, when I try to save
it, I get "The operation could not be performed because the OLE DB provider
'SQLOLEDB was unable to begin a distributed transaction', and 'OLE/DB
provider returned message: New transaction cannot enlist in the specified
transaction coordinator' messages.
I followed the instructions in KB816701, but this did not solve the problem.
There was no option on the Win2k system to set up Application Server: Enable
network DTC access.
Both systems have the Distributed Transaction Coordinator service running.
It seems strange that I could run the unsaved view, but not save it from the
designer. However, creating it via Create View does work, i.e. creating the
view and saving it.
Any assistance would be greatly appreciated.
Thanks,
TomT
Hello,
The following articles are for your reference:
306212 INF: Troubleshooting Linked Server Error 7391
http://support.microsoft.com/?id=306212
827805 MSDTC fails to mutually authenticate when computers do not run in the
http://support.microsoft.com/?id=827805
I hope the information is helpful.
Sophie Guo
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
================================================== ===
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.
|||Sophie,
Thanks for your response. However, I think there may be an issue between the
two platforms (Win2k and 2003). I had been planning to upgrade the Win2k
system to 2003, and did so today.
Once that process was completed, the issue I encountered went away. I.e., a
view created in the designer on one server using a linked server table, can
now be saved - no error messages.
Thanks,
TomT
"Sophie Guo [MSFT]" wrote:
> Hello,
> The following articles are for your reference:
> 306212 INF: Troubleshooting Linked Server Error 7391
> http://support.microsoft.com/?id=306212
> 827805 MSDTC fails to mutually authenticate when computers do not run in the
> http://support.microsoft.com/?id=827805
> I hope the information is helpful.
> Sophie Guo
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> ================================================== ===
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ================================================== ===
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
Tuesday, February 14, 2012
Distributed Transaction Error
and the other on Windows 2000 sp4. Both are SQL Server sp4.
When I design a view on the 2003 machine, using a linked server (Win2k
system), I can get results by running the view. However, when I try to save
it, I get "The operation could not be performed because the OLE DB provider
'SQLOLEDB was unable to begin a distributed transaction', and 'OLE/DB
provider returned message: New transaction cannot enlist in the specified
transaction coordinator' messages.
I followed the instructions in KB816701, but this did not solve the problem.
There was no option on the Win2k system to set up Application Server: Enable
network DTC access.
Both systems have the Distributed Transaction Coordinator service running.
It seems strange that I could run the unsaved view, but not save it from the
designer. However, creating it via Create View does work, i.e. creating the
view and saving it.
Any assistance would be greatly appreciated.
Thanks,
TomTHello,
The following articles are for your reference:
306212 INF: Troubleshooting Linked Server Error 7391
http://support.microsoft.com/?id=306212
827805 MSDTC fails to mutually authenticate when computers do not run in the
http://support.microsoft.com/?id=827805
I hope the information is helpful.
Sophie Guo
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
========================================
=============
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
=============
This posting is provided "AS IS" with no warranties, and confers no rights.|||Sophie,
Thanks for your response. However, I think there may be an issue between the
two platforms (Win2k and 2003). I had been planning to upgrade the Win2k
system to 2003, and did so today.
Once that process was completed, the issue I encountered went away. I.e., a
view created in the designer on one server using a linked server table, can
now be saved - no error messages.
Thanks,
TomT
"Sophie Guo [MSFT]" wrote:
> Hello,
> The following articles are for your reference:
> 306212 INF: Troubleshooting Linked Server Error 7391
> http://support.microsoft.com/?id=306212
> 827805 MSDTC fails to mutually authenticate when computers do not run in t
he
> http://support.microsoft.com/?id=827805
> I hope the information is helpful.
> Sophie Guo
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> ========================================
=============
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ========================================
=============
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>
Distributed Transaction Error
and the other on Windows 2000 sp4. Both are SQL Server sp4.
When I design a view on the 2003 machine, using a linked server (Win2k
system), I can get results by running the view. However, when I try to save
it, I get "The operation could not be performed because the OLE DB provider
'SQLOLEDB was unable to begin a distributed transaction', and 'OLE/DB
provider returned message: New transaction cannot enlist in the specified
transaction coordinator' messages.
I followed the instructions in KB816701, but this did not solve the problem.
There was no option on the Win2k system to set up Application Server: Enable
network DTC access.
Both systems have the Distributed Transaction Coordinator service running.
It seems strange that I could run the unsaved view, but not save it from the
designer. However, creating it via Create View does work, i.e. creating the
view and saving it.
Any assistance would be greatly appreciated.
Thanks,
TomTHello,
The following articles are for your reference:
306212 INF: Troubleshooting Linked Server Error 7391
http://support.microsoft.com/?id=306212
827805 MSDTC fails to mutually authenticate when computers do not run in the
http://support.microsoft.com/?id=827805
I hope the information is helpful.
Sophie Guo
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
=====================================================When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Sophie,
Thanks for your response. However, I think there may be an issue between the
two platforms (Win2k and 2003). I had been planning to upgrade the Win2k
system to 2003, and did so today.
Once that process was completed, the issue I encountered went away. I.e., a
view created in the designer on one server using a linked server table, can
now be saved - no error messages.
Thanks,
TomT
"Sophie Guo [MSFT]" wrote:
> Hello,
> The following articles are for your reference:
> 306212 INF: Troubleshooting Linked Server Error 7391
> http://support.microsoft.com/?id=306212
> 827805 MSDTC fails to mutually authenticate when computers do not run in the
> http://support.microsoft.com/?id=827805
> I hope the information is helpful.
> Sophie Guo
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> =====================================================> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================> This posting is provided "AS IS" with no warranties, and confers no rights.
>