Tải bản đầy đủ (.pdf) (575 trang)

ocp oracle database 10g new features for administrators 2004

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (11.75 MB, 575 trang )


OCP:

Oracle 10

g

New Features
for Administrators

Study Guide

4355.book Page i Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

4355.book Page ii Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

San Francisco • London

OCP:

Oracle 10

g

New Features


for Administrators

Study Guide

Bob Bryla
Biju Thomas

4355.book Page iii Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

Associate Publisher: Neil Edde
Acquisitions and Developmental Editor: Jeff Kellum
Production Editor: Erica Yee
Technical Editors: Joe Johnson, Bob Wahl
Copy Editor: Kim Wimpsett
Compositor: Happenstance Type-O-Rama
Graphic Illustrator: Jeff Wilson, Happenstance Type-O-Rama
CD Coordinator: Dan Mummert
CD Technician: Kevin Ly
Proofreaders: Amy Rasmussen, Nancy Riddiough
Indexer: Nancy Guenther
Book Designer: Bill Gibson
Cover design: Archer Design
Cover photograph: Photodisc and Victor Arre
Copyright © 2004 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. The
author(s) created reusable code in this publication expressly for reuse by readers. Sybex grants readers limited per-
mission to reuse the code found in this publication or its accompanying CD-ROM so long as the author(s) are
attributed in any application containing the reusable code and the code itself is never distributed, posted online
by electronic transmission, sold, or commercially exploited as a stand-alone product. Aside from this specific

exception concerning reusable code, no part of this publication may be stored in a retrieval system, transmitted,
or reproduced in any way, including but not limited to photocopy, photograph, magnetic, or other record, with-
out the prior agreement and written permission of the publisher.
Library of Congress Card Number: 2004109303
ISBN: 0-7821-4355-5
SYBEX and the SYBEX logo are either registered trademarks or trademarks of SYBEX Inc. in the United States
and/or other countries.
Screen reproductions produced with FullShot 99. FullShot 99 © 1991-1999 Inbit Incorporated. All rights reserved.
FullShot is a trademark of Inbit Incorporated.
Netscape Communications, the Netscape Communications logo, Netscape, and Netscape Navigator are trade-
marks of Netscape Communications Corporation.
Netscape Communications Corporation has not authorized, sponsored, endorsed, or approved this publication
and is not responsible for its content. Netscape and the Netscape Communications Corporate Logos are trade-
marks and trade names of Netscape Communications Corporation. All other product names and/or logos are
trademarks of their respective owners.
Internet screen shot(s) using Microsoft Internet Explorer 6.0 reprinted by permission from Microsoft Corporation.
SYBEX is an independent entity from Oracle Corporation and is not affiliated with Oracle Corporation in any man-
ner. This publication may be used in assisting students to prepare for an Oracle Certified Professional exam. Neither
Oracle Corporation nor SYBEX warrants that use of this publication will ensure passing the relevant exam. Oracle
is either a registered trademark or a trademark of Oracle Corporation in the United States and/or other countries.
TRADEMARKS: SYBEX has attempted throughout this book to distinguish proprietary trademarks from
descriptive terms by following the capitalization style used by the manufacturer.
The author and publisher have made their best efforts to prepare this book, and the content is based upon final
release software whenever possible. Portions of the manuscript may be based upon pre-release versions supplied
by software manufacturer(s). The author and the publisher make no representation or warranties of any kind
with regard to the completeness or accuracy of the contents herein and accept no liability of any kind including
but not limited to performance, merchantability, fitness for any particular purpose, or any losses or damages of
any kind caused or alleged to be caused directly or indirectly from this book.
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1


4355.book Page iv Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

Software License Agreement: Terms and Conditions

The media and/or any online materials accompanying
this book that are available now or in the future contain
programs and/or text files (the “Software”) to be used in
connection with the book. SYBEX hereby grants to you
a license to use the Software, subject to the terms that
follow. Your purchase, acceptance, or use of the Soft-
ware will constitute your acceptance of such terms.
The Software compilation is the property of SYBEX
unless otherwise indicated and is protected by copyright
to SYBEX or other copyright owner(s) as indicated in the
media files (the “Owner(s)”). You are hereby granted a
single-user license to use the Software for your personal,
noncommercial use only. You may not reproduce, sell,
distribute, publish, circulate, or commercially exploit the
Software, or any portion thereof, without the written
consent of SYBEX and the specific copyright owner(s) of
any component software included on this media.
In the event that the Software or components include
specific license requirements or end-user agreements,
statements of condition, disclaimers, limitations or war-
ranties (“End-User License”), those End-User Licenses
supersede the terms and conditions herein as to that par-
ticular Software component. Your purchase, acceptance,

or use of the Software will constitute your acceptance of
such End-User Licenses.
By purchase, use or acceptance of the Software you fur-
ther agree to comply with all export laws and regula-
tions of the United States as such laws and regulations
may exist from time to time.

Reusable Code in This Book

The author(s) created reusable code in this publication
expressly for reuse by readers. Sybex grants readers
limited permission to reuse the code found in this pub-
lication, its accompanying CD-ROM or available for
download from our website so long as the author(s) are
attributed in any application containing the reusable code
and the code itself is never distributed, posted online by
electronic transmission, sold, or commercially exploited
as a stand-alone product.

Software Support

Components of the supplemental Software and any
offers associated with them may be supported by the
specific Owner(s) of that material, but they are not sup-
ported by SYBEX. Information regarding any available
support may be obtained from the Owner(s) using the
information provided in the appropriate read.me files or
listed elsewhere on the media.
Should the manufacturer(s) or other Owner(s) cease to
offer support or decline to honor any offer, SYBEX

bears no responsibility. This notice concerning support
for the Software is provided for your information only.
SYBEX is not the agent or principal of the Owner(s),
and SYBEX is in no way responsible for providing any
support for the Software, nor is it liable or responsible
for any support provided, or not provided, by the
Owner(s).

Warranty

SYBEX warrants the enclosed media to be free of physical
defects for a period of ninety (90) days after purchase. The
Software is not available from SYBEX in any other
form or media than that enclosed herein or posted to
www.sybex.com. If you discover a defect in the media
during this warranty period, you may obtain a replace-
ment of identical format at no charge by sending the defec-
tive media, postage prepaid, with proof of purchase to:
SYBEX Inc.
Product Support Department
1151 Marina Village Parkway
Alameda, CA 94501
Web:



After the 90-day period, you can obtain replacement
media of identical format by sending us the defective
disk, proof of purchase, and a check or money order for
$10, payable to SYBEX.


Disclaimer

SYBEX makes no warranty or representation, either
expressed or implied, with respect to the Software or its
contents, quality, performance, merchantability, or fit-
ness for a particular purpose. In no event will SYBEX,
its distributors, or dealers be liable to you or any other
party for direct, indirect, special, incidental, consequen-
tial, or other damages arising out of the use of or inabil-
ity to use the Software or its contents even if advised of
the possibility of such damage. In the event that the Soft-
ware includes an online update feature, SYBEX further
disclaims any obligation to provide this feature for any
specific duration other than the initial posting.
The exclusion of implied warranties is not permitted by
some states. Therefore, the above exclusion may not
apply to you. This warranty provides you with specific
legal rights; there may be other rights that you may have
that vary from state to state. The pricing of the book
with the Software by SYBEX reflects the allocation of
risk and limitations on liability contained in this agree-
ment of Terms and Conditions.

Shareware Distribution

This Software may contain various programs that are
distributed as shareware. Copyright laws apply to both
shareware and ordinary commercial software, and the
copyright Owner(s) retains all rights. If you try a share-

ware program and continue using it, you are expected to
register it. Individual programs differ on details of trial
periods, registration, and payment. Please observe the
requirements stated in appropriate files.

Copy Protection

The Software in whole or in part may or may not be
copy-protected or encrypted. However, in all cases,
reselling or redistributing these files without authoriza-
tion is expressly forbidden except as specifically pro-
vided for by the Owner(s) therein.

4355.book Page v Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

4355.book Page vi Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

To Mary Christine and the Kids



Bob Bryla
To Shiji and Joshua




Biju Thomas

4355.book Page vii Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

Acknowledgments

I would like to thank all the folks at Sybex who made this a most enjoyable and rewarding
experience, including Erica Yee and Jeff Kellum, who reinforced my attention to detail.
Thanks go to Biju for not letting me write too many of these chapters myself (again). Thanks
also to Kim Wimpsett, who filled in the gaps from my college writing courses, and to Joe
Johnson and Bob Wahl for their insightful comments and suggestions.
This book wouldn’t be possible without the love and support from my family throughout the
long nights and weekends when I still managed to find time to give the kids a bath and read
books before bedtime. I loved every minute of it.
Thanks also to my professional colleagues, both past and present, who provided me with
inspiration, support, and guidance and who pushed me a little further to take a little risk now
and then, starting with that math teacher in high school, whose name eludes me at the moment,
who introduced me to computers on a DEC PDP-8 with a teletype and a paper tape reader.



Bob Bryla
I would like to thank the wonderful people at Sybex for their high-quality work. Thank you,
Jeff (development editor), for supporting me, making valuable comments, and ensuring the
chapters have the smooth flow and transition. I thank Erica Yee (production editor) for making
sure every piece of the book ties together. I thank each one of the professionals at Sybex involved
in the publication of this book for their hard work.
I thank Kim Wimpsett (copy editor) for her patience with my writing. Thank you, Kim; your

edits removed the confusion from several sentences and made a difference to the chapters. I
thank Joe Johnson and Bob Wahl for their technical review and invaluable comments. Bob (Bryla),
thank you for doing the initial study and laying the groundwork for the book.
I owe for the support and encouragement from my colleagues at work. Thank you, Paul,
Wendy, Charles, and Balbir.
Finally, all of this was possible because of the love and support from my beloved wife, Shiji.
Thank you, Shiji, for occupying Joshua while I sat in front of the computer. Thank you, Joshua,
for leaving me alone and playing with “Thomas” when I said that “Appa is working.”



Biju Thomas

4355.book Page viii Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

Contents at a Glance

Introduction xv
Assessment Test xxiv

Chapter 1

Installing and Upgrading to Oracle 10

g

1


Chapter 2

Moving Data and Managing the Scheduler 55

Chapter 3

Automating Management 133

Chapter 4

General Storage Management 195

Chapter 5

Automated Storage Management 243

Chapter 6

Performance and Application Tuning 317

Chapter 7

Backup, Recovery, and High Availability 351

Chapter 8

Security and SQL Enhancements 409

Appendix A


SQL*Plus Enhancements 485

Appendix B

New and Obsolete Initialization Parameters 491

Appendix C

PL/SQL Enhancements and New Packages 497

Glossary

503

Index 515

4355.book Page ix Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

Contents

Introduction xv
Assessment Test xxiv

Chapter 1 Installing and Upgrading to Oracle 10

g

1


Installing Oracle 10

g

2
Using the Oracle Universal Installer 3
Examining the OUI Support for New Features 6
Introducing Installation Enhancements 10
Configuring Oracle 10

g

13
Examining DBCA Enhancements 14
Using the DBCA to Clone a Database 14
Simplifying Instance Configuration 17
Using the Enterprise Manager 18
Viewing Database Usage 23
Upgrading the Database 26
Introducing Upgrade-Supported Releases 27
Validating the Database Before Upgrade 28
Performing the Upgrade 35
Summary 46
Exam Essentials 47
Review Questions 49
Answers to Review Questions 53

Chapter 2 Moving Data and Managing the Scheduler 55


Introducing Data Pump 56
Introducing the Architecture of Data Pump 57
Introducing Data Access Methods 59
Exploring the Advantages of Data Pump 60
Using Data Pump Clients 61
Using the Data Pump Wizard 83
Making Data Movement Enhancements 86
Using Cross-Platform Transportable Tablespaces 87
Writing and Projecting External Tables 90
Managing the Scheduler 95
Understanding Scheduler Concepts 96
Creating Basic Scheduler Components 97
Using the Scheduler 107
Managing Advanced Scheduler Components 114
Querying the Data Dictionary 121

4355.book Page x Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

Contents

xi

Summary 123
Exam Essentials 125
Review Questions 126
Answers to Review Questions 130

Chapter 3 Automating Management 133


Collecting Performance Statistics 134
Using the Automatic Workload Repository 135
Working with Automatic Workload Repository 138
Base Statistics and Metrics 145
Diagnosing Performance Statistics 146
Using the Automatic Database Diagnostic Monitor 147
Using Server-Generated Alerts 151
Building Your Own Alert Mechanism 156
Automating Database Management 157
Using Automatic Shared Memory Management (ASMM) 157
Tuning Automatic Undo Retention 160
Tuning the Automatic Checkpoint 163
Collecting Automatic Optimizer Statistics 164
Identifying the Advisory Framework 171
Automating Tasks 179
Resource Manager Enhancements 179
Automatic Session Switchback 180
Setting Idle Timeout 181
Creating a Mapping 181
Changes to Resource Allocation Method 185
Summary 185
Exam Essentials 186
Review Questions 188
Answers to Review Questions 192

Chapter 4 General Storage Management 195

Managing Tablespaces 196
The


SYSAUX

Tablespace 197
Bigfile Tablespaces 204
Temporary Tablespace Groups 210
Other Tablespace Enhancements 213
Making Partitioning Enhancements 219
Partition Maintenance Using EM Database Control 219
Partitioned Index Organized Tables (IOTs) 220
Local-Partitioned Index Enhancements 222
Leveraging Index Enhancements 224
Skipping Unusable Indexes 224

4355.book Page xi Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

xii

Contents

Maintaining Index Partition Storage Characteristics 224
Bitmap Index Storage Enhancements 230
Summary 230
Exam Essentials 232
Review Questions 234
Answers to Review Questions 240

Chapter 5 Automated Storage Management 243


Enhancing Space Management 245
Proactive Tablespace Monitoring 245
Segment Management 257
Miscellaneous Space Management Features 279
Automatic Storage Management 284
ASM Architecture 284
Creating an ASM Instance 286
ASM Instance Characteristics 288
ASM Dynamic Performance Views 290
ASM Filenames 291
ASM File Types and Templates 293
Administering ASM Disk Groups 296
Summary 306
Exam Essentials 307
Review Questions 308
Answers to Review Questions 315

Chapter 6 Performance and Application Tuning 317

Managing Optimizer Statistics 318
Gathering Automatic Statistics 319
Leveraging Enhanced Query Optimization 320
Gathering Data Dictionary Statistics 322
Monitoring DML Tables 323
Understanding Rule-Based Optimizer Desupport 324
Understanding the SQL Tuning Advisor 324
Introducing the SQL Tuning Advisor 325
Using SQL Tuning Advisor 328
Understanding the SQL Access Advisor 334

Introducing the SQL Access Advisor 334
Using the SQL Access Advisor 335
Accessing the Database Control Performance Pages 339
Summary 342
Exam Essentials 342
Review Questions 344
Answers to Review Questions 349

4355.book Page xii Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

Contents

xiii

Chapter 7 Backup, Recovery, and High Availability 351

Leveraging the Flash Recovery Area 353
Flash Recovery Area Occupants 353
Flash Recovery Area and SQL Commands 354
Flash Recovery Area and the EM Database Control 355
Flash Recovery Area Management 356
Flash Recovery Directory Structure 356
Backing Up the Flash Recovery Area 358
Flash Recovery Area Data Dictionary Views 358
Flash Recovery Area Best Practices 361
Performing Incremental and Incrementally Updated Backups 361
Recovery with Incrementally Updated Backups 361
Fast Incremental Backups 363

Using Miscellaneous Backup Features 366
RMAN Command Changes 366
Online Backup Mode 368
Backing Up Different Object Types with RMAN 369
Compressed Backups 373
Introducing Miscellaneous Recovery Features 375
Fast Recovery Using

SWITCH DATABASE

376
Recovery Using

RESETLOGS

376
Flashing Back Any Logical Error 376
Flashback Database 377
Flashback Drop 383
Flashback Query 390
Flashback Table 395
Guaranteed Undo Retention 397
SCN and Time Mapping Enhancements 397
Flashback Privileges 398
Summary 398
Exam Essentials 399
Review Questions 400
Answers to Review Questions 406

Chapter 8 Security and SQL Enhancements 409


Securing Data 411
Leveraging Virtual Private Database 411
Auditing Enhancements 418
Introducing SQL New Features 426
MERGE Improvements 426
Partitioned Outer Join 433
Spreadsheet Computations Using the

MODEL

Clause 438
Regular Expressions 448

4355.book Page xiii Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

xiv

Contents

Data Type Enhancements 453
Case- and Accent-Insensitive Queries 456
Quote Operator 457
Introducing Miscellaneous Database Enhancements 458

MAXTRANS

Ignored


458

Flushing the Buffer Cache 459
Resumable Space Allocation 459
Materialized View Enhancements 460
Database Connectivity Improvements 464
LogMiner Enhancements 466
Transaction Rollback Monitoring 466
Tracing Enhancements 467
Summary 474
Exam Essentials 476
Review Questions 477
Answers to Review Questions 482

Appendix A

SQL*Plus Enhancements 485

Enhancements to the

DESCRIBE

Command 486
Changes to Profile File Calls 487
Supporting Whitespace in Filenames 487
Changes to the

SPOOL


Command 487
Introducing New Predefined Variables 488
Changes to the

SHOW

Command 489
Invoking SQL*Plus 489

Appendix B

New and Obsolete Initialization Parameters 491

New Parameters 492
Obsolete Parameters 493
Deprecated Parameters 495

Appendix C

PL/SQL Enhancements and New Packages 497

Enhancements to the PL/SQL Compiler 498
Enhancements to PL/SQL 499
New Packages in PL/SQL 500

Glossary

503

Index 515


4355.book Page xiv Thursday, September 16, 2004 8:09 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

Introduction

The information technology (IT) industry has high demand for professionals, and Oracle cer-
tifications are the hottest credential in the database world. You have made the right decision to
pursue an upgrade to your certification, because keeping your Oracle certification current will
give you a distinct advantage in this highly competitive market.
Most readers should already be familiar with Oracle and do not need an introduction to the
Oracle database world. For those who aren’t familiar with the company, Oracle, founded in
1977, sold the first commercial relational database and is now the world’s leading database
company and second-largest independent software company, with revenues of more than $10
billion, serving more than 145 countries.
Oracle databases are the de



facto standard for large Internet sites, and Oracle advertisers
are boastful but honest when they proclaim that “the Internet runs on Oracle.” Almost all big
Internet sites run Oracle databases. Oracle’s penetration of the database market runs deep
and is not limited to dot-com implementations. Enterprise resource planning (ERP) applica-
tion suites, data warehouses, and custom applications at many companies rely on Oracle. The
demand for database administrator (DBA) resources remains higher than others during weak
economic times.
This book is intended to help you upgrade from an Oracle 9

i


Certified Professional to an
Oracle 10

g

Certified Professional (OCP), clearing the way to pursue an Oracle Certified Master
(OCM) certification. Using this book and a practice database, you can learn the new features
of the Oracle 10

g

Database (Oracle 10

g

) and pass the 1Z0-040 Oracle Database 10

g

: New Fea-
tures for Administrators exam.

Why Become an Oracle Certified Professional?

The number-one reason to become an OCP or maintain an OCP certification is to gain more vis-
ibility and greater access to the industry’s most challenging opportunities. Oracle certification
is the best way to demonstrate your knowledge and skills in Oracle database systems.
Certification is proof of your knowledge and shows that you have the skills required to sup-
port Oracle core products. The Oracle certification program can help a company identify

proven performers who have demonstrated their skills and who can support the company’s
investment in Oracle technology. It demonstrates that you have a solid understanding of your
job role and the Oracle products used in that role.
OCPs are among the best paid in the IT industry. Salary surveys consistently show the OCP
certification to yield higher salaries than other certifications, including Microsoft, Novell, and
Cisco.
So, if you have an Oracle 9

i

OCP certification, you have a solid practical background as a
DBA, and you’re ready to upgrade your certification to Oracle 10

g

, this book is for you!

4355Intro.fm Page xv Monday, September 20, 2004 1:54 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

xvi

Introduction

Oracle Certifications

Oracle certifications follow a track that is oriented toward a job role. The certifications consist
of database administration, application developer, and web application server administrator
tracks. Within each track, Oracle has a multitiered certification program.

In addition to this multitiered approach, Oracle provides upgrade paths from previous ver-
sions of Oracle as well as special accreditations that you can attach to your certification.
The material in this book will address only the upgrade from the Oracle 9

i

to the Oracle 10

g


database administration track and the exam 1Z0-040 Oracle Database 10

g

: New Features for
Administrators. Other Sybex books at



can help students new to the
DBA world prepare for the OCA exam 1Z0-042 Oracle Database 10

g

: Administration I and for
the OCP exam 1Z0-043 Oracle Database 10

g


: Administration II.

See the Oracle website at

/>

for the latest information on all of Oracle’s certification paths along with Oracle’s

training resources.

The role of the DBA has become a key to success in today’s highly complex database systems.
The best DBAs work behind the scenes but are in the spotlight when critical issues arise. They
plan, create, maintain, and ensure that the database is available for the business. They are
always watching the database for performance issues and to prevent unscheduled downtime.
The DBA’s job requires broad understanding of the architecture of Oracle database and requires
expertise in solving problems.
Since this book focuses on the DBA track, the following sections present a closer look at the
different tiers of this track.

Oracle Database 10

g

Administrator Certified Associate

The Oracle 10

g

Administrator Certified Associate certification is a streamlined, entry-level

certification for the database administration track and is required to advance toward the more
senior certification tiers. This certification requires you pass the following exam that demon-
strates your knowledge of Oracle basics:


1Z0-042 Oracle Database 10

g

: Administration I

Oracle Database 10

g

Administrator Certified Professional

The OCP tier of the database administration track challenges you to demonstrate your continu-
ing experience and knowledge of Oracle technologies. The Oracle 10

g

Administrator Certified
Professional certification requires achievement of the Administrator Certified Associate certifi-
cation, as well as passing the following exam:


1Z0-043 Oracle Database 10

g


: Administration II

4355Intro.fm Page xvi Monday, September 20, 2004 1:54 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

Introduction

xvii

In addition, the OCP candidate must take one instructor-led in-class course from the follow-
ing list:


Oracle Database 10

g

: Administration Workshop I


Oracle Database 10

g

: Administration Workshop II


Oracle Database 10


g

: Introduction to SQL


Oracle Database 10

g

: New Features for Administrators


Oracle Database 10

g

: Program with PL/SQL
If you already have your OCP 9

i

or earlier and have elected to take the upgrade path, you
do not need to take a class to achieve your OCP for Oracle 10

g

.

You should verify this list against the Oracle education website (


www.oracle

.com/education

), as this list may change without any notice.

Oracle Database 10g Certified Master

Oracle Database 10

g

Administration Certified Master is the highest level of certification
that Oracle offers. To become a certified master, you must first achieve Certified Professional
status, then complete two advanced instructor-led classes at an Oracle education facility, and
finally pass a hands-on, two-day exam at Oracle Education. The classes and practicum exam are
offered only at an Oracle education facility and may require travel.

More details on the required coursework will be available in late 2004.

Oracle 10

g

Upgrade Paths

Existing OCPs can upgrade their certification in a number of ways: A single exam can upgrade
an Oracle 8


i

DBA directly to Oracle Database 10

g

certification in addition to the certification
upgrade from Oracle 9

i

to Oracle Database 10

g

covered in this book. Also, Oracle 7.3 and Ora-
cle 8 DBAs can upgrade to an Oracle 9

i

certification with a single exam.

Oracle Database 10

g

Administrator Special Accreditations

New to the Oracle certification program are the Oracle Database 10g Administrator Special
Accreditation programs. These accreditations formally recognize the specialized knowledge of

OCPs, in particular database administration areas such as high availability, security, and 10

g


Grid Control. OCPs who pass one of these special accreditation exams will receive a certificate
that formally recognizes their specialized competency. The first Oracle Database 10g Special
Accreditation will be the High Availability Special Accreditation, available in 2004.

4355Intro.fm Page xvii Monday, September 20, 2004 1:54 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

xviii

Introduction

Oracle Database 10

g

DBA Assessment

Oracle also provides an optional (and free) prerequisite to all the proctored exams, which is the
following online exam:


1Z0-041 Oracle Database 10

g


: DBA Assessment
This exam evaluates your proficiency with basic administration and management of Oracle
Database 10

g

, and upon passing this online exam you receive a certificate of completion from
Oracle University. Although anyone can take this exam, it is designed for those new to Oracle
and is an excellent measurement of how familiar you are with the new Oracle 10

g

database.

Oracle Exam Requirements

The Oracle Database 10

g

: New Features for Administrators exam covers a number of core
subject areas. As with many typical multiple-choice exams, you can follow a number of tips
to maximize your score on the exam.

Skills Required for the Oracle Database 10

g

: New Features

for Administrators Exam

To pass the Oracle 9

i

to Oracle 10

g

certification upgrade exam, you need to master the follow-
ing subject areas in Oracle 10

g

:


Installation


Server configuration


Data loading and unloading


Automatic management



Manageability infrastructure


Application tuning


Support for analytical applications


System resource management


Automating tasks with the Scheduler


Space management


Improved VLDB support


Backup and recovery enhancements


Flashback any error


General storage enhancement



Automatic storage enhancement


Software maintenance


Security


Miscellaneous new features

4355Intro.fm Page xviii Monday, September 20, 2004 1:54 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

Introduction

xix

Tips for Taking the OCP Exam

Use the following tips to help you prepare for and pass the exam:


The OCP upgrade exam contains about 55–80 questions to be completed in 90 minutes.
Answer the questions you know first so that you do not run out of time.


Many questions on the exam have answer choices that at first glance look identical. Read
the questions carefully. Do not just jump to conclusions. Make sure you clearly understand

what each question asks.


Some questions are based on scenarios. Some of the scenarios contain nonessential informa-
tion and exhibits. You need to be able to identify what’s important and what’s not important.


Do not leave any questions unanswered. There is no negative scoring; always answer a
question rather than leave it blank. After selecting an answer, you can mark a difficult ques-
tion or one that you’re unsure of and come back to it later.


When answering questions you are not sure about, use a process of elimination to get rid
of the obviously incorrect answers first. Doing this greatly improves your odds if you need
to make an educated guess.

If you are not sure of your answer, mark it for review and then look for other questions that
may help you eliminate any incorrect answers. At the end of the test, you can review the
questions you marked earlier.
You should be familiar with the exam objectives, which are included in the
front of this book as a perforated tear-out card. You can also find them at
www.oracle.com/education/certification/objectives/index.html?40.html.
In addition, if you would like information about recommended classes and
passing scores, visit www.oracle.com/education/certification/index
.html?dba_upgrade.html.
Where Do You Take the New Features Exam?
The 1Z0-040 Oracle Database 10g: New Features for Administrators exam is available at any
of the more than 900 Sylvan Prometric Authorized Testing Centers around the world. For the
location of a testing center near you, call 1-800-891-3926. Outside the United States and Canada,
contact your local Sylvan Prometric Registration Center.

To register for a proctored OCP exam at a Sylvan Prometric test center, follow these steps:
1. Determine the number of the exam you want to take. For the New Features exam, it
is 1Z0-040.
2. Register with Sylvan Prometric online at or in North America
by calling 1-800-891-EXAM (800-891-3926). At this point, you will be asked to pay for
the exam. At the time of this writing, the exams are $125 each and must be taken within
one year of payment.
3. When you schedule the exam, you’ll get instructions regarding all appointment and can-
cellation procedures, the ID requirements, and information about the testing location.
4355Intro.fm Page xix Monday, September 20, 2004 1:54 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com
xx
Introduction
You can schedule exams up to six weeks in advance or as soon as one working day before
the day you want to take it. If you need to cancel or reschedule your exam appointment, contact
Sylvan Prometric at least 24 hours or one business day in advance.
What Does This Book Cover?
This book covers everything you need to pass the Oracle 10g New Features for Administrators
exam. Each chapter begins with a list of exam objectives.
Chapter 1 In this chapter, we discuss the new Oracle 10g installation procedures, either for an
upgrade from a previous installation or for a new installation.
Chapter 2 This chapter explains the Oracle 10g Job Scheduler, the new Data Pump export
and import features, and enhancements to external tables.
Chapter 3 In this chapter, we discuss the various automated management features of Oracle 10g,
such as the new statistics collection methods, the Automatic Workload Repository (AWR), and
the Resource Manager enhancements.
Chapter 4 In this chapter, you will learn about the storage and space management enhance-
ments, including the SYSAUX tablespace and bigfile tablespaces.
Chapter 5 This chapter explains the automated space management enhancements in Oracle 10g,

including how to set up and manage an Automatic Storage Management (ASM) instance with
ASM disk groups. In addition, this chapter covers proactive space management features and
new segment space management features.
Chapter 6 In this chapter, we discuss performance enhancements, especially in the areas
of statistics collection, SQL statement tuning, and Automatic Shared Memory Management
(ASMM).
Chapter 7 This chapter explains the new database availability features in Oracle 10g. In addi-
tion to a number of Recovery Management (RMAN) enhancements, several new types of
human error correction methods are covered: Flashback Database, Flashback Drop, Flashback
Versions Query, Flashback Transaction Query, and Flashback Table.
Chapter 8 Here, we discuss security enhancements related to Virtual Private Databases
(VPDs), as well as a number of miscellaneous enhancements in data warehouse and analytical
application environments.
Each chapter ends with a list of exam essentials, which summarize the chapter, with a slant
on the topics you need to be familiar with for the exam. The chapters conclude with 20 review
questions specifically designed to help you retain the knowledge presented. To really hone your
skills, read and answer each question carefully.
4355Intro.fm Page xx Monday, September 20, 2004 1:54 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com
Introduction
xxi
How to Use This Book
This book provides a solid foundation for the serious effort of preparing for the Oracle 10g
OCP upgrade exam. To best benefit from this book, use the following study method:
1. Take the assessment test immediately following this introduction. (The answers are at the
end of the test.) Carefully read the explanations for any questions you get wrong, and note
in which chapters the material is covered. This information should help you plan your study
strategy.
2. Study each chapter carefully, making sure you fully understand the information and the test

objectives listed at the beginning of each chapter. Pay close attention to any chapter related
to questions you missed in the assessment test.
3. Complete all hands-on exercises in the chapter, referring to the chapter so that you under-
stand the reason for each step you take. If you do not have an Oracle database available,
be sure to study the examples carefully. Answer the review questions related to that chapter.
(The answers appear at the end of each chapter, after the “Review Questions” section.)
4. Note the questions that confuse or trick you, and study those sections of the book again.
5. Take the two bonus exams included on the accompanying CD. This will give you a com-
plete overview of what you can expect to see on the real test.
6. Remember to use the products on the CD included with this book. The electronic flashcards
and the Sybex Test Engine exam preparation software have been specifically designed to
help you study for and pass your exam.
To learn all the material covered in this book, you will need to apply yourself regularly and
with discipline. Try to set aside the same time period every day to study, and select a comfort-
able and quiet place to do so. If you work hard, you will be surprised at how quickly you learn
this material. All the best!
What’s on the CD?
We have worked hard to provide some really great tools to help you with your certification
process. All the following tools should be loaded on your workstation when you’re studying
for the test.
The Sybex Test Engine Preparation Software
This test-preparation software helps you to pass the 1Z0-040 Oracle Database 10g: New Fea-
tures for Administrators exam. In this test, you will find all the questions from the book, plus
two additional bonus exams that appear exclusively on the CD. You can take the assessment
test, test yourself by chapter, or take the practice exams. The test engine installs on both a Win-
dows platform and Linux platform.
4355Intro.fm Page xxi Monday, September 20, 2004 1:54 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com
xxii

Introduction
Here is a sample screen from the Sybex Test Engine:
Electronic Flashcards for PC and Palm Devices
After you read the OCP: Oracle 10g New Features for Administrators Study Guide, read the
review questions at the end of each chapter, and study the practice exams included in the book
and on the CD. You can also test yourself with the flashcards included on the CD.
The flashcards are designed to test your understanding of the fundamental concepts covered
in the exam. Here is what the Sybex flashcard interface looks like:
4355Intro.fm Page xxii Monday, September 20, 2004 1:54 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com
Introduction
xxiii
OCP: Oracle 10g New Features for Administrators
Study Guide in PDF
Many people like the convenience of being able to carry their study guide on a CD, which is why
we included this book in PDF. This will be extremely helpful to readers who fly or commute on
a bus or train and don’t want to carry a book, as well as to readers who find it more comfortable
reading from their computer. We’ve also included a copy of Adobe Acrobat Reader on the CD.
How to Contact the Authors
To contact Bob Bryla, you can e-mail him at
To contact Biju Thomas, you can e-mail him at or visit his website for
DBAs at />About the Authors
Bob Bryla is an Oracle 8, 8i, 9i, and 10g Certified Professional with more than 15 years of expe-
rience in database design, database application development, training, and database adminis-
tration. He is an Internet database analyst and Oracle DBA at Lands’ End, Inc., in Dodgeville,
Wisconsin.
Biju Thomas is an Oracle 7.3, Oracle 8, Oracle 8i, Oracle 9i, and Oracle 10g Certified Pro-
fessional with more than 11 years of Oracle database management and application development
experience. He is a senior database administrator for Delinea Corporation and resides in Fort

Worth, Texas. He maintains a website for DBAs at />4355Intro.fm Page xxiii Monday, September 20, 2004 1:54 PM
Copyright ©2005 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501.
www.sybex.com

×