MIS 561 MIS561 MIS/561 Lab 4 Using Backups for Complete Recovery – DeVry University

Page 1

MIS 561 MIS561 MIS/561 Lab 4 Using Backups for Complete Recovery – DeVry University

DOWNLOAD SOLUTION https://www.solvedcollegepapers.com/product/mis-561-mis561-mis-561-dev/ Successful database recovery relies on the database being backed. This is what enables the database to recover data that were lost due to a media failure, loss of power, or any other type of disaster. Each time the online line redoes logs filled up in a log group, the DBMS issues a log switch that will move the log writer process from the current redo log group to the next one in line. The archive background process begins archiving the data in the full online log group files to the archive log files. This is done simultaneously for each log file in the group. If media recovery is needed at the time that the database needs recovery, then the DBMS will search through the archived log files to find the ones that need to be used.

Category: Assignments Help Experts Tags: mis 561 lab 5, MIS 561 MIS561 MIS/561 Database administration and management - DeVry University, MIS 561mis 561, MIS561 Lab 1 Installing MySQL Community Server and MySQL Workbench, MIS561 Lab 2 Work with Dictionary and Create Relational Database, MIS561 Lab 3 Users Privileges and Roles, MIS561 Lab 4 Using Backups for Complete Recovery, MIS561 Lab 5 Optimizing query using EXPLAIN 

Description

Description


MIS561 Lab 4 Using Backups for Complete Recovery – DeVry University Successful database recovery relies on the database being backed. This is what enables the database to recover data that were lost due to a media failure, loss of power, or any other type of disaster. Each time the online line redoes logs filled up in a log group, the DBMS issues a log switch that will move the log writer process from the current redo log group to the next one in line. The archive background process begins archiving the data in the full online log group files to the archive log files. This is done simultaneously for each log file in the group. If media recovery is needed at the time that the database needs recovery, then the DBMS will search through the archived log files to find the ones that need to be used. In Part 1, you will use mysqldump command to dump database, expand tables, and restore database. In Part 2, you will use MySQL Workbench to back up, expand tables, and restore the database. Note: Be sure that you are making screenshots and save in Lab4 Report. Deliverables Grading of the lab assignment will be based on the following. Assignment Step Description Points Part 1: Take Dump/Backup and restore database using command line Step 1 Taking a backup of the database 5 Step 2 Expand table 5 Step 3 Restore and recover the database 10 Part 2: Backup and Recovery using MySQL Workbench Taking a backup of the database using Step 1 5 Export to Dump Project Folder Taking a backup of the database using Step 2 5 Export to self-contained file Step 3 Expand table 5 Restore database using Import from Dump Step 4 10 Project Folder Step 5 Expand table 5 Restore database using Import from selfStep 6 10 contained file Total iLab Points 60 The Report file should be a single file called yourname_Lab_4.doc to submit to the Dropbox for the Week 4 iLab.


Your report should show any queries, create statements, or other SQL code, along with the resulting return from the database. iLAB STEPS Part 1: Take Dump/Backup and Restore Database Using Command Line Step 1: Taking a Backup of the Database 1. Go to MySQL Command line – Unicode and enter password. 2. There are several databases here now. To list them, type: Mysql>show databases; 3. Identify required database; You have to make database backup to be used later to restore. 4. Confirm the location of mysqldump utility on your local machine. Usually, it is: C:\Program Files\MySQL\MySQL Server5.6\bin 5. Go to Start – Accessories – Point to Command Prompt and right-click on Run as administrator (to be able to have all types of access on PC). 6. Set up location using cd command: type in Command prompt: C:\user username>cd C:\ and press Enter C:\>cd Program Files and press Enter C:\\Program Files> cd MySQL and press Enter. C:\Program Files\MySQL>cd MySQL Server5.6\ and press Enter. C:\Program Files\MySQL\MySQL Server5.6>cd and press Enter. 7. Use mysqldump utility. 1. In Command prompt, type: Mysqldump –uroot –p databasename > c:\backup file name with extension .sql For example: “c:\mis561.sql” Where sign > means to take output (from the left part) and put into the input (right part). All SQL instructions will be written to back-up file. Note: The location of back-up file has to be enclosed into the double quotes. Example: C:\Program Files\MySQL\MySQL Server5.6\bin>Mysqldump –uroot –p databasename >c:\ backup file name with extension .sql 2. Enter password; press Enter; 3. In case of error Could not execute SELECT @@GTID_Mode, re-type with GTID options: Mysqldump –uroot –p -set-gtid-purged=OFF databasename > “c:\backup file name with extension .sql” 4. Enter password; Please note that c) and d) are needed only in case of error. Save screenshot 5. To verify back-up file: Start -All programs-Computer-Local Disk (C)-backup file.sql Save screenshot


8. Go to MySQL Command line – Unicode Using DESCRIBE statement show the columns in the table Mysql>describe databasename.tablename; Save screenshot Step 2 Expand table 1. Using ALTER command add 2 columns to the table Mysql>ALTER table databasename.tablename ADD col1 varchar(10); Save screenshot 2. Using DESCRIBE statement show the columns in the table Mysql>describe databasename.tablename; Save screenshot Step 3 Restore and recover the database 1. Go to Start- Accessories – Point to Command Prompt and right click on Run as administrator (to be able to have all types of access on PC) 2. Set up the location: type in Command prompt: C:\user username>cd C:\ and press Enter C:\>cd Program Files and press Enter C:\\Program Files> cd MySQL and press Enter C:\Program Files\MySQL>cd MySQL Server5.6\ and press Enter C:\Program Files\MySQL\MySQL Server5.6>cd bin and press Enter 3. Type: C:\Program Files\MySQL\MySQL Server5.6\bin>Mysql –uroot –p databasename < “c:\ backup file name with extension .sql” Where sign < means to take output (from the right part) and put into the output (left part). Database will be restored. Note: The location of backup file has to be enclosed into the double quotes. Save screenshot 4. Go to MySQL Command line – Unicode Using DESCRIBE statement show the columns in the table Mysql>describe databasename.tablename; Save screenshot Part 2 Backup and Recovery using MySQL Workbench To Backup database 1. 2. 3. 4. 5. 6.

Start MySQL Workbench Connect to database and Test connection Double click on Connections to connect the database; Enter Password On Navigator panel under the Management click ‘Data Export’, enter password On Data Export screen highlight the database name and check it; Click Select tables button if you want to back up the entire database;


7. There are 2 options to save backup file. Option 1 o Export to Dump Project Folder. Choose this option and back up all tables. Click Start Export, enter password, and review created .sql files (separated for each table in database). It allows you to restore the selected tables in a future. Save screenshots. o Close Administration – Data Export tab. o Go to the Windows Employer, review folder dumps content. Save screenshots. Option 2 Repeat steps 5 and 6. Export to Self-contained file. All tables in database will be stored in one file. Choose this option and give the unique name to the backup file to help you to identify file in a future. Click Start Export, enter password. o Save screenshots o When export is finished, close Administration – Data Export tab. o Go to the Windows Employer, review folder dumps content. Save screenshots. 8. Expand table Employee by adding 2 columns. Please use Query 1 screen. Hint: Add columns using ALTER command. Highlight query, choose Query in toolbar and click Execute current statement – Save screenshots 9. Show new table – Click icon Create new SQL tab for executing queries (located under the File) to display expanded table. Hint: Use DESCRIBE statement. Highlight query, choose Query in toolbar and click Execute current statement – Save screenshots To Restore database 10. Click on Data Import/Restore, enter password Option 1 o

o o o o o o o

Choose Import from Dump Project Folder and insure that the file location is correct Select Schema on Select Database object to Import (only available for project folders) You have an option to select which table to restore and click Start Import; enter Password Save screenshot with successful completion Close Administration – Data Import/Restore tab Click icon Create new SQL tab for executing queries (located under the File) to display restored table. Save screenshot

Option 2


%2. %2. o o o o o o o

Repeat Step 8, Step 9 and Step 10. Enter password Now, restore from Import from Self-contained file Choose Import from Self-contained file Select file you want to restore Click on Start Import; enter password; Save screenshot with successful completion Close Administration – Data Import/Restore tab Click icon Create new SQL tab for executing queries (located under the File) to display restored table. Save screenshot

This concludes the Lab for Week 4. Download Full Course Solution: PSY 216 PSY216 PSY/216 JOURNAL.docx – Shaina Denes Journal 1 https://www.solvedcollegepapers.com/product/psy-216-psy216-psy-216-joal-1/ The Myers-Briggs Type Indicator or MBTI is a psychological test for classifying personality types along four distinct categories including, introversion and extroversion, sensing and intuition, thinking and feeling and lastly, judging and perceiving. According to the test, every person has one dominant trait in each category. The theory is that every person will fall into one of the 16 personality types. This test can be used as a guide to help pinpoint personality traits, possible career paths, and provide some explanation for why and how we pick our friends, romantic partners and how we interact with the outside world as a whole. The other test that is used is The Big 5, this test has 5 main categories, where as the MyersBriggs has only 4. This test is shorter and less invasive than the Myers-Briggs, and has the acronym that gives a percentage of that letter found from the results of the few questions answered. “OCEAN” standing for Open-Mindedness, conscientious, extraversion, agreeableness and negative emotionality. Download Full Course Solution: IT 210 IT210 IT/210 7-3 Final Project Submission Business Systems Analysis.docx https://www.solvedcollegepapers.com/product/it-210-it210-it-210-7-3-final-projectsubmission-business-systems-analysis-docx/ IT 210: Business Systems AnalysisIT 210 Final Introduction, Business Requirements, and Competitors and TechnologyGeoff LudwigSouthern New Hampshire University IT 210: Business Systems Analysis2ContentsIntroduction3Problem Statement13Two Technologies4Business Requirements5Objectives5Project Description5Technology Requirements6Competitors and Technology6Technology One [Intelligent Systems]6Technology Two [Cloud Computing]7Technology Solutions8Technology One [Intelligent Systems]8Technology Two [Cloud Computing]10Recommendations12Technology


Solution12Overall Benefit13Security Considerations13Security Features13Third-Party Vendors152 Download Full Course Solution: BIOL 102 BIOL102 BIOL/102 : Principles of Human Biology – Liberty University https://www.solvedcollegepapers.com/product/biol-102-principles-of-human-biologyliberty-university/ 

week 5 ccrossword puzzle.docx

Liberty University

Principles of Human Biology

BIOL 102 – Fall 2012

Download Full Course Solution: CFDI-320 Week 3 Assignment – Another Day on the Job https://www.solvedcollegepapers.com/product/cfdi-320-week-3-assignment-anotherday-on-the-job/ CFDI-320 Week 3 Assignment - Another Day on the Job Week 3: Assignment - Another Day on the Job

You are a digital forensic examiner working at a firm and your next job is to conduct a digital forensic analysis on a forensic image created of a disk drive. You will need to use the department report titled Week 3 – Assignment Report.docx download to conduct an examination on the forensic image week3assignment1.e01 located in our class directory CFDI-320 on the S:\ drive.


Turn static files into dynamic content formats.

Create a flipbook

Articles inside

Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.