1. Trang chủ
  2. » Công Nghệ Thông Tin

sybex ebook - oracle dba cert kit sql and sql guide

505 642 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 505
Dung lượng 4,14 MB

Nội dung

OCP: Oracle8i DBA SQL and PL/SQL Study Guide Copyright ©2000 SYBEX , Inc., Alameda, CA www.sybex.com San Francisco • Paris • Düsseldorf • Soest • London OCP: Oracle8i™ DBA SQL and PL/SQL Study Guide Chip Dawes Biju Thomas Copyright ©2000 SYBEX , Inc., Alameda, CA www.sybex.com Associate Publisher: Richard Mills Contracts and Licensing Manager: Kristine O’Callaghan Acquisitions & Developmental Editor: Kim Goodfriend Associate Developmental Editor: Ben Tompkins Editor: Nancy Conner, Marilyn Smith Production Editors: Lisa Duran, Leslie E. H. Light Technical Editors: Betty MacEwen, Ashok Hanumanth Book Designer: Bill Gibson Graphic Illustrator: Tony Jonick Electronic Publishing Specialist: Susie Hendrickson Proofreader: Lindy Wolf Indexer: Matthew Spence CD Coordinator: Kara Eve Schwartz CD Technician: Keith McNeil Cover Design: Archer Design Cover/Photograph: Photo Researchers Copyright © 2000 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. No part of this publication may be stored in a retrieval system, transmitted, or reproduced in any way, including but not limited to photo- copy, photograph, magnetic, or other record, without the prior agreement and written permission of the publisher. Library of Congress Card Number: 00-105388 ISBN: 0-7821-2682-0 SYBEX and the SYBEX logo are trademarks of SYBEX Inc. in the USA and other countries. The CD interface was created using Macromedia Director, COPYRIGHT 1994, 1997-1999 Macromedia Inc. For more information on Macromedia and Macromedia Director, visit http://www.macromedia.com. SYBEX is an independent entity from Oracle Corporation and is not affiliated with Oracle Corporation in any manner. This pub- lication 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 soft- ware whenever possible. Portions of the manuscript may be based upon pre-release versions supplied by software manu- facturer(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, merchant- ability, 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 Copyright ©2000 SYBEX , Inc., Alameda, CA 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 Software 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 warranties ("End-User License"), those End-User Licenses supersede the terms and conditions herein as to that particular Software component. Your purchase, acceptance, or use of the Software will consti- tute your acceptance of such End-User Licenses. By purchase, use or acceptance of the Software you further agree to comply with all export laws and regulations of the United States as such laws and regulations may exist from time to time. Reusable Code in This Book The authors created reusable code in this publication expressly for reuse for readers. Sybex grants readers permis- sion to reuse for any purpose the code found in this publica- tion or its accompanying CD-ROM so long as all three authors are attributed in any application containing the reus- able code, and the code itself is never 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 supported 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 Soft- ware 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 pro- vided, 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 replacement of identical format at no charge by sending the defective media, postage prepaid, with proof of purchase to: SYBEX Inc. Customer Service Department 1151 Marina Village Parkway Alameda, CA 94501 (510) 523-8233 Fax: (510) 523-2373 e-mail: info@sybex.com 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 pur- chase, 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 fitness for a particular pur- pose. In no event will SYBEX, its distributors, or dealers be lia- ble to you or any other party for direct, indirect, special, incidental, consequential, or other damages arising out of the use of or inability to use the Software or its contents even if advised of the possibility of such damage. In the event that the Software includes an online update feature, SYBEX further dis- claims 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 agreement of Terms and Conditions. Shareware Distribution This Software may contain various programs that are distributed as shareware. Copyright laws apply to both shareware and ordi- nary commercial software, and the copyright Owner(s) retains all rights. If you try a shareware 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-pro- tected or encrypted. However, in all cases, reselling or redistrib- uting these files without authorization is expressly forbidden except as specifically provided for by the Owner(s) therein. Copyright ©2000 SYBEX , Inc., Alameda, CA www.sybex.com To my wife Mary and my children Zachary and Charlie. -Chip Dawes To my wife Shiji and my parents, who are there whenever I need support and guidance. -Biju Thomas Copyright ©2000 SYBEX , Inc., Alameda, CA www.sybex.com Acknowledgments I would like to thank the folks at Sybex who helped with this book. Ben, your prodding to stay on schedule kept us going; Lisa and Nancy; and Kim (good luck at Organic.com). Thank you, Betty—your technical reviews and insights raised the quality of this book. I’d like to thank Oracle for producing a great database and language. Thank you, Biju, for jumping into the book and helping to make it possible. I owe a big thanks to my family: Mary, Zachary, and Charlie. They put up with a lot of lost time with me while I was working on this book. -Chip Dawes Anything is possible with hard work and dedication from a group of people. I would like to thank Sybex for giving me the opportunity to write this book. I thank the excellent team at Sybex for their support and patience, especially Kim, Ben, Nancy, Betty, Lisa, and Chip, who helped to bring the best out of me. I thank my parents and sisters, who simply are the best. I thank all my friends—you helped all through my career knowingly or unknowingly. This book is for all of you who have been a source of inspiration in my life. Thank you, Shiji, for being there when I was busy working and for all your support and love. -Biju Thomas Copyright ©2000 SYBEX , Inc., Alameda, CA www.sybex.com Introduction T here is high demand and competition for professionals in the Informa- tion Technology (IT) industry, and the Oracle Certified Professional (OCP) certification is the hottest credential in the database world. You have made the right decision to pursue certification: Being an OCP will give you a distinct advantage in this highly competitive market. Many readers may 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), is the world’s leading database company and second-largest independent software company, with revenues of more than $9 billion, serving more than 145 countries. Oracle databases are the de facto standard for large Internet sites, and Oracle has positioned itself to continue this dominance of the Internet market. This book is intended to help you on your exciting path toward obtaining the Oracle8i Certified Database Administrator and Oracle8i Certified Application Developer certifications. Basic knowledge of Oracle SQL and PL/SQL is an advan- tage when reading this book but is not mandatory. Using this book and a practice database, you can start learning Oracle and pass the IZ0-001 test: Introduction to Oracle: SQL and PL/SQL. Why Become an Oracle Certified Professional? T he number one reason to become an Oracle Certified Professional is to gain more visibility and greater access to the industry’s most challenging opportunities. The OCP program is the best way to demonstrate your knowledge and skills in Oracle database systems. The certification tests are scenario-based, which is the most effective way to assess your hands-on expertise and critical problem-solving skills. Certification is proof of your knowledge and shows that you have the skills required to support Oracle core products. The OCP program can help a company to 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 role and the Oracle products used in that role. Copyright ©2000 SYBEX , Inc., Alameda, CA www.sybex.com xviii Introduction So, whether you are beginning a career, changing careers, securing your present position, or seeking to refine and promote your position, this book is for you! Oracle Certifications Oracle has several certification tracks designed to meet different skill levels. Each track consists of several tests, and these tests can be taken in any order. The following tracks are available:  Oracle Database Administrator  Oracle Application Developer  Oracle Database Operator  Oracle Java Developer  Oracle Financial Applications Consultant Database Administrator (DBA) The role of the Database Administrator (DBA) has become a key to suc- cess 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 databases and expertise in solving problems. The Oracle8i Certified Database Administrator track consists of the following five tests:  1Z0-001: Introduction to Oracle : SQL and PL/SQL  1Z0-023: Oracle8i: Architecture and Administration  1Z0-025: Oracle8i: Backup and Recovery  1Z1-024: Oracle8i: Performance and Tuning  1Z1-026: Oracle8i: Network Administration Copyright ©2000 SYBEX , Inc., Alameda, CA www.sybex.com Why Become an Oracle Certified Professional? xix Oracle Application Developer This track tests your skills in client-server application development using Oracle application development tools, such as Developer/2000, SQL, PL/SQL, and SQL*Plus. The following five tests comprise this track:  1Z0-001: Introduction to Oracle : SQL and PL/SQL  1Z0-101: Develop PL/SQL Program Units  1Z0-121: Developer/2000: Build Forms I  1Z0-122: Developer/2000: Build Forms II  1Z0-123: Developer/2000: Build Reports More Information The most current information about Oracle certification can be found at http://education.oracle.com . Follow the Certification Home Page link and choose the track that you are interested in. Read the Candidate Guide for the test objectives and test contents, and keep in mind that these can change at any time without notice. OCP: Database Administrator Track The Oracle8i Database Administrator certification consists of five tests, and Sybex offers several study guides to help you achieve the OCP Database Administrator Certification. There are three books in this series:  OCP: Oracle8i™ DBA SQL and PL/SQL Study Guide OCP: Oracle8i™ DBA Architecture & Administration and Backup & Recovery Study Guide OCP: Oracle8i™ DBA Performance Tuning and Network Administration Study Guide Additionally, these three books are offered in a boxed set:  OCP: Oracle8i™ DBA Certification Kit Copyright ©2000 SYBEX , Inc., Alameda, CA www.sybex.com xx Introduction Table F.1 lists the five exams for the DBA track, their scoring (where available), and the Sybex study guides that will help you pass each exam. Skills Required for DBA Certification Listed here are some of the skills you must master for DBA certification. Even if you do not have all the skills, you can start taking the exams for which you feel confident. The exams can be taken in any order. Table F.1: OCP Database Administrator Tests and Passing Scores Exam # Title Total Questions Questions Correct Passing Score Sybex Study Guide 1Z0-001 Introduction to Oracle: SQL and PL/SQL 60 43 72% OCP: Oracle8i™ DBA SQL and PL/SQL Study Guide 1Z0-023 Oracle8i: Architecture and Administration 65 38 58% OCP: Oracle8i™ DBA Architecture & Administration and Backup & Recovery Study Guide 1Z0-024 Oracle8i: Performance Tuning 57 38 67% OCP: Oracle8i™ DBA Performance Tuning and Network Administration Study Guide 1Z0-025 Oracle8i: Backup and Recovery 60 34 57% OCP: Oracle8i™ DBA Architecture & Administration and Backup & Recovery Study Guide 1Z0-026 Oracle8i: Network Administration 60 41 60% OCP: Oracle8i™ DBA Performance Tuning and Network Administration Study Guide Copyright ©2000 SYBEX , Inc., Alameda, CA www.sybex.com [...]... ©2000 SYBEX , Inc., Alameda, CA www .sybex. com Chapter 1 Relational Technology and Simple SQL SELECT Statements ORACLE8 i SQL AND PL /SQL EXAM OBJECTIVES OFFERED IN THIS CHAPTER: Overview of relational databases, SQL, and PL /SQL: Discuss the theoretical and physical characteristics of a relational database Describe the Oracle implementation of the RDBMS and ORDBMS Describe how SQL and PLSQL are used in Oracle. .. passwords, and resources Backup and recovery options Archiving redo log files and hot backups Backup and recovery using Recovery Manager (RMAN) Creating and managing standby database Identifing and tuning database and SQL performance Data dictionary views and database parameters Configuring Net8 on the server side and the client side Using multi-threaded server, connection manager, and Oracle Names... Oracle8 i DBA SQL and PL /SQL 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 But wait, there’s more! Test yourself with the flashcards included on the CD If you can get through these difficult questions and understand the answers, you’ll know that you’re ready for the OCP: Introduction to Oracle: SQL and PL /SQL exam The...Why Become an Oracle Certified Professional? xxi Understanding RDBMS concepts Writing queries and manipulating data Creating and managing users and database objects Knowledge of PL /SQL programming and constructs Oracle Server architecturedatabase and instance Physical and logical storage of database, managing space allocation and growth Managing datastorage, loading, and reorganization Managing... clause The Oracle SQL environment: Write queries that specify a variable at runtime Customize the SQL* Plus environment Format data retrieved by a query Create and execute script files Save customizations Differentiate between SQL* Plus commands and SQL statements Exam objectives are subject to change at any time without prior notice and at Oracle s sole discretion Please visit Oracle' s Training and Certification... The flashcards include more than 100 questions specifically written to hit you hard and make sure that you are ready for the exam Between the Review Questions, Practice Exam, and flashcards, you should be more than prepared for the exam OCP: Oracle 8i DBA SQL and PL /SQL Study Guide in PDF Sybex is now offering the Oracle certification books on CD, so you can read the book on your PC or laptop It is in... various SQL commands available in PL /SQL, together with how to declare and use cursors, are discussed in this chapter Chapter 9 Chapter 9 discusses composite datatypes You will read about creating and using PL /SQL collections and record datatypes Chapter 10 The final chapter is dedicated to handling errors (called exceptions) in a PL /SQL program You will learn how to create and customize exceptions and. .. location of a testing center near you, call 1-8 0 0-8 9 1-3 926 Outside of the United States and Canada, contact your local Sylvan Prometric Registration Center The tests can be taken in any order To register for an Oracle Certified Professional exam Determine the number of the exam you want to take (The OCP: Introduction to Oracle: SQL and PL /SQL exam number is 1Z 0-0 01.) Register with the nearest Sylvan Prometric... structured query language (SQL) to retrieve data stored in the Oracle8 i database You will also learn to format the query output from SQL* Plus, Oracle s tool to interact with the database The first OCP exam emphasizes your understanding of the Oracle SQL usage and structure SQL, pronounced sequel, has been adopted by most relational database management systems The American National Standards Institute (ANSI)... relational databases, entity-relationship diagrams, and simple queries This chapter also introduces SQL* Plus, Oracle s tool to interact with the database Chapter 2 This chapter discusses the various built-in functions available in Oracle Single-row and group functions are discussed Chapter 3 Chapter 3 introduces you to more complex SQL statements Subqueries, joins, and set operations are illustrated in detail . 1Z 0-0 01: Introduction to Oracle : SQL and PL /SQL  1Z 0-0 23: Oracle8 i: Architecture and Administration  1Z 0-0 25: Oracle8 i: Backup and Recovery  1Z 1-0 24: Oracle8 i: Performance and. OCP: Oracle8 i DBA SQL and PL /SQL Study Guide Copyright ©2000 SYBEX , Inc., Alameda, CA www .sybex. com San Francisco • Paris • Düsseldorf • Soest • London OCP: Oracle8 i™ DBA SQL and PL /SQL. Tests and Passing Scores Exam # Title Total Questions Questions Correct Passing Score Sybex Study Guide 1Z 0-0 01 Introduction to Oracle: SQL and PL /SQL 60 43 72% OCP: Oracle8 i™ DBA SQL and

Ngày đăng: 07/04/2014, 15:59

TỪ KHÓA LIÊN QUAN