<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mirror &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/mirror/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Fri, 03 Jun 2016 16:55:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>SQL Server: Database Mirroring Interview Questions and Answers (Day-5)</title>
		<link>https://www.dbrnd.com/2016/06/sql-server-database-mirroring-interview-questions-and-answers-day-5/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 03 Jun 2016 16:54:34 +0000</pubDate>
				<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[mirror]]></category>
		<category><![CDATA[mirroring]]></category>
		<category><![CDATA[principal]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[witness]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3003</guid>

					<description><![CDATA[Can we configure mirroring between Standard Edition &#38; Enterprise Edition or Vice Versa? Nope, its not possible, both principal and mirror should have the same edition. What are Quorum types in Mirroring? A Quorum is the relationship between the Witness,Principal and the Mirror.Depending on the mode of operation it is divided into 3. Full Quorum: [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-5%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-5%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-5%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-5%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-5%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-5%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-5%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-5%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-5%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-5%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-5%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-5%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-5%2F&#038;title=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-5%29" data-a2a-url="https://www.dbrnd.com/2016/06/sql-server-database-mirroring-interview-questions-and-answers-day-5/" data-a2a-title="SQL Server: Database Mirroring Interview Questions and Answers (Day-5)"></a></p><p><strong>Can we configure mirroring between Standard Edition &amp; Enterprise Edition or Vice Versa?</strong></p>
<blockquote><p>Nope, its not possible, both principal and mirror should have the same edition.</p></blockquote>
<p><strong>What are Quorum types in Mirroring?</strong></p>
<blockquote><p>A Quorum is the relationship between the Witness,Principal and the Mirror.Depending on the mode of operation it is divided into 3.</p>
<p>Full Quorum: This is when all 3 Witness,Principal and the Mirror can communicate with each other.Since witness is present automatic failover occurs.</p>
<p>Quorum: This state exist if the Witness and either partner can communicate with it.</p>
<p>Partner-to-Partner: When only the Principal and Mirror can communicate with each other.</p></blockquote>
<p><strong>Can we upgrade SQL while mirror is configured? (<a href="https://technet.microsoft.com/en-IN/library/bb677181(v=sql.110).aspx" target="_blank">More details</a>)</strong></p>
<blockquote><p>When upgrading server instances from SQL Server 2005 or SQL Server 2008 to SQL Server 2012, you can reduce downtime for each mirrored database to only a single manual failover by performing a sequential upgrade, known as a rolling upgrade.</p>
<p>A rolling upgrade is a multi-stage process that in its simplest form involves upgrading the server instance that is currently acting as the mirror server in a mirroring session, then manually failing over the mirrored database, upgrading the former principal server, and resuming mirroring.</p></blockquote>
<p><strong>Can Log Shipping and mirroring configure together?</strong></p>
<blockquote><p>Yes we can combine both together, <a href="https://technet.microsoft.com/en-us/library/ms187016.aspx" target="_blank">please visit this official article for more details.</a></p></blockquote>
<p><strong>Does mirroring support FILESTREAM file group?</strong></p>
<blockquote><p>No:</p>
<p>Database mirroring does not support FILESTREAM. A FILESTREAM filegroup cannot be created on the principal server. Database mirroring cannot be configured for a database that contains FILESTREAM filegroups.</p></blockquote>
<p><strong>Does mirroring support cross database transaction or distributed transaction?</strong></p>
<blockquote><p>No:</p>
<p>Database mirroring is not supported with either cross-database transactions or distributed transactions. This is because transaction atomicity/integrity cannot be guaranteed.</p></blockquote>
<p><strong>During the mirroring session, can we increase the disk size of primary database?</strong></p>
<blockquote><p>Yes, You can increase the size of a disk.</p></blockquote>
<p><strong>Can we have a different collation setting on both the database?</strong></p>
<blockquote><p>No, It wouldn&#8217;t work.</p></blockquote>
<p><strong>T-SQL Script to enable mirroring.</strong></p><pre class="crayon-plain-tag">ALTER DATABASE [AdventureWorks] SET PARTNER = N‘TCP://databasemirror.adatum.com:5022';</pre><p>
<strong>Specify the partner from the principal server:</strong></p><pre class="crayon-plain-tag">ALTER DATABASE [AdventureWorks] SET PARTNER = N‘TCP://databasemaster.adatum.com:5022';</pre><p>
<strong>T-SQL Script to check associate ports with DB Mirroring.</strong></p><pre class="crayon-plain-tag">SELECT type_desc, port FROM sys.tcp_endpoints;</pre><p>
<strong>T-SQL Script to check the state of the DB Mirroring.</strong></p><pre class="crayon-plain-tag">SELECT state_desc FROM sys.database_mirroring_endpoints</pre><p>
<strong>T-SQL Script check the service account connect permission on the DB Mirror endpoints.</strong></p><pre class="crayon-plain-tag">SELECT 
	EndPnt.name
	,SvrPerm.STATE
	,CONVERT(nvarchar(38), suser_name(SvrPerm.grantor_principal_id)) AS GRANTOR
	,SvrPerm.TYPE AS PERMISSION
	,CONVERT(nvarchar(46),suser_name(SvrPerm.grantee_principal_id)) AS GRANTEE
FROM sys.server_permissions SvrPerm, sys.endpoints EndPnt
WHERE SvrPerm.major_id = EndPnt.endpoint_id
ORDER BY Permission, grantor, grantee;
GO</pre><p>
<strong>T-SQL Script to check the DB Mirror timeout and resetting the DB Mirror timeout.</strong></p><pre class="crayon-plain-tag">SELECT mirroring_connection_timeout
FROM sys.database_mirroring;</pre><p>
<hr />
<p><strong><a href=". https://blogs.msdn.microsoft.com/sqljourney/2012/07/04/the-most-interesting-issue-in-db-mirroring-you-will-ever-see/" target="_blank">The most interesting issue in DB Mirroring you will ever see.</a></strong></p>
<hr />
<p><strong>Before &amp; After configuration of Database Mirroring , What should be our checklists?</strong></p>
<ul>
<li>The principal database and the mirror database should be on separate physical hardware, and ideally, in different physical locations.</li>
<li>The witness server should be on separate physical hardware, and be on a separate network (best if at a third location).</li>
<li>Initial database mirroring setup should be done during less busy times, as the setup process can negatively affect performance of the production database being mirrored.</li>
<li>Use high availability mode whenever possible, and high performance mode only when required.</li>
<li>While a fast connection is not required between mirrored servers, the faster the connection, and the better quality the connection, the better.</li>
<li>You will want to optimize the performance of the mirrored database as much as possible to reduce the overhead caused by the mirroring process itself.</li>
<li>Thoroughly test database mirroring before putting it into production.</li>
<li>Monitor database mirroring daily to ensure that it is working properly, and is meeting performance goals.</li>
<li>Develop a formal operational and recovery procedure to support mirroring. Periodically test the failover process to ensure that it works.</li>
</ul>
<hr />
<p><strong><a href=". https://www.mssqltips.com/sqlservertip/2685/how-to-move-database-files-of-a-mirrored-sql-server-database/" target="_blank">How to move database files of a Mirrored SQL Server Database?</a></strong></p>
<hr />
<p><strong>What are your steps to apply a service pack or patch to Mirrored SQL Server Databases?</strong></p>
<ul>
<li>Step 1: Always backup all system and user databases before applying patches.</li>
<li>Step 2: Remote Desktop into the &#8220;Mirror&#8221; server (SSQL2 in our example) and download/copy the patch to the server.</li>
<li>Step 3: Stop all SQL Services on the &#8220;Mirror&#8221; server.</li>
<li>Step 4: Run the patch on the &#8220;Mirror&#8221; server.</li>
<li>Step 5: Once the patch is complete, reboot the &#8220;Mirror&#8221; server.</li>
<li>Step 6 (optional): If your database mirroring is set to asynchronous (High Performance mode), we will need to synchronize the databases first.</li>
<li>Step 7: The databases might change to &#8220;synchronizing&#8221; while the transactions catch up.</li>
<li>Step 8 (optional):Once the failover has taken place and all the databases have switched roles we can set the operating mode back to asynchronous.</li>
<li>Step 9: Remote Desktop into the &#8220;new&#8221; &#8220;Mirror&#8221; server (SSQL1 in our example) and download/copy the patch to the server.</li>
<li>Step 10: Stop all SQL Services.</li>
<li>Step 11: Run the patch on the server.</li>
<li>Step 12: Once the patch is complete, reboot the server (SSQL1).</li>
<li>Step 13: Upon reboot and login, make sure all databases come online clean and synchronized.</li>
<li>Step 14: You now have two choices, leave the databases alone and leave SSQL2 as the principal and SSQL1 as the mirror or you can fail back to return the environment back to how it was from the beginning.</li>
<li><a href="https://www.mssqltips.com/sqlservertip/2701/steps-to-apply-a-service-pack-or-patch-to-mirrored-sql-server-databases/" target="_blank">More Details</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server: Database Mirroring Interview Questions and Answers (Day-3)</title>
		<link>https://www.dbrnd.com/2016/06/sql-server-database-mirroring-interview-questions-and-answers-day-3/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 01 Jun 2016 18:44:29 +0000</pubDate>
				<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[high protection mode]]></category>
		<category><![CDATA[limitation]]></category>
		<category><![CDATA[mirror]]></category>
		<category><![CDATA[mirroring]]></category>
		<category><![CDATA[principal]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[witness]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2996</guid>

					<description><![CDATA[What are the basic steps to configure a Database Mirroring? Configuring security and communication between instances. Configuring endpoint. Creating logins for other servers service accounts. Grant connect permission to this logins on endpoints. Create mirror database by taking full and Transaction Log backup from principle server and restore it in mirror server with NORECOVERY. Establish [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-3%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-3%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F06%2Fsql-server-database-mirroring-interview-questions-and-answers-day-3%2F&#038;title=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-3%29" data-a2a-url="https://www.dbrnd.com/2016/06/sql-server-database-mirroring-interview-questions-and-answers-day-3/" data-a2a-title="SQL Server: Database Mirroring Interview Questions and Answers (Day-3)"></a></p><p><strong>What are the basic steps to configure a Database Mirroring?</strong></p>
<ul>
<li>Configuring security and communication between instances.</li>
<li>Configuring endpoint.</li>
<li>Creating logins for other servers service accounts.</li>
<li>Grant connect permission to this logins on endpoints.</li>
<li>Create mirror database by taking full and Transaction Log backup from principle server and restore it in mirror server with NORECOVERY.</li>
<li>Establish mirroring session using ALTER DATABASE command.</li>
</ul>
<p><strong>What are the important performance monitor counters for Database Mirroring?</strong></p>
<blockquote><p><strong>For Principal server:</strong></p>
<ul>
<li>Log Bytes Sent/sec: Number of bytes of the log sent to the mirror per second.</li>
<li>Log Send Queue KB: Total kilobytes of the log that have not yet been sent to the mirror server.</li>
<li>Transaction Delay: Delay (in milliseconds) in waiting for commit acknowledgement from the mirror.</li>
<li>Log Bytes Flushed/sec: The rate at which log records are written to the disk.</li>
<li>Disk Write Bytes/sec: The rate at which the disk is written to.</li>
</ul>
<p><strong>For Mirror Server:</strong></p>
<ul>
<li>Redo Bytes/sec: Number of bytes of the transaction log applied on the mirror database per second.</li>
<li>Redo Queue KB: Total kilobytes of hardened log that remain to be applied to the mirror database to roll it forward.</li>
</ul>
</blockquote>
<p><strong>T-SQL Script to find basic information about the instances which are involved in Database Mirroring.</strong></p><pre class="crayon-plain-tag">SELECT
	DB_NAME(database_id) AS 'DatabaseName'
	, mirroring_role_desc
	, mirroring_safety_level_desc
	, mirroring_state_desc
	, mirroring_safety_sequence
	, mirroring_role_sequence
	, mirroring_partner_instance
	, mirroring_witness_name
	, mirroring_witness_state_desc
	, mirroring_failover_lsn
FROM sys.database_mirroring
WHERE mirroring_guid IS NOT NULL;</pre><p>
<strong>T-SQL Script to find information about the witness server.</strong></p><pre class="crayon-plain-tag">SELECT
	Database_name
	, safety_level_desc
	, safety_sequence_number
	, role_sequence_number
	, is_suspended
	, is_suspended_sequence_number
	, principal_server_name
	, mirror_server_name
FROM sys.database_mirroring_witnesses;</pre><p>
<strong>What are the limitations of Database Mirroring?</strong></p>
<ul>
<li>Limited number of databases can be mirrored per SQL instance.</li>
<li>Mirrored database cannot be queried, backed up, or basically touched in any way (snapshot can be taken however)</li>
<li>Only supports one to one server pairings.</li>
<li>Cannot mirror a database more than once.</li>
<li>Synchronous mirroring is intolerant to latency and bandwidth constraints (Asynchronous mirroring has no problems with latency or bandwidth).</li>
</ul>
<p><strong>What is alternative of Database Mirroring after SQL Server 2012?</strong></p>
<blockquote><p>Microsoft has now declared the database mirroring feature to be deprecated. Users of SQL Server are advised not to use this feature and not to develop new applications for it. As a substitute, Microsoft recommends AlwaysOn High Availability Groups.</p></blockquote>
<p><strong>Can we configure mirroring on 32 bit version or only on 64 version?</strong></p>
<blockquote><p>Yes, you can move SQL Server data back and forth between x64, x86, and IA64 architectures. The data and log files themselves do not store anything that indicates the architecture and work the same on either 32-bit or 64-bit.</p></blockquote>
<p><strong>Can we configure mirroring between 32 and 64 bit machine?</strong></p>
<blockquote><p>A database mirroring session can combine server instances that run in a 32-bit environment and server instances that run in a 64-bit environment.</p></blockquote>
<p><strong>Due to hard errors, What are the possible database mirroring failures?</strong></p>
<ul>
<li>A broken connection or wire</li>
<li>A bad network card</li>
<li>A router change</li>
<li>Changes in the firewall</li>
<li>Endpoint reconfiguration</li>
<li>Loss of the drive where the transaction log resides</li>
<li>Operating system or process failure</li>
<li>DNS is not working.</li>
<li>Cables are unplugged.</li>
<li>Microsoft Windows has a firewall that blocks a specific port.</li>
<li>The application that is monitoring a port fails.</li>
<li>A Windows-based server is renamed.</li>
<li>A Windows-based server is rebooted.</li>
</ul>
<p><strong>Due to soft errors, What are the possible database mirroring failures?</strong></p>
<ul>
<li>Network errors such as TCP link time-outs, dropped or corrupted packets, or packets that are in an incorrect order.</li>
<li>A hanging operating system, server, or database state.</li>
<li>A Windows server timing out.</li>
<li>Insufficient computing resources, such as a CPU or disk overload, the transaction log filling up, or the system is running out of memory or threads.</li>
</ul>
<p><strong>T-SQL Script to to change time-out value.</strong></p><pre class="crayon-plain-tag">ALTER DATABASE database_name SET PARTNER TIMEOUT 120;</pre><p>
<strong>T-SQL Script to Resume or Pause the Database mirroring session.</strong></p>
<blockquote><p><strong>Script to Pause:</strong></p><pre class="crayon-plain-tag">ALTER DATABASE Database_Name SET PARTNER SUSPEND;</pre><p>
<strong>Script to Resume:</strong></p><pre class="crayon-plain-tag">ALTER DATABASE Database_Name SET PARTNER RESUME;</pre><p>
</p></blockquote>
<p><strong>What is High Protection operating mode?</strong></p>
<blockquote><p>It is pretty similar to High Availability mode except that Witness is not available, as a result failover is manual. It also has transactional safety FULL i.e. synchronous communication between principal and mirror. Even in this mode if the network is poor it might cause performance bottleneck.</p></blockquote>
<p><strong>What are End Points and its usages?</strong></p>
<blockquote><p>An endpoint is a network protocol which is used to communicate Principal, Mirror and Witness servers over the network.</p></blockquote>
<p><strong>Which are the system stored procedure to monitor database mirroring?</strong></p>
<ul>
<li>sp_dbmmonitoraddmonitoring</li>
<li>sp_dbmmonitorchangemonitoring</li>
<li>sp_dbmmonitorhelpmonitoring</li>
<li>sp_dbmmonitordropmonitoring</li>
</ul>
<p><strong>Which are the other ways to monitor database mirroring?</strong></p>
<blockquote><p>Using profiler, performance counter, SQL Server Management Studio, Database Mirroring Monitor tool and SQL Server log.</p></blockquote>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server: Database Mirroring Interview Questions and Answers (Day-1)</title>
		<link>https://www.dbrnd.com/2016/05/sql-server-database-mirroring-interview-questions-and-answers-day-1/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 30 May 2016 17:29:13 +0000</pubDate>
				<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[failover partner]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[mirror]]></category>
		<category><![CDATA[mirroring]]></category>
		<category><![CDATA[principal]]></category>
		<category><![CDATA[rolswitching]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[witness]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2991</guid>

					<description><![CDATA[What is Database Mirroring? 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. Database mirroring is the creation and maintenance of redundant copies of a database. The purpose is to ensure continuous [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fsql-server-database-mirroring-interview-questions-and-answers-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-1%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fsql-server-database-mirroring-interview-questions-and-answers-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-1%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fsql-server-database-mirroring-interview-questions-and-answers-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-1%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fsql-server-database-mirroring-interview-questions-and-answers-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-1%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fsql-server-database-mirroring-interview-questions-and-answers-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-1%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fsql-server-database-mirroring-interview-questions-and-answers-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-1%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fsql-server-database-mirroring-interview-questions-and-answers-day-1%2F&#038;title=SQL%20Server%3A%20Database%20Mirroring%20Interview%20Questions%20and%20Answers%20%28Day-1%29" data-a2a-url="https://www.dbrnd.com/2016/05/sql-server-database-mirroring-interview-questions-and-answers-day-1/" data-a2a-title="SQL Server: Database Mirroring Interview Questions and Answers (Day-1)"></a></p><p><strong>What is Database Mirroring?</strong></p>
<blockquote><p>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.</p>
<p>Database mirroring is the creation and maintenance of redundant copies of a database. The purpose is to ensure continuous data availability and minimize or avoid downtime that might otherwise result from data corruption or loss, or from a situation when the operation of a network is partially compromised.</p></blockquote>
<p><strong>What are the benefits of Database Mirroring?</strong></p>
<ul>
<li>It increases the availability of a database. In the event of a disaster, in high-safety mode with automatic failover, failover quickly brings the standby copy of the database online.</li>
<li>It Increases the data protection.Database mirroring provides complete or almost complete redundancy of the data, depending on whether the operating mode is high-safety or high-performance.</li>
<li>It Improves the availability of the production database during upgrades.To minimize downtime for a mirrored database, you can sequentially upgrade the instances of SQL Server that are hosting the failover partners.</li>
</ul>
<p><strong>How Database Mirroring works in SQL Server?</strong></p>
<blockquote><p>Database mirroring maintains two copies of a single database that must reside on different server instances of SQL Server Database Engine. Typically, these server instances reside on computers in different locations. Starting database mirroring on a database, initiates a relationship, known as a database mirroring session, between these server instances.</p>
<p>One server instance serves the database to clients (the principal server). The other instance acts as a hot or warm standby server (the mirror server), depending on the configuration and state of the mirroring session.</p>
<p>The principal and mirror servers communicate and cooperate as partners in a database mirroring session. The two partners perform complementary roles in the session: the principal role and the mirror role. At any given time, one partner performs the principal role, and the other partner performs the mirror role.</p>
<p>Database mirroring involves redoing every insert, update, and delete operation that occurs on the principal database onto the mirror database as quickly as possible. Redoing is accomplished by sending a stream of active transaction log records to the mirror server, which applies log records to the mirror database, in sequence, as quickly as possible.</p></blockquote>
<p><strong>What is a automatic failover?</strong></p>
<blockquote><p>The process by which, when the principal server becomes unavailable, the mirror server to take over the role of principal server and brings its copy of the database online as the principal database.</p></blockquote>
<p><strong>What is a principal database principal server?</strong></p>
<blockquote><p>Principal database is a read-write database whose transaction log records are applied to mirror database and Principal server is an instance on which the principal database resides.</p></blockquote>
<p><strong>What is a mirror database and mirror server?</strong></p>
<blockquote><p>The copy of the database that is typically fully synchronized with the principal database and the mirror server is an instance on which the mirror database resides.</p></blockquote>
<p><strong>What is a failover partners?</strong></p>
<blockquote><p>The two server instances (the principal server or the mirror server) that act as role-switching partners for a mirrored database.</p></blockquote>
<p><strong>What is a forced service?</strong></p>
<blockquote><p>A failover initiated by the database owner upon the failure of the principal server that transfers service to the mirror database while it is in an unknown state.</p></blockquote>
<p><strong>What is a High-performance mode of the Mirroring?</strong></p>
<blockquote><p>The database mirroring session operates asynchronously and uses only the principal server and mirror server. The only form of role switching is forced service.</p></blockquote>
<p><strong>What is a High-safety mode of the Mirroring?</strong></p>
<blockquote><p>The database mirroring session operates synchronously and, optionally, uses a witness, as well as the principal server and mirror server.</p></blockquote>
<p><strong>What is a redo queue?</strong></p>
<blockquote><p>It receives transaction log records that are waiting on the disk of a mirror server.</p></blockquote>
<p><strong>What is a send queue?</strong></p>
<blockquote><p>It holds the unsent transaction log records that have accumulated on the log disk of the principal server.</p></blockquote>
<p><strong>What is role switching?</strong></p>
<blockquote><p>Within the context of a database mirroring session, the principal and mirror roles are typically interchangeable in a process known as role switching. Role switching involves transferring the principal role to the mirror server. In role switching, the mirror server acts as the failover partner for the principal server. When a role switch occurs, the mirror server takes over the principal role and brings its copy of the database online as the new principal database. The former principal server, if available, assumes the mirror role, and its database becomes the new mirror database. Potentially, the roles can switch back and forth repeatedly.</p></blockquote>
<p><strong>What is Transaction safety?</strong></p>
<blockquote><p>A mirroring-specific database property that determines whether a database mirroring session operates synchronously or asynchronously. There are two safety levels: FULL and OFF.</p></blockquote>
<p><strong>What is Witness server?</strong></p>
<blockquote><p>To support automatic failover, a database mirroring session must be configured in high-safety mode and also possess a third server instance, known as the witness.Unlike the two partners, the witness does not serve the database. Supporting automatic failover is the only role of the witness.</p></blockquote>
<p><strong>What happened, when a DBA paused the session?</strong></p>
<blockquote><p>Pausing preserves the session state while removing mirroring. When a session is paused, the principal server does not send any new log records to the mirror server. All of these records remain active and accumulate in the transaction log of the principal database. As long as a database mirroring session remains paused, the transaction log cannot be truncated.</p></blockquote>
<p><strong>What are the Prerequisites to set up a Database Mirroring?</strong></p>
<ul>
<li>The partners and the witness, if any, must be running on the same version of SQL Server.</li>
<li>The two partners, that is the principal server and mirror server, must be running the same edition of SQL Server. The witness, if any, can run on any edition of SQL Server that supports database mirroring.</li>
<li>The database must use the full recovery model. The simple and bulk-logged recovery models do not support database mirroring.</li>
<li>Verify that the mirror server has sufficient disk space for the mirror database.</li>
<li>When you are creating the mirror database on the mirror server, make sure that you restore the backup of the principal database specifying the same database name WITH NORECOVERY.</li>
</ul>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
