Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.

Slides:



Advertisements
Similar presentations
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
Advertisements

Overview of Database Administrator (DBA) Tools
Oracle 10g Database Administrator: Implementation and Administration
ITEC474 Control File Maintenance
Backup and recovery Basics of Backup and restoration Types of recovery Defining strategy Starting up and shutting down 80/20 rule SLA’s.
Chapter 9 Auditing Database Activities
Harvard University Oracle Database Administration Session 10 Database Backups.
Harvard University Oracle Database Administration Session 2 System Level.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
Advanced Databases DBA: Backups 1. Advanced Databases Agenda Define backup Discuss Backup Terminology Explain various backup and restore options in Oracle.
A Guide to Oracle9i1 Introduction to Oracle9i Database Administration Chapter 11.
Database Backup and Recovery
RMAN Restore and Recovery
Backup and Recovery Part 1.
CHAPTER 16 User-Managed Backup and Recovery. Introduction to User Managed Backup and Recovery Backup and recover is one of the most critical skills a.
Configuring Recovery Manager
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Oracle backup and recovery strategy
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
Navigating the Oracle Backup Maze Robert Spurzem Senior Product Marketing Manager
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Backup & Recovery Concepts for Oracle Database
Oracle Database Administration
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
CHAPTER 2 Implementing a Database. Introduction to Creating Databases After you’ve installed the Oracle software, the next logical step is to create a.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
CHAPTER 6 Users and Basic Security. Progression of Steps for Creating a Database Environment 1. Install Oracle database binaries (Chapter 1) 2. Create.
M ODULE 3 D ATABASE M ANAGEMENT Section 5 Database Backup and Recovery 1 ITEC 450 Fall 2012.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
1Introduction Objectives 1-2 Course Objectives 1-3 Oracle Products 1-4 Relational Database Systems 1-5 How the Data Is Organized 1-6 Integrity Constraints.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
Profiles, Password Policies, Privileges, and Roles
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
Reliability and Security in Database Servers By Samuel Njoroge.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
A Guide to Oracle9i1 Database Instance startup and shutdown.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
Managing users and security Akhtar Ali. Aims Understand and manage profiles Understand and manage users Understand and manage privileges Understand and.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 9 Auditing Database Activities.
Advanced Databases DBA: Security and Backups Guide to Oracle 10g 1.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
Oracle Applications 11i Concepts II Brian Hitchcock OCP 11i DBA -- OCP 10g DBA Sun Microsystems Brian Hitchcock.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
18 Managing Profiles Objectives Creating and assigning profiles to users Controlling use of resources with profiles Altering and dropping profiles.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
1 Chapters 21, 22, 23, 37  Ch. 21: SQL*Loader  Ch. 22: Database Links, Oracle Net  Ch. 23: Materialized Views (aka Snapshots)  Ch. 37: Data Dictionary.
Intro To Oracle :part 1 1.Save your Memory Usage & Performance. 2.Oracle Login ways. 3.Adding Database to DB Trees. 4.How to Create your own user(schema).
C Copyright © 2007, Oracle. All rights reserved. Security New Features.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
Database recovery contd…
Oracle structures on database applications development
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Duplicating a Database
Performing Database Recovery
Database Backup and Recovery
Presentation transcript:

Backup The flip side of recovery

Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting in volatile memory loss Media failure –Disks or tapes Disasters

Backup Methods Physical (block by block copy) –Cold db is shutdown, files are not changing shutdown instance, backup files (datafiles, control files, parameter files, redo logs & archive logs), start db –Hot db is open and files are being used each tablespace is put into “backup” mode in turn and then backed up using RMAN or EBU, then put back online MUST have archive logging on to use this method

Backup Methods (cont.) Logical (actually reads data) –Export Rebuild scripts –Use to re-create the structure of the database –control file create script alter database backup controlfile to trace noresetlogs; –database create script –roles and users create scripts

So what’s best? Use a combination of options If must have point in time recovery, run with archive logging ENABLED Additional points –mirror control files and redo logs –keep as many archive logs on disk as possible –disk copies of backup files and archive logs should be on their own disk –make backups of control files if db structure changes! Can stage backups so they go faster (disk to disk to tape) TEST, TEST, TEST!

Developing a backup strategy... Points to consider –downtime –backup window –types of failures power loss, disk, natural disaster, human error? –recovery time –retention time Basic database setup

You are the DBA... 24x7 database (or very small backup window) need fast recovery need ability to recover db objects need point in time recovery

More db availability options 3-way mirror of db –expensive in disk space, but very safe Hot standby database –copy of db is created, logs from primary db are applied directly to the copy Replicated database –db is copied through snapshots or through replication rules –if replicated, transactions can occur against both copies of the db - must have conflict resolution in place!

And Recovery... Determine what kind of recovery is required –instance recovery or process recovery (restart the db) –user error recovery or statement failure recovery (fixing affected transaction only) –media recovery which files are destroyed? recover database, tablespace or datafile? resetlogs? Before doing recovery, perform precautionary backup ALWAYS backup after recovery

Disaster recovery planning Situation and response Include triggers and contacts Backup/redundant hardware? Off site hardware and facilities? Off site backups?

Security, Roles, and Privileges Object vs. system (access) privileges roles –privilege “groupings” –can have other roles granted to them basic procedure –create user –create role –grant privs to role –grant role to user

Predefined roles –DBA create, alter, drop anything (user, procedure, table, etc.) select, insert, update, delete or lock any table or view force any transaction execute any package, trigger, procedure grant any privelege or role, become any user backup any tablespace/table audit anything, analyze anything, restrict or kill sessions –Connect alter session create database link, sequence, session, synonym, table, view –Resource create procedure, sequence, table, trigger

PUBLIC Never grant to PUBLIC with grant or admin option Not wise to grant anything other than SELECT to PUBLIC PUBLIC should not own any data object PUBLIC may own synonyms and views

Finding Privileges and Roles Dba_users, dba_tab_privs, dba_sys_privs, dba_role_privs With admin option sec_obj.sql sec_priv.sql sec_role.sql

Profiles In Oracle 8, can set up profiles to impose resource limits, enforce password policies, lock accounts after failed logins, etc. –sessions_per_user, idle_time, cpu_per_session –failed_login_attempts –password_life_time, password_grace_time, password_verify_function dba_profiles

Installing and configuring the client Obtain CD from ATN or SILS library Install software Configure tnsnames.ora –Provides all necessary connection information –Is created automatically when use configuration wizard (last step of install) –Can be created manually, if desired

Listener.ora Tnsnames.ora client server

Tnsnames.ora... (CONNECT_DATA = (SID = INLS) )... INLS = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = pearl.ils.unc.edu)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = INLS.ils.unc.edu) ) Excerpt from tnsnames.ora [New style (8i)] : Excerpt from tnsnames.ora [Old style (8 or earlier)] :