<?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>high availability &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/high-availability/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>Tue, 05 Jul 2016 19:43:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>SQL Server: Database Log Shipping Interview Questions and Answers (Day-1)</title>
		<link>https://www.dbrnd.com/2016/07/sql-server-database-log-shipping-interview-questions-and-answers-backup-copy-restore-agent-job-monitor-server-day-1/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 05 Jul 2016 19:42:36 +0000</pubDate>
				<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[agent job]]></category>
		<category><![CDATA[answers]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[backup job]]></category>
		<category><![CDATA[copy job]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[load balancing]]></category>
		<category><![CDATA[log shipping]]></category>
		<category><![CDATA[monitor server]]></category>
		<category><![CDATA[primary server]]></category>
		<category><![CDATA[questions]]></category>
		<category><![CDATA[restore job]]></category>
		<category><![CDATA[secondary server]]></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>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3244</guid>

					<description><![CDATA[What is a Log Shipping? It is a shipping of SQL Server transaction log from one server to another server. It is a one kind of high availability feature of SQL Server. You can use log shipping to send transaction logs from one database (the primary database) to another (the secondary database) on a constant [&#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%2F07%2Fsql-server-database-log-shipping-interview-questions-and-answers-backup-copy-restore-agent-job-monitor-server-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Log%20Shipping%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%2F07%2Fsql-server-database-log-shipping-interview-questions-and-answers-backup-copy-restore-agent-job-monitor-server-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Log%20Shipping%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%2F07%2Fsql-server-database-log-shipping-interview-questions-and-answers-backup-copy-restore-agent-job-monitor-server-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Log%20Shipping%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%2F07%2Fsql-server-database-log-shipping-interview-questions-and-answers-backup-copy-restore-agent-job-monitor-server-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Log%20Shipping%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%2F07%2Fsql-server-database-log-shipping-interview-questions-and-answers-backup-copy-restore-agent-job-monitor-server-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Log%20Shipping%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%2F07%2Fsql-server-database-log-shipping-interview-questions-and-answers-backup-copy-restore-agent-job-monitor-server-day-1%2F&amp;linkname=SQL%20Server%3A%20Database%20Log%20Shipping%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%2F07%2Fsql-server-database-log-shipping-interview-questions-and-answers-backup-copy-restore-agent-job-monitor-server-day-1%2F&#038;title=SQL%20Server%3A%20Database%20Log%20Shipping%20Interview%20Questions%20and%20Answers%20%28Day-1%29" data-a2a-url="https://www.dbrnd.com/2016/07/sql-server-database-log-shipping-interview-questions-and-answers-backup-copy-restore-agent-job-monitor-server-day-1/" data-a2a-title="SQL Server: Database Log Shipping Interview Questions and Answers (Day-1)"></a></p><p><strong>What is a Log Shipping?</strong></p>
<blockquote><p>It is a shipping of SQL Server transaction log from one server to another server. It is a one kind of high availability feature of SQL Server.</p>
<p>You can use log shipping to send transaction logs from one database (the primary database) to another (the secondary database) on a constant basis. Continually backing up the transaction logs from a primary database and then copying and restoring them to a secondary database keeps the secondary database nearly synchronized with the primary database.</p></blockquote>
<p><strong>Would you please explain the basic work of Log Shipping?</strong></p>
<blockquote><p>Log shipping allows you to automatically send transaction log backups from a primary database on a primary server instance to one or more secondary databases on separate secondary server instances. The transaction log backups are applied to each of the secondary databases individually. An optional third server instance, known as the monitor server, records the history and status of backup and restore operations and, optionally, raises alerts if these operations fail to occur as scheduled.</p></blockquote>
<p><strong>What are the main operations involved in Log Shipping?</strong></p>
<ul>
<li>Log shipping consists of three operations:</li>
<li>Back up the transaction log at the primary server instance.</li>
<li>Copy the transaction log file to the secondary server instance.</li>
<li>Restore the log backup on the secondary server instance.</li>
</ul>
<p><strong>Does Log Shipping support automatic failover?</strong></p>
<blockquote><p>A log shipping configuration does not automatically fail over from the primary server to the secondary server. If the primary database becomes unavailable, any of the secondary databases can be brought online manually.</p></blockquote>
<p><strong>Can we use a secondary database as Reporting purpose?</strong></p>
<blockquote><p>Yes: we can use a secondary database for reporting purpose.</p></blockquote>
<p><strong>What is a Primary server or database in Log Shipping?</strong></p>
<blockquote><p>The primary server in a log shipping configuration is the instance of the SQL Server Database Engine that is your production server. The primary database is the database on the primary server that you want to back up to another server. All administration of the log shipping configuration through SQL Server Management Studio is performed from the primary database.</p></blockquote>
<p><strong>Can I apply Simple Recovery Model to Parimary database of Log Shipping?</strong></p>
<blockquote><p>No:The primary database must use the full or bulk-logged recovery model; switching the database to simple recovery will cause log shipping to stop functioning.</p></blockquote>
<p><strong>What is a Secondary server or database in Log Shipping?</strong></p>
<blockquote><p>The secondary server in a log shipping configuration is the server where you want to keep a warm standby copy of your primary database. A secondary server can contain backup copies of databases from several different primary servers.</p>
<p>One single Secondary server could be used for multiple primary server.</p>
<p>The secondary database must be initialized by restoring a full backup of the primary database. The restore can be completed using either the NORECOVERY or STANDBY option.</p></blockquote>
<p><strong>What do you know about the Monitor Server of Log Shipping?</strong></p>
<blockquote><p>This is an optional server which tracks all of the details of log shipping.</p>
<p>Details like:</p>
<ul>
<li>When the transaction log on the primary database was last backed up.</li>
<li>When the secondary servers last copied and restored the backup files.</li>
<li>Information about any backup failure alerts.</li>
<li>Another important thing is,</li>
<li>Once the monitor server has been configured, it cannot be changed without removing log shipping first.</li>
</ul>
</blockquote>
<p><strong>What kind of different SQL Jobs involved in Log Shipping Operations?</strong></p>
<blockquote><p>Log shipping involves four jobs, which are handled by dedicated SQL Server Agent jobs. These jobs include the backup job, copy job, restore job, and alert job.</p>
<p>The basic work of these jobs is, How frequently log backups are taken, how frequently they are copied to each secondary server, and how frequently they are applied to the secondary database.</p></blockquote>
<p><strong>What is the main use of Backup Job?</strong></p>
<blockquote><p>When log shipping is enabled, the SQL Server Agent job category &#8220;Log Shipping Backup&#8221; is created on the primary server instance.</p>
<p>A backup job is created on the primary server instance for each primary database. It performs the backup operation, logs history to the local server and the monitor server, and deletes old backup files and history information. By default, this job will run every 15 minutes, but the interval is customizable.</p></blockquote>
<p><strong>What is the main use of Copy Job?</strong></p>
<blockquote><p>When log shipping is enabled, the SQL Server Agent job category &#8220;Log Shipping Copy&#8221; is created on the secondary server instance.</p>
<p>A copy job is created on each secondary server instance in a log shipping configuration. This job copies the backup files from the primary server to a configurable destination on the secondary server and logs history on the secondary server and the monitor server. The copy job schedule, which is customizable, should approximate the backup schedule.</p></blockquote>
<p><strong>What is the main task of Restore Job?</strong></p>
<ul>
<li>The SQL Server job category &#8220;Log Shipping Restore&#8221; is created on the secondary server instance when log shipping is enabled.</li>
<li>A restore job is created on the secondary server instance for each log shipping configuration. This job restores the copied backup files to the secondary databases. It logs history on the local server and the monitor server, and deletes old files and old history information.</li>
<li>Scheduling these jobs with the same frequency keeps the secondary database as closely aligned with the primary database as possible to create a warm standby database.</li>
</ul>
<p><strong>What is the main use of Agent Job?</strong></p>
<blockquote><p>If a monitor server is used, an alert job is created on the monitor server instance. This alert job is shared by the primary and secondary databases of all log shipping configurations using this monitor server instance.</p>
<p>This job raises alerts (for which you must specify alert numbers) for primary and secondary databases when backup and restore operations have not completed successfully within specified thresholds.</p></blockquote>
<p><strong>Do you know what is the default time interval in Log Shipping?</strong></p>
<blockquote><p>It is 15 minutes.</p></blockquote>
<p><strong>What is the solution of the below error?</strong></p>
<p><strong>&#8220;Error: The restore operation cannot proceed because the secondary database ‘&lt;Database Name&gt;’ is not in NORECOVERY/STANDBY mode.(Microsoft.SqlServer.Management.LogShipping)&#8221;</strong></p>
<blockquote><p>Restore the secondary database with the full backup of the primary database with NORECOVERY and REPLACE option.</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>
