This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Are The Database Mirroring States? |
|
Answer» SYNCHRONIZING:-
SYNCHRONIZED:-
SUSPENDED:-
PENDING_FAILOVER:-
DISCONNECTED:-
SYNCHRONIZING:- SYNCHRONIZED:- SUSPENDED:- PENDING_FAILOVER:- DISCONNECTED:- |
|
| 2. |
How To Setup Fully Qualified Names For Database Mirroring? |
|
Answer» FQDN Error: One or more of the server network ADDRESSES lacks a FULLY qualified domain name (FQDN). Specify the FQDN for each server, and click Start Mirroring again. The syntax for a fully-qualified TCP address is: TCP ://< computer_name>.<domain_segment>[.<domain_segment>]:<port> Section 1.01 Section 1.02 II. RECTIFYING FULLY QUALIFYED NAMES
Reconfigure the Database mirroring either GUI or T-SQL. FQDN Error: One or more of the server network addresses lacks a fully qualified domain name (FQDN). Specify the FQDN for each server, and click Start Mirroring again. The syntax for a fully-qualified TCP address is: TCP ://< computer_name>.<domain_segment>[.<domain_segment>]:<port> Section 1.01 Section 1.02 II. RECTIFYING FULLY QUALIFYED NAMES Reconfigure the Database mirroring either GUI or T-SQL. |
|
| 3. |
How To Remove A Witness Server From Database Mirroring? |
|
Answer» SSMS:- RIGHT Click on PRINCIPAL Database > Tasks > Mirror > Remove TCP address from the WITNESS > Click oK. T-SQL:- ALTER DATABASE Adventure WORKS SET WITNESS OFF. SSMS:- Right Click on Principal Database > Tasks > Mirror > Remove TCP address from the Witness > Click oK. T-SQL:- ALTER DATABASE Adventure Works SET WITNESS OFF. |
|
| 4. |
How To Set A Witness Server To Database Mirroring? |
|
Answer» SSMS:- Right CLICK on Principal Database > TASKS > Mirror > Click on CONFIGURE Security > PROVIDE the End point for Witness server > Click oK T-SQL:- ALTER DATABASE Adventure WORKS SET WITNESS = 'TCP://prasad.local:5024' (Do this from the Principal Server) SSMS:- Right Click on Principal Database > Tasks > Mirror > Click on Configure Security > Provide the End point for Witness server > Click oK T-SQL:- ALTER DATABASE Adventure Works SET WITNESS = 'TCP://prasad.local:5024' (Do this from the Principal Server) |
|
| 5. |
What Is Log Buffer? |
|
Answer» A log BUFFER is a SPECIAL LOCATION in memory (RAM). SQL Server stores the changes in the database log buffer. A log buffer is a special location in memory (RAM). SQL Server stores the changes in the database log buffer. |
|
| 6. |
What Is Hardening? |
|
Answer» As QUICKLY as possible, the LOG buffer is WRITTEN to the TRANSACTION log on disk, a process called hardening. As quickly as possible, the log buffer is written to the transaction log on disk, a process called hardening. |
|
| 7. |
How To Monitoring Mirroring? |
|
Answer» There are six methods are available for monitoring the Database Mirroring: Database Mirroring Monitor:- Database Mirroring Monitor is a GUI tool that shows update status and to CONFIGURE warning thresholds. To open DM Monitor:- Right click on Principal Database > Tasks > Select Launch Database Mirroring Monitor. SQL Server Management Studio:- A green arrow on the mirror server is INDICATES running well. A red arrow indicates problems that need to investigate. SQL Server Log:- It provides information of Mirroring establishment and status. If any ERRORS occurs it will be logged to SQL Server log and Windows event log. Performance Monitor:- It can provide real-time information about Database mirroring. We can use performance counters to get status of the database mirroring such as Bytes received/sec, Bytes sent/sec, TRANSACTION DELAY etc. Profiler:- Profiler many events are providing the status of the Database mirroring System Stored Procedures:-
There are six methods are available for monitoring the Database Mirroring: Database Mirroring Monitor:- Database Mirroring Monitor is a GUI tool that shows update status and to configure warning thresholds. To open DM Monitor:- Right click on Principal Database > Tasks > Select Launch Database Mirroring Monitor. SQL Server Management Studio:- A green arrow on the mirror server is indicates running well. A red arrow indicates problems that need to investigate. SQL Server Log:- It provides information of Mirroring establishment and status. If any errors occurs it will be logged to SQL Server log and Windows event log. Performance Monitor:- It can provide real-time information about Database mirroring. We can use performance counters to get status of the database mirroring such as Bytes received/sec, Bytes sent/sec, Transaction delay etc. Profiler:- Profiler many events are providing the status of the Database mirroring System Stored Procedures:- |
|
| 8. |
How To Configure Mirroring? |
Answer»
|
|
| 9. |
What Is The Syntax To Stop The Database Mirroring? |
|
Answer» ALTER DATABASE <database name> set PARTNER off. Alter database <database name> set partner off. |
|
| 10. |
What Is Role-switching? |
|
Answer» INTER changing of roles like PRINCIPAL and MIRROR are called role SWITCHING. Inter changing of roles like principal and mirror are called role switching. |
|
| 11. |
In Which Recovery Model We Can Use In Mirroring? |
|
Answer» In mirroring the principal and MIRROR databases are used only full RECOVERY MODEL. In mirroring the principal and mirror databases are used only full recovery model. |
|
| 12. |
Which Trace Flag Is Used In Mirroring? |
Answer»
|
|
| 13. |
What Is The Default Of End Points (port Numbers) Of Principal, Mirror And Witness Servers? How To Find The Port Numbers? |
|
Answer» The default port NUMBERS of principal, MIRROR and Witness SERVERS are 5022, 5023 and 5024. To FIND Port Number:- SELECT name, port FROM sys.tcp endpoints. The default port numbers of principal, mirror and Witness servers are 5022, 5023 and 5024. To Find Port Number:- SELECT name, port FROM sys.tcp endpoints. |
|
| 14. |
What Is End Point? How U Create End Point? |
|
Answer» An ENDPOINT is a network protocol which is used to communicate PRINCIPAL, Mirror and Witness SERVERS over the network. Creation of an end point:- CREATE endpoint <endpoint NAME> State=started/stopped/disabled as tcp (listener port=5022/5023) for database mirroring (role=partner/witness) An endpoint is a network protocol which is used to communicate Principal, Mirror and Witness servers over the network. Creation of an end point:- Create endpoint <endpoint name> State=started/stopped/disabled as tcp (listener port=5022/5023) for database mirroring (role=partner/witness) |
|
| 15. |
What Are The Operating Modes And Explain Them? |
|
Answer» High Availability (principle+mirror+WITNESS):- High-availability mode, runs synchronously. Requires a witness Server instance. The Principal server sends the log BUFFER to the mirror server, and then waits for a RESPONSE from the mirror server. High Protection (principle+mirror):- High-protection mode, runs synchronously. Always commit CHANGES at both the Principal and Mirror. Automatic failover is not possible. High Performance: - High-performance mode, runs asynchronously and the transaction safety set to off. The Principal server does not wait for a response from the mirror server after sending the log buffer. The principal server running nice and fast, but COULD lose data on the mirror server. High Availability (principle+mirror+witness):- High-availability mode, runs synchronously. Requires a witness Server instance. The Principal server sends the log buffer to the mirror server, and then waits for a response from the mirror server. High Protection (principle+mirror):- High-protection mode, runs synchronously. Always commit changes at both the Principal and Mirror. Automatic failover is not possible. High Performance: - High-performance mode, runs asynchronously and the transaction safety set to off. The Principal server does not wait for a response from the mirror server after sending the log buffer. The principal server running nice and fast, but could lose data on the mirror server. |
|
| 16. |
In Which Operations Are Running The Operating Modes? |
|
Answer» Asynchronous:- Under asynchronous the principle SERVER does not WAIT for the RESPONSE from the mirror server after sending log buffer. SYNCHRONOUS:- Under synchronous the principle server SENDS the log buffer to the mirror server and then waits for an acknowledgement from the mirror server. Asynchronous:- Under asynchronous the principle server does not wait for the response from the mirror server after sending log buffer. Synchronous:- Under synchronous the principle server sends the log buffer to the mirror server and then waits for an acknowledgement from the mirror server. |
|
| 17. |
Explain About Principal, Mirror And Witness Servers? |
Answer»
|
|
| 18. |
What Are The Restrictions For Database Mirroring? |
| Answer» | |
| 19. |
What Are The Prerequisites For Database Mirroring? |
Answer»
|
|
| 20. |
What Is Database Mirroring? What Are The Benefits Of That? |
|
Answer» Database mirroring is an OPTION to improve the availability of a database which supports AUTOMATIC fail over with no loss of data. BENEFITS:-
Database mirroring is an option to improve the availability of a database which supports automatic fail over with no loss of data. Benefits:- |
|