Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Oracle Database 12c Backup and Recovery Survival Guide

You're reading from   Oracle Database 12c Backup and Recovery Survival Guide A comprehensive guide for every DBA to learn recovery and backup solutions

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781782171201
Length 440 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (22) Chapters Close

Oracle Database 12c Backup and Recovery Survival Guide
Credits
About the Author
Acknowledgement
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1. Understanding the Basics of Backup and Recovery 2. NOLOGGING Operations FREE CHAPTER 3. What is New in 12c 4. User-managed Backup and Recovery 5. Understanding RMAN and Simple Backups 6. Configuring and Recovering with RMAN 7. RMAN Reporting and Catalog Management 8. RMAN Troubleshooting and Tuning 9. Understanding Data Pump 10. Advanced Data Pump 11. OEM12c and SQL Developer Scenarios and Examples – A Hands-on Lab Index

Appendix A. Scenarios and Examples – A Hands-on Lab

The main idea of this hands-on appendix is to allow you to practice some of the scenarios you saw in this book (step-by-step) and learn by practice. If you have any doubt about a command of what it will be doing, for more information please refer to the corresponding chapter in this book for the scenario.

To be able to execute the exercises in this appendix, you should first create a test environment performing the following steps:

  1. Download the Oracle VirtualBox (free virtualization tool) at https://www.virtualbox.org/wiki/Downloads.

  2. Download Oracle Enterprise Linux 6.4 (https://edelivery.oracle.com/linux) and Oracle 12c database for Linux at http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-linux-download-1959253.html.

    Note

    You do not need to use explicitly Linux to be able to run this lab. You can also use Solaris (SPARK and x86) or even Windows 64 bits. The use of VirtualBox with Linux is just a suggestion.

  3. Follow the instructions in my blog to do the installation of the products you downloaded (http://oraclenz.org/?p=3069).

  4. Create the following directories for the examples:

    $ mkdir /data/pdborcl
    $ mkdir /data/pdborcl/backups
    $ mkdir /data/pdborcl/backups/controlfile
    $ mkdir /data/pdborcl/backups/archivelogs
    $ mkdir /data/orcl/fast_recovery_area
    $ mkdir /data/orcl/redologs
    $ chown -R oracle:oinstall /data/pdborcl
    $ chown -R oracle:oinstall /data/orcl
    
  5. Create a test user and tablespace test.

    Note

    Because this is an Oracle 12c book, all scenarios will be for Oracle 12c in this appendix.

    $ sqlplus / as sysdba
    SQL> ALTER SESSION SET CONTAINER=pdborcl;
    SQL> CREATE TABLESPACE test DATAFILE '/data/pdborcl /test_01_tbs.dbf' SIZE 100m;
    SQL> CREATE USER test IDENTIFIED BY test DEFAULT TABLESPACE test QUOTA UNLIMITED ON test;
    SQL> GRANT connect, resource TO test;
    
  6. Create a table employee and load data on the schema test using the following command:

    SQL> CREATE TABLE TEST.EMPLOYEE  
    ( EMP_ID   NUMBER(10) NOT NULL,
      EMP_NAME VARCHAR2(30),
      EMP_SSN  VARCHAR2(9),
      EMP_DOB  DATE
    );
     
    SQL> INSERT INTO test.employee VALUES (101,'Francisco Munoz',123456789,'30-JUN-73');
    
    SQL> INSERT INTO test.employee VALUES (102,'Gonzalo Munoz',234567890,'02-OCT-96');
    
    SQL> INSERT INTO test.employee VALUES (103,'Evelyn Aghemio',659812831,'02-OCT-79');
    
    SQL> COMMIT;
    

Now that you are all set, please perform the following hands-on exercises.

Note

Explanation of the examples is out of the scope of this appendix. These are only practical examples to be executed by the reader to understand how each one works.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image