Book Image

Oracle Database XE 11gR2 Jump Start Guide

By : Asif Momen
Book Image

Oracle Database XE 11gR2 Jump Start Guide

By: Asif Momen

Overview of this book

Oracle Database XE 11gR2 is an excellent beginner-level database and is a great platform to learn database concepts. "Oracle Database XE 11gR2 Jump Start Guide" helps you to install, administer, maintain, tune, back up and upgrade your Oracle Database Express Edition. The book also helps you to build custom database applications using Oracle Application Express.Using this book, you will be able to install Oracle Database XE on Windows/Linux operating system.This book helps you understand different database editions and it guides you through the installation procedure with the aid of screenshots. You will learn to interact with the database objects. You will gain a solid understanding of stored sub-programs which is followed by an introduction to Oracle Application Express (APEX). Solid database performance tuning strategies are also discussed in this book followed by backup and recovery scenarios. All in all, "Oracle Database XE 11gR2 Jump Start Guide" delivers everything that you should know to get started with Oracle Database administration.
Table of Contents (20 chapters)
Oracle Database XE 11gR2 Jump Start Guide
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

Simulating a database failure (the NOARCHIVELOG mode)


Now that we have a valid backup in place, let us simulate a database failure. Let us use the hr_test table created earlier in this book for our test. We have five records in the hr_test table, as shown in the following screenshot:

For this test, we will perform the following steps to simulate a database failure:

  1. 1. Take a full database backup.

  2. 2. Insert a record in the hr_test table. (Any changes to the database after the backup will be lost once we restore the database. So, we will lose this record in the recovery process.)

  3. 3. Insert the following line of code into hr_test:

    VALUES (6, 'test record', sysdate, 100);
    Shutdown database
    
  4. 4. Rename datafiles folder— ORADATA/XE to ORADATA/XE-BACKUP.

  5. 5. Create a new empty folder— XE.

  6. 6. Start the database now. (Oracle instance starts up in NOMOUNT mode and fails to mount the database, as Oracle is not able to find the control file while mounting the database.)