OCP: Oracle 10g New Features for Administrators: Study Guide Bob Bryla Biju Thomas SYBEX® OCP: Oracle 10 g New Features for Administrators Study Guide 4355.book Page i Thursday, September 16, 2004 8:09 PM 4355.book Page ii Thursday, September 16, 2004 8:09 PM 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 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 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: http://www.sybex.com 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 4355.book Page vi Thursday, September 16, 2004 8:09 PM 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 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 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 [...]... from the Oracle 9i to the Oracle 10g database administration track and the exam 1Z 0-0 40 Oracle Database 10g: New Features for Administrators Other Sybex books at http://www .sybex. com can help students new to the DBA world prepare for the OCA exam 1Z 0-0 42 Oracle Database 10g: Administration I and for the OCP exam 1Z 0-0 43 Oracle Database 10g: Administration II See the Oracle website at http://www .oracle. com/education/certification... Oracle 9i Certified Professional to an Oracle 10g 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 10g Database (Oracle 10g) and pass the 1Z 0-0 40 Oracle Database 10g: New Features for Administrators exam Why Become an Oracle Certified Professional? The number-one... the new Oracle 10g database Oracle Exam Requirements The Oracle Database 10g: 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 10g: New Features for Administrators Exam To pass the Oracle 9i to Oracle 10g certification upgrade... Administration Workshop I Oracle Database 10g: Administration Workshop II Oracle Database 10g: Introduction to SQL Oracle Database 10g: New Features for Administrators Oracle Database 10g: Program with PL/SQL If you already have your OCP 9i or earlier and have elected to take the upgrade path, you do not need to take a class to achieve your OCP for Oracle 10g You should verify this list against the Oracle education... 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 1Z 0-0 40 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-8 0 0-8 9 1-3 926... www .oracle. com/education/certification/) for the most current exam objectives listing With the release of Oracle Database 10g (Oracle 10g) , DBAs have a database that is simple to set up, more robust, and self-managing Oracle 10g is full of new features, most of which the DBAs long awaited and many of which are designed with the DBA in mind Though this book is not intended to review and explain all the new features of Oracle 10g, we... will discuss using the Oracle Universal Installer (OUI) to install Oracle 10g software, what new features of Oracle 10g the OUI supports, what installation checks the OUI performs, and enhancements made to the installation process Using the Oracle Universal Installer As in the previous releases of Oracle, Oracle 10g uses the OUI to install the software With the OUI, the Oracle 10g installation process... enhancements, and upgrade options available for Oracle 10g Installing Oracle 10g With Oracle 10g, the emphasis is on self-managing and keeping things simple Oracle has removed many redundant and obvious choices from the installation As a DBA, you need to enter only minimal (that is, absolutely required) information to install an Oracle database For a clean and trouble-free install, you must install the software... the certification upgrade from Oracle 9i to Oracle Database 10g covered in this book Also, Oracle 7.3 and Oracle 8 DBAs can upgrade to an Oracle 9i certification with a single exam Oracle Database 10g Administrator Special Accreditations New to the Oracle certification program are the Oracle Database 10g Administrator Special Accreditation programs These accreditations formally recognize the specialized... exam: 1Z 0-0 41 Oracle Database 10g: DBA Assessment This exam evaluates your proficiency with basic administration and management of Oracle Database 10g, 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 10g database . OCP: Oracle 10g New Features for Administrators: Study Guide Bob Bryla Biju Thomas SYBEX OCP: Oracle 10 g New Features for Administrators Study Guide . learn the new features of the Oracle 10 g Database (Oracle 10 g ) and pass the 1Z 0-0 40 Oracle Database 10 g : New Fea- tures for Administrators exam. Why Become an Oracle Certified. the Oracle 9 i to the Oracle 10 g database administration track and the exam 1Z 0-0 40 Oracle Database 10 g : New Features for Administrators. Other Sybex books at http://www .sybex. com