CollaborateChapter 8..Knowledge ByteIn this section, you will learn about: Recovery model ppsx

10 235 0
CollaborateChapter 8..Knowledge ByteIn this section, you will learn about: Recovery model ppsx

Đang tải... (xem toàn văn)

Thông tin tài liệu

Collaborate Chapter 8 Querying, Managing, and Administering Databases Using SQL Server 2005 8.3 ¤NIIT In this section, you will learn about:  Recovery model  Backing up system databases  Monitoring performance by using dynamic management views  Configuring log shipping  Creating database snapshot  Reverting a database from a snapshot Read the following topic in the section Backing Up a Database of Chapter 4 of the book Administering Databases Using SQL Server 2005:  Identifying the Recovery Model Read the following topic in the section Backing Up a Database of Chapter 4 of the book Administering Databases Using SQL Server 2005:  Backing Up System Database Read the following topic in the section Monitoring and Optimizing Performance of Chapter 5 of the book Administering Databases Using SQL Server 2005:  Monitoring Performance by Using Dynamic Management Views Read the following topic in the section Implementing Log Shipping of Chapter 6 of the book Administering Databases Using SQL Server 2005:  Configuring Log Shipping Knowledge Byte Monitoring Performance by Using Dynamic Management V iews Recovery Model Backing Up System Databases Configuring Log Shipping ¤NIIT 8.4 Querying, Managing, and Administering Databases Using SQL Server 2005 Read the following topic in the section Implementing Database Snapshots of Chapter 6 of the book Administering Databases Using SQL Server 2005:  Creating a Database Snapshot Read the following topic in the section Implementing Database Snapshots of Chapter 6 of the book Administering Databases Using SQL Server 2005:  Reverting a Database from a Snapshot Creating a Database Snapshot Reverting a Database from a Snapshot Querying, Managing, and Administering Databases Using SQL Server 2005 8.5 ¤NIIT This section contains:  Best practices  Tips and tricks  FAQs The following best practices can be considered while restoring databases in SQL Server 2005:  Avoid restoring databases from unknown sources: Do not attach or restore databases from unknown or unreliable sources. These databases might contain harmful code that can execute unintended Transact-SQL code or cause errors by modifying the schema or the physical database structure. Before restoring databases, it is a good idea to run DBCC CHECKDB on the database on a nonproduction server and also examine the code, such as stored procedures or other user-defined code, in the database.  Drop databases do not exist any longer: If database does not exist any longer but is referenced in a backup of the master database and the master database is getting restored, SQL Server may report errors when it starts. The SQL Server will report errors because it can no longer find that database. Such databases should be dropped after the backup is restored.  Shut down applications before using RESTORE: RESTORE disconnects users when necessary; however, it is a best practice to shut down applications beforehand. The following tips and tricks will help you effectively restore databases and use performance monitoring tools in SQL Server 2005:  Backup master database when master has been restored and any changes have been reapplied.  Use the Task Manager and Network Monitor Agent tools of the Windows operating system to monitor the performance of the database server.  Save trace results to a file. A trace file is a file where the trace results are written. A trace file can be located either in a local directory or a network directory.  Remove the witness server from the session if you want the witness server to remain disconnected for a significant amount of time, until it becomes available. From the Expert’s Desk Tips and Tricks Best Practices ¤NIIT 8.6 Querying, Managing, and Administering Databases Using SQL Server 2005  Use database mirroring if you require only a single destination database. Also if you require more than one destination database, you need to use log shipping, either alone or with database mirroring.  Can you backup and restore individual tables in SQL Server 2005? No, you cannot back up and restore individual tables in SQL Server 2005.  If you execute DBCC CHECKDB statement, which other two statements are automatically executed? If you execute DBCC CHECKDB statement, the DBCC CHECKTABLE and DBCC CHECKALLOC statements are automatically executed.  Can you create a mirror of system databases? No, you cannot create a mirror of system database.  Which component of SQL Server supports log shipping? Log shipping can be used with the database mirroring, replication, and notification services.  Which user role can configure log shipping on an instance of a server? The sysadmin user role can configure log shipping on an instance of a server. FAQs Querying, Managing, and Administering Databases Using SQL Server 2005 8.7 ¤NIIT 1. Which recovery model is used when data is critical and cannot be lost? a. Simple recovery model b. Full recovery model c. Bulk-logged recovery model d. Bulk recovery model 2. Which operation is not fully recoverable in the bulk-logged recovery model? a. CREATE INDEX b. SELECT INTO c. WRITETEXT d. CREATE TABLE 3. Which type of database backup can you perform on the master database? a. Differential backup b. Full backup c. Transaction log backup d. Tail-log backup 4. Which DMV is used to view the authenticated SQL Server sessions? a. sys.dm_exec_connections b. sys.dm_exec_requests c. sys.dm_exec_query_stats d. sys.dm_exec_sessions 5. To which category of DMVs do the sys.dm_io_backup_tapes and sys.dm_io_pending_io_requests DMVs belong? a. I/O –related DMVs b. Database –related DMVs c. Replication –related DMVs d. Execution –related DMVs Challenge ¤NIIT 8.8 Querying, Managing, and Administering Databases Using SQL Server 2005 1. How will you check the performance of a server due to a problem with the operating system? a. By using Dynamic Management Views b. By using System Monitor tool c. By using Database Tuning Advisor d. By using SQL Server Profiler 2. Which of the following is not the SQL Server log? a. SQL Server agent log b. SQL Server database engine log c. Transaction log d. Database mail log 3. Which utility is provided by the SQL Server to view all types of event logs? a. Log Viewer utility b. Log File Viewer utility c. SQL Server Agent utility d. Log System utility 4. Which technique in the SQL Server allows you to keep a copy of the database on a standby server? In this case, the standby server takes over the control from the primary server if the later is unavailable. a. Database Restore b. Database Security c. Database Backup d. Database Mirroring 5. Which instance of the database server in database mirroring holds the active database? a. Witness Server b. Transaction Server c. Principal Server d. Mirror Server 6. In which mode of database mirroring the database is available in case of failure? In this case, you have to manually switch the active database context to mirror server. a. High protection mode b. High performance mode c. High retention mode d. High availability mode Home Assignment Querying, Managing, and Administering Databases Using SQL Server 2005 8.9 ¤NIIT 7. Which technique in the SQL Server allows you to create a read-only, static view of the database at a particular point in time? a. Database backup b. Database snapshots c. Database mirroring d. Database restore 8. Which of the following cannot be a workload? a. Trace table b. File consisting of T-SQL statements c. Trace file d. File consisting of transaction log 9. Identify the correct statement to restore a full database backup with option to continue restoring more backups? a. RESTORE DATABASE db1 FROM <bak file> WITH NORECOVERY b. RESTORE DATABASE db1 FROM DISK =<bak file> WITH NORECOVERY c. RESTORE DATABASE db1 FROM DISK =<bak file> WITH RECOVERY d. RESTORE DATABASE db1 FROM <bak file> WITH RECOVERY 10. Which of the following is the correct syntax for restoring a log file? a. RESTORE < database_name> FROM <transactionlog_backup_filename> b. RESTORE LOG < database_name> FROM <transactionlog_backup_filename> c. RESTORE DATABASE < database_name> FROM <transactionlog_backup_filename> d. RESTORE LOG <transactionlog_backup_filename> FROM < database_name> FROM ¤NIIT 8.10 Querying, Managing, and Administering Databases Using SQL Server 2005 . 2005 8. 7 ¤NIIT 1. Which recovery model is used when data is critical and cannot be lost? a. Simple recovery model b. Full recovery model c. Bulk-logged recovery model d. Bulk recovery model. Collaborate Chapter 8 Querying, Managing, and Administering Databases Using SQL Server 2005 8. 3 ¤NIIT In this section, you will learn about:  Recovery model  Backing up system databases. if you require only a single destination database. Also if you require more than one destination database, you need to use log shipping, either alone or with database mirroring.  Can you

Ngày đăng: 31/07/2014, 15:20

Tài liệu cùng người dùng

Tài liệu liên quan