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

My MSmerge_History tables is not getting cleaned up.

0
0

 

I have a distribution retention of 48 hours.  The distribution "Agent hisotry clean up job" runs every 10 minutes. 

 

 

Why does this table have data older than 48 hours old?  I am currently seeing data as old as 11 days ago.  What is the best way to clean up this table or do I need the data for some reason.  I currently have over 3 million record in it and it is still growing.

 

I am on SQL Server 2005 Ent SP2 cum 3


How to replicate from Oracle database 11g Release 2.0.1.0 to MS SQL 2012

0
0
Dear SQL experties
 
I have a Oracle Database 11g Release 2.0.1.0 at Japan Office - With Full Data
In the meantime, i have a MS SQL server 2012 at Singapore Office - With Empty Data
 
As i know there are a good function called Replication.
Can you guide me or Step by Step on how can i replicate the data from Oracle to MSSQL

Merge Replication..

0
0

Hi Team,

Merge replication is bidirectional replication or one way data transfer from pub to sub server?

can please tell me the how to configure merge replication..

Loopback detection in transactional replication relies on server name

0
0

Hi,

I'm posting here mostly to document my experience and maybe save someone some trouble.  I am setting up bi-directional transactional replication between 2 identical databases in Sql Server 2008R2.  Most of the tables in our database have an update trigger to set a "last_updated" column to getdate().  Initial tests looked fine, but as I tried to automate the installation, I found I'd created a loop in the replication (this showed up initially as constant hard disk use on my laptop; eventually I got to looking at distribution..MSrepl_commands and saw that it had a few million rows -- and when I dropped the databases and reproduced the condition, I could see the commands doubling every few seconds).

I made sure @loopback_detection was set in sp_addsubscription.  But the real problem is in what I was giving the @subscriber parameter to sp_addsubscription.  I was using "tcp:localhost,1433".  Actually it surprises me that it works at all.  But it seems to mess up loopback detection.

So my advice to anyone setting up bi-directional transactional replication: use the real destination server name when you set up the subscription!

Thanks for listening,

Mike

Unable to start SQL Snapshot Agent

0
0

When I try to start snap shot agent on a publication under local publications , it gives the below error and fails

"All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists."

How do I start the snapshot agent and do replication


-Shibi Keyan

How to migrate Replication DB from one server to another new server

0
0

Hello,

We will be planning to migrate sql 2005 and sql 2008R2 on new windows 2008R2 server, we have one Replicated DB which ones we are subscribing and we don't have any control over publisher.
Could you please guide me that how can we handle it?
We are planning to do side by side installation and will be using Backup and Restore method but some worries how we can handle it for Replication DB and which is the biggest DB almost more then 300GB.

Appreciate your help!

Thanks

Replicate tables data from Oracle to Sql server 2008 R2

0
0
I am planning to replicate oracle tables onto Sql Server database using subscriber,distributer and publication technique.Can anyone provide me any link or documents to do the setup and kindly let me know is there any flaws in this process or disadvantages as the oracle tables are present on my production database.

Replication DB migration on new sql server 2008

0
0

Hello,

We will be planning to migrate sql 2005 and sql 2008R2 on new windows 2008R2 server, we have one Replicated DB which ones we are subscribing and we don't have any control over publisher.
Could you please guide me that how can we handle it?
We are planning to do side by side installation and will be using Backup and Restore method but some worries how we can handle it for Replication DB and which is the biggest DB almost more then 300GB.

Appreciate your help!

Thanks


Distribution Clean Up Not Deleting from Distribution DB

0
0

The proc called by the clean up job sp_MSdistribution_cleanup runs for a few minutes, but does not delete any rows.  The distribution db has gotten very large (130GB).  Because this proc is not working, I have had to delete from MSrepl_transactions and MSrepl_commands manually.

This started when a publication had to be dropped and recreated.  It had to be dropped because we could not add a new article to it.  Getting strange errors.  Ever since then, distribution database growing.

immediate_sync and allow_anonymous = 0 for all publications.  This was changed around the time of the publication drop and create.

What I have found:

sp_MSmaximum_cleanup_seqno returns 0x00.

In that proc, it populates a cursor from the following query:

select a.id, min(s2.subscription_seqno) from
                        MSsubscriptions s2 
                        join MSdistribution_agents a
                        on (a.id = s2.agent_id) 
                        where
	                        s2.status in( @active, @initiated ) and
	                        /* Note must filter out virtual anonymous agents !!!
                                      a.subscriber_id <> @virtual_anonymous and */
                            -- filter out subscriptions to immediate_sync publications
                            not exists (select * from MSpublications p where
                                        s2.publication_id = p.publication_id and
                                        p.immediate_sync = 1) and
	                        a.publisher_database_id = @publisher_database_id
	                        group by a.id

A little further down in the proc is this line:

select top 1 @max_agent_hist_xact_seqno = xact_seqno from MSdistribution_history where agent_id = @agent_id 
	             order by timestamp desc

For one of the agent_ids in the cursor, the value for xact_seqno is 0x00000000000000000000000000000000.

The distribution agent in question has a subscriber db of "virtual".  In addition, there are two virtual rows from MSSsubscriptions.  Both of the article_ids from these rows do not exist in MSarticles.

So, it looks like my meta data is messed up.  I have a call into Microsoft, but it has been a few days and they haven't come up with a solution.  I would like to delete the "bad" meta data.  Is that possible?

Thanks.

Mike






SQL 2012 - How to configure replication merge on AlwaysOn Available Group ?

0
0

Hi,

   I have two servers which are A server and B server. They are working as SQL 2012. Both of server are member of AlwaysOn Available Group (A is primary server and B is secondary server). Currently, 4 database on server A is set Replication Merge. How can I configure Replication Merge on B server (Secondary server) to work when failed over ?

Thanks

sql server 2012 replication problem

0
0
Dear friends, I have create a teansactional publication in sql server 2012, but when I check the syncrhronization status I get the following error:

Unable to start execution of step 2 (reason: Error authenticating proxy domain\administrator, system error: Logon failure: unknown user name or bad password.). NOTE: The step was retried the requested number of times (10) without succeeding. The step failed.

The sql server agent is running o domain administrator account.

Do you have any idea of how to solve this problem ?

Sql Server Transactional Replication Issue

0
0

I am trying to replicate oracle table onto SQL server using distributer,publisher and subscriber technique but i am facing issue while updating around 2 million records in one the replicated tables.the data gets modified on the oracle tables but it deosn't gets replicated onto the SQL server subscriber.wheni check the replication monitor i saw log reader is throwing some error i.e

"The replication agent has not logged a progress message in 10 minutes. This might indicate an unresponsive agent or high system activity. Verify that records are being replicated to the destination and that connections to the Subscriber, Publisher, and Distributor are still active."

Please help me out as i am strucked..

 

Sql Server Database Partition (SQL Server 2008r2)

0
0
How to set Partition on a mirroring and merge replication database.

Error en instalación SQL 2005

0
0

buenos dias

Mucho sabría agradecerles si me pueden ayudar con este problema que se me está presentando.

Estoy instalando Microsoft SQL 2005 Developer Edition y cuando está instalando los componentes da el siguiente error:

"El archivo .CAB "Sql.cab" que se necesita para esta instalación está dañado o no se puede usar. Esto puede inidicar un error de red, un error al leer desde el CD-ROM, o un problema con este paquete."

Luego al pulsar la opción omitir muestra el siguente mensaje:

"El instalador ha encontrado un error inesperado. El código de error es 2350. Error del servidor FDI"

Alli pulso la opción anular y se detiene el proceso, luego queda instalado el SQL configurations manager es lo unico que sale.

Antes tenia instalado SQL Express.

Sin más que comentar, gracias por la colaboración ayudemmmmeeee porfavorrr

TCP Provider: The semaphore timeout period has expired.

0
0

Hello,

I have a branch office (Server 2008 R2) server running SQL 2005 SP4 (9.0.5057) that is getting the following error message

Replication-Replication Distribution Subsystem: agent BRANCH1-JOBNAME-HEADOFFICE-10 scheduled for retry. TCP Provider: The semaphore timeout period has expired.

It is replicating data over VPN to our Head Office server (Server 2008 R2) running SQL Server 2008 R2 SP1 (Cluster). The connection between the two serves is stable. The issue arose about a week ago but had been working for over a year before that. 

Everything I seem to read points to a network issue but I haven't been able to find a cause of it is indeed network related.Any recommendations would be appreciated!

Thanks!


SQL Replication - Start Distributor Agent and get the message "Number of subscription streams has been reset from 1 to 6, state 3. (Source: MSSQL_REPL, Error number: MSSQL_REPL21062)"

0
0

I have a publication with 20+ subscribers. The publication is a Transactional publication and sometimes in Replication Monitor I see the STATUS shown as "Error" against subscribers. When viewing the details for that subscriberwith the error condition via the distributor to Subscriber History in Replication Monitor it shows a status of Error and the "action Message" of :

Number of subscription streams has been reset from 1 to 6, state 3. (Source: MSSQL_REPL, Error number: MSSQL_REPL21062)Get help: http://help/MSSQL_REPL21062

When checking the Distributor Agent SQL Agent Job for this subscriber none of the steps in it have a -SubscriptionStream parameter listed.  Why could this error appear.  It doesn't look like the info is going to the Subscriber from the Distributor.

Any assistance in debugging would be appreciated.

Thanks in advance

DB replication Vs. SSIS

0
0

I saw a lot of solution would use SSIS rather than DB replication to do the OLAP solution,

But from my feeling, DB replication is much easier to setup and let maintainance for data transfer...

Could any one give my a high level comparence of these two? In which solution the one is better?

SQL 2008R2 Tranactional - Pull rep - table data not transfering to subscriber...

0
0


Hi-

We are having issues replicating data(table data - not schema) from a pull subscription.

1.
Status..

--> Snapshot Agent Status:

[100%] A snapshot of 925 article(s) was generated.


--> Log Reader Agent Status:

3 transaction(s) with 3 command(s) were delivered.

40 transaction(s) with 45 command(s) were delivered.

--> Number of Commands waiting in Distrib DB waiting to be applied to this subscriber: 59579

 

2.
Error(s):

--> Unable to replicate a view or function because the referenced objects or columns are not present on the Subscriber. (Source: MSSQL_REPL, Error number: MSSQL_REPL20164)
Get help: http://help/MSSQL_REPL20164

--> Invalid object name 'dbo.mnuweb'. (Source: MSSQLServer, Error number: 208)
Get help: http://help/208

--> Unable to replicate a view or function because the referenced objects or columns are not present on the Subscriber. (Source: MSSQL_REPL, Error number: MSSQL_REPL)


--> The concurrent snapshot for publication 'MDN-PROD' is not available because it has not been fully generated or the Log Reader is not running to activate it.


--> Sync Status of Subscriber: Job 'MDNQLDB1-prod3-MDN-PROD-CDRQLDB1-prod3-40440C46-6DDF-43AB-85BD-9F7F84BA3CC4' started successfully.


--> The replication agent encountered and error and is set to restart within the job step retry interval....

--> From the SQL Server Log:
2013-08-14 15:17:56.69 spid757     Error: 14151, Severity: 18, State: 1.

2013-08-14 15:17:56.69 spid757     Replication-Replication Distribution Subsystem: agent CDRQLDB1-prod2-CDR-PROD-MDNQLDB1-21 failed. The subscription(s) have been marked inactive and must be reinitialized. NoSync subscriptions will need to be dropped and recreated.


Should we try push replication instead?
Thanks,

-P

FK when refreshing snapshot replication

0
0

Hi ,

I have 2 tables : parent and chiled with FK between them.

I didn't specify "NOT FOR REPLICATION" in the FK definition.

only the parent table is replicated.

When I refresh the snapshot, the data is truncated/deleted.

How does it work on the subscriber ? Since there is a moment where the parent table is empty.


Regards, Asi Pesa

Setting up replication for large database

0
0

hello,

We are looking to set-up replication for our main database and was after some advice on what might and might not work. We are using SQL Server 2008 R2 standard.

The database is around 130gig in size and the main data table has around 600million rows.  This table has many changes in both updated and additions (I would guess up to 200k updated/additions a day).  It is expected that the database will continue to grow more rapidly in the future.

We have a remote site that we want to replicate to and our connection to the site is a site-to-site vpn with about a 4meg bandwidth.

The dream setup would be to put in place two-way replication where both databases are editable and I can choose to use either database.  The performance of the Master database could not afford to be significantly impacted while the secondary performance would not be as critical.  It would also be good if whatever setup is used could be later expanded to include additional target sites.

Based on the very little information that I have provided can some provide advice on 1. is this possible and 2.  what is the best technologies and setup that I would likely be used.


matvdl

Viewing all 4054 articles
Browse latest View live




Latest Images