SlideShare a Scribd company logo
Oracle Database 10g The Complete Reference 1st
Edition Kevin Loney - Downloadable PDF 2025
https://ebookfinal.com/download/oracle-database-10g-the-complete-
reference-1st-edition-kevin-loney/
Visit ebookfinal.com today to download the complete set of
ebooks or textbooks
Here are some recommended products that we believe you will be
interested in. You can click the link to download.
Oracle Essentials Oracle Database 12c Fifth Edition Rick
Greenwald
https://ebookfinal.com/download/oracle-essentials-oracle-
database-12c-fifth-edition-rick-greenwald/
Oracle Performance Tuning for 10g R2 2nd Edition Gavin
Powell (Auth.)
https://ebookfinal.com/download/oracle-performance-tuning-
for-10g-r2-2nd-edition-gavin-powell-auth/
Expert Oracle Database Architecture Third Edition Thomas
Kyte
https://ebookfinal.com/download/expert-oracle-database-architecture-
third-edition-thomas-kyte/
Physical Database Design Using Oracle 1st Edition Donald
K. Burleson
https://ebookfinal.com/download/physical-database-design-using-
oracle-1st-edition-donald-k-burleson/
Advanced Replication Management API Reference 10g Release
1 Edition Randy Urbano
https://ebookfinal.com/download/advanced-replication-management-api-
reference-10g-release-1-edition-randy-urbano/
Pro ODP NET for Oracle Database 11g 1st Edition Edmund
Zehoo
https://ebookfinal.com/download/pro-odp-net-for-oracle-
database-11g-1st-edition-edmund-zehoo/
Oracle Database 11g New Features for DBAs and Developers
Expert s Voice in Oracle 1st Edition Sam R. Alapati
https://ebookfinal.com/download/oracle-database-11g-new-features-for-
dbas-and-developers-expert-s-voice-in-oracle-1st-edition-sam-r-
alapati/
GCC The Complete Reference 1st Edition Arthur Griffith
https://ebookfinal.com/download/gcc-the-complete-reference-1st-
edition-arthur-griffith/
TOAD pocket reference for Oracle 2nd ed Edition Patrick
Mcgrath
https://ebookfinal.com/download/toad-pocket-reference-for-oracle-2nd-
ed-edition-patrick-mcgrath/
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
Oracle Database 10g The Complete Reference 1st Edition
Kevin Loney Digital Instant Download
Author(s): Kevin Loney
ISBN(s): 9780130321244, 0130321249
Edition: 1
File Details: PDF, 6.29 MB
Year: 2004
Language: english
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:i
Oracle Database 10g:
The Complete Reference
Kevin Loney
McGraw-Hill/Osborne
New York Chicago San Francisco
Lisbon London Madrid Mexico City Milan
New Delhi San Juan Seoul Singapore Sydney Toronto
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:11 PM
Color profile: Generic CMYK printer profile
Composite Default screen
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:ii
McGraw-Hill/Osborne
2100 Powell Street, 10th Floor
Emeryville, California 94608
U.S.A.
To arrange bulk purchase discounts for sales promotions, premiums, or fund-raisers, please contact
McGraw-Hill/Osborne at the above address. For information on translations or book distributors outside the
U.S.A., please see the International Contact Information page immediately following the index of this book.
Oracle Database 10g: The Complete Reference
Copyright © 2004 by The McGraw-Hill Companies, Inc. (Publisher). All rights reserved. Printed in the
United States of America. Except as permitted under the Copyright Act of 1976, no part of this publication
may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system,
without the prior written permission of Publisher.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Screen displays of copyrighted Oracle software programs have been reproduced herein with the permission
of Oracle Corporation and/or its affiliates.
Excerpts of copyrighted Oracle user documentation have been reproduced herein with the permission of
Oracle Corporation and/or its affiliates.
1234567890 CUS CUS 01987654
Book p/n 0-07-225352-5 and CD p/n 0-07-225353-3
parts of
ISBN 0-07-225351-7
Publisher
Brandon A. Nordin
Vice President & Associate Publisher
Scott Rogers
Acquisitions Editor
Lisa McClain
Project Editors
Patty Mon, Janet Walden
Acquisitions Coordinator
Athena Honore
Technical Editor
Pete Sharman
Copy Editors
Bart Reed, Margaret Berson, William F. McManus
Proofreader
Carol Henry
Indexer
Jack Lewis
Computer Designer
Apollo Publishing Services
Cover Series Design
Damore Johann Design, Inc.
This book was composed with Corel VENTURA™ Publisher.
Information has been obtained by Publisher from sources believed to be reliable. However, because of the possibility of human or mechanical
error by our sources, Publisher, or others, Publisher does not guarantee to the accuracy, adequacy, or completeness of any information included
in this work and is not responsible for any errors or omissions or the results obtained from the use of such information.
Oracle Corporation does not make any representations or warranties as to the accuracy, adequacy, or completeness of any information
contained in this Work, and is not responsible for any errors or omissions.
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:11 PM
Color profile: Generic CMYK printer profile
Composite Default screen
To my parents, and to Sue, Emily, Rachel, and Jane.
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:iii
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:11 PM
Color profile: Generic CMYK printer profile
Composite Default screen
About the Author
Kevin Loney is a senior technical management consultant with
TUSC (http://www.tusc.com), an Oracle-focused consultancy
headquartered in Chicago. He was selected as ORACLE Magazine’s
Consultant of the Year in 2002. He is an expert in the design,
development, administration, tuning, security, and recovery of
Oracle-based applications. An Oracle DBA and developer since
1987, he is the primary author of 15 books for Oracle DBAs and
developers. He is a frequent and highly-rated presenter at local
and international Oracle user groups.
About the Technical Reviewers
Pete Sharman has 16 years’ IT experience designing, implementing,
and managing the performance of Oracle solutions. As a solo
consultant and team leader, Pete has provided administrative and
technical leadership to leading Internet-based businesses as well
as several Fortune 100 and Fortune 500 companies. He has also
completed world-class benchmarks and implementation reviews
of the Oracle RDBMS, and performed high-impact performance
tuning. A proven technical leader, Pete has acquired expert-level
skills in Oracle Parallel Server and Real Application Clusters database
design, administration, backup and recovery, operations planning
and management, performance management, system management,
and security and management of complex data centers.
Currently, Pete is performing the role of Oracle9i and Oracle 10g
Database Global Consulting Lead, acting as an interface between
Oracle Development and North America Sales and Consulting.
Pete has also passed all the Oracle DBA Certifications (Oracle7,
Oracle8, Oracle8i, and Oracle9i) and was one of the first 20 people
in the world to qualify as an Oracle9i Certified Master.
Bob Bryla is an Oracle 8, 8i, 9i, and 10g Certified Professional with
more than 15 years of experience in database design, database
application development, training, and database administration,
and he is the tech editor and author of several Oracle Press and
Sybex Oracle DBA books. He is an Internet database analyst and
Oracle DBA at Lands’ End, Inc., in Dodgeville, Wisconsin.
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:iv
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:11 PM
Color profile: Generic CMYK printer profile
Composite Default screen
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Chapter 1
Blind Folio 1:v
Contents
ACKNOWLEDGEMENTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
PART I
Critical Database Concepts
1 Oracle Database 10g Architecture Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Databases and Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Inside the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Choosing Architectures and Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2 Installing Oracle Database 10g and Creating a Database . . . . . . . . . . . . . . . . . . . . . 11
Overview of Licensing and Installation Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3 Upgrading to Oracle Database 10g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Choosing an Upgrade Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Before Upgrading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Using the Database Upgrade Assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Performing a Manual Direct Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Using Export and Import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Using the Data-Copying Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
After Upgrading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4 Planning Oracle Applications—Approaches, Risks, and Standards . . . . . . . . . . . . . . 37
The Cooperative Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Everyone Has “Data” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
The Familiar Language of Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Some Common, Everyday Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
What Are the Risks? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
The Importance of the New Vision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
How to Reduce the Confusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Capitalization in Names and Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Normalizing Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Good Design Has a Human Touch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Understanding the Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Toward Object Name Normalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
v
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:12 PM
Color profile: Generic CMYK printer profile
Composite Default screen
vi Oracle Database 10g: The Complete Reference
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:vi
Intelligent Keys and Column Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
The Commandments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
PART II
SQL and SQL*Plus
5 The Basic Parts of Speech in SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Creating the NEWSPAPER Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Using SQL to Select Data from Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
select, from, where, and order by . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Logic and Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Another Use for where: Subqueries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Combining Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Creating a View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
6 Basic SQL*Plus Reports and Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Building a Simple Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Other Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Checking the SQL*Plus Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Building Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
7 Getting Text Information and Changing It . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Datatypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
What Is a String? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Concatenation ( || ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
How to Cut and Paste Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Using order by and where with String Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
8 Searching for Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Search Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
REGEXP_SUBSTR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
9 Playing the Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
The Three Classes of Number Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Single-Value Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Aggregate Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
List Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Finding Rows with MAX or MIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Precedence and Parentheses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
10 Dates: Then, Now, and the Difference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Date Arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
ROUND and TRUNC in Date Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:12 PM
Color profile: Generic CMYK printer profile
Composite Default screen
Contents vii
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:vii
TO_DATE and TO_CHAR Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Dates in where Clauses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
Dealing with Multiple Centuries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
Using the EXTRACT Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Using the TIMESTAMP Datatypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
11 Conversion and Transformation Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Elementary Conversion Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Specialized Conversion Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Transformation Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
12 Grouping Things Together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
The Use of group by and having . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Views of Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
The Power of Views of Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
More Grouping Possibilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
13 When One Query Depends upon Another . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Advanced Subqueries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Outer Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Natural and Inner Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
UNION, INTERSECT, and MINUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
14 Some Complex Possibilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Complex Groupings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Using Temporary Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Using ROLLUP, GROUPING, and CUBE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Family Trees and connect by . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
15 Changing Data: insert, update, merge, and delete . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
insert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
rollback, commit, and autocommit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Multitable Inserts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
Using the merge Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
16 DECODE and CASE: if, then, and else in SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
if, then, else . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
Replacing Values via DECODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
DECODE Within DECODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
Greater Than and Less Than in DECODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Using CASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
17 Creating and Managing Tables, Views, Indexes, Clusters, and Sequences . . . . . . . . . 311
Creating a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
Dropping Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
Altering Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:12 PM
Color profile: Generic CMYK printer profile
Composite Default screen
Creating a Table from a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
Creating an Index-Organized Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
Using Partitioned Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
Creating a View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
Clusters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
18 Basic Oracle Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
Users, Roles, and Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
What Users Can Grant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
Granting Limited Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
PART III
Beyond the Basics
19 Advanced Security—Virtual Private Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
Initial Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
Create an Application Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
Create a Logon Trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
Create a Security Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
Apply the Security Policy to Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
Test VPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
How to Implement Column-Level VPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
How to Disable VPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
How to Use Policy Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
20 Working with Tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
Tablespaces and the Structure of the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
Planning Your Tablespace Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
21 Using SQL*Loader to Load Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
The Control File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
Starting the Load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
Control File Syntax Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
Managing Data Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
Tuning Data Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
Additional Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
22 Using Data Pump Export and Import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
Creating a Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
Data Pump Export Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
Starting a Data Pump Export Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409
Data Pump Import Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
Starting a Data Pump Import Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416
23 Accessing Remote Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423
Database Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
Using Synonyms for Location Transparency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
viii Oracle Database 10g: The Complete Reference
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:viii
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:12 PM
Color profile: Generic CMYK printer profile
Composite Default screen
Using the User Pseudo-Column in Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
Dynamic Links: Using the SQL*Plus copy Command . . . . . . . . . . . . . . . . . . . . . . . . 434
Connecting to a Remote Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
24 Using Materialized Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
Functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
Required System Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
Required Table Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
Read-Only vs. Updatable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
create materialized view Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
Using Materialized Views to Alter Query Execution Paths . . . . . . . . . . . . . . . . . . . . . 445
Using DBMS_ADVISOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447
Refreshing Materialized Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
create materialized view log Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
Altering Materialized Views and Logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
Dropping Materialized Views and Logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457
25 Using Oracle Text for Text Searches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
Adding Text to the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
Text Queries and Text Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
Index Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
26 Using External Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477
Accessing the External Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478
Creating an External Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
Altering External Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
Limitations, Benefits, and Potential Uses of External Tables . . . . . . . . . . . . . . . . . . . . 490
27 Using Flashback Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493
Time-Based Flashback Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494
Saving the Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496
SCN-Based Flashback Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497
What If the Flashback Query Fails? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499
What SCN Is Associated with Each Row? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499
Flashback Version Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 500
Planning for Flashbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502
28 Flashback—Tables and Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503
The flashback table Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504
The flashback database Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
PART IV
PL/SQL
29 An Introduction to PL/SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513
PL/SQL Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514
Declarations Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514
Executable Commands Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518
Exception Handling Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531
Contents ix
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:ix
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:12 PM
Color profile: Generic CMYK printer profile
Composite Default screen
x Oracle Database 10g: The Complete Reference
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:x
30 Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535
Required System Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536
Required Table Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536
Types of Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537
Trigger Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538
Enabling and Disabling Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548
Replacing Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549
Dropping Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550
31 Procedures, Functions, and Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555
Required System Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
Required Table Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
Procedures vs. Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
Procedures vs. Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
create procedure Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 559
create function Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561
create package Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568
Viewing Source Code for Procedural Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572
Compiling Procedures, Functions, and Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572
Replacing Procedures, Functions, and Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573
Dropping Procedures, Functions, and Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573
32 Using Native Dynamic SQL and DBMS_SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575
Using EXECUTE IMMEDIATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576
Using Bind Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578
Using DBMS_SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579
PART V
Object-Relational Databases
33 Implementing Types, Object Views, and Methods . . . . . . . . . . . . . . . . . . . . . . . . . . 587
Working with Abstract Datatypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Implementing Object Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599
34 Collectors (Nested Tables and Varying Arrays) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603
Varying Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604
Nested Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
Additional Functions for Nested Tables and Varying Arrays . . . . . . . . . . . . . . . . . . . . 615
Management Issues for Nested Tables and Varying Arrays . . . . . . . . . . . . . . . . . . . . . 615
35 Using Large Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619
Available Datatypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
Specifying Storage for LOB Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621
Manipulating and Selecting LOB Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 623
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:12 PM
Color profile: Generic CMYK printer profile
Composite Default screen
Contents xi
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:xi
Row Objects vs. Column Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648
Object Tables and OIDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648
Object Views with REFs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656
Object PL/SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661
Objects in the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
PART VI
Java in Oracle
37 An Introduction to Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667
Java vs. PL/SQL: An Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 669
Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 669
Executable Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 670
Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679
38 JDBC Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 685
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686
Using the JDBC Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 688
39 Java Stored Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 697
Loading the Class into the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 700
How to Access the Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 702
PART VII
Clustered Oracle—The Grid
40 Oracle Real Application Clusters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709
Preinstallation Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 710
Installing RAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 710
Starting and Stopping RAC Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 714
Transparent Application Failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 716
Adding Nodes and Instances to the Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 717
Managing the Cluster Registry and Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 718
41 Grid Architecture and Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719
Hardware and Operating System Configuration Issues . . . . . . . . . . . . . . . . . . . . . . . . 720
Adding Servers to the Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 723
Sharing Data Across the Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 724
Managing the Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 724
Launching OEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 726
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:13 PM
Color profile: Generic CMYK printer profile
Composite Default screen
36 Advanced Object-Oriented Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
A Note About Nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 732
New Views Introduced in Oracle Database 10g . . . . . . . . . . . . . . . . . . . . . . . . . . . . 733
New Columns Introduced in Oracle Database 10g . . . . . . . . . . . . . . . . . . . . . . . . . . 738
The Road Maps: DICTIONARY (DICT) and DICT_COLUMNS . . . . . . . . . . . . . . . . . . 745
Things You Select From: Tables (and Columns), Views, Synonyms, and Sequences . . 746
Recycle Bin—USER_RECYCLEBIN and DBA_RECYCLEBIN . . . . . . . . . . . . . . . . . . . . 755
Constraints and Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755
Abstract Datatypes, ORDBMS-Related Structures, and LOBs . . . . . . . . . . . . . . . . . . . 764
Database Links and Materialized Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767
Triggers, Procedures, Functions, and Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 770
Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 773
Space Allocation and Usage, Including Partitions and Subpartitions . . . . . . . . . . . . . 774
Users and Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 780
Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 782
Auditing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783
Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 785
Monitoring: The V$ Dynamic Performance Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . 785
43 The Hitchhiker’s Guide to Tuning Applications and SQL . . . . . . . . . . . . . . . . . . . . . 791
New Tuning Features in Oracle Database 10g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 792
Tuning—Best Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794
Generating and Reading Explain Plans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803
Major Operations Within Explain Plans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 808
Implementing Stored Outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831
Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833
44 Case Studies in Tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835
Case Study 1: Waits, Waits, and More Waits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 836
Case Study 2: Application-Killing Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839
Case Study 3: Long-Running Batch Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 841
45 The Hitchhiker’s Guide to Oracle Application Server 10g . . . . . . . . . . . . . . . . . . . . 845
What Is Oracle Application Server 10g? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 847
Communication Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 854
Content Management Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 859
Business Logic Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 859
Presentation Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 861
Business Intelligence Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863
Portal Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 865
Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 866
Developer Toolkits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 867
Persistence Layer Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 872
Caching Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 874
System Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 876
Development Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878
xii Oracle Database 10g: The Complete Reference
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:xii
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:13 PM
Color profile: Generic CMYK printer profile
Composite Default screen
PART VIII
Hitchhiker’s Guides
42 The Hitchhiker’s Guide to the Oracle10g Data Dictionary . . . . . . . . . . . . . . . . . . . . 731
Starting and Stopping the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 887
Sizing and Managing Memory Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888
Allocating and Managing Space for the Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 891
Monitoring an Undo Tablespace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 900
Automating Storage Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 901
Segment Space Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902
Transporting Tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 903
Performing Backups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 904
Where to Go from Here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 919
47 The Hitchhiker’s Guide to XML in Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921
Document Type Definitions, Elements, and Attributes . . . . . . . . . . . . . . . . . . . . . . . . 922
XML Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 926
Using XSU to Select, Insert, Update, and Delete XML Values . . . . . . . . . . . . . . . . . . 928
Using XMLType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 934
Other Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 936
Alphabetical Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 937
Contents xiii
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:xiii
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:13 PM
Color profile: Generic CMYK printer profile
Composite Default screen
46 The Hitchhiker’s Guide to Database Administration . . . . . . . . . . . . . . . . . . . . . . . . . 885
Creating a Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 886
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:xiv
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:13 PM
Color profile: Generic CMYK printer profile
Composite Default screen
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:xv
Acknowledgments
This book is dedicated to my family. Thank you for your patience, support, and love.
This book is the product of many hands, and countless hours from many people. My thanks go
out to all those who helped, whether through their comments, feedback, edits, or suggestions.
For additional information about the book, see the publisher’s site (http://www.osborne.com)
and my site (http://www.kevinloney.com). Additional articles and presentations can be found
on the company site at http://www.tusc.com.
■ To the contributors and reviewers at TUSC, including Chris Ostrowski, Brad Brown,
and Shaun O’Brien.
■ To the management, including Rich Niemiec, Joe Trezzo, Brad Brown, and others for
their dedication to the Oracle user community and their commitment to establishing
and following best practices.
■ To my peers at TUSC, including Bill Callahan, Patrick Callahan, Tony Catalano, Holly
Clawson, Judy Corley, Mike Killough, Randy Swanson, Bob Taylor, Bob Yingst, and
many others for their insights and contributions.
Thanks to my colleagues and friends, including Eyal Aronoff, Steve Bobrowski, Rachel
Carmichael, Steven Feuerstein, Mike McDonnell, Vinny Smith, Susan St. Claire, and Marlene
Theriault. This book has benefited from the knowledge they have shared, and I have benefited
from their friendship and guidance.
Thanks to the folks at McGraw-Hill/Osborne who guided this product through its stages: Scott
Rogers, Athena Honore, Lisa McClain, Patty Mon, Bart Reed, Margaret Berson, Bill McManus, and
the others at Osborne with whom I never directly worked. Thanks to the reviewers, including
Pete Sharman and Bob Bryla (who also contributed material). Thanks also to the Oracle component
of Oracle Press. This book would not have been possible without the earlier excellent work of
George Koch and Robert Muller.
Thanks to the writers and friends along the way: Jerry Gross, Jan Riess, Robert Meissner, Marie
Paretti, Br. Declan Kane, CFX, Br. William Griffin, CFX, Chris O’Neill, Cheryl Bittner, Bill Fleming,
and the FSOUG board.
Special thanks to Sue, Emily, Rachel, Jane, and the rest of the home team. As always, this has
been a joint effort.
—Kevin Loney
xv
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:13 PM
Color profile: Generic CMYK printer profile
Composite Default screen
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:xvi
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:13 PM
Color profile: Generic CMYK printer profile
Composite Default screen
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:xvii
Introduction
Oracle documentation is thoroughgoing and voluminous, currently spanning multiple CDs.
Oracle Database 10g: The Complete Reference is the first entity that has gathered all the major Oracle
definitions, commands, functions, features, and products together in a single, massive core reference—
one volume that every Oracle user and developer can keep handy on his or her desk.
The audience for this book will usually fall into one of three categories:
■ An Oracle end user Oracle can easily be used for simple operations such as entering
data and running standard reports. But such an approach would ignore its great power;
it would be like buying a high-performance racing car and then pulling it around with a
horse. With the introduction provided in the first two sections of this book, even an end
user with little or no data processing background can become a proficient Oracle user—
generating ad hoc, English-language reports, guiding developers in the creation of new
features and functions, and improving the speed and accuracy of the real work done in
a business. The language of the book is simple, clear English without data processing
jargon, and with few assumptions about previous knowledge of computers or databases.
It will help beginners to become experts with an easy-to-follow format and numerous
real examples.
■ A developer who is new to Oracle With as many volumes of documentation as Oracle
provides, finding a key command or concept can be a time-consuming effort. This book
attempts to provide a more organized and efficient manner of learning the essentials of
the product. The format coaches a developer new to Oracle quickly through the basic
concepts, covers areas of common difficulty, examines misunderstandings of the product
and relational development, and sets clear guidelines for effective application building.
■ An experienced Oracle developer As with any product of great breadth and sophistication,
there are important issues about which little, if anything, has been published. Knowledge
comes through long experience, but is often not transferred to others. This book delves
deeply into many such subject areas (including new features such as the flashback options,
Data Pump, and many others). The text also reveals many common misconceptions and
suggests rigorous guidelines for application development and designing for performance
issues.
xvii
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:13 PM
Color profile: Generic CMYK printer profile
Composite Default screen
In Chapter 1, you will see a roadmap to the organization of this book. Briefly, the first part
of the book focuses on installing Oracle, upgrading from prior versions of Oracle, and reviewing
new features introduced with the latest version. The following sections provide guidance on the
technologies you use to exploit Oracle’s capabilities—SQL, PL/SQL, dynamic SQL, object-relational
features, Java, and more. The chapters progress from basic information on SQL to detailed examples
of complex programs.
The final two parts of the book contain the “hitchhiker’s guides”—guided tours of the data
dictionary, optimizer, tuning case studies, the application server, database administration, and
XML—and the Alphabetical Reference. The Alphabetical Reference contains the syntax and
description of all functions and commands supported by Oracle Database 10g. The reference
is intended for use by both developers and users of Oracle but assumes some familiarity with
the products.
xviii Oracle Database 10g: The Complete Reference
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter
Blind Folio FM:xviii
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:13 PM
Color profile: Generic CMYK printer profile
Composite Default screen
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Chapter 1
Blind Folio 1:1
PART
I
Critical Database
Concepts
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:14 PM
Color profile: Generic CMYK printer profile
Composite Default screen
ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Chapter 1
Blind Folio 1:2
P:010CompOracle8351-7CDVenturabook.vp
Friday, August 13, 2004 1:44:14 PM
Color profile: Generic CMYK printer profile
Composite Default screen
Another Random Scribd Document
with Unrelated Content
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
The text on this page is estimated to be only 28.56%
accurate
TRUE HISTORY. 229 firm and upright, standing upon the
water. When we came to it and found how the case stood with us,
we knew not what to do with ourselves. To go forwards through the
trees was altogether impossible : they were so thick and grew so
close together : and to turn again with safety was as much unlikely.
I therefore got me up to the top of the highest tree to discover, if I
could, what was beyond ; and I found the breadth of the wood to be
fifty furlongs or thereabout, and then appeared another ocean to
receive us. Wherefore we thought it best to assay to lift up our ship
upon the leaves of the trees which were thick grown, and by that
means pass over, if it were possible, to the other ocean : and so we
did : for fastening a strong cable to our
The text on this page is estimated to be only 8.50%
accurate
230 AAH0OY2 I2TOPIA2. B. 43. OOVVTO$ eTTicrvpofAevoi'
evOa 807 KCLI TO 10V TTOITJTOV i jap TTOV KOjKeivoq* Tolviv 8'
vXyevTO, 8/a TrXoov 43. eq TO v&vv pov KCfji $iavyov$ y e/c Va),
KaOdirep ev opco/Aev VTTO (reicrfAcov yevoTO, /or/a oz; '' eX6oj
Trap oyov eoj(ra ovov crraS/coy %iXiaw {AaXa tyofiepov KCLI
The text on this page is estimated to be only 29.27%
accurate
TRUE HISTORY. 231 ship, we wound it about the tops of
the trees, and with much ado poised it up to the height, and placing
it upon the branches, spread our sails, and were carried as it were
upon the sea, dragging our ship after us by the help of the wind
which set it forwards. At which time a verse of the poet Antimachus
came to my remembrance, wherein he speaks of sailing over tops of
trees. When we had passed over the wood, and were come to the
sea again, we let down our ship in the same manner as we took it
up. Then sailed we forwards in a pure and clear stream, until we
came to an exceeding great gulf or trench in the sea, made by the
division of the waters as many times is upon land, where we see
great clefts
The text on this page is estimated to be only 7.55%
accurate
232 AAH00Y2 I2TOPIAZ. B. 44. x fio^ov' e/Vr^/ce/ jap TO
vftoop axmep ' TtepifiXeTrovTeq §e ov TTCLVV TroppajOev €
The text on this page is estimated to be only 29.43%
accurate
TRUE HISTORY. 233 made in the ground by earthquakes
and other means. Whereupon we struck sail and our ship stayed
upon a sudden when it was at the pit's brim ready to tumble in : and
we stooping down to look into it, thought it could be no less than a
thousand furlongs deep, most fearful and monstrous to behold, for
the water stood as it were divided into two parts, but looking on our
right hand afar off, we perceived a bridge of water, which to our
seeming, did join the two seas together and crossed over from the
one to the other. Wherefore we laboured with oars to get unto it,
and over it we went and with much ado got to the further side
beyond all our expectation. Then a calm sea received us, and in it
we found an island, not very great, but
The text on this page is estimated to be only 6.78%
accurate
2.34 AAH9OY2 IZTOPIAZ. B. 44. KOA (7/T/a OVKCTI jap
efyopev. KOA vTOv 7rvjOfA€V, 8e ovfiev etyaivero, TrXy ov
TTOppwOev yKovero. So^avre^ ovv elvat j3ocov, /car' dv6pu)7roi$.
ol 8e XafAfiavovcriv, ol §e AO/TTG/ TT^O^ roy e/ra irepi&elv Tovq
(f)tXov$ — e/Aro7
The text on this page is estimated to be only 26.41%
accurate
TRUE HISTORY. 235 inhabited with unsociable people, for
in it were dwelling wild men named Bucephalians, that had horns on
their heads like the picture of Minotaurus. where we went *
mons^et'f •who was half a bull and half ashore to look for fresh
water and victuals, «*««•,*«»#»» on Pasiph ae, the -wife of Minos,
for ours was all spent : and there we found &«? °f Crete, by a bull,
with . , i • i 1 "which she fell water enough, but nothing: else
appeared : «* ***, etc. ' OVID. Met. only we heard a great
bellowing and roaring a little way off, which we thought to have
been some herd of cattle, and going forwards, fell upon those men,
who espying us, chased us back again, and took three of our
company: the rest fled towards the sea. Then we all armed
ourselves, not meaning to leave our friends unrevenged, and set
upon the Bucephalians as they were dividing the flesh of them that
were slain, and put them all to flight, and pursued
The text on this page is estimated to be only 6.21%
accurate
236 AAII00Y2 IZTOPIAZ. B. 44. , KO.I ovfiev evpopev. 01
/Aev ovv aXXoi OVK TOJV Xvrpoiq Tovq
The text on this page is estimated to be only 29.07%
accurate
TRUE HISTORY. 237 after them, of whom we killed fifty,
and two we took alive, and so returned with our prisoners ; but food
we could find none. Then the company were all earnest with me to
kill those whom we had taken ; but I did not like so well of that,
thinking it better to keep them in bonds until ambassadors should
come from the Bucephalians to ransom them that were taken, and
indeed they did : and I well understood by the nodding of their
heads, and their lamentable lowing, like petitioners, what their
business was. So we agreed upon a ransom of sundry cheeses and
dried fish and onions and four deer with three legs apiece, two
behind and one before. Upon these conditions we delivered those
whom we had taken, and tarrying there but one day, departed.
The text on this page is estimated to be only 8.68%
accurate
238 AAH0OY2 I2TOPIA2. B. 45. 45. y^vj &e i%6ve$ re
vj/juv efyalvovro opvea 7rap€7reT€TO Kai aXX OTTO era
va,VTtXia/jj£vov
The text on this page is estimated to be only 29.36%
accurate
TRUE HISTORY. 239 Then the fishes began to show
themselves in the sea, and the birds flew over our heads, and all
other tokens of our approach to land appeared unto us. Within a
while after we saw men travelling the seas, and a new found
manner of navigation, themselves supplying the office both for ship
and sailor, and I will tell you how. As they lie upon their backs in the
water and their privy members standing upright, which are of a large
size and fit for such a purpose, they fasten thereto a sail, and
holding their cords in their hands, when the wind hath taken it, are
carried up and down as please themselves. After these followed
others riding upon cork, for they yoke two dolphins together, and
drive them on (performing themselves the place of a coachman),
which draw the
The text on this page is estimated to be only 6.60%
accurate
240 AAH6OY2 I2TOPIA2. B. 46. €ipyviKco
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
The text on this page is estimated to be only 28.17%
accurate
TRUE HISTORY. 241 cork along after them. These never
offered us any violence, nor once shunned our sight ; but passed
along in our company without fear, in a peaceable manner,
wondering at the greatness of our ship, and beholding it on every
side. At evening we arrived upon a small island, inhabited, as it
seemed, only by women, which could speak the Greek language ;
for they came unto us, gave us their hands, and saluted us, all
attired like wantons, beautiful and young, wearing long mantles
down to the foot : the island was called Cabbalusa and the city
Hydramardia. So the women received us, and every one of them
took aside one of us for herself, and made him her guest. But I
pausing a little upon it (for my heart misgave me), looked narrowly
round about, and saw the R
The text on this page is estimated to be only 7.11%
accurate
242 AAH6OY2 IZTOP1AZ. B. 46. xai TO p*ev /3ov/v icrTavai
/ca/ rovg e ra pelv OVK TroXXa, yvffipvjv (Liny S/a€K raiv TraovTCM
KUKCOV. cr/ceXo; o^ yvvaiKog, aXX' ovot^ OTrXa^" Soy
cnracrafAevos TO %i(j)0/ roiv Je, a/towa, Aev, eiTre efoai
TrpoeayopevofAevas, Tpo€7ri%eipov{A€v TavTa eKevyv f&€v
MVTOV KCLI Se
The text on this page is estimated to be only 29.03%
accurate
TRUE HISTORY. 243 bones of many men, and the skulls
lying together in a corner ; yet I thought not good to make any stir,
or to call my company about me, or to put on arms ; but taking the
mallow into my hand, made my earnest prayers thereto that I might
escape out of those present perils. Within a while after, when the
strange female came to wait upon me, I perceived she had not the
legs of a woman, but the hoofs of an ass. Whereupon I drew my
sword, and taking fast hold of her, bound her, and examined her
upon the point: and she, though unwillingly, confessed that they
were sea-women, called Onosceleans, and they fed upon strangers
that travelled that way. For, said she, when we have made them
drunk, we go to bed to them, and in their sleep, make a hand of
them.
The text on this page is estimated to be only 8.07%
accurate
244 AAH6OY2 I2TOPIAZ. B. 47. TO <7Teo e3ocov re KOA
yyov €(70) 7rpo$ vqv avTixa v$u>p eyeveto KCLI §6 TO /)0 6 TO
TO Se a//>oa eyevero 67T/ KCLI eirei €7T€l &6 GVWyXdoV, TO,
ai>To7$ xai ra re oora e , ryv yireipov oi7roj3Xe7ro{Aevoi
eiKcifyelvai tyv avrnrepav ly vcf) ' oy^cov 8 ' ovv KOA
Trpocrev^ajAevoi irepi TCOV
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!
ebookfinal.com

More Related Content

PDF
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
PDF
[Oracle数据库11 g初学者指南].oracle.database.11g,.a.beginner's.guide
PDF
Oracle database edition-12c
PDF
Oracle applications developer’s guide
PDF
Informatica installation guide
PDF
J Developer 11g1
PDF
Getting started with odi
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
[Oracle数据库11 g初学者指南].oracle.database.11g,.a.beginner's.guide
Oracle database edition-12c
Oracle applications developer’s guide
Informatica installation guide
J Developer 11g1
Getting started with odi

Similar to Oracle Database 10g The Complete Reference 1st Edition Kevin Loney (20)

PDF
Oracle Data Integrator 11g Cookbook Christophe Dupupet Denis Gray Peter C Boy...
PDF
Dw guide 11 g r2
PDF
Odi installation guide
PDF
15884086 Oracle Developer Build Forms I
PDF
Osb developer's guide
PDF
Advanced Replication Management API Reference 10g Release 1 Edition Randy Urbano
PDF
Advanced Replication Management API Reference 10g Release 1 Edition Randy Urbano
PDF
Oracle Essentials Oracle Database 12c Fifth Edition Rick Greenwald 2024 scrib...
PDF
Oracle Essentials Oracle Database 12c Fifth Edition Rick Greenwald download pdf
PDF
GoldenGate Whitepaper Oracle 8i 9i to 10g 11g Database Migration
PDF
Adf tutorial oracle
PDF
Oracle_9i_Database_Getting_started
PDF
Download full ebook of Enterprise Search Reissue Martin White instant downloa...
PDF
Oracle sap
PDF
OpenGL Insights 1st Edition Patrick Cozzi
PDF
Tx2014 Feature and Highlights
PDF
Java Programming With Oracle Jdbc 1st Ed Donald Bales
PDF
D64974 gc10 odi-11g-integration-and-administration-ag
PDF
Analytics Engineering With Sql And Dbt Building Meaningful Data Models At Sca...
PDF
Ensure Optimal Performance and Scalability: Implementing a Robust and Reliabl...
Oracle Data Integrator 11g Cookbook Christophe Dupupet Denis Gray Peter C Boy...
Dw guide 11 g r2
Odi installation guide
15884086 Oracle Developer Build Forms I
Osb developer's guide
Advanced Replication Management API Reference 10g Release 1 Edition Randy Urbano
Advanced Replication Management API Reference 10g Release 1 Edition Randy Urbano
Oracle Essentials Oracle Database 12c Fifth Edition Rick Greenwald 2024 scrib...
Oracle Essentials Oracle Database 12c Fifth Edition Rick Greenwald download pdf
GoldenGate Whitepaper Oracle 8i 9i to 10g 11g Database Migration
Adf tutorial oracle
Oracle_9i_Database_Getting_started
Download full ebook of Enterprise Search Reissue Martin White instant downloa...
Oracle sap
OpenGL Insights 1st Edition Patrick Cozzi
Tx2014 Feature and Highlights
Java Programming With Oracle Jdbc 1st Ed Donald Bales
D64974 gc10 odi-11g-integration-and-administration-ag
Analytics Engineering With Sql And Dbt Building Meaningful Data Models At Sca...
Ensure Optimal Performance and Scalability: Implementing a Robust and Reliabl...
Ad

Recently uploaded (20)

PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Classroom Observation Tools for Teachers
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Institutional Correction lecture only . . .
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Insiders guide to clinical Medicine.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PDF
Sports Quiz easy sports quiz sports quiz
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Classroom Observation Tools for Teachers
Module 4: Burden of Disease Tutorial Slides S2 2025
Institutional Correction lecture only . . .
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Microbial disease of the cardiovascular and lymphatic systems
Anesthesia in Laparoscopic Surgery in India
Insiders guide to clinical Medicine.pdf
PPH.pptx obstetrics and gynecology in nursing
102 student loan defaulters named and shamed – Is someone you know on the list?
Microbial diseases, their pathogenesis and prophylaxis
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O7-L3 Supply Chain Operations - ICLT Program
Cell Types and Its function , kingdom of life
Sports Quiz easy sports quiz sports quiz
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
GDM (1) (1).pptx small presentation for students
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Ad

Oracle Database 10g The Complete Reference 1st Edition Kevin Loney

  • 1. Oracle Database 10g The Complete Reference 1st Edition Kevin Loney - Downloadable PDF 2025 https://ebookfinal.com/download/oracle-database-10g-the-complete- reference-1st-edition-kevin-loney/ Visit ebookfinal.com today to download the complete set of ebooks or textbooks
  • 2. Here are some recommended products that we believe you will be interested in. You can click the link to download. Oracle Essentials Oracle Database 12c Fifth Edition Rick Greenwald https://ebookfinal.com/download/oracle-essentials-oracle- database-12c-fifth-edition-rick-greenwald/ Oracle Performance Tuning for 10g R2 2nd Edition Gavin Powell (Auth.) https://ebookfinal.com/download/oracle-performance-tuning- for-10g-r2-2nd-edition-gavin-powell-auth/ Expert Oracle Database Architecture Third Edition Thomas Kyte https://ebookfinal.com/download/expert-oracle-database-architecture- third-edition-thomas-kyte/ Physical Database Design Using Oracle 1st Edition Donald K. Burleson https://ebookfinal.com/download/physical-database-design-using- oracle-1st-edition-donald-k-burleson/
  • 3. Advanced Replication Management API Reference 10g Release 1 Edition Randy Urbano https://ebookfinal.com/download/advanced-replication-management-api- reference-10g-release-1-edition-randy-urbano/ Pro ODP NET for Oracle Database 11g 1st Edition Edmund Zehoo https://ebookfinal.com/download/pro-odp-net-for-oracle- database-11g-1st-edition-edmund-zehoo/ Oracle Database 11g New Features for DBAs and Developers Expert s Voice in Oracle 1st Edition Sam R. Alapati https://ebookfinal.com/download/oracle-database-11g-new-features-for- dbas-and-developers-expert-s-voice-in-oracle-1st-edition-sam-r- alapati/ GCC The Complete Reference 1st Edition Arthur Griffith https://ebookfinal.com/download/gcc-the-complete-reference-1st- edition-arthur-griffith/ TOAD pocket reference for Oracle 2nd ed Edition Patrick Mcgrath https://ebookfinal.com/download/toad-pocket-reference-for-oracle-2nd- ed-edition-patrick-mcgrath/
  • 5. Oracle Database 10g The Complete Reference 1st Edition Kevin Loney Digital Instant Download Author(s): Kevin Loney ISBN(s): 9780130321244, 0130321249 Edition: 1 File Details: PDF, 6.29 MB Year: 2004 Language: english
  • 6. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:i Oracle Database 10g: The Complete Reference Kevin Loney McGraw-Hill/Osborne New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:11 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 7. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:ii McGraw-Hill/Osborne 2100 Powell Street, 10th Floor Emeryville, California 94608 U.S.A. To arrange bulk purchase discounts for sales promotions, premiums, or fund-raisers, please contact McGraw-Hill/Osborne at the above address. For information on translations or book distributors outside the U.S.A., please see the International Contact Information page immediately following the index of this book. Oracle Database 10g: The Complete Reference Copyright © 2004 by The McGraw-Hill Companies, Inc. (Publisher). All rights reserved. Printed in the United States of America. Except as permitted under the Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of Publisher. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Screen displays of copyrighted Oracle software programs have been reproduced herein with the permission of Oracle Corporation and/or its affiliates. Excerpts of copyrighted Oracle user documentation have been reproduced herein with the permission of Oracle Corporation and/or its affiliates. 1234567890 CUS CUS 01987654 Book p/n 0-07-225352-5 and CD p/n 0-07-225353-3 parts of ISBN 0-07-225351-7 Publisher Brandon A. Nordin Vice President & Associate Publisher Scott Rogers Acquisitions Editor Lisa McClain Project Editors Patty Mon, Janet Walden Acquisitions Coordinator Athena Honore Technical Editor Pete Sharman Copy Editors Bart Reed, Margaret Berson, William F. McManus Proofreader Carol Henry Indexer Jack Lewis Computer Designer Apollo Publishing Services Cover Series Design Damore Johann Design, Inc. This book was composed with Corel VENTURA™ Publisher. Information has been obtained by Publisher from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, Publisher, or others, Publisher does not guarantee to the accuracy, adequacy, or completeness of any information included in this work and is not responsible for any errors or omissions or the results obtained from the use of such information. Oracle Corporation does not make any representations or warranties as to the accuracy, adequacy, or completeness of any information contained in this Work, and is not responsible for any errors or omissions. P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:11 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 8. To my parents, and to Sue, Emily, Rachel, and Jane. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:iii P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:11 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 9. About the Author Kevin Loney is a senior technical management consultant with TUSC (http://www.tusc.com), an Oracle-focused consultancy headquartered in Chicago. He was selected as ORACLE Magazine’s Consultant of the Year in 2002. He is an expert in the design, development, administration, tuning, security, and recovery of Oracle-based applications. An Oracle DBA and developer since 1987, he is the primary author of 15 books for Oracle DBAs and developers. He is a frequent and highly-rated presenter at local and international Oracle user groups. About the Technical Reviewers Pete Sharman has 16 years’ IT experience designing, implementing, and managing the performance of Oracle solutions. As a solo consultant and team leader, Pete has provided administrative and technical leadership to leading Internet-based businesses as well as several Fortune 100 and Fortune 500 companies. He has also completed world-class benchmarks and implementation reviews of the Oracle RDBMS, and performed high-impact performance tuning. A proven technical leader, Pete has acquired expert-level skills in Oracle Parallel Server and Real Application Clusters database design, administration, backup and recovery, operations planning and management, performance management, system management, and security and management of complex data centers. Currently, Pete is performing the role of Oracle9i and Oracle 10g Database Global Consulting Lead, acting as an interface between Oracle Development and North America Sales and Consulting. Pete has also passed all the Oracle DBA Certifications (Oracle7, Oracle8, Oracle8i, and Oracle9i) and was one of the first 20 people in the world to qualify as an Oracle9i Certified Master. Bob Bryla is an Oracle 8, 8i, 9i, and 10g Certified Professional with more than 15 years of experience in database design, database application development, training, and database administration, and he is the tech editor and author of several Oracle Press and Sybex Oracle DBA books. He is an Internet database analyst and Oracle DBA at Lands’ End, Inc., in Dodgeville, Wisconsin. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:iv P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:11 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 10. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Chapter 1 Blind Folio 1:v Contents ACKNOWLEDGEMENTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii PART I Critical Database Concepts 1 Oracle Database 10g Architecture Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Databases and Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Inside the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Choosing Architectures and Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 Installing Oracle Database 10g and Creating a Database . . . . . . . . . . . . . . . . . . . . . 11 Overview of Licensing and Installation Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3 Upgrading to Oracle Database 10g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Choosing an Upgrade Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Before Upgrading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Using the Database Upgrade Assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Performing a Manual Direct Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Using Export and Import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Using the Data-Copying Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 After Upgrading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4 Planning Oracle Applications—Approaches, Risks, and Standards . . . . . . . . . . . . . . 37 The Cooperative Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Everyone Has “Data” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 The Familiar Language of Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Some Common, Everyday Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 What Are the Risks? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 The Importance of the New Vision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 How to Reduce the Confusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Capitalization in Names and Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Normalizing Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Good Design Has a Human Touch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Understanding the Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Toward Object Name Normalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 v P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:12 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 11. vi Oracle Database 10g: The Complete Reference ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:vi Intelligent Keys and Column Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 The Commandments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 PART II SQL and SQL*Plus 5 The Basic Parts of Speech in SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Creating the NEWSPAPER Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Using SQL to Select Data from Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 select, from, where, and order by . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Logic and Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Another Use for where: Subqueries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 Combining Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Creating a View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 6 Basic SQL*Plus Reports and Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Building a Simple Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 Other Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Checking the SQL*Plus Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Building Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 7 Getting Text Information and Changing It . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Datatypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 What Is a String? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 Concatenation ( || ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 How to Cut and Paste Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 Using order by and where with String Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 8 Searching for Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 Search Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 REGEXP_SUBSTR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 9 Playing the Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 The Three Classes of Number Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 Single-Value Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 Aggregate Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 List Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 Finding Rows with MAX or MIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 Precedence and Parentheses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 10 Dates: Then, Now, and the Difference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 Date Arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 ROUND and TRUNC in Date Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:12 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 12. Contents vii ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:vii TO_DATE and TO_CHAR Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 Dates in where Clauses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 Dealing with Multiple Centuries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212 Using the EXTRACT Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Using the TIMESTAMP Datatypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 11 Conversion and Transformation Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 Elementary Conversion Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 Specialized Conversion Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 Transformation Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 12 Grouping Things Together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 The Use of group by and having . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 Views of Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234 The Power of Views of Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 More Grouping Possibilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 13 When One Query Depends upon Another . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 Advanced Subqueries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 Outer Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 Natural and Inner Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 UNION, INTERSECT, and MINUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256 14 Some Complex Possibilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 Complex Groupings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262 Using Temporary Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263 Using ROLLUP, GROUPING, and CUBE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264 Family Trees and connect by . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268 15 Changing Data: insert, update, merge, and delete . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 insert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 rollback, commit, and autocommit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283 Multitable Inserts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291 Using the merge Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 16 DECODE and CASE: if, then, and else in SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 if, then, else . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 Replacing Values via DECODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 DECODE Within DECODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302 Greater Than and Less Than in DECODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305 Using CASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307 17 Creating and Managing Tables, Views, Indexes, Clusters, and Sequences . . . . . . . . . 311 Creating a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312 Dropping Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320 Altering Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321 P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:12 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 13. Creating a Table from a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326 Creating an Index-Organized Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 Using Partitioned Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 Creating a View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 Clusters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342 Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344 18 Basic Oracle Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345 Users, Roles, and Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346 What Users Can Grant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353 Granting Limited Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367 PART III Beyond the Basics 19 Advanced Security—Virtual Private Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371 Initial Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372 Create an Application Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373 Create a Logon Trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375 Create a Security Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376 Apply the Security Policy to Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377 Test VPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378 How to Implement Column-Level VPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379 How to Disable VPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380 How to Use Policy Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381 20 Working with Tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 Tablespaces and the Structure of the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 Planning Your Tablespace Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389 21 Using SQL*Loader to Load Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391 The Control File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392 Starting the Load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394 Control File Syntax Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398 Managing Data Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400 Tuning Data Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402 Additional Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404 22 Using Data Pump Export and Import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405 Creating a Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 Data Pump Export Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 Starting a Data Pump Export Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409 Data Pump Import Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413 Starting a Data Pump Import Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416 23 Accessing Remote Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423 Database Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424 Using Synonyms for Location Transparency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431 viii Oracle Database 10g: The Complete Reference ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:viii P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:12 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 14. Using the User Pseudo-Column in Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432 Dynamic Links: Using the SQL*Plus copy Command . . . . . . . . . . . . . . . . . . . . . . . . 434 Connecting to a Remote Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435 24 Using Materialized Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437 Functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438 Required System Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438 Required Table Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439 Read-Only vs. Updatable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439 create materialized view Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440 Using Materialized Views to Alter Query Execution Paths . . . . . . . . . . . . . . . . . . . . . 445 Using DBMS_ADVISOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447 Refreshing Materialized Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449 create materialized view log Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455 Altering Materialized Views and Logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456 Dropping Materialized Views and Logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457 25 Using Oracle Text for Text Searches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459 Adding Text to the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460 Text Queries and Text Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461 Index Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474 26 Using External Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477 Accessing the External Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478 Creating an External Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479 Altering External Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489 Limitations, Benefits, and Potential Uses of External Tables . . . . . . . . . . . . . . . . . . . . 490 27 Using Flashback Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493 Time-Based Flashback Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494 Saving the Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496 SCN-Based Flashback Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497 What If the Flashback Query Fails? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499 What SCN Is Associated with Each Row? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499 Flashback Version Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 500 Planning for Flashbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502 28 Flashback—Tables and Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503 The flashback table Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504 The flashback database Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507 PART IV PL/SQL 29 An Introduction to PL/SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513 PL/SQL Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514 Declarations Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514 Executable Commands Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518 Exception Handling Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531 Contents ix ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:ix P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:12 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 15. x Oracle Database 10g: The Complete Reference ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:x 30 Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535 Required System Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536 Required Table Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536 Types of Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537 Trigger Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538 Enabling and Disabling Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548 Replacing Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549 Dropping Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550 31 Procedures, Functions, and Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555 Required System Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556 Required Table Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558 Procedures vs. Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558 Procedures vs. Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558 create procedure Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 559 create function Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561 create package Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568 Viewing Source Code for Procedural Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572 Compiling Procedures, Functions, and Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572 Replacing Procedures, Functions, and Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573 Dropping Procedures, Functions, and Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573 32 Using Native Dynamic SQL and DBMS_SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575 Using EXECUTE IMMEDIATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576 Using Bind Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578 Using DBMS_SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579 PART V Object-Relational Databases 33 Implementing Types, Object Views, and Methods . . . . . . . . . . . . . . . . . . . . . . . . . . 587 Working with Abstract Datatypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588 Implementing Object Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599 34 Collectors (Nested Tables and Varying Arrays) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603 Varying Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604 Nested Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610 Additional Functions for Nested Tables and Varying Arrays . . . . . . . . . . . . . . . . . . . . 615 Management Issues for Nested Tables and Varying Arrays . . . . . . . . . . . . . . . . . . . . . 615 35 Using Large Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619 Available Datatypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620 Specifying Storage for LOB Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621 Manipulating and Selecting LOB Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 623 P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:12 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 16. Contents xi ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:xi Row Objects vs. Column Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648 Object Tables and OIDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648 Object Views with REFs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656 Object PL/SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661 Objects in the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662 PART VI Java in Oracle 37 An Introduction to Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667 Java vs. PL/SQL: An Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 669 Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 669 Executable Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 670 Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679 38 JDBC Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 685 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686 Using the JDBC Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 688 39 Java Stored Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 697 Loading the Class into the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 700 How to Access the Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 702 PART VII Clustered Oracle—The Grid 40 Oracle Real Application Clusters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709 Preinstallation Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 710 Installing RAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 710 Starting and Stopping RAC Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 714 Transparent Application Failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 716 Adding Nodes and Instances to the Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 717 Managing the Cluster Registry and Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 718 41 Grid Architecture and Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719 Hardware and Operating System Configuration Issues . . . . . . . . . . . . . . . . . . . . . . . . 720 Adding Servers to the Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 723 Sharing Data Across the Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 724 Managing the Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 724 Launching OEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 726 P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:13 PM Color profile: Generic CMYK printer profile Composite Default screen 36 Advanced Object-Oriented Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
  • 17. A Note About Nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 732 New Views Introduced in Oracle Database 10g . . . . . . . . . . . . . . . . . . . . . . . . . . . . 733 New Columns Introduced in Oracle Database 10g . . . . . . . . . . . . . . . . . . . . . . . . . . 738 The Road Maps: DICTIONARY (DICT) and DICT_COLUMNS . . . . . . . . . . . . . . . . . . 745 Things You Select From: Tables (and Columns), Views, Synonyms, and Sequences . . 746 Recycle Bin—USER_RECYCLEBIN and DBA_RECYCLEBIN . . . . . . . . . . . . . . . . . . . . 755 Constraints and Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755 Abstract Datatypes, ORDBMS-Related Structures, and LOBs . . . . . . . . . . . . . . . . . . . 764 Database Links and Materialized Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767 Triggers, Procedures, Functions, and Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 770 Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 773 Space Allocation and Usage, Including Partitions and Subpartitions . . . . . . . . . . . . . 774 Users and Privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 780 Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 782 Auditing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 785 Monitoring: The V$ Dynamic Performance Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . 785 43 The Hitchhiker’s Guide to Tuning Applications and SQL . . . . . . . . . . . . . . . . . . . . . 791 New Tuning Features in Oracle Database 10g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 792 Tuning—Best Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794 Generating and Reading Explain Plans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803 Major Operations Within Explain Plans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 808 Implementing Stored Outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831 Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833 44 Case Studies in Tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835 Case Study 1: Waits, Waits, and More Waits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 836 Case Study 2: Application-Killing Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839 Case Study 3: Long-Running Batch Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 841 45 The Hitchhiker’s Guide to Oracle Application Server 10g . . . . . . . . . . . . . . . . . . . . 845 What Is Oracle Application Server 10g? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 847 Communication Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 854 Content Management Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 859 Business Logic Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 859 Presentation Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 861 Business Intelligence Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863 Portal Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 865 Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 866 Developer Toolkits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 867 Persistence Layer Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 872 Caching Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 874 System Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 876 Development Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878 xii Oracle Database 10g: The Complete Reference ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:xii P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:13 PM Color profile: Generic CMYK printer profile Composite Default screen PART VIII Hitchhiker’s Guides 42 The Hitchhiker’s Guide to the Oracle10g Data Dictionary . . . . . . . . . . . . . . . . . . . . 731
  • 18. Starting and Stopping the Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 887 Sizing and Managing Memory Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888 Allocating and Managing Space for the Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 891 Monitoring an Undo Tablespace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 900 Automating Storage Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 901 Segment Space Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902 Transporting Tablespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 903 Performing Backups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 904 Where to Go from Here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 919 47 The Hitchhiker’s Guide to XML in Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 921 Document Type Definitions, Elements, and Attributes . . . . . . . . . . . . . . . . . . . . . . . . 922 XML Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 926 Using XSU to Select, Insert, Update, and Delete XML Values . . . . . . . . . . . . . . . . . . 928 Using XMLType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 934 Other Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 936 Alphabetical Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 937 Contents xiii ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:xiii P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:13 PM Color profile: Generic CMYK printer profile Composite Default screen 46 The Hitchhiker’s Guide to Database Administration . . . . . . . . . . . . . . . . . . . . . . . . . 885 Creating a Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 886
  • 19. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:xiv P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:13 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 20. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:xv Acknowledgments This book is dedicated to my family. Thank you for your patience, support, and love. This book is the product of many hands, and countless hours from many people. My thanks go out to all those who helped, whether through their comments, feedback, edits, or suggestions. For additional information about the book, see the publisher’s site (http://www.osborne.com) and my site (http://www.kevinloney.com). Additional articles and presentations can be found on the company site at http://www.tusc.com. ■ To the contributors and reviewers at TUSC, including Chris Ostrowski, Brad Brown, and Shaun O’Brien. ■ To the management, including Rich Niemiec, Joe Trezzo, Brad Brown, and others for their dedication to the Oracle user community and their commitment to establishing and following best practices. ■ To my peers at TUSC, including Bill Callahan, Patrick Callahan, Tony Catalano, Holly Clawson, Judy Corley, Mike Killough, Randy Swanson, Bob Taylor, Bob Yingst, and many others for their insights and contributions. Thanks to my colleagues and friends, including Eyal Aronoff, Steve Bobrowski, Rachel Carmichael, Steven Feuerstein, Mike McDonnell, Vinny Smith, Susan St. Claire, and Marlene Theriault. This book has benefited from the knowledge they have shared, and I have benefited from their friendship and guidance. Thanks to the folks at McGraw-Hill/Osborne who guided this product through its stages: Scott Rogers, Athena Honore, Lisa McClain, Patty Mon, Bart Reed, Margaret Berson, Bill McManus, and the others at Osborne with whom I never directly worked. Thanks to the reviewers, including Pete Sharman and Bob Bryla (who also contributed material). Thanks also to the Oracle component of Oracle Press. This book would not have been possible without the earlier excellent work of George Koch and Robert Muller. Thanks to the writers and friends along the way: Jerry Gross, Jan Riess, Robert Meissner, Marie Paretti, Br. Declan Kane, CFX, Br. William Griffin, CFX, Chris O’Neill, Cheryl Bittner, Bill Fleming, and the FSOUG board. Special thanks to Sue, Emily, Rachel, Jane, and the rest of the home team. As always, this has been a joint effort. —Kevin Loney xv P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:13 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 21. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:xvi P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:13 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 22. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:xvii Introduction Oracle documentation is thoroughgoing and voluminous, currently spanning multiple CDs. Oracle Database 10g: The Complete Reference is the first entity that has gathered all the major Oracle definitions, commands, functions, features, and products together in a single, massive core reference— one volume that every Oracle user and developer can keep handy on his or her desk. The audience for this book will usually fall into one of three categories: ■ An Oracle end user Oracle can easily be used for simple operations such as entering data and running standard reports. But such an approach would ignore its great power; it would be like buying a high-performance racing car and then pulling it around with a horse. With the introduction provided in the first two sections of this book, even an end user with little or no data processing background can become a proficient Oracle user— generating ad hoc, English-language reports, guiding developers in the creation of new features and functions, and improving the speed and accuracy of the real work done in a business. The language of the book is simple, clear English without data processing jargon, and with few assumptions about previous knowledge of computers or databases. It will help beginners to become experts with an easy-to-follow format and numerous real examples. ■ A developer who is new to Oracle With as many volumes of documentation as Oracle provides, finding a key command or concept can be a time-consuming effort. This book attempts to provide a more organized and efficient manner of learning the essentials of the product. The format coaches a developer new to Oracle quickly through the basic concepts, covers areas of common difficulty, examines misunderstandings of the product and relational development, and sets clear guidelines for effective application building. ■ An experienced Oracle developer As with any product of great breadth and sophistication, there are important issues about which little, if anything, has been published. Knowledge comes through long experience, but is often not transferred to others. This book delves deeply into many such subject areas (including new features such as the flashback options, Data Pump, and many others). The text also reveals many common misconceptions and suggests rigorous guidelines for application development and designing for performance issues. xvii P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:13 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 23. In Chapter 1, you will see a roadmap to the organization of this book. Briefly, the first part of the book focuses on installing Oracle, upgrading from prior versions of Oracle, and reviewing new features introduced with the latest version. The following sections provide guidance on the technologies you use to exploit Oracle’s capabilities—SQL, PL/SQL, dynamic SQL, object-relational features, Java, and more. The chapters progress from basic information on SQL to detailed examples of complex programs. The final two parts of the book contain the “hitchhiker’s guides”—guided tours of the data dictionary, optimizer, tuning case studies, the application server, database administration, and XML—and the Alphabetical Reference. The Alphabetical Reference contains the syntax and description of all functions and commands supported by Oracle Database 10g. The reference is intended for use by both developers and users of Oracle but assumes some familiarity with the products. xviii Oracle Database 10g: The Complete Reference ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Front Matter Blind Folio FM:xviii P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:13 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 24. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Chapter 1 Blind Folio 1:1 PART I Critical Database Concepts P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:14 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 25. ORACLE Series TIGHT / Oracle Database 10g: TCR / Loney / 225351-7 / Chapter 1 Blind Folio 1:2 P:010CompOracle8351-7CDVenturabook.vp Friday, August 13, 2004 1:44:14 PM Color profile: Generic CMYK printer profile Composite Default screen
  • 26. Another Random Scribd Document with Unrelated Content
  • 32. The text on this page is estimated to be only 28.56% accurate TRUE HISTORY. 229 firm and upright, standing upon the water. When we came to it and found how the case stood with us, we knew not what to do with ourselves. To go forwards through the trees was altogether impossible : they were so thick and grew so close together : and to turn again with safety was as much unlikely. I therefore got me up to the top of the highest tree to discover, if I could, what was beyond ; and I found the breadth of the wood to be fifty furlongs or thereabout, and then appeared another ocean to receive us. Wherefore we thought it best to assay to lift up our ship upon the leaves of the trees which were thick grown, and by that means pass over, if it were possible, to the other ocean : and so we did : for fastening a strong cable to our
  • 33. The text on this page is estimated to be only 8.50% accurate 230 AAH0OY2 I2TOPIA2. B. 43. OOVVTO$ eTTicrvpofAevoi' evOa 807 KCLI TO 10V TTOITJTOV i jap TTOV KOjKeivoq* Tolviv 8' vXyevTO, 8/a TrXoov 43. eq TO v&vv pov KCfji $iavyov$ y e/c Va), KaOdirep ev opco/Aev VTTO (reicrfAcov yevoTO, /or/a oz; '' eX6oj Trap oyov eoj(ra ovov crraS/coy %iXiaw {AaXa tyofiepov KCLI
  • 34. The text on this page is estimated to be only 29.27% accurate TRUE HISTORY. 231 ship, we wound it about the tops of the trees, and with much ado poised it up to the height, and placing it upon the branches, spread our sails, and were carried as it were upon the sea, dragging our ship after us by the help of the wind which set it forwards. At which time a verse of the poet Antimachus came to my remembrance, wherein he speaks of sailing over tops of trees. When we had passed over the wood, and were come to the sea again, we let down our ship in the same manner as we took it up. Then sailed we forwards in a pure and clear stream, until we came to an exceeding great gulf or trench in the sea, made by the division of the waters as many times is upon land, where we see great clefts
  • 35. The text on this page is estimated to be only 7.55% accurate 232 AAH00Y2 I2TOPIAZ. B. 44. x fio^ov' e/Vr^/ce/ jap TO vftoop axmep ' TtepifiXeTrovTeq §e ov TTCLVV TroppajOev €
  • 36. The text on this page is estimated to be only 29.43% accurate TRUE HISTORY. 233 made in the ground by earthquakes and other means. Whereupon we struck sail and our ship stayed upon a sudden when it was at the pit's brim ready to tumble in : and we stooping down to look into it, thought it could be no less than a thousand furlongs deep, most fearful and monstrous to behold, for the water stood as it were divided into two parts, but looking on our right hand afar off, we perceived a bridge of water, which to our seeming, did join the two seas together and crossed over from the one to the other. Wherefore we laboured with oars to get unto it, and over it we went and with much ado got to the further side beyond all our expectation. Then a calm sea received us, and in it we found an island, not very great, but
  • 37. The text on this page is estimated to be only 6.78% accurate 2.34 AAH9OY2 IZTOPIAZ. B. 44. KOA (7/T/a OVKCTI jap efyopev. KOA vTOv 7rvjOfA€V, 8e ovfiev etyaivero, TrXy ov TTOppwOev yKovero. So^avre^ ovv elvat j3ocov, /car' dv6pu)7roi$. ol 8e XafAfiavovcriv, ol §e AO/TTG/ TT^O^ roy e/ra irepi&elv Tovq (f)tXov$ — e/Aro7
  • 38. The text on this page is estimated to be only 26.41% accurate TRUE HISTORY. 235 inhabited with unsociable people, for in it were dwelling wild men named Bucephalians, that had horns on their heads like the picture of Minotaurus. where we went * mons^et'f •who was half a bull and half ashore to look for fresh water and victuals, «*««•,*«»#»» on Pasiph ae, the -wife of Minos, for ours was all spent : and there we found &«? °f Crete, by a bull, with . , i • i 1 "which she fell water enough, but nothing: else appeared : «* ***, etc. ' OVID. Met. only we heard a great bellowing and roaring a little way off, which we thought to have been some herd of cattle, and going forwards, fell upon those men, who espying us, chased us back again, and took three of our company: the rest fled towards the sea. Then we all armed ourselves, not meaning to leave our friends unrevenged, and set upon the Bucephalians as they were dividing the flesh of them that were slain, and put them all to flight, and pursued
  • 39. The text on this page is estimated to be only 6.21% accurate 236 AAII00Y2 IZTOPIAZ. B. 44. , KO.I ovfiev evpopev. 01 /Aev ovv aXXoi OVK TOJV Xvrpoiq Tovq
  • 40. The text on this page is estimated to be only 29.07% accurate TRUE HISTORY. 237 after them, of whom we killed fifty, and two we took alive, and so returned with our prisoners ; but food we could find none. Then the company were all earnest with me to kill those whom we had taken ; but I did not like so well of that, thinking it better to keep them in bonds until ambassadors should come from the Bucephalians to ransom them that were taken, and indeed they did : and I well understood by the nodding of their heads, and their lamentable lowing, like petitioners, what their business was. So we agreed upon a ransom of sundry cheeses and dried fish and onions and four deer with three legs apiece, two behind and one before. Upon these conditions we delivered those whom we had taken, and tarrying there but one day, departed.
  • 41. The text on this page is estimated to be only 8.68% accurate 238 AAH0OY2 I2TOPIA2. B. 45. 45. y^vj &e i%6ve$ re vj/juv efyalvovro opvea 7rap€7reT€TO Kai aXX OTTO era va,VTtXia/jj£vov
  • 42. The text on this page is estimated to be only 29.36% accurate TRUE HISTORY. 239 Then the fishes began to show themselves in the sea, and the birds flew over our heads, and all other tokens of our approach to land appeared unto us. Within a while after we saw men travelling the seas, and a new found manner of navigation, themselves supplying the office both for ship and sailor, and I will tell you how. As they lie upon their backs in the water and their privy members standing upright, which are of a large size and fit for such a purpose, they fasten thereto a sail, and holding their cords in their hands, when the wind hath taken it, are carried up and down as please themselves. After these followed others riding upon cork, for they yoke two dolphins together, and drive them on (performing themselves the place of a coachman), which draw the
  • 43. The text on this page is estimated to be only 6.60% accurate 240 AAH6OY2 I2TOPIA2. B. 46. €ipyviKco
  • 48. The text on this page is estimated to be only 28.17% accurate TRUE HISTORY. 241 cork along after them. These never offered us any violence, nor once shunned our sight ; but passed along in our company without fear, in a peaceable manner, wondering at the greatness of our ship, and beholding it on every side. At evening we arrived upon a small island, inhabited, as it seemed, only by women, which could speak the Greek language ; for they came unto us, gave us their hands, and saluted us, all attired like wantons, beautiful and young, wearing long mantles down to the foot : the island was called Cabbalusa and the city Hydramardia. So the women received us, and every one of them took aside one of us for herself, and made him her guest. But I pausing a little upon it (for my heart misgave me), looked narrowly round about, and saw the R
  • 49. The text on this page is estimated to be only 7.11% accurate 242 AAH6OY2 IZTOP1AZ. B. 46. xai TO p*ev /3ov/v icrTavai /ca/ rovg e ra pelv OVK TroXXa, yvffipvjv (Liny S/a€K raiv TraovTCM KUKCOV. cr/ceXo; o^ yvvaiKog, aXX' ovot^ OTrXa^" Soy cnracrafAevos TO %i(j)0/ roiv Je, a/towa, Aev, eiTre efoai TrpoeayopevofAevas, Tpo€7ri%eipov{A€v TavTa eKevyv f&€v MVTOV KCLI Se
  • 50. The text on this page is estimated to be only 29.03% accurate TRUE HISTORY. 243 bones of many men, and the skulls lying together in a corner ; yet I thought not good to make any stir, or to call my company about me, or to put on arms ; but taking the mallow into my hand, made my earnest prayers thereto that I might escape out of those present perils. Within a while after, when the strange female came to wait upon me, I perceived she had not the legs of a woman, but the hoofs of an ass. Whereupon I drew my sword, and taking fast hold of her, bound her, and examined her upon the point: and she, though unwillingly, confessed that they were sea-women, called Onosceleans, and they fed upon strangers that travelled that way. For, said she, when we have made them drunk, we go to bed to them, and in their sleep, make a hand of them.
  • 51. The text on this page is estimated to be only 8.07% accurate 244 AAH6OY2 I2TOPIAZ. B. 47. TO <7Teo e3ocov re KOA yyov €(70) 7rpo$ vqv avTixa v$u>p eyeveto KCLI §6 TO /)0 6 TO TO Se a//>oa eyevero 67T/ KCLI eirei €7T€l &6 GVWyXdoV, TO, ai>To7$ xai ra re oora e , ryv yireipov oi7roj3Xe7ro{Aevoi eiKcifyelvai tyv avrnrepav ly vcf) ' oy^cov 8 ' ovv KOA Trpocrev^ajAevoi irepi TCOV
  • 52. Welcome to our website – the ideal destination for book lovers and knowledge seekers. With a mission to inspire endlessly, we offer a vast collection of books, ranging from classic literary works to specialized publications, self-development books, and children's literature. Each book is a new journey of discovery, expanding knowledge and enriching the soul of the reade Our website is not just a platform for buying books, but a bridge connecting readers to the timeless values of culture and wisdom. With an elegant, user-friendly interface and an intelligent search system, we are committed to providing a quick and convenient shopping experience. Additionally, our special promotions and home delivery services ensure that you save time and fully enjoy the joy of reading. Let us accompany you on the journey of exploring knowledge and personal growth! ebookfinal.com