How to Setup Mirroring in SQL Server 2016 - SQL Server 2016 DBA Tutorial

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • How to create or setup Mirroring in SQL Server 2016?
    What is Database Mirroring :
    As per Microsoft "Database mirroring is a solution for increasing the availability of a SQL Server database. Mirroring is implemented on a per-database basis and works only with databases that use the full recovery model."
    We will cover follow items in this video
    1) What is setup for Mirroring
    2) What is Principle, Witness and Mirror Server
    3) Prepare your Database by using full backup and Tran log backup before enabling Mirroring.
    How to setup Database Mirroring in SQL Server 2016
    How to create Database Mirroring in SQL Server 2016
    What is Database Mirroring in SQL Server
    Step by step Database Mirroring SQL Server Demo
    Link to scripts used in SQL Server / TSQL Tutorial Video
    Check out our website for Different SQL Server, MSBI tutorials and interview questions
    such as SQL Server Reporting Services(SSRS) Tutorial
    SQL Server Integration Services(SSIS) Tutorial
    SQL Server DBA Tutorial
    SQL Server 2016 DBA Tutorial
    SQL Server / TSQL Tutorial ( Beginner to Advance)
    www.techbrother...

Комментарии • 44

  • @sandrawatt
    @sandrawatt 5 лет назад +2

    Your video was helpful, but more importantly well organized and concise. No wasted time on a lot of rambling and repetition. Thank you!

    • @TechBrothersIT
      @TechBrothersIT  5 лет назад +1

      Thank you Sandra for support. Glad you liked our effort.

  • @Dafugcasimock
    @Dafugcasimock 3 года назад +1

    Clear, short, Straight to the point, thanks, very good video

  • @MrBrijendrakumar
    @MrBrijendrakumar 5 лет назад +6

    Dear Sir, when we configure sql server 2016 for mirroring we find the error:
    database cannot be opened. it is in the middle of a restore error no 927

  • @ferozsayyed474
    @ferozsayyed474 3 года назад +2

    Thank you so much sir for sharing this mirroring video nice explained no Waste of time

  • @mvparrales
    @mvparrales Год назад +1

    Really good video, very clear and helpful. Thanks a lot.

  • @vijaynarasimha4512
    @vijaynarasimha4512 7 лет назад

    Very much helpful. Thank you.
    Please keep them coming.

  • @L0nelyRogue
    @L0nelyRogue 5 лет назад +1

    Hello
    Despite usage of Witness Server, you did Manual Failover. Please explain if Automatic Failover wouldn't happen with your setup?
    Second, i was expecting that you would make Principal DB unavailable (drop,offline etc) and Auto Failover would happen. Would this happen?
    -- In 'thoughts'...

  • @FrancescoDiblasio
    @FrancescoDiblasio 6 лет назад

    Thank you! really a clear explaination!! Regards!

  • @lavi.Viraj_LaViraj
    @lavi.Viraj_LaViraj 5 лет назад +2

    nice video

  • @ahmedzidan1787
    @ahmedzidan1787 Год назад

    dear
    I would like to ask..when i start mirroring it gives an error says database can;t be opened..it's in middle of restore...any ideas?

  • @ImedSamti
    @ImedSamti 4 года назад +1

    Nice bro

  • @feridatown8184
    @feridatown8184 4 года назад +1

    Good job

  • @ClevergunsYT
    @ClevergunsYT 2 года назад

    can i use this on two different server with different ip address?

  • @quantumsoftware1424
    @quantumsoftware1424 5 лет назад

    hi. Assume that witness and principle instance reside at server 1. And mirror instance at server 2. When Server 1 failed, an application sql connection string is point to witness instance. Will the application able to access the mirror database at server 2?

  • @adithyasomayagi649
    @adithyasomayagi649 3 года назад

    I get 927 error, it says middle of restore. I m using 2016 Ssms

  • @1487atul
    @1487atul 4 года назад

    do we really need to have the shared drive between principal and mirror server for backup and restore database.
    or can we configure mirroring without having shared drive like just by transferring db backups from principal to mirror server and restore it on mirror.
    Is shared drive mandatory between these 2 servers for db backup and restore ?

  • @mukulbiswas1945
    @mukulbiswas1945 5 лет назад

    On principal server it showing port number 5022 and mirror server its showing 5033. Ho to fix the issue??

  • @radatann7701
    @radatann7701 6 лет назад

    Hi , I have some question to ask about instance database in sql server 2016.
    I want to do standby server but i am not sure which technology that i should do between Mirror and Replication.
    Do you have any suggestion for this point ?

  • @nexusroc8565
    @nexusroc8565 7 лет назад +1

    Hi Bro,
    Thank you for your sharing. But I restored my DB with No recovery. When I set up Mirroring. It showed 'Error 927. It's in the middle of a restore'.
    Why? Thanks!

    • @TechBrothersIT
      @TechBrothersIT  7 лет назад

      +Nexus Roc it must still be applying last transaction ( maybe its big tran) ... give it a little time and should be able to bing it online - you can check lsn number from msdb on target server (did you stop mirroring before try to bring it online?)

    • @nexusroc8565
      @nexusroc8565 7 лет назад

      Hi,
      Thank you for your reply. I re-installed SSMS 16.3.1 and it's working fine right now. Before this, I just upgraded my SSMS to 17.1. That's very ridiculous issue. Anyway, thanks again. I learn lots from your video.
      Have a great weekend!

  • @RajeevRanjan-pf3jy
    @RajeevRanjan-pf3jy 6 лет назад

    I am facing the issue while configuring the Database Mirroring like "TCP://......:5023" can not be reached or does not exist. check the network address name and that the ports for the local and remote endpoints are operational.(Microsoft SQL Server , Error : 1418). please suggest me what i have to do..please its very urgent.

    • @TechBrothersIT
      @TechBrothersIT  6 лет назад

      +Rajeev Ranjan can you please see on your source if end points are created? More likely they are missing - also check permissions of the service accounts on source and destinations.

    • @RajeevRanjan-pf3jy
      @RajeevRanjan-pf3jy 6 лет назад

      thanks a lot.. I resolved my error.. Can you check this video ruclips.net/video/Lsa3o8mgnuc/видео.html , its created by me for the database mirroring

    • @theih77
      @theih77 6 лет назад

      Check if TCP/IP is enabled in the SQL Server Configuration Manager \ SQL Native Client 11.0 Configuration \ Client Protocols

  • @ferrad1
    @ferrad1 7 лет назад

    Hi TechBROTHERSIT
    I would like to know how to create a new instance on SQL SERVER please
    Thank you

  • @vikashgupta2212
    @vikashgupta2212 4 года назад

    Dear sir when i configure sql server 2016 for mirroring we find the error:
    database cannot be opened. it is in the middle of a restore error no 927. Kindly help me.

    • @TechBrothersIT
      @TechBrothersIT  4 года назад

      This is SSMS issue, try using SSMS 2016 or 2014 for configuring it. I have not tried if latest SSMS causes that issue too.

    • @TechBrothersIT
      @TechBrothersIT  4 года назад

      Did it work?

  • @nexusroc8565
    @nexusroc8565 7 лет назад

    Hi Bro,
    I have another question about mirroring. DO you know why Microsoft will not support mirroring in the next version? After this, we just use Transaction Log Shipping to keep high availability?

    • @TechBrothersIT
      @TechBrothersIT  7 лет назад

      +Nexus Roc Availability Group is taking over - we really don't need mirroring if we use Ag feature - I suggest mirroring to my clients only if they are running 2008R2 and below - all other version I would suggest using AG for your DR scenarios.

    • @nexusroc8565
      @nexusroc8565 7 лет назад

      Thank you for your information! Have a nice weekend!

    • @nexusroc8565
      @nexusroc8565 7 лет назад

      Thank you. Have a nice weekend!

  • @adidbadba2478
    @adidbadba2478 5 лет назад

    Hai
    In 2016 SQL SERVER MIrroring Is Not Working.
    IS There any command To Run To work Mirroring..'

    • @TechBrothersIT
      @TechBrothersIT  5 лет назад

      What’s the error are you facing? Make sure you don’t use SSMS 2017 please use 2014 for this setup once done you can use latest ssms

  • @arcastillof
    @arcastillof 4 года назад

    I cannot start mirroring, I have error 927 the database is being restored

    • @TechBrothersIT
      @TechBrothersIT  4 года назад +1

      Please use SSMS 2016 or lower for the setup, you can manage using higher versions.

  • @JulioCruzcoach
    @JulioCruzcoach 6 лет назад

    I just tried this and i receive an error that the database cannot ne opened because it's in the middle of a restore! :( Why were you able to?

    • @TechBrothersIT
      @TechBrothersIT  6 лет назад

      Please do not use SSMS 2017 - use ssms 2014 or 2016 - you should be fine.

    • @TechBrothersIT
      @TechBrothersIT  6 лет назад

      It’s a big in SSMS 2017 if that’s what you are using - if you still face the error, please let me know.