how to thrive as a dba in an oracle10g world speaker: george trujillo, trubix, inc

35
1-1 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc Think Training, Think Trubix www.trubix.com

Upload: cricket

Post on 25-Feb-2016

32 views

Category:

Documents


0 download

DESCRIPTION

How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc. Think Training, Think Trubix. www.trubix.com. Objectives. Key Oracle10g features Address future Oracle database directions Discuss important skills sets for Oracle10g. Trubix Inc. Incorporated in 1994. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-1 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

How to Thrive as a DBA in an Oracle10g WorldSpeaker: George Trujillo, Trubix, Inc

Think Training,Think Trubix

www.trubix.com

Page 2: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-2 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Objectives

• Key Oracle10g features• Address future Oracle database directions• Discuss important skills sets for Oracle10g

Page 3: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-3 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Trubix Inc.

• Incorporated in 1994. – Largest content provider of Oracle related courses in

world. Over 110 related courses.• Instructors are hand-selected from top consultants in

North America.• Specializing in advanced Oracle, Linux and Java

solutions.• George Trujillo - 17 years Oracle consulting

experience.

Page 4: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-4 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Oracle10g Environments are More Complex

• Most Oracle9i DBAs are not prepared to support Oracle10g environments:– Web services– Java– XML– Application servers– LDAP and Internet environments– RAC, Data Guard, Advanced Queuing, Security– ASM

Page 5: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-5 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Oracle10g Key Areas

• Greatly simplified administration in day to day tasks.

• Enhancements to Oracle9i features• New tools and features• Enhancements to performance tuning• New backup and recovery features• New storage management features

Page 6: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-6 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Improved Administration Features

• Simplified initialization parameters– Basic and advanced parameters– Tracking database features usage– Improved tracing– New and improved advisories– Enhancements to utilities

• Server and threshold alerts• The advanced parameters are available for more

advanced databases.

Page 7: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-7 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

The OEM Central Console

• The Oracle 10g OEM Central Console is a Java based web browser that supports the management of the Oracle ecosystem.

• This Central Console can be used to manage all the Oracle 10g databases and Oracle 10g application servers.

• The Central Console can be used to manage, monitor and tune the entire Oracle infrastructure.

Page 8: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-8 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

The OEM Central Console

Page 9: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-9 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

EM2GO

• EM2GO supports Oracle Database 10g management with wireless PDAs.– Supports SSL.– Uses the Pocket PC Internet Browser– Communicates between the Console and the

Management Service.

Page 10: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-10 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Big Tablespaces

• Big tablespaces support extremely large tablespaces (4GB blocks) for VLDB environments.– They are designed for environments that

contain Automatic Storage Management (ASM), logical volume managers or RAID.

– An 8K block size big tablespace can support a 32 terabyte datafile. A 32K block big tablespace can support a 128 terabyte datafile.

Page 11: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-11 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Creating a Big Tablespace

• Bigfile tablespaces make sense in the context of an enterprise disk volume management context. Thus, the DBA must use a proper RAID configuration with striping and mirroring for optimal performance.

• Example first portion of bigfile tablespace create

statement:SQL > CREATE BIGFILE TABLESPACE big_data DATAFILE '/u09/oradata/dev10g/bigdata01.dbf' SIZE 100G….

Page 12: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-12 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Moving Tablespaces Cross Platform

• At version 10g the DBA now has the ability to port transportable tablespaces across OS platforms. This provides the DBA with great flexibility when working with an integrated environment.

• This view displays which OS environments support this new feature.

SQL > COLUMN PLATFORM_NAME FORMAT A30SQL> SELECT * FROM V$TRANSPORTABLE_PLATFORM;

Page 13: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-13 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

The SQL Access Advisor

• The SQL Access Advisor simplifies tuning SQL through the EM 10g browser based console. – The manual methods traditionally used by DBA’s are

largely eliminated with this tool which allows a DBA to tune SQL running or drawn from the library cache or SQL from a tuning set created by the DBA.

• The SQL Access Advisor recommends to the DBA indexes, materialized views etc to actually decrease what is known as the analyzed SQL workload according to the SQL Access Advisor.

Page 14: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-14 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

SQL Access Advisor

Page 15: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-15 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

SQL Tuning Advisor

• The SQL Tuning Advisor tool is designed for optimizing SQL. The SQL Tuning Advisor:

• Monitors inefficient SQL statements.• Evaluates resources (CPU, I/O, temporary space)

consumed by these SQL statements.• Allows a DBA to tune SQL within the browser

pages of the Oracle 10g database OEM console rather than via the command line only with utilities such as tkprof or SQL_TRACE.

Page 16: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-16 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Automatic Workload Repository

• The Automatic Workload Repository (AWR) collects data similar to STATSPACK for self-tuning features.

• Self-tuning features that use AWR:– SQL Tuning Advisor– Automatic Database Diagnostic Monitor– Undo advisor– Segment Advisor

Page 17: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-17 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Automatic Database Diagnostic Monitor

• The Automatic Database Diagnostic Monitor (ADDM) monitors over 50 events.

• The ADDM facilitates automatic configuration with:– Automatic Storage Management (ASM)– Automatic Memory Management (AMM)

Page 18: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-18 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

ADDM Looks For

• Memory structure utilization• CPU bottlenecks• Utilization (checkpoints, archiving, log files, …)• Concurrency• Top end SQL• I/O issues• High end PL/SQL• Hot segments

Page 19: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-19 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Automatic Memory Management

• Automatic Memory Management supports the automatic tuning of the key memory areas of the SGA.

Page 20: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-20 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Automatic Maintenance Tasks (AMT)

• The Automatic Maintenance Tasks allow DBAs to automate regular tasks with the Oracle Scheduler.

Page 21: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-21 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Automatic Tuning with Advisory Central

Page 22: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-22 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Scheduling Through EM

Page 23: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-23 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Data Pump

• Data pump is a new utility for exporting (expdp) and importing (impdp) data.– The new binaries are expdp and impdp. – The utilities can be accessed using the 10g EM

console web browser pages or the traditional CLI or command line interface.

Page 24: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-24 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Advantages of Data Pump

• Supports restarting data pump jobs.• Sorts exporting/importing over the network.• Estimates space required for export.• Supports filters with INCLUDE and

EXCLUDE.• Supports monitoring of current jobs.• Allows remapping of tablespaces.

Page 25: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-25 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Loading and Unloading Data

• An external table can load data into a data file as part of creating an external table with a AS SELECT statement.

CREATE TABLE my_ext_tab ORGANIZATION EXTERNAL (TYPE ORACLE_DATAPUMP DEFAULT DIRECTORY my_dir LOCATION ('my_d.dmp') ) AS SELECT * FROM my_tab;

Page 26: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-26 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Automatic Storage Management

• Automatic Storage Management (ASM) allows disks to be managed as a logical volume within a disk group.

• I/O is balanced to all disks within the disk group.• An ASM instance manages the disk group.• ASM contains two background processes (ARB0,

ARB1).• The database instance uses an ASMB process that

communicates with the ASM. RBAL does a global open on the ASM disks.

Page 27: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-27 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Advantages of ASM

• Improved performance by balanced I/O across disks in a disk group.

• Simplifies data file and disks with disk groups.• Can eliminate the need for a volume manager.• Supports mirroring• Disks can be added and removed while the

database is running.• Eliminates manual disk tuning.

Page 28: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-28 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Flashback technology

• Flashback database• Flashback table• Flashback version query• Flashback drop• Flashback transaction query• Flashback row history• Flashback transaction history

Page 29: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-29 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Flashback Table

• Flashback table restores a table or tables to a point in time without using backups.

• Indexes, triggers and constraints are automatically maintained.

Page 30: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-30 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Recycle Bin

• The recycle bin is a repository for dropped tables and the associated objects. Dependent objects include:– Indexes– Triggers– LOBS and LOB index segments– Nested tables

Page 31: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-31 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Database Infrastructure Administrator

• DBAs are needing to support new environments– Web services– Application servers– Java and XML– Multi-tiered architectures

Page 32: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-32 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Oracle Enterprise Manager

• OEM is for wimps• Central console management• Support for advanced features• Support for application server• Tuning and monitoring

Page 33: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-33 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Oracle10g Skills

• Upcoming areas that Oracle DBAs with the necessary skills are going to be in demand:– 64-bit architecture and Linux– Application servers– Multi-tiered architectures (Web services, XML, Java)– Advanced configurations (RAC, GRID, Data Guard, AQ)– Oracle10g storage management and ASM– Oracle10g Administration

Page 34: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-34 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Visit our web site at:Visit our web site at:www.trubix.comwww.trubix.com

Page 35: How to Thrive as a DBA in an Oracle10g World Speaker: George Trujillo, Trubix, Inc

1-35 Copyright Trubix™ Inc.,2003 - 2004 All rights reserved. www.trubix.com

Thank You for Attending!

Think Training,Think Trubix

www.trubix.com

George J. Trujillo, Jr. [email protected]