SQL 2012 Transactional Replication Publisher is also AG Primary, AG fine, but Replication status continuously 'waiting for next Log backup'

Hi,
I have a SQL 2012 instance that hosts 3 databases that are publishers in (push) transactional replication to subscribers in other domains and are also primary in an Availability Group to other instances in the same domain.  The AG is healty (synchronized),
and replication is ok for 2 databases, but the third continuously shows the Publisher to Distributor history status as 'Replicated transactions are waiting for next Log backup or for mirroring to catch up.'
I have weekly full, nightly differential, and hourly log.  Those are running and I've tested restoring the publisher db from them into a test instance.  The option for sync_with_backup is 0.  I generated a new snapshot, no change (haven't
reinitialized, that will be last possible option as this is production).  When the log backups run, status will briefly change to 'Approximately (x) log records have been scanned in pass # ..., 0 of which were marked for replication' and some data
does replicate, but then status immediately changes back to the message about waiting for log backup.   We are only replicating tables (no views, sp's, etc).  All subscribers and AG secondaries are SQL 2012.  My db is less than 200
GB data. 
The jobs are continuously running and data updates are occurring on the primary.  The distribution database is on the same instance as the publishers.  Anyone have any ideas what could be happening? 
Thanks greatly!

Update - I resolved this. 
We had added a new asynchronous instance to the AG, but hadn't added the databases on the new node to the AG yet.  Conceptually it seems that adding the instance must have marked the logs and interferred with transactional replication on the
primary.  Once I added the databases to the AG on the secondary, then the replication status cleared on the primary and has remained cleared.  It is odd though that it only impacted one of the databases in the AG. 
cheers. 

Similar Messages

  • An album i purchased on my ipad that i also downloaded onto laptop, won't play and continually asks for authorization.. however it was authorized under the same apple id.. what do i do?

    an album i purchased on my ipad that i also downloaded onto laptop, won't play and continually asks for authorization.. however it was authorized under the same apple id.. what do i do?

    Hey megatony87,
    Thanks for the question. I understand you are having authorization issues with a purchased album on your computer. The following article may help to resolve your issue:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    Thanks,
    Matt M.

  • I have an iPhone 4S and a 2012 Honda CRV . The streaming BT music is fine but now suddenly it stopped displaying song info on the screen. It worked for about 10 days and then stopped. Any thoughts?

    I have an iPhone 4S and a 2012 Honda CRV . The streaming BT music is fine but now suddenly it stopped displaying song info on the screen. It worked for about 10 days and then stopped. Any thoughts?

    I think that we all know the answer to this one.
    Unfortunatley the device is concidered damaged by water. Apple can do an out of warranty repair which would cost $199. Generally they would just replace the device in this case for the $199.
    The alternative is to Purchase a new device.

  • SQL Server transaction log not truncating in simple recovery model mode

    The transaction log for our SQL Server database is no longer truncating when it gets to the restricted file growth limit set by the autogrowth settings. Previously - as expected - it would reach this limit and then truncate allowing further entries. Now
    it stays full and the application using it shuts down. We are using 2008 R2 and the recovery model is set to simple. Is this a known behaviour / fault which can be resolved ? Thanks.

    As already suggested check wait type in log_reuse_wait_desc from sys.databases and open transaction on the database.
    Also, check long running SPIDs are waiting for from sys.sysprocesses from wait_type column
    0 = Nothing - What it sounds like.. Shouldn't be waiting
    1 = Checkpoint - Waiting for a checkpoint to occur. This should happen and you should be fine - but there are some cases to look for here for later answers or edits.
    2 = Log backup - You are waiting for a log backup to occur. Either you have them scheduled and it will happen soon, or you have the first problem described here and you now know how to fix it
    3 = Active backup or restore - A backup or restore operation is running on the database
    4 = Active transaction - * There is an active transaction that needs to complete (either way -
    ROLLBACK or COMMIT) before the log can be backed up. This is the second reason described in this answer.
    5 = Database mirroring Either a mirror is getting behind or under some latency in a high performance mirroring situation or mirroring is paused for some reason
    6 = Replication - There can be issues with replication that would cause this - like a log reader agent not running, a database thinking it is marked for replication that no longer is and various other reasons. You can also see this reason and it is
    perfectly normal because you are looking at just the right time, just as transactions are being consumed by the log reader
    7 = Database snapshot creation You are creating a database snapshot, you'll see this if you look at just the right moment as a snapshot is being created
    8 = Log Scan I have yet to encounter an issue with this running along forever. If you look long enough and frequently enough you can see this happen, but it shouldn't be a cause of excessive transaction log growth, that I've seen.
    9 = An AlwaysOn Availability Groups secondary replica is applying transaction log records of this database to a corresponding secondary database
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • Error while configuring SQL 2012 DB as a Subscriber to a Oracle Publisher.

    When Configuring the Subscription for Oracle as a publisher, we receive the following error message.
    Msg 18757, Level 16, State 4, Procedure sp_replpostcmd, Line 1
    Unable to execute procedure. The database is not published. Execute the procedure in a database that is published for replication.
    The Subscriber was dropped.
    Same message is received if add the subscription through script or through SQL Management studio.
    However Oracle as a publisher has been configured successfully on a SQL 2012 DB server, Which is also the  Distribution server
    using the following links. 
    https://msdn.microsoft.com/en-us/library/ms151243(v=sql.110).aspx
    https://msdn.microsoft.com/en-us/library/ms152481(v=sql.110).aspx
    Note: Same Steps successfully work from a SQL 2008 Machine. i.e If i use SQL 2008 machine to configure Oracle as a Publisher and then subscribe to SQL 2012 machine as Subscriber.
    Is there a known issue? or some extra steps for 2012 that are not documented. Any help will be much appreciated.
    Client Oracle Version:9i
    Subscriber DB Version: SQL Server 2012 SP2
    Thanks and Regards, Ibrahim Mehdi. MCSE-DataPlatform

    Yes . The SQL Server 2012 is EE.
    As Informed before, The Oracle Publisher configuration is working successfully without any error. It is giving the error provided while trying to create a subscriber to this Oracle Publisher.
    Thanks and Regards, Ibrahim Mehdi. MCSE-DataPlatform

  • SQL server 2000 Procedure executing very slower in SQL 2012

     
    Hi,
    I've migrated my database from SQL 2000 to SQL 2012 using SQL2008 as intermediate. After migration, I found that one of my procedure is timing out from web site. When I run that procedure in Management Studio, it takes 42 seconds to display result. The same
    query is executed in 3 seconds in SQL 2000 version (in first run it takes 10 seconds in SQL 2000 and second run it took 3 seconds only). But in SQL 2012 second and third time also it took 36 seconds. Can anyone explain why the query takes longer time instead
    of less time after the upgrade? 
    Our prod deployment date is approaching so any quick help is appreciated. 
    Thanks in advance.

    You need to compare the execution plans of queries running in 2000 and 2012 to pin point why there is a difference.
    However, have you made sure that you have reindexed the indexes and updated the stats and you still see the difference? If not, please do that and test again.
    Could you post the execution plans?
    Also read this -
    http://blogs.msdn.com/b/psssql/archive/2015/01/30/frequently-used-knobs-to-tune-a-busy-sql-server.aspx
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • SQL 2012 AlwaysOn AG with 3 Nodes

    First, what would be the best option of quorum/quorum witness for my SQL 2012 AlwaysOn group?
    I have setup the following:
    SQL 2012 AlwaysOn with 3 nodes.
    1 primary
    2 secondaries - one of them is read-only (for reporting and backup)
    Dynamics CRM and Reporting DBs are running on them.
    How can I achieve the highest avalability and DR with my SQL? Do I even need to create the quorum witness? What kind of Quorum (majority nod with network share?)
    Second, Is it good idea to run the backup on that read-only node?  If I setup the maintenance plan on this 3rd read-only mode with full and transactional backups, I should be able to restore without any issues?
    Third, I have another DB (SharePoint) that needs to be moved over to this SQL AlwaysOn AG but wondering if I can restore it in the secondary node to utilize the unused resources.  Is that possible or not recommended?

    Are the replicas on the same network subnet? If they are, then, you already have a quorum with node majority (odd number of votes.) Since you are already paying for an additional license to run read-only workloads on your readable secondary, you can take
    backups on this replica. Full database backups are in COPY_ONLY mode but you can take regular log backups which will truncate the log on the primary replica. In theory, you will be able to restore the backups taken from your readable secondary but you should
    test (hence, why I mentioned "in theory.") I wouldn't move my SharePoint databases to this SQL Server Availability Group mainly because of the different requirements between the two - SharePoint and Dynamics CRM. MAXDOP =1, disabling index maintenance and
    statistics updates on SharePoint databases, etc. are just a few of them. Besides, I doubt that the recovery objectives and service level agreements between those two applications are the same within your organization.
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • SQL 2012 AlwaysOn discoveries broken in 6.4.1.0?

    It looks like version 6.4.1.0 of the SQL 2012 MP broke discovery of AlwaysOn (the AlwaysOn Seed). The old version had this for the registry key (note the bit in red, it's missing from the new one):
    SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.$Target/Property[Type="SQLServer!Microsoft.SQLServer.ServerRole"]/InstanceName$\MSSQLServer\HADR\HADR_Enabled
    And then this is 6.4.1.0:
    SOFTWARE\Microsoft\Microsoft SQL Server\$Target/Property[Type="SQLServer!Microsoft.SQLServer.DBEngine"]/InstanceID$\MSSQLServer\HADR\HADR_Enabled
    The discovery works fine for our management group that's using the old version, but it's not working for our MG using the new version. Is anyone else running into this?
    "Fear disturbs your concentration"

    Hi,
    SQL Server Management Pack version 6.4.0.0 improves performance of AlwaysOn discovery.
    Appendix: AlwaysOn Management Pack Contents
    http://technet.microsoft.com/en-us/library/dn456931.aspx
    Please ensure your Management Server with latest update installed. Also check if there is any related event.
    Niki Han
    TechNet Community Support

  • Lync Server Mirror using SQL 2012 Developer Edition in Test Environment

    I'm setting up a Lync Enterprise Frontend Pool in a Dev/Test environment using two SQL 2012 SP2 Developer Edition Servers. When I try and publish the topology and create the databases I am getting this error.
    System.MissingMethodException: Method not found: 'System.String Microsoft.SqlServer.Management.Smo.ExceptionTemplatesImpl.BackupToUrlNotSupported
    I have not been able to find any info on this error but it would appear the it has something to do with the fact these servers are developer edition. I was under the impression that developer edition included all features of the enterprise edition. Is that
    not true? Has anyone else seen this error when it attempts to create the mirror?
    Thanks
    Dave
    Dave Barker

    Hi Dave,
    Please refer to the official document, SQL 2012 SP2 Developer Edition is not listed in it.
    Click on the following links for more information.
    Database software support in Lync Server 2013
    http://technet.microsoft.com/en-us/library/gg398990.aspx
    Deploying SQL mirroring for Back End Server high availability in Lync Server 2013
    http://technet.microsoft.com/en-us/library/jj204992.aspx
    Best regards,
    Eric

  • Changing from full recovery model to simple in sql 2012 always on

    how do I change from a full recovery model to simple in an always on sql 2012 setup? When I try to change it it gave this error

    The physical size of the log file will not change unless you manually shrink the file.  A backup marks the log space as "reusable" internally.
    Please see:
    http://msdn.microsoft.com/en-us/library/ms365418.aspx

  • Not able to connect to Replicas in Always on in SQl 2012

    Hi, I am working on High availibility(always)in Sql 2012 and tried to connect to replicas through HAG wizaed but
    not able get coonection when I try to through BRowse for Server dialog box in SSMS.
    What should I do???
    srm_2010

    Did you enable AlwaysON Availability Groups on the other Servers? 
    more info: How to Set Up SQL Server 2012 AlwaysOn Availability Groups
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • How to monitor Log Backups for MS SQL Server

    Hello all.
    We are running Solution Manager 7.1 on SP Stack 10 and have downloaded the latest template content.
    When configuring the templates for DB monitoring, we noticed that although there is a metric that monitors the age of the last DB backup, there is no such metric to monitor the age of the last successful Log backup, or even a metric to alert us on a failed backup / log backup.
    Has any of you ever had to create a custom metric to monitor either the age of the latest successful log backup for MS SQL Server, or a custom metric to alert on failed backups / log backups?
    If yes, could you provide some instructions on how to create such a metric?
    Thank you in advance for your answers.
    Phevos

    Divyanshu, thank you for your answer.
    I had a similar idea to check the DB log file for failed log backups. The problem is that when I opened the log file from the dbacockpit, I found no errors/warnings for the days that our log backups did not run or failed. Here is a small part of that log to show you what I mean. In this example, the log backup was not running from 25th of July until the 28th of July when we fixed the log backups again, after receiving a disk space warning (log disk drive was almost full):
    The last successful log backup is mentioned in the log: "20140724091524    Backup    Log was backed up"
    Then as the days go by, there is no backup failure entries whatsoever to look for them in the log:
    20140725000023    spid18s    This instance of SQL Server has been using a process ID of 1304 since 5/27/2014 11:50:00 PM (local) 5/28/2014 6:50:00
    20140725000023    spid18s    AM (UTC). This is an informational message only; no user action is required.
    20140726000020    spid21s    This instance of SQL Server has been using a process ID of 1304 since 5/27/2014 11:50:00 PM (local) 5/28/2014 6:50:00
    20140726000020    spid21s    AM (UTC). This is an informational message only; no user action is required.
    20140727000023    spid22s    This instance of SQL Server has been using a process ID of 1304 since 5/27/2014 11:50:00 PM (local) 5/28/2014 6:50:00
    20140727000023    spid22s    AM (UTC). This is an informational message only; no user action is required.
    20140728000022    spid17s    This instance of SQL Server has been using a process ID of 1304 since 5/27/2014 11:50:00 PM (local) 5/28/2014 6:50:00
    20140728000022    spid17s    AM (UTC). This is an informational message only; no user action is required.
    Until finally on the 28th we restored the log backup functionality:
    20140728042814    Backup    Log was backed up. Database: XXX, creation date(time): 2010/12/22(16:45:29)
    So, I find it difficult to deduce an appropriate string to look for in the log, in order to generate an alert when my log backups are not working.
    Any suggestions? Am I looking at the wrong place perhaps?

  • SQL Server 2012 Transactional Replication with updateable subscriptioins

    Hi All,
    It is heard that Transactional Replication with Updateable Subscriptions
    is
    deprecated in SQL 2012 so it is not possible to configure through the wizards but
    we can still configure it by using T-SQL Script. Would you please share that script if possible to configure the same in SQL Server 2012. Thank You.
    Regards,
    Kalyan
    ----Learners Curiosity Never Ends----

    Thanks for the information,
    I understand that you have got the answer yourself and post it, Therefor I mark your answer. If this is still open question please inform us.
    [Personal Site] [Blog] [Facebook]

  • SQL Server Transactional replication, Oracle as Subcriber.

    Hi,
    I am Raja, I am new to SQL Server Replication(Non-SQL Subscriber). I have to configure SQL Server transactional replication from SQL Server database(Publisher) tables to Oracle(Subscriber) database in my development environment. I tried many times but I
    couldn't. Could you please any one send reference link or screen shots? I tried in google and youtube but I didn't get proper screen shots or video.
    Thanks,
    Raja

    Hi Raja,
    According to your description, when you want to configure an Oracle subscriber, you need to install and configure Oracle client networking software
    and the Oracle OLE DB provider on the SQL Server distributor. In addition, you also need to create a TNS name for the subscriber and a snapshot or transactional publication for non-SQL Server Subscribers.
    For more information, you can review the following articles about Oracle subscribers.
    http://technet.microsoft.com/en-us/library/ms151738.aspx
    http://technet.microsoft.com/en-us/library/ms151195.aspx
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • SQL 2005 to SQL 2012 Replication for SSRS

    I recently successfully implemented one-way log shipping from a production SQL 2005 database to a new SQL 2012 database in the hopes that I can use the 2012 database to run SSRS 2012 on it.
    Unfortunately, the 2012 database is kept offline since log shipping between two DIFFERENT SQL versions can only be done in a NO RECOVERY mode.  (Standby mode is NOT available which would make the SQL 2012 read only and therefore workable for SSRS
    2012.)
    Does anyone have any suggestions on if there is another method on how to achieve this?

    Yes, You can try replication. I hope you've latest service pack upgrade for SQL 2005.
    http://msdn.microsoft.com/en-us/library/ms143699.aspx
    BOL:-
    A Subscriber to a transactional publication can be any version within two versions of the Publisher version. For example: a SQL Server 2005 Publisher can have Subscribers running SQL Server 2005, SQL Server 2008 (including SQL Server 2008 R2), or SQL Server
    2012; and a SQL Server 2012 Publisher can have Subscribers running SQL Server 2005, SQL Server 2008 (including SQL Server 2008 R2), or SQL Server 2012.
    -Prashanth
    -Prashanth

Maybe you are looking for

  • Issue with Webparts while adding in Project Site

    Hi I am getting an error while adding web parts in project site page 2010. Below the steps Open project site --> site actions --> edit page --> click on Add webpart --> ProjectWebApp --> Project fields --> Add Please try and let me know is this possi

  • Epson NX420 wireless printing not working

    After upgrading to Yosemite, I noticed the printing capability on my NX420 was gone. I get communication errors and a prompt to download software; but after downing, a notice for error downloading. No updates show up via App store. I have downloaded

  • Itunes is currently unavailable

    My Apple TV 3 has been playing up for a few days, possibly since the latest update - not sure. Basically, i can no longer play any purchased TV/movies or iTunes Match music via the Apple TV (still fine via my other Apple devices - Mac, iPad 2, iPhone

  • Import picture in iMovie video?

    I am shooting an interview in iMovie.  While people are talking I want to superimpose (whole screen) a picture for about 3-4 minutes.  How can I do this?  When I tried to drag a picture into/over a clip it was rejected. Any advice would be much appre

  • Acrobat XI permet il de bloquer les impressions ?

    acrobat XI permet il de bloquer les impressions ?