Oracle 9i Release 2, A new set of tips, tricks and Techniques. Steve George Sr. Delivery Manager – Oracle University Oracle Corporation Session id: #32681.

Slides:



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

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Wim Coekaerts Director of Linux Engineering Oracle Corporation.
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
Copyright © 2011 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are trademarks of Accenture. SQL Workshop Day 4.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
Configuring Recovery Manager
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
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.
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
Simplify your Job – Automatic Storage Management Angelo Session id:
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
Oracle Recovery Manager (RMAN) 10g : Reloaded Tammy Bednar Sr. Product Manager Oracle Corporation Session id:
Oracle on Windows Server Introduction to Oracle10g on Microsoft Windows Server.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
Backup and Recovery Protects From Data Loss. Backup and Recovery Protects From Data Loss Provides for Media Recovery.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 7 Basic Table Management.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
3 Copyright © 2005, Oracle. All rights reserved. Partitioning Basics.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
Oracle Database 10 g Time Navigation: Human-Error Correction Magnus Lubeck DBA/Systems Analyst CERN, IT-DB Group Session id: Tammy Bednar Sr. Product.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
The Self-Managing Database: Automatic SGA Memory Management Tirthankar Lahiri Senior Manager, Distributed Cache & Memory Management Oracle Corporation.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
8 Copyright © 2007, Oracle. All rights reserved. Managing Schema Objects.
10 Copyright © 2004, Oracle. All rights reserved. Recovering from User Errors.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
The Self-managing Database: Proactive Space and Schema Object Management Amit Ganesh Director, Data, Space and Transaction Processing Oracle Corporation.
Managing Schema Objects
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
Implementing Oracle9i Data Guard Michael New Senior Technical Consultant ThinkSpark Session id:
© 2006 Northgate Information Solutions plc and its associated companies. All rights reserved. Slide 1.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
Session id: Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
1 Copyright © 2006, Oracle. All rights reserved. Introduction.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
What is Flashback? Technology that allows you to revert the database to a point in time in the past Several versions of flashback available Different types.
23 Copyright © 2004, Oracle. All rights reserved. Preferring the Past: Flashback.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
Backup and Recovery.
Data, Space and Transaction Processing
Recovery Catalog Creation and Maintenance
Introduction.
Introduction.
Performing Database Recovery
Presentation transcript:

Oracle 9i Release 2, A new set of tips, tricks and Techniques. Steve George Sr. Delivery Manager – Oracle University Oracle Corporation Session id: #32681

I-3 Copyright © Oracle Corporation, All rights reserved. Overview This course concentrates on Oracle9 i Release 2 new features applicable to database administration Previous experience with Oracle databases is required for a full understanding of many new features, particularly Oracle8 and Oracle8 i

I-4 Copyright © Oracle Corporation, All rights reserved. New Release Numbering method

I-5 Copyright © Oracle Corporation, All rights reserved. Default Partition for List Partitioning Create a DEFAULT partition for all values not covered by other list partitions: CREATE TABLE customer... PARTITION BY LIST (state) (PARTITION p1 VALUES ('CA','CO'), PARTITION p2 VALUES ('FL','TX'), PARTITION p3 VALUES ( DEFAULT ) );

I-6 Copyright © Oracle Corporation, All rights reserved. Range List Composite Partitioning List (state) Range (month) CREATE TABLE customer... PARTITION BY RANGE (month) SUBPARTITION BY LIST (state)...; p1_s1 p1_s2 p1_s3 p2_s1 p2_s2 p2_s3 p3_s1 p3_s2 p3_s3 p4_s1 p4_s2 p4_s3 < 3< 6< 9< 12 'CA', 'CO' Default 'FL', 'TX'

I-7 Copyright © Oracle Corporation, All rights reserved.

I-8 Copyright © Oracle Corporation, All rights reserved. Composite Partitioning Using a Template Use a subpartition template for: –Range list partitions –Range hash partitions CREATE TABLE state_sales... PARTITION BY RANGE (month) SUBPARTITION BY LIST (state) SUBPARTITION TEMPLATE (SUBPARTITION s1 VALUES ('CA,''CO') SUBPARTITION s2 VALUES ('FL','TX') )...

I-9 Copyright © Oracle Corporation, All rights reserved. Rename Columns and Constraints SQL> ALTER TABLE employees 2 RENAME COLUMN salary TO sal; SQL> ALTER TABLE employees 2 RENAME CONSTRAINT sys_c TO pk_employees_id;

I-10 Copyright © Oracle Corporation, All rights reserved. RMAN: Control Archived Log Space Usage –Avoid errors caused by insufficient disk space for restored archived logs during recovery –Define size available for storage of archived logs copied to disk from backup sets –Use MAXSIZE option in conjunction with DELETE option RMAN> RECOVER DATABASE 2> DELETE 3> ARCHIVELOG MAXSIZE 100K;

Enterprise Manager Backup Wizard

Backup Wizard: Deletion of Archived Logs

Backup Wizard: Override RMAN Configuration

I-14 Copyright © Oracle Corporation, All rights reserved. DBNEWID Utility –· The DBID of a database –· The DBNAME of a database –· Both the DBNAME and DBID of a database d:\>nid DBNEWID: Release Production Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved. Keyword Description (Default) TARGET Username/Password (NONE) DBNAME New database name (NONE) LOGFILE Output Log (NONE) REVERT Revert failed change NO SETNAME Set a new database name only NO APPEND Append to output log NO HELP Displays these messages NO

I-15 Copyright © Oracle Corporation, All rights reserved. Shared Pool Advisory SQL> SELECT shared_pool_size_for_estimate AS pool_size, 2 estd_lc_size, estd_lc_time_saved 3 FROM v$shared_pool_advice; POOL_SIZE ESTD_LC_SIZE ESTD_LC_TIME_SAVED

I-16 Copyright © Oracle Corporation, All rights reserved.

Enterprise Manager Shared Pool Size Advisor

I-18 Copyright © Oracle Corporation, All rights reserved. Mean Time To Recover (MTTR) Advisory –Collect statistics by setting initialization parameters – FAST_START_MTTR_TARGET to non-zero value – STATISTICS_LEVEL to TYPICAL or ALL –View estimated overhead for different settings of FAST_START_MTTR_TARGET – In the rows of the view v$mttr_target_advice – Through the Enterprise Manager graphical interface to this view

View MTTR Advisory with Enterprise Manager

I-20 Copyright © Oracle Corporation, All rights reserved. V$PGA_TARGET_ADVICE TARGET_MB CACHE_HIT_PERCENT ESTD_OVERALLOC_COUNT

I-21 Copyright © Oracle Corporation, All rights reserved.

I-22 Copyright © Oracle Corporation, All rights reserved. PGA Sizing Advice Conclusions LOW_KB HIGH_KB OPTIMAL ONEPASS MPASS

I-23 Copyright © Oracle Corporation, All rights reserved.

PGA Sizing Advisor Output in Enterprise Manager

I-25 Copyright © Oracle Corporation, All rights reserved. Data Compression CREATE TABLE employees( employee_id INTEGER, first_name VACHAR2(20), … ) COMPRESS; CREATE TABLESPACE sample DATAFILE 'sample01.dbf' SIZE 20M DEFAULT COMPRESS; CREATE TABLE countries( country_id CHAR(2), country_name VARCHAR2(40), region_id NUMBER ) NOCOMPRESS TABLESPACE sample;

I-26 Copyright © Oracle Corporation, All rights reserved.

I-27 Copyright © Oracle Corporation, All rights reserved. Data Compression Optimization: Enabling Row Movement CREATE TABLE employees (employee_id NUMBER, first_name VARCHAR2(20), last_name VARCHAR2(30),...) ENABLE ROW MOVEMENT;

I-28 Copyright © Oracle Corporation, All rights reserved. Locally Managed SYSTEM Tablespace Create databases with a locally managed SYSTEM tablespace: CREATE DATABASE mydb... DATAFILE 'system01.dbf' SIZE 100M EXTENT MANAGEMENT LOCAL...;

I-29 Copyright © Oracle Corporation, All rights reserved. Flashback Queries -- Query based on past SCN number: SELECT employee_id, manager_id FROM employees AS OF SCN 81591; -- Find changes made between 1-2 hours ago: SELECT a.last_name, b.last_name FROM employees AS OF TIMESTAMP SYSDATE-1/24 a FULL OUTER JOIN employees AS OF TIMESTAMP SYSDATE-2/24 b ON (a.employee_id = b.employee_id) -- Create new table based on old data: CREATE TABLE new_employees AS SELECT * FROM employees AS OF SCN 90932;

I-30 Copyright © Oracle Corporation, All rights reserved. Reminder – please complete the OracleWorld session survey Thank you.

I-31 Copyright © Oracle Corporation, All rights reserved. Next Steps…. Recommended sessions –Enhancing Scalability, Availability and Survivability with Oracle9i Real Application Clusters –Oracle9i Rel.2: Partitioning for Manageability, Scalability and Performance –Lets Get Logical: Data Guard in Oracle9i Release 2 See Your Business in Our Software –Visit the DEMOogrounds for a customized architectural review, see a customized demo with Solutions Factory, or receive a personalized proposal. Visit the DEMOgrounds for more information. Relevant web sites to visit for more information –

A Q & Q U E S T I O N S A N S W E R S