SQL 2012 Database Mirroring Issue is stalling

hi All, 
I have a SQL 2012 Enterprise Primary and DR SQL Clusters. 
I have a 500 GB TDE Enabled Using HSM SQL DB which I have mirrored across to DR. 
I am noticing that my Logs are shipping to DR, but the Unrestored Log size is huge and My restore rate is about 0 - 80KB/Sec. This is Causing the unrestored
Log to grow on the DR side. 
I also notice at times my Unsent Log is also getting big after any DB Maintenance activities (such as rebuild of indexes). 
I have a dedicated connection between my datacenters and the traffic thruput is quite reasonable and I am able to copy out a 2GB File across within a few
minutes. I see no packet drops within my links. 
How do I ensure that my unsent logs are copied out and also increase my restore rate in DR side. 
Any help / Suggestions will be much appreciated.   
Regards 
Aravin. 

You need to limit the amount of reindexing you do on your primary/principal as it generates a lot of logs which slows down mirroring and log shipping.
looking for a book on SQL Server 2008 Administration?
http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

Similar Messages

  • Use a SQL 2012 database server with Reporting Services 2008?

    Hello, we have a SQL Server 2008 R2 Reporting Services Standard server with the reporting databases running on a SQL Server 2008 Standard database server. I would like to upgrade the database server to SQL Server 2012 before I upgrade the reporting server.
    Can I run SQL Server 2008 R2 Reporting Services against a 2008-version database running on a SQL 2012 database server? Thanks for your help.

     
    Hi Nicole
    Thanks for your posting.
    Are you asking if we can connect from SSRS 2008 r2 to a database sitting on SQL Server 2012.  Am I right?, please ignore me if I misunderstood your question. If that is your question
    then I think you will be able to using BIDS 2008, I have created A database on SQL Server 2012 and I use that database table inside  my SSRS 2008 R2 dataset. I can even think that you can use a database of compatibility level of 2012(110) as well
    Many thanks
    Syed Qazafi Anjum

  • OCS 2007 R2 with SQL 2005 database mirroring failover?

    We have OCS 2007 Enterprise Edition installed fine and with the databases mirrored to a backup server/location.  I'm testing our environment for a potential disaster, including losing our primary SQL server (SQL 2005).  I fail the databases over and update the backend pool to the backup SQL server name, but we cannot connect via Office Communicator and I see this error on the OCS server:
    OCS User Services, error category 1006, event id 30962:
    Connection to back-end database succeeded, but failed to execute registration stored procedure on the back-end. This error should not occur under normal operating conditions. Contact product support.
    Back-end Server: databkp Database: rtc Sql native error: 515 Connection string of:
    driver={SQL Native Client};Trusted_Connection=yes;AutoTranslate=no;server=databkp;database=rtc;
    Cause: Possible issues with back-end database.
    Resolution:
    Ensure the back-end is functioning correctly.
    Can anyone shed some light on this SQL 515 error?  Thanks in advance!
    -Erik

    We're having a similar issue but with error number 601. I've tried a million different things aside from restoring the database, which may be next. I tried editing the procedure and I *think* I edited the right lines 77 and 105 for me. Changed:
        delete dbo.DbConfigDateTime
          from @DbTime as t
         where dbo.DbConfigDateTime.Name = t.ValueName
           and t.StoredDbName = N'rtc'
           and t.Value is null
    to:
        delete dbo.DbConfigDateTime
          from @DbTime as t
         where dbo.DbConfigDateTime.Name = t.ValueName
           and t.StoredDbName = N'rtc'
           and t.Value is not null
    and 
        delete rtcdyn.dbo.DbConfigDateTime
        from @DbTime as t
        where rtcdyn.dbo.DbConfigDateTime.Name = t.ValueName
        and t.StoredDbName = N'rtcdyn'
        and t.Value is null
    to:
        delete rtcdyn.dbo.DbConfigDateTime
        from @DbTime as t
        where rtcdyn.dbo.DbConfigDateTime.Name = t.ValueName
        and t.StoredDbName = N'rtcdyn'
        and t.Value is not null
    Not sure if that's where the modification is supposed to go. Any clarity here? Anyone else get a 601 error?

  • SQL 2012 Database Availability Group - Force Automatic Failover

    Hi All,
    I'd appreciate some help in understanding the following scenario in my test environment.
    I have created a DAG with 2 replica servers (both of which are HyperV VM's running W2012 Std).
    From a client PC in my test lab, I can connect to the virtual listener of my DAG and confirm via the "select @@servername" command that I am connecting to the primary replica server.
    Using the Failover Wizard, I can easily move to primary instance between my 2 nodes and the command above confirms that the primary replica server has changed. So far so good.
    What I wanted to test, was what would happen to my DAG in the event of a complete loss of power to the server that was acting as the primary replica server. At first, I thought I would stop the SQL Server service on the primary server, but this did not result
    in my DAG failing over to the secondary replica. I have found out that the only way I can do this is by effectively shutting down the primary server in a controlled manner.
    Is there any reason why either stopping the SQL Server service on the primary replica, or indeed forcing a power off of the primary replica does not result in the DAG failing over to the secondary replica?
    Thanks,
    Bob

    Hi,
    I would verify if Database Availability Group means AlwaysOn Availability Group.
    How did you set the FailureConditionLevel?
    Whether the diagnostic data and health information returned by sp_server_diagnostics warrants an automatic failover depends on the failure-condition level of the availability group. The failure-condition level specifies what failure conditions
    trigger an automatic failover. There are five failure-condition levels, which range from the least restrictive (level one) to the most restrictive (level five). For details about failure-conditions level, see:
    http://msdn.microsoft.com/en-us/library/hh710061.aspx#FClevel
    There are two useful articles may be helpful:
    SQL 2012 AlwaysOn Availability groups Automatic Failover doesn’t occur or does it – A look at the logs
    http://blogs.msdn.com/b/sql_pfe_blog/archive/2013/04/08/sql-2012-alwayson-availability-groups-automatic-failover-doesn-t-occur-or-does-it-a-look-at-the-logs.aspx
    SQL Server 2012 AlwaysOn – Part 7 – Details behind an AlwaysOn Availability Group
    http://blogs.msdn.com/b/saponsqlserver/archive/2012/04/24/sql-server-2012-alwayson-part-7-details-behind-an-alwayson-availability-group.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support
    Hi,
    Thanks for the reply.
    It's an AlwaysOn Availability Group.
    In my test lab, I have changed the quorum configuration to a file share witness and that has allowed an automatic failover when I turn the primary replica server off (rather than power it off).
    I'll take a look at the links you provided.
    Regards,
    Bob

  • SQL 2012 database behaves differently with a unique index and ignore_dup_key = on when inserting data. It works on SQL 2008 db

    If you have a table with a unique index and ignore_dup_key = on and you INSERT rows into that table with an ORDER BY clause (because you want to control which of the duplicate
    key rows gets inserted),  the wrong row gets inserted in SQL2012.  It works correctly in SQL 2008.
    We have recently migrated  a database from SQL 2008 to SQL 2012.  We do have few other dbs which are in compatability mode 100.  The above operation works fine
    in SQL 2008 dbs but not SQL 2012.
    I've even tried applying the latest patch for SQL 2012 SP2 with CU2. Still the problem exists.  I'm going to call MS support, but want to know if anyone has come across this problem ?

    The MS documentation doesn't guarantee that the first row of the duplicates will always be inserted and the next duplicate row(s) get(s) ignored. Where did you find it in the MS documentation? I think you were just lucky that it was always inserting the
    first row in SQL 2008 (and ignoring the rest of the duplicates) - I don't think this is guaranteed
    Satish Kartan http://www.sqlfood.com/

  • Backup and Restore of DQS (Data Quality Service SQL 2012) Databases

    We are currently using DPM 2010 running on Server 2008 R2 as our backup solution.  We will soon be leveraging the Data Quality Services in SQL 2012 along with the Master Data Service.  
    In the SQL 2012 documentation from Microsoft it states, “The backup and restore operations of the DQS databases must be synchronized.” 
    Otherwise the restored Data Quality Server will not be functional.  Currently I believe that DPM will run serialized backups of databases from one SQL server. 
    I was hoping someone could point me towards some documentation for backing up DQS with DPM. 
    Is anybody currently doing this?  If so have you been successful restoring?

    LogicalName cant be same for mdf and ldf. verify again with FILELISTONLY. Also you have put wrong logical name 
    MOVE N'OriginalDB' TO N'D:\sql data\TargetDB.mdf'
    Please paste the output of
    RESTORE FILELISTONLY FROM DISK = 'D:\backup.bak'

  • Secure login to sql 2012 database for webusers

    We build up a new website in .net mvc 4.0 on a w2012 server with MSSQL 2012 database.
    We use windows autentification and normal anonymous access through NT AUTHORITY\IUSR who is also a login in the database.
    But we make extra login possibility for users who are registered and they can insert and modify data in some tables in the database. And I'am afraid of giving NT AUTHORITY\IUSR insert and update for some column in tables.
    I think of set up a new login for the database. Run a new connection string on login and set up special permission for that extra user on the database, set up a new role and let the new user become member, but also let the user become a member of the ordinary
    user(roles) in the database.
    Have anyone any idea what is the best practice here and the most secure way to do it? 
    Any links for other resources about this topic?
    Or perhaps my fear for using NT AUTHORITY\IUSR is groundless
    And perhaps someone has links to resources for using SQL server as a backendserver for websites. 
    Knut from Norway!

    I don't know much about web servers, which may explain your alternatives entirely.
    But, if you use the same connection string for reads that you do for updates, then you must control all permission for writes in the web app. And you must be sure that you only use parameterised SQL or stored procedures, so that there is no risk for SQL
    injection.
    If you give special logins for the users with read access, they would need their own accounts in SQL Server. If this is an intranet site, the web server may be able to impersonate these users and then connect to SQL Server. If that does not work out, you
    would have to create SQL logins for these.
    Obviously, this requires more administration, but it is also more secure, because you are adding a line of defence. Even if your application is free from SQL injection vulnerabilities today, some new badly educated kid on the block could open a hole two
    years later.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • SQL 2012 database master key

    Hi All ,
    I have some issue to create database master key in SQL server 2012.
    I have typed this command below:
    USE master 
    CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'passwordbypolicy'
    This is the error I got:
    Msg 33094, Level 16, State 1, Line 2
    An error occurred during Service Master Key decryption
    Can somebody help.
    Thanks ,

    Below is the link for it:
    http://msdn.microsoft.com/en-us/library/ms174382.aspx
    Please be careful on your password part as there are some norm attached to it.
    Also if it is giving you any more issues better clean your instance and try again. In some cases it doesn't  work as we might forget something to remove completely.
    Santosh Singh

  • Update sql 2012 database from access 2003

    Hi, all,
    I have a new sql server 2012 and has already created a database same as the one from access 2003. 
    Can someone give me a details or links how to update sql server 2012 through SSIS package? I know I could use import wizard but it is a customized version of SSIS. And I want to build my own project using SSIS package.
    source: access 2003 on old sql server 2005
    destination: sql server 2012.
    Thanks.

    you can try this
    http://www.mssqltips.com/sqlservertip/2484/import-data-from-microsoft-access-to-sql-server/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to convert sql 2012 database to 2008

    i have 2012 sql database file (.mdf ans .ldf ) how to connect same database in 2008 sql server . please help me its very urgent 

    i have 2012 sql database file (.mdf ans .ldf ) how to connect same database in 2008 sql server . please help me its very urgent 
    Hi,
    You cannot attach or restore(if you have a backup) msf and ldf file of SQL Server 2012 to SQL server 2008 its not allowed it will flash error. If its urgent you need to manually script out table definition with constraints and then create same table in SS
    2012 and then transfer data using import/export wizard
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles

  • SQL 2012 database stuck in Recovery Pending status

    Hey all.  Thanks in advance to anybody that can please help me.  I have a SQL cluster which ran out of disk the other day.  I threw plenty more disk at the SAN.  However, 1 of the databases came back with Recovery Pending and has been
    over 24 hours.  I have tried to backup the database with no success.  I don't have a clean backup from the day it occured so would have a good amount of work missing.
    Running a dbcc check returns the following:
    Msg 945, Level 14, State 2, Line 1
    Database 'sqldb' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.
    I have not tried a dbcc check with REPAIR_ALLOW_DATA_LOSS as there seems to be a high risk of losing whatever was going on.  Does anybody have an idea of how I can get the db back online?

    Just a note... the database is not in Suspect mode, it is in Recovery mode.  If there is a transaction in process, attaching and reattaching may or may not trigger the transaction to complete.    The answer would be different if the database
    were in suspect mode.  The fact that it is now in CHECKPOINT shows that there is an incomplete transaction.  Once back online, a backup can occur and the CHECKPOINT can resolve.
    http://support.microsoft.com/kb/110139?wa=wsignin1.0
    Seems to me this is more like a case where the database is in log ship mode.  In that case, the solution is relatively simple (this is not what needs to happen... it simulates what has happened):
    RESTORE DATABASE MyDB WITH RECOVERY
    USE master
    ALTER DATABASE MyDB SET OFFLINE WITH ROLLBACK IMMEDIATE
    ALTER DATABASE MyDB SET ONLINE
    RESTORE DATABASE MyDB WITH RECOVERY
    I don't believe you want to rollback anything though.  As you state above, the big trick is to bring it online.
    I think you can get it into Single User Mode and then from there, restore the diffs and the logs after backing up the tail, then restore the tail and put it back into multi-user mode.  Given the difference in opinion here, I am feeling a little gunshy.
    RESTORE DATABASE [MyDB]
    FROM DISK = 'c:\MyDB.BAK'
    WITH MOVE 'MyDB_Data' TO 'c:\data\MyDB.mdf',
    MOVE 'MyDB_Log' TO 'c:\data\MyDB_log.ldf' 
    R, J

  • BIDS or SQL data Tools for SQL 2012 SP1 database

    I want to start customising reports from my Win 7 workstations. The SCCM server is SQL 2012 SP1
    Do I need to install SQL Server Data Tools onto the workstation or can you still use BIDS (Visual Studio) from SQL 2008 media
    Also I have saved some custom report .RDL files from previous assignments. Can I convert these to point to this site's database for use in SQL 2012 ?
    Ian Burnell, London (UK)

    Thanks Garth - so if I install 2008 BIDS on my W7 workstation then I will be able to connect to the CM2012/SQL 2012 database?
    Yes you will be able to do that. I do it all the time for SQL 2005 or 2008 to SQL 2012 and SQL 2014. :-)
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Did SQL 2012 supported all commands of SQL Server 2008?

    Hello All,
    We are using SQL Server 2008. We have created very huge system. It is working fine but now we want to upgrade and need to use SQL Server 2012. Any issue if we move all data base with SQL, DDL, DML from SQL 2008 to SQL 2012?
    Any one face such issue, which we can face or need to take care?
    Thanks,
    Sandeep

    As per my knowledge I am aware of few of  the below..
    Deprecated
        SET ROWCOUNT
        SQL Server Database Mirroring
        Specifying the SQLOLEDB provider for linked servers.
        Not ending Transact-SQL statements with a semicolon.
        Specifying table hints without using the WITH keyword.
        Specifying NOLOCK or READUNCOMMITTED in the FROM clause of an UPDATE or DELETE statement.
        SQL Trace stored procedures, functions, and catalog views.
        sp_dbcmptlevel
        sp_attach_db & sp_attach_single_file_db
        c2 audit option
        default trace enabled option
        sp_addlogin / sp_droplogin / sp_adduser / sp_dropuser / sp_grantdbaccess / sp_revokedbaccess / sp_denylogin
    Discontinued
        fastfirstrow option
        compatibility level 80
        sp_dboption
        AWE
    For more details, please refer to this detailed document (including 4 topics) -
    http://msdn.microsoft.com/en-us/library/ms143532.aspx
    Deprecated Database Engine Features in SQL Server 2012
    http://technet.microsoft.com/en-us/library/ms143729%28v=sql.110%29.aspx
    http://www.bigator.com/2012/02/07/interesting-changes-in-database-design-of-sql-server-2012/
    http://msdn.microsoft.com/en-us/library/ms144262.aspx
    Raju Rasagounder Sr MSSQL DBA

  • SQL 2012 Databse Migration to Windows Azure SQLDatabase

    Hello Experts
    Please advise on the following issues, thank you.
    If we want to migrate a SQL 2012 database to windows Azure SQL Database by implementing the Contained database features, can you pleas explain the procedures or steps, thank you for your help as always.
    Regards

    Hi,
    Here are some links on deploying database to SQL Azure.
    How to Deploy a Database to Azure
    http://azure.microsoft.com/en-us/documentation/articles/sql-database-deploy/
    How to Migrate an On-Premises SQL Server 2012 Database to Windows Azure SQL Database
    http://blogs.msdn.com/b/brunoterkaly/archive/2013/09/26/migrating-an-on-premises-sql-server-2012-database-to-windows-azure-sql-database.aspx
    Using the Deploy Database to SQL Azure Wizard in SQL Server Management Studio to move to the Cloud
    http://www.mssqltips.com/sqlservertip/3035/using-the-deploy-database-to-sql-azure-wizard-in-sql-server-management-studio-to-move-to-the-cloud/
    Thanks.
    Tracy Cai
    TechNet Community Support

  • MVC 4 and SQL 2012 delete not working

    I have developed and MVC 4 application in VS 2012 with an SQL 2012 database.  On my development machine everything works as expected, but when I deploy to a Windows Server 2008 R2 64-bit server with Microsoft SQL Server 2012 Express (64-bit), I
    can create records, but I cannot modify or delete them.
    Where do I start in troubleshooting this?
    Thank you,
    Dale

    Hi Dale,
    This forum is to discuss:
    Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
    Since this issue is related to ASP.net web app, I suggest you post this issue
    http://forums.asp.net where asp.net experts live in, and there you would get dedicated support. Thanks for your understanding.
    Best Regards,
    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Maybe you are looking for

  • Silver Mini shows up Green in itunes...

    It's likely that this iPod has a different logic board than originally came with it. Is it possible to make it show up Silver in itunes instead of green?

  • How could I use FAVOURITES imported from Internet Explorer

    I use Google Chrome. However I get adverts, which obstruct my work. As I cannot get rid of these adverts, I want to try Mozilla Firefox. I have imported favorites from Internet Explorer but I do not know how to use them. I do not see any button or ic

  • Video Playback Issues in iTunes, MPEG4 vs h.264

    Has anyone had a problem playing MPEG4 videos in iTunes? I'm not sure when it started, but I first noticed it a month or more ago with the commandn mpeg4 podcast feed. I switched to the h.264 feed and it's great. The audio if fine, but the video is c

  • Correction: Skype on Nokia E5

    Mistake in my previous posting: should read E5 in stead of C5 of course. Real message is thus: I wanted to install Skype on my mobile Nokia E5, introduced my number on the website, clicked on the SMS link I received, downloaded the program and wanted

  • I have really messed up ipad

    As reported earlier I tried to update my husband's ipad 1 to a higher level software.  He did not know his apple id so I used my apple id to update software via my MacBook Pro.  After the update we noted that not all items were accessible (only a thi