rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780130157423

Oracle DBA Interactive Workbook

by ;
  • ISBN13:

    9780130157423

  • ISBN10:

    0130157422

  • Edition: 1st
  • Format: Paperback
  • Copyright: 2000-12-11
  • Publisher: Prentice Hall
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $44.99

Summary

Introduction

The Oracle DBA Interactive Workbook presents an introduction to Oracle database administration in a unique and highly effective format. It is organized more like a teaching aid than a reference manual in that to learn basic administration techniques, you are challenged to work through a set of guided tasks rather than to read through descriptions. There is a list of additional reading material in Appendix B that you can reference if you wish to delve deeper into any of the topics covered in this book.

This book is intended for beginners in the world of Oracle database administration. It will take you through a set of tasks, starting with creating a database to using some of the Oracle database tuning, and backup and recovery utilities. Those experienced with Oracle databases will recognize that a workbook covering the topic of database administration will be an extremely useful introduction for the beginner, but it cannot be used as a deep study of the Oracle database environment. After working through this book, you will have been launched into the exciting and interesting (sometimes nerve-racking) world of database administration, but it will take years of experience to become a senior database administrator.

Who this book is for

This book is intended for anyone who needs a quick and detailed introduction to Oracle database administration tasks. It is not the intention of this book to provide an in-depth study of the Oracle database server. The foundation for this book was developed to supplement the Introduction to Oracle Database Administration class in the Database Track at Columbia University's Computer Technology and Applications (CTA) program in New York City. The book's sidebars and answers often reflect questions that students have asked in class.

The student body entering the CTA program range from those who have years of experience in the IT field but no experience with Oracle, to those with absolutely no experience in IT and even no experience with PCs. The Introduction to Oracle Database Administration class is offered as an elective in the fourth and final term of the CTA program's curriculum. So, while it is geared for beginners with little or no previous experience with Oracle database administration, it is expected that the reader will have some experience working with an Oracle database. The reader should be comfortable with relational database concepts as well as SQL. If you are unfamiliar with any of these subjects, refer to the Oracle SQL Interactive Workbook in the Prentice Hall Oracle Interactive Workbook series.

What you'll need

There are software as well as knowledge requirements necessary to complete the exercise sections of the workbook.

Software

  • Oracle 7.3.4, 8.0, or 8i.
  • Access to the WWW.

Note that prior to beginning the workbook labs, you should already have installed the Oracle Server software (it will make it easier to get through the labs if you do not install the default database, however) and the Net8 or SQL*Net components. Since the instructions vary greatly depending on the platform, you should consult your Oracle documentation (Installation Guide and Getting Started) for installation information.

Oracle 7.3.4, 8.0, or 8i

You can use either Oracle Standard Edition or Oracle Enterprise Edition. Since you will be performing actions that may affect other databases, you should not work through the tasks in this book in an environment where there are critical data, programs, etc.!

Since Oracle frequently improves and changes its products, new versions are released all the time. However, the concepts covered in this book are fundamental to the Oracle RDBMS (hereafter called the Oracle Server) and are unlikely to change significantly in the near future. Even if your version of the database is slightly different than the one listed here, you should still be able to make use of this book.

The tasks and descriptions represent core issues of Oracle Server architecture and are therefore universal to all three versions of the Oracle Server. There are occasional notes to point out a specific issue regarding a specific version.

Additionally, you should be familiar with SQL*Plus, the tool supplied with the database to interact with it in a command-line fashion.

Access to the WWW

You will need access to the Internet and the WWW so that you can access the companion Web site for this book through--

http://www.phptr.com/scherer

Here you will find the files that are necessary for completing the exercises.

Knowledge

To complete the exercises, you should be familiar with relational database concepts and understand what an Entity Relationship Diagram is. You should also be comfortable using SQL to access and manipulate database objects such as tables, constraints, sequences, and so on.

If you are not familiar or comfortable with these subjects, then it is recommended that you refer to the Oracle SQL Interactive Workbook in the Prentice Hall Oracle Interactive Workbook series.

You should also feel comfortable working in your operating system's command-line environment.

How this Book Is Organized

The intent of this workbook is to teach you about Oracle database administration by presenting you with a series of tasks and challenges, followed by detailed solutions to those challenges. At times, an individual task acts as a complete unit of work, while other tasks are developed through a series of simple actions. Each chapter has a series of labs that introduce topics. The labs are composed of tasks, which are typical to the daily work of a database administrator. Beyond the labs, topics are further explored through questions and answers. What follows is the common layout of the chapters:

Chapter Objectives
A list of subjects the chapter will cover.
Chapter Text
An overview of chapter subjects.
Lab Objectives
A list of subjects the lab will cover.
Lab Text
An introduction to the lab subject, occasionally including steps that prepare the Oracle Server for the exercises.
Exercises
Questions that require hands-on interaction with the Oracle Server. The exercises will guide you through learning the subject introduced in the lab text.
Exercise Answers
Answers and discussion of the exercise subject.
Self-Review Questions
Multiple-choice questions to review lab material.
Test Your Thinking
Project questions to supplement the lab material.

Depending on the breadth of the subject, a given chapter may have more than one lab, and a given lab may have more than one set of exercises.

The exercises are not meant to be closed-book quizzes to test your knowledge. On the contrary, they are intended to act as your guide and walk you through a task. You are encouraged to flip back and forth from the question section to the answer section so that, if need be, you can read the discussions as you go along.

The chapters and their exercises must be completed in sequence as the material in later chapters builds on what is presented earlier.

Chapter 1, "The Database Administrator's Job," introduces you to the world of database administration.

Chapter 2, "Creating Your Database," walks you through the steps of manually creating your own database.

Chapter 3, "Oracle Networking: Configuring Basic Net8/SQL*Net Components," guides you through setting up the components necessary for remote users to connect to your database over a network.

Chapter 4, "Tablespaces," teaches you how to create and manipulate tablespaces, and introduces you to logical storage constructs.

Chapter 5, "Segments and Extents,"

Author Biography

Melanie Caffrey: Before entering the world of Oracle and database technology in general, Melanie Caffrey was a researcher, first for the academic world in Colorado, then for the corporate world in New York. The desire to explore a new career path led her to Columbia University's Computer Technology and Applications (CTA) Program, which ultimately changed her life. Shortly before finishing at Columbia, she began developing applications using SAP technology with an Oracle database. Additionally, she enjoys spending a semester or two, here and there, teaching the class that is the foundation for this book and, occasionally, introductory courses in SQL and the Oracle Server, to the students at Columbia University's CTA program. Douglas Scherer: Douglas Scherer (Chauncey and OCP certified) is president of Core Paradigm (www.coreparadigm.com), providing consulting, guidance, and formal training solutions primarily to Oracle users. He is a frequent speaker at conferences and user group meetings internationally and has appeared in Visions of the New Millennium, a series seen on PBS and its affiliates. Mr. Scherer's 12 years of IT and database experience has spanned analysis, design, implementation, database management, and project management. He is lead author of Oracle 8i Tips and Techniques, contributing editor to the Oracle Designer Handbook, second edition, both published by Osborne/McGraw-Hill (Oracle Press), and has articles in Oracle Magazine. Mr. Scherer is an instructor in Columbia Universit's CTA program and for three years held the position of Chair of the Database Track.

Table of Contents

About the Authors xiii
Foreword xv
Acknowledgments xvii
Introduction xxi
The Database Administrator's Job
1(14)
The Role of the Oracle DBA
2(4)
Understand About Becoming a DBA
3(1)
Understand the Role of the DBA
3(3)
Sources for Oracle DBA Help
6(7)
Prepare for Tasks
8(1)
Find Oracle Help
9(4)
Test Your Thinking
13(2)
Creating Your Database
15(42)
OFA Basics
16(9)
Identify your ORACLE_BASE Location
17(1)
Identify your ORACLE_HOME Directory
18(1)
Identify and Configure your Admin Directory
19(1)
Identify the Location for your Database Files
20(5)
Creating and Configuring an Oracle Database
25(31)
Edit the Instance Configuration File
28(6)
Write Scripts to Create the Database
34(5)
Create the Database Using the Create Scripts
39(5)
Test Database Viability
44(2)
Set the ROLLBACK_SEGMENTS Parameter
46(1)
Review the Scripts That Create the Data Dictionary
47(9)
Test Your Thinking
56(1)
Oracle Networking: Configuring Basic Net8/SQL*Net Components
57(26)
Setting up Network Configuration Files
58(9)
Manually Configure the tnsnames.ora File
58(4)
Manually Configure the listener.ora File
62(5)
Managing the Oracle Listener
67(9)
Start and Stop the Listener
68(2)
Issue Other Listener Commands
70(1)
Perform a Loopback Test
71(5)
Configuring the Multi-Threaded Server
76(5)
Configure and View Information about the MTS Environment
76(5)
Test Your Thinking
81(2)
Tablespaces
83(20)
Tablespaces: Logical Areas of Storage
85(6)
What a Tablespace is
87(1)
What a Tablespace is Used For
87(4)
How Tablespaces Relate to the Oracle Database and How to Manipulate Them
91(11)
Understand The Relationship of Tablespaces to Physical Files
93(1)
Create a Tablespace
94(1)
Delete a Tablespace
95(7)
Test Your Thinking
102(1)
Segments and Extents
103(26)
Segments
104(7)
Define a Segment
104(1)
Identify Common Segment Types
105(6)
Extents
111(16)
Define an Extent
111(2)
Understand Segment and Extent Parameters
113(2)
Understand Free Space
115(12)
Test Your Thinking
127(2)
Data Blocks
129(28)
Units of Storage Called Data Blocks
130(15)
Define a Block
130(4)
Understand the Makeup of a Block
134(1)
Recognize the Physical Record Format
135(10)
Block-Level Storage Parameters
145(11)
Understand Block-Level Storage Parameters
145(4)
Understand Row Migration and Row Chaining
149(2)
Understand Free Lists
151(5)
Test Your Thinking
156(1)
Redo Logs
157(22)
Redo Logs
158(12)
Understand Why Redo Logs Are Important
158(3)
Understand How LGWR Writes To Redo Logs
161(9)
Recovering Data with Redo Logs
170(8)
Understand How Redo Logs Are Used In Recovering Lost Data
170(8)
Test Your Thinking
178(1)
Datafiles
179(22)
Datafiles
180(9)
Understand Datafiles
180(2)
Understand the Relationship between Datafiles and an Instance
182(7)
Manipulating Your Datafiles
189(10)
Create, Manipulate, and Delete a Datafile
189(10)
Test Your Thinking
199(2)
User Creation
201(16)
Creating and Manipulating Users
202(13)
Create and Manipulate Users
202(13)
Test Your Thinking
215(2)
Privilege and Resource Groups
217(34)
Creating and Manipulating Privileges
218(12)
Create and Manipulate Privileges
218(12)
Creating and Manipulating Roles
230(7)
Create and Manipulate Roles
230(7)
Creating and Manipulating Profiles
237(12)
Create and Manipulate Profiles
237(12)
Test Your Thinking
249(2)
Auditing
251(20)
Auditing Sessions, Auditing Database Actions, and Auditing Objects
252(17)
Audit Sessions, Audit Database Actions, and Audit Objects
252(17)
Test Your Thinking
269(2)
Rollback Segments
271(24)
Rollback Segment Management
272(22)
Configure and Maintain Rollback Segments
272(22)
Test Your Thinking
294(1)
Locking
295(16)
Locking and Data Consistency and Concurrency
296(14)
Create, Review, and Eliminate Locks
296(14)
Test Your Thinking
310(1)
Logical Backup and Recovery
311(16)
Backup and Recovery Using the Import and Export Utilities
312(13)
Perform a Logical Backup Using the Export Utility
312(3)
Perform a Logical Recovery Using the Import Utility
315(10)
Test Your Thinking
325(2)
Physical Backup and Recovery
327(38)
Backup and Recovery Using Archivelog Mode
328(36)
Perform a Physical Backup and Perform Different Types of Archiving
328(10)
Simulate a Media Failure
338(3)
Perform a Complete Offline Recovery
341(3)
Perform a Complete Online Recovery
344(20)
Test Your Thinking
364(1)
Application and SQL Optimization
365(38)
Using the AUTOTRACE Command and TKPROF Utility
366(35)
Set up SQL*Plus's AUTOTRACE Utility
373(1)
Determine the Optimizer Mode
374(1)
Analyze Tables and Indexes
375(1)
Interpret the Output of the Execution Plan
376(1)
Use the TKPROF Utility
377(24)
Test Your Thinking
401(2)
Database Tuning and Optimization
403(24)
Optimizing the Use of Memory and Disk Resources
404(21)
Gather Performance Statistics
404(3)
Monitor and Enhance Memory Usage
407(6)
Determine I/O Distribution and Level of Contention
413(1)
Analyze Performance Statistics
414(11)
Test Your Thinking
425(2)
Appendix A Answers to Self-Review Questions 427(12)
Appendix B Recommended Reading List 439(2)
Appendix C Raid Synopsis 441(2)
Appendix D Environment Settings to Remember 443(6)
Index 449

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Excerpts

IntroductionTheOracle DBA Interactive Workbookpresents an introduction to Oracle database administration in a unique and highly effective format. It is organized more like a teaching aid than a reference manual in that to learn basic administration techniques, you are challenged to work through a set of guided tasks rather than to read through descriptions. There is a list of additional reading material in Appendix B that you can reference if you wish to delve deeper into any of the topics covered in this book.This book is intended for beginners in the world of Oracle database administration. It will take you through a set of tasks, starting with creating a database to using some of the Oracle database tuning, and backup and recovery utilities. Those experienced with Oracle databases will recognize that a workbook covering the topic of database administration will be an extremely useful introduction for the beginner, but it cannot be used as a deep study of the Oracle database environment. After working through this book, you will have been launched into the exciting and interesting (sometimes nerve-racking) world of database administration, but it will take years of experience to become a senior database administrator. Who this book is forThis book is intended for anyone who needs a quick and detailed introduction to Oracle database administration tasks. It is not the intention of this book to provide an in-depth study of the Oracle database server. The foundation for this book was developed to supplement the Introduction to Oracle Database Administration class in the Database Track at Columbia University's Computer Technology and Applications (CTA) program in New York City. The book's sidebars and answers often reflect questions that students have asked in class.The student body entering the CTA program range from those who have years of experience in the IT field but no experience with Oracle, to those with absolutely no experience in IT and even no experience with PCs. The Introduction to Oracle Database Administration class is offered as an elective in the fourth and final term of the CTA program's curriculum. So, while it is geared for beginners with little or no previous experience with Oracle database administration, it is expected that the reader will have some experience working with an Oracle database. The reader should be comfortable with relational database concepts as well as SQL. If you are unfamiliar with any of these subjects, refer to theOracle SQL Interactive Workbookin the Prentice Hall Oracle Interactive Workbook series. What you'll needThere are software as well as knowledge requirements necessary to complete the exercise sections of the workbook. Software Oracle 7.3.4, 8.0, or 8i. Access to the WWW.Note that prior to beginning the workbook labs, you should already have installed the Oracle Server software (it will make it easier to get through the labs if you do not install the default database, however) and the Net8 or SQL*Net components. Since the instructions vary greatly depending on the platform, you should consult your Oracle documentation (Installation Guide and Getting Started) for installation information. Oracle 7.3.4, 8.0, or 8iYou can use either Oracle Standard Edition or Oracle Enterprise Edition. Since you will be performing actions that may affect other databases, you should not work through the tasks in this book in an environment where there are critical data, programs, etc.!Since Oracle frequently improves and changes its products, new versions are released all the time. However, the concepts covered in this book are fundamental to the Oracle RDBMS (hereafter called the Oracle Server) and are unlikely to change significantly in the near future. Even if your version of the database is slightly different than the one listed here, you should still be ab

Rewards Program