Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (1 vote)
15 views

PDF Oracle Database Programming using Java and Web Services 1st Edition Kuassi Mensah download

Database

Uploaded by

fjerahern
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
15 views

PDF Oracle Database Programming using Java and Web Services 1st Edition Kuassi Mensah download

Database

Uploaded by

fjerahern
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 47

Download the full version of the ebook at

https://ebookgate.com

Oracle Database Programming using Java and


Web Services 1st Edition Kuassi Mensah

https://ebookgate.com/product/oracle-database-
programming-using-java-and-web-services-1st-
edition-kuassi-mensah/

Explore and download more ebook at https://ebookgate.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Service Oriented Architecture with Java Using SOA and web


services to build powerful Java applications First Edition
Christudas
https://ebookgate.com/product/service-oriented-architecture-with-java-
using-soa-and-web-services-to-build-powerful-java-applications-first-
edition-christudas/
ebookgate.com

Web Technologies TCP IP Web Java Programming and Cloud


Computing 3rd Edition Achyut S. Godbole

https://ebookgate.com/product/web-technologies-tcp-ip-web-java-
programming-and-cloud-computing-3rd-edition-achyut-s-godbole/

ebookgate.com

Developing Web Services with Java APIs for XML 1st Edition
Robert Hablutzel

https://ebookgate.com/product/developing-web-services-with-java-apis-
for-xml-1st-edition-robert-hablutzel/

ebookgate.com

Beginning Oracle SQL 3rd Edition For Oracle Database 12c


Lex Dehaan

https://ebookgate.com/product/beginning-oracle-sql-3rd-edition-for-
oracle-database-12c-lex-dehaan/

ebookgate.com
Programming Web Services with XML RPC 1st ed Edition Simon
St. Laurent

https://ebookgate.com/product/programming-web-services-with-xml-
rpc-1st-ed-edition-simon-st-laurent/

ebookgate.com

Google Web Toolkit GWT Java AJAX Programming A Practical


Guide to Google Web Toolkit for Creating AJAX Applications
with Java 1st Ed. Edition Prabhakar Chaganti
https://ebookgate.com/product/google-web-toolkit-gwt-java-ajax-
programming-a-practical-guide-to-google-web-toolkit-for-creating-ajax-
applications-with-java-1st-ed-edition-prabhakar-chaganti/
ebookgate.com

Beginning Oracle Programming 1st Edition Sean Dillon

https://ebookgate.com/product/beginning-oracle-programming-1st-
edition-sean-dillon/

ebookgate.com

Building Web services with Java making sense of XML SOAP


WSDL and UDDI 2nd ed Edition Graham

https://ebookgate.com/product/building-web-services-with-java-making-
sense-of-xml-soap-wsdl-and-uddi-2nd-ed-edition-graham/

ebookgate.com

Building Web Services with Java Making Sense of XML SOAP


WSDL and UDDI 2nd Edition Steve Graham

https://ebookgate.com/product/building-web-services-with-java-making-
sense-of-xml-soap-wsdl-and-uddi-2nd-edition-steve-graham/

ebookgate.com
Oracle Database
Programming Using
Java and Web Services
Oracle Database Related Book Titles:

Oracle 9iR2 Data Warehousing, Hobbs, et al,


ISBN: 1-55558-287-7, 2004

Oracle 10g Data Warehousing, Hobbs, et al,


ISBN 1-55558-322-9, 2004

Oracle High Performance Tuning for 9i and 10g, Gavin Powell,


ISBN: 1-55558-305-9, 2004

Oracle SQL Jumpstart with Examples, Gavin Powell,


ISBN: 1-55558-323-7, 2005

Implementing Database Security and Auditing, Ben Natan,


ISBN 1-55558-334-2, 2005

Oracle Real Applications Clusters, Murali Vallath,


ISBN: 1-55558-288-5, 2004

Oracle 10g RAC Grid, Services & Clustering, Murali Vallath,


ISBN 1-55558-321-0, 2006

For more information or to order these and other Digital Press


titles, please visit our website at www.books.elsevier.com/digitalpress!
At www.books.elsevier.com/digitalpress you can:
•Join the Digital Press Email Service and have news about
our books delivered right to your desktop
•Read the latest news on titles
•Sample chapters on featured titles for free
•Question our expert authors and editors
•Download free software to accompany select texts
Oracle Database
Programming Using
Java and Web Services

Kuassi Mensah

AMSTERDAM • BOSTON • HEIDELBERG • LONDON


NEW YORK • OXFORD • PARIS • SAN DIEGO
SAN FRANCISCO • SINGAPORE • SYDNEY • TOKYO
Elsevier Digital Press
30 Corporate Drive, Suite 400, Burlington, MA 01803, USA
Linacre House, Jordan Hill, Oxford OX2 8DP, UK

Copyright © 2006. Elsevier, Inc.

No part of this publication may be reproduced, stored in a retrieval system, or


transmitted in any form or by any means, electronic, mechanical, photocopying,
recording, or otherwise, without the prior written permission of the publisher.

Permissions may be sought directly from Elsevier’s Science & Technology Rights
Department in Oxford, UK: phone: (+44) 1865 843830, fax: (+44) 1865 853333,
e-mail: permissions@elsevier.com.uk. You may also complete your request on-line
via the Elsevier homepage (http://elsevier.com), by selecting “Customer Support”
and then “Obtaining Permissions.”

Recognizing the importance of preserving what has been written, Elsevier prints its
books on acid-free paper whenever possible.

Library of Congress Cataloging-in-Publication Data


Application Submitted.

ISBN 13: 978 1-55558-329-3


ISBN 10: 1-55558-329-6

British Library Cataloguing-in-Publication Data


A catalogue record for this book is available from the British Library.

For information on all Elsevier Digital Press publications


visit our Web site at www.books.elsevier.com

06 07 08 09 10 9 8 7 6 5 4 3 2 1

Printed in the United States of America


To the memory of my mother and my father.

To my loving wife, Gabrielle, and my wonderful sons, Gareth and Kenneth.


This Page Intentionally Left Blank
Contents

Foreword xix

Preface xxi

Introduction xxv
Server-Side Database Programming
(Stored Procedures) xxvi
Database Programming Using JDBC, SQLJ,
and JPublisher xxviii
Database Programming with Web Services xxix
Putting Everything Together: The “All-You-Can-Eat Buffet” xxx

Acknowledgments xxxi

Part I: Java in the Database 1

1 Stored Procedures as Database Programming Model 3


1.1 Rationale for Stored Procedures 3
1.1.1 Simplifying Database Programming 3
1.1.2 Centrally Managed Data Logic 4
1.1.3 Performance: Run JDBC Applications Faster in
the Database 4
1.1.4 Encapsulation 10
1.1.5 Security: Advanced Data Access Control 10
1.1.6 Resource Optimization 11
1.1.7 Low-Cost Deployment 11
1.1.8 Fully Utilize Database Capabilities 11
1.2 Obstacles to the Adoption of Stored Procedures 11

vii
viii Contents

1.2.1 Lack of Portability across RDBMS Vendors 12


1.2.2 Scalability 12
1.2.3 Maintenance and Resilience to Schema Change 12
1.2.4 Hard to Debug 13
1.2.5 Weak Support for Complex Types 13
1.3 Languages for Stored Procedures 13
1.3.1 Proprietary Languages 13
1.3.2 Java for Stored Procedures 14
1.3.3 .NET Languages 18
1.4 PL/SQL or Java 19
1.4.1 PL/SQL and Java! 21

2 OracleJVM: Under the Hood 23


2.1 Design Goals and Architecture 23
2.1.1 Tight Integration with the RDBMS 24
2.1.2 J2SE Compatibility 24
2.1.3 How Is Java Stored in the Database? 25
2.1.4 Class Sharing 30
2.1.5 Interapplication Isolation (JSR 121) 32
2.1.6 Contrasting OracleJVM with the JDK VM 32
2.1.7 Resource Control 36
2.1.8 SQL Data Access from Java in the Database 37
2.1.9 DBMS_JAVA: The All-Purpose Tool for Administering
OracleJVM 39
2.2 Java Memory Management 41
2.2.1 Key Memory Structures of the Oracle Database 42
2.2.2 Java Memory Allocation Techniques 43
2.2.3 Garbage Collection Techniques 44
2.2.4 Java Memory Areas 46
2.2.5 Shared Servers versus Dedicated Processes 49
2.2.6 The Javapool 52
2.2.7 Top-Level Calls and Recursive Calls 53
2.2.8 State Preservation across Calls and End-of-Call Migration 54
2.2.9 End-of-Call,VM Termination, and Session Termination 58
2.3 Security in OracleJVM 60
2.3.1 User Authentication 60
2.3.2 Database-Schema Security 61
2.3.3 Resolver Specification and Class-Resolution Security 62
2.3.4 Login-User and Effective-User Security 64
2.3.5 Java 2 Security 66
2.3.6 Java 2 Security in OracleJVM 68
Contents ix

2.3.7 OracleJVM Security Best Practices 79


2.3.8 JNI Calls 80
2.4 Java VM Life Cycle 80
2.4.1 OracleJVM Install, Uninstall, and Reinstall 80
2.4.2 Java VM Initialization and Termination 81
2.5 Java Execution in the Database 81
2.5.1 The OracleJVM Interpreter 82
2.6 The Native Java Compiler (NCOMP) 84
2.6.1 What Is NCOMP? 84
2.6.2 Requirements and Design Choices 85
2.6.3 The NCOMP Process 88
2.6.4 The NCOMP Command 88
2.6.5 The STATUSNC Command 92
2.6.6 Dumping Java Classes with NCOMP 96
2.6.7 NCOMP Configuration and Planning 96
2.6.8 NCOMP Performance Tips, Improper Use,
and Troubleshooting 100
2.7 Conclusion 103

3 Developing and Running Java in


the Database 105
3.1 Developing Java in the Database 105
3.1.1 Turning JDBC Applications into Java Stored Procedures 105
3.1.2 Creating or Loading Java in the Database 106
3.1.3 Removing Java Sources, Classes, and Resources from
the Database 119
3.1.4 Setting/Querying Environment Variable and
System Properties 120
3.1.5 The Java Compiler within the Database 124
3.2 Turning Java in the Database into Stored Procedures 126
3.2.1 Call Spec Types 127
3.3 Mapping SQL and PL/SQL Types to/from Java Types 135
3.3.1 Mapping Matrix 135
3.3.2 Code Segments for Mapping 140
3.4 Invoking Java in the Database 207
3.4.1 Setup 207
3.4.2 Invoking Java in the Database Using OJVMJAVA 212
3.4.3 Invoking Java in the Database through the
PL/SQL Wrapper 214
3.4.4 Invoking Java in the Database through Client-side Stub 216
3.4.5 Errors and Exceptions Handling 221

Contents
x Contents

3.5 Managing Java in the Database 227


3.5.1 Java Audit 227
3.5.2 Oracle Enterprise Manager (Database Control) Support
for Java in the Database 228

4 Pragmatic Applications Using Java in


the Database 231
4.1 CNXO: Secure Credit Card Processing with Oracle and JSSE 231
4.2 Using J2EE and Java in the Database Together 239
4.2.1 Auto-generating Primary Keys for BMP Entity Beans 239
4.2.2 Calling-out EJB from OracleJVM 241
4.2.3 HTTP Call-Out: The Poor Man’s Cache Invalidation 249
4.2.4 JMS over Streams/AQ in the Database 253
4.3 JDBC Call-Out to Non-Oracle Databases 260
4.3.1 Description and Rationales 260
4.3.2 How Does It Work? 260
4.4 SAP Java Connector: Accessing the SAP System from the
Oracle Database 268
4.5 Excel-like Expression Parser in the Database 277
4.5.1 Rationales for Custom Parsers in the Database 277
4.5.2 What Is the Mini-Parser? 278
4.5.3 Implementing the Mini-Parser 279

5 Database Scripting Using Non-Java Languages 287


5.1 Why Contemplate Non-Java Languages for the Database? 287
5.1.1 Common Language Runtime in RDBMS 288
5.1.2 Scripting Languages Support in RDBMS 288
5.2 Database Scripting with OracleJVM—Just for Fun! 288
5.2.1 Proof of Concept #1: Running TCL (JACL) Scripts in
the Database 289
5.2.2 Proof of Concept #2: Running Jython (Python) in
the Database 297
5.2.3 Proof of Concept #3: Running Kawa (Scheme) in
the Database 299
5.2.4 Proof of Concept #4: Running Groovy in the Database 302

Part II: Java Persistence and Java SQL Data Access 317
Database Programming with Oracle JDBC 318
Contents xi

6 Introducing the JDBC Technology and


Oracle’s Implementation 319
6.1 JDBC Primer 319
6.1.1 First Steps in JDBC 319
6.1.2 JDBC within J2SE and J2EE Environments 324
6.2 Overview of JDBC Specifications 325
6.2.1 Overview of JDBC 1.22 Specification
(Where Things Started!) 325
6.2.2 Overview of JDBC 2.0 Specification
(A Major Spec!) 326
6.2.3 Overview of JDBC 3.0 Specification 328
6.2.4 Overview of Upcoming JDBC 4.0 Specification 330
6.2.5 JDBC Standards Support in the Oracle JDBC Drivers 331
6.3 Architecture and Packaging of Oracle JDBC Drivers 334
6.3.1 Rearchitected Oracle JDBC Drivers 334
6.3.2 Packaging of Oracle JDBC Drivers 336
6.3.3 Features Differences Between Driver Types 340
6.3.4 JDBC Drivers and Database Interoperability 343

7 URL, DataSource, Connection, and Statements 345


7.1 JDBC URL 345
7.2 DataSources 348
7.2.1 The OracleDataSource 349
7.2.2 DataSources and JNDI 351
7.3 Connections and Connection Services 357
7.3.1 JDBC Connections and Oracle Extensions 357
7.3.2 Connection Caching: Implicit Connection Cache 358
7.3.3 The Connection Cache Manager 383
7.3.4 RAC Events and Fast Application Notification 391
7.3.5 High Availability: Fast Connection Failover 400
7.3.6 Scalability: Connection Load Balancing 406
7.3.7 JDBC Support for Transparent Application Fail-over 409
7.3.8 Proxy Authentication 415
7.3.9 Connection Wrapping 422
7.3.10 JDBC Connections in Grid Environment 424
7.4 JDBC Statements and Oracle Extensions 427
7.4.1 JDBC Statement Types 427
7.4.2 Statement 428
7.4.3 PreparedStatement 432
7.4.4 CallableStatement (Calling Stored Procedures) 444

Contents
xii Contents

7.4.5 Retrieval of Auto-Generated Keys and DML


with Returning 454
7.4.6 Statement Caching 457
7.4.7 DML Batching 466

8 SQL Data Access and Manipulation 471


8.1 Key Metadata in JDBC 471
8.1.1 DatabaseMetaData: OracleDatabaseMetaData 471
8.1.2 ResultSetMetaData: OracleResultSetMetaData 473
8.1.3 ParameterMetaData 476
8.1.4 StructMetaData 478
8.2 Manipulating Oracle Data Types with JDBC 479
8.2.1 Manipulating SQL Null Data 488
8.2.2 Manipulating Character Data Types 489
8.2.3 Oracle JDBC Support for Number Data Types 492
8.2.4 JDBC Support for Long and Raw Data Types 496
8.2.5 JDBC Support for SQL Datetime Data Types 500
8.2.6 JDBC Support for LOB Datatypes 505
8.2.7 JDBC Support for ROWID 517
8.2.8 JDBC Support for OPAQUE Type 518
8.2.9 JDBC Support for XMLType 518
8.2.10 JDBC Support for SQL Object Types and
References Types 522
8.2.11 JDBC Support for User-Defined Collections 539
8.2.12 JDBC Support for Spatial Types 553
8.2.13 Unsupported Types 553
8.3 Result Set Support in Oracle JDBC 554
8.3.1 The Result Set API in a Nutshell 554
8.3.2 The Oracle Result Set Interface 558
8.3.3 Oracle JDBC Support for Scrollable Result Sets 559
8.3.4 Oracle JDBC Support for Updatable Result Sets 565
8.3.5 Prefetching and Auto Refresh 573
8.3.6 Changes Detection and Visibility 575
8.4 RowSet 577
8.4.1 Introducing the RowSet API 577
8.4.2 JDBCRowSet and OracleJDBCRowSet 579
8.4.3 CachedRowSet and OracleCachedRowSet 581
8.4.4 WebRowSet and OracleWebRowSet 587
8.4.5 FilteredRowSet and OracleFilteredRowSet 610
8.4.6 JoinRowSet and OracleJoinRowSet 617
8.5 Conclusion 623
Contents xiii

9 JDBC Quality of Services and


Best Practices 625
9.1 Transaction Services 625
9.1.1 Transactions 625
9.1.2 AutoCommit 625
9.1.3 Transaction Isolation Levels 626
9.1.4 Transaction SavePoint Support 627
9.1.5 Global/Distributed Transaction 632
9.1.6 Connection Sharing between Local and
Global Transactions 640
9.2 Security Services 642
9.2.1 Oracle JDBC Support for SSL 642
9.3 Tips and Best Practices 657
9.3.1 End-to-End Tracing 658
9.3.2 Common Errors 662
9.3.3 Optimizing Result Set Retrieval 662
9.3.4 Logging Service 663
9.4 Conclusion 666

Part III: Oracle Database Programming with SQLJ 667

10 Introducing the SQLJ Technology and


Oracle’s Implementation 669
10.1 Overview 669
10.1.1 What Is SQLJ? 669
10.1.2 Why SQLJ? 671
10.1.3 The Oracle SQLJ Translator 676
10.1.4 The Oracle SQLJ Runtime 689
10.1.5 Environment Setup 690
10.1.6 SQLJ Primer 692
10.2 SQLJ in the Database 693

11 The SQLJ Language and Oracle Extensions 701


11.1 Declaration Statements 701
11.1.1 Import Statements 701
11.1.2 Connection Contexts 701
11.1.3 Execution Contexts 712
11.1.4 Iterators 717
11.1.5 IMPLEMENTS Clause in Context Declarations 726

Contents
xiv Contents

11.1.6 WITH Clause in Context Declarations 728


11.2 Executable Statements 730
11.2.1 Statement Clauses 731
11.2.2 Assignment Clauses 737
11.2.3 Dynamic SQL 740
11.3 Expressions in SQLJ 744
11.3.1 Context and Result Expressions 746
11.3.2 Expressions Evaluation 748
11.4 Interoperability: Using SQLJ and JDBC Together 748
11.4.1 JDBC to SQLJ Interoperability 748
11.4.2 SQLJ to JDBC Interoperability 751
11.5 Conclusion 753

12 SQLJ Data Access and Best Practices 755


12.1 Manipulating Oracle SQL and PL/SQL Data Types with SQLJ 755
12.1.1 Oracle SQLJ Type-Mapping Summary 755
12.1.2 Column Definitions 759
12.1.3 Manipulating SQL Null Data with SQLJ 760
12.1.4 Manipulating Character Data Types with SQLJ 762
12.1.5 Oracle SQLJ Support for Number Data Types 764
12.1.6 SQLJ Streams, LONG, and RAW Data Types 765
12.1.7 SQLJ Support for SQL Datetime Data Types 772
12.1.8 SQLJ Support for SQL LOB Data Types 774
12.1.9 SQLJ Support for Oracle SQL ROWID 780
12.1.10 SQLJ Support for OPAQUE Types 782
12.1.11 SQLJ Support for SQL Object Types and SQL
References Types 783
12.1.12 Serialized Java Objects 796
12.1.13 SQLJ Support for User-Defined SQL Collections 807
12.1.14 PL/SQL Associative Array 809
12.1.15 Unsupported Types 809
12.2 SQLJ Best Practices 811
12.2.1 Row Prefetch 811
12.2.2 Statement Caching 811
12.2.3 Update Batching 812
12.3 Conclusion 813
Contents xv

Part IV: Oracle Database Programming with JPublisher 815

13 Abridged Oracle JPublisher 817


13.1 Why JPublisher? 817
13.2 Overview 819
13.2.1 Environment Requirements 821
13.2.2 JPublisher Options 829
13.3 JPublisher In Action 849
13.3.1 User-Defined SQL Object Types 850
13.3.2 SQL Object Reference Types (REF types) 854
13.3.3 REF Cursor Types and Subclassing 855
13.3.4 User-Defined SQL Collection Types 858
13.3.5 User-Defined OPAQUE Types 862
13.3.6 XMLType 863
13.3.7 PL/SQL Conversion Functions 865
13.3.8 PL/SQL RECORD Types 866
13.3.9 PL/SQL Table or Scalar Index-by-Table 866
13.3.10 Oracle Streams AQ 872
13.3.11 Java in the Database 873
13.4 Conclusion 873

Part V: Programming the Oracle Database with Web Services 875

14 Web Services and SOA for DBA, Data Architects,


and Others 879
14.1 Web Services 101 879
14.1.1 Core Web Services Technologies 880
14.2 Service-Oriented Architecture (SOA):
The Bigger Picture 890
14.3 Conclusion 897

15 Database as Web Services Provider Service 899


15.1 Rationales for Database as Web Services Provider 899
15.2 How Does Database as Web Services
Provider Work? 899
15.2.1 Implementation and Packaging 900
15.2.2 How Does Oracle Database as Web Services
Provider Work? 901

Contents
xvi Contents

15.2.3 Web Services and SOA Features in Oracle Application


Server 10.1.3 902
15.3 Turning Oracle Database Functionality into Web Services 905
15.3.1 Type Conversions and Result Set Representation 905
15.3.2 Setting up the Oracle AS OC4J for Database as Web
Services Provider 907
15.3.3 Assembling PL/SQL Web Services Using
JDeveloper Wizard 908
15.4 Assembling Database Web Services Using the
Command-Line Tool 925
15.4.1 Assembling PL/SQL Web Services Using Web
Services Assembler 928
15.4.2 Assembling Java in the Database as a Web Service 937
15.4.3 Assembling SQL Queries or SQL DML Statements as
Web Services 939
15.4.4 Assembling Oracle Streams AQ as Web Services 940
15.5 Data Type Restrictions 942
15.6 Conclusion 943

16 Database as Web Services Consumer 945


16.1 Rationales for Database as Web Services Consumer 945
16.2 How Database as Web Services Consumer Works 946
16.2.1 The Software Pieces 946
16.2.2 The Required Steps 947
16.3 Turning Your Oracle Database into a Web Service Consumer 954
16.3.1 Ensure That Java Is Installed in the Database 954
16.3.2 Installing JPublisher on the Client Machine 955
16.3.3 Installing the Web Services Call-Out Utility in
Your Database 956
16.4 Database Web Services Call-Out Samples 959
16.4.1 Calling Out Google Search Web Service 959
16.4.2 Calling Out the Phone Verifier Web Service 962
16.5 Conclusion 964

Part VI: Putting Everything Together 965

17 360-Degree Programming the


Oracle Database 967
17.1 TECSIS Systems: Custom Enterprise Integration Framework 968
17.1.1 About the Company 968
Contents xvii

17.1.2 About the Application 968


17.1.3 Our Business and Technical Requirements 969
17.1.4 The Architecture of the Integration Framework 970
17.1.5 The Complete Picture 972
17.1.6 Conclusion 974
17.2 Oracle interMedia 974
17.2.1 What Is Oracle interMedia? 974
17.2.2 How Does It Work? 975
17.2.3 Rationales for Storing Media Data in the Database 976
17.2.4 interMedia Powered by the Oracle Database
Extensibility Framework 978
17.2.5 interMedia Powered by Java in the Database 978
17.2.6 Developing Feature-Rich Multimedia Applications
Using interMedia 981
17.3 British Columbia: Online Corporate Registration 993
17.3.1 Corporate Online: Background 994
17.3.2 How It Works 994
17.3.3 Architecture: Requirements and Design 994
17.3.4 Messaging across Tiers 1004
17.3.5 Future Work 1009
17.3.6 Conclusion 1009
17.4 Information Retrieval Using Oracle Text 1009
17.4.1 What Is Oracle Text? 1010
17.4.2 Why Java in the Database? 1011
17.4.3 Technical Features 1012
17.4.4 Benefits of an Integrated Search Capability 1016
17.4.5 Yapa 1017
17.4.6 Conclusion 1028
17.5 Database-Driven Content Management System
(DBPrism CMS) 1028
17.5.1 DBPRISM CMS: Key Features and Benefits 1029
17.5.2 The Architecture of DBPrism CMS 1030
17.5.3 DBPrism CMS Internals 1033
17.5.4 Extended Capabilities 1046
17.5.5 Text Searching 1049
17.5.6 Installing DBPRism CMS 1051
17.5.7 Future Work 1057
17.6 Conclusion 1058

Index 1059

Contents
This Page Intentionally Left Blank
Foreword

I spend the bulk of my time working with Oracle database software and,
more to the point, with people who use this software. Over the last 18
years, I’ve worked on many projects—successful ones as well as complete
failures—and if I were to encapsulate my experiences into a few broad state-
ments, they would be

 An application built around the database—dependent on the data-


base—will succeed or fail based on how it uses the database. Addi-
tionally, in my experience, all applications are built around databases.
I cannot think of a single useful application that does not store data
persistently somewhere.
 Applications come, applications go. The data, however, lives forever.
In the long term, the goal is not about building applications; it really
is about using the data underneath these applications.
 A development team needs at its heart a core of database-savvy devel-
opers who are responsible for ensuring the database logic is sound
and the system is built to perform from day one. Tuning after the fact
(tuning after deployment) typically means you did not give serious
thought to these concerns during development.

These may seem like surprisingly obvious statements, but I have found
that too many people approach the database as if it were a black box—some-
thing that they don’t need to know about. Maybe they have a SQL genera-
tor that they figure will save them from the hardship of having to learn the
SQL language. Maybe they figure they will just use the database like a flat
file and do keyed reads. Whatever they figure, I can tell you that thinking

xix
Another random document with
no related content on Scribd:
Trailin’ By Max Brand

Heywood Broun of the New York Tribune declares this one of the
best Western stories he ever read.
The Gold Girl By James B. Hendryx

A man’s size novel of the West in which a lost mine, a mysterious


jug, and a distinctly original type of hero play important parts.
A Critic in Pall Mall By Oscar Wilde

Essays and criticisms collected from the Pall Mall Gazette and
other sources. Never before published in book form. This volume
completes our 15–volume set of the works of Oscar Wilde. Semi-
flexible cloth or flexible leather.
The Wonderful Adventures of Phra the
Phoenician By Edwin Lester Arnold

An Arabian Nights entertainment equal in its field to anything this


writer’s distinguished father, author of The Light of Asia, ever
conceived. The fantastic chronicle of a character who existed in many
eras.
Sheepskins and Grey Russet

By

E. Temple Thurston
Author of “The City of Beautiful Nonsense,” “The World of
Wonderful Reality,” “David and Jonathan,” etc.

8º. Illustrated throughout by Émile Verpilleux


“Our clothing is good sheepskins
Grey russet for our wives.”

Corridon’s song from the “Complete Angler.”

A whimsical, wholly delightful adventurous assay at country life.


This volume carries on in a delectable fashion all that exquisiteness
in writing that characterized an earlier book, The Open Window. The
story progresses from the buying of the old farm through all the
humorous entangling mysteries that enhearten and confound the
amateur householder.
The Treasure of the Isle of Mist

A Tale of the Isle of Skye

By

W. W. Tarn

An exquisite fantasy contrived with delicious humor with a lovable
small heroine who has “a warm heart and a largish size in shoes”—a
tale of utmost charm and much of the lore of the East and West that
has filled the story-books of the world. Here is a magic which calls to
young and old alike. You will love Fiona and her father the Student
and undoubtedly you will be well disposed toward the Urchin—but
whether you will care for Jeconiah—well you must decide that for
yourself.
David and Jonathan

By

E. Temple Thurston
Author of “The City of Beautiful Nonsense”
The two friends, so different in temperament and physique, but
one in understanding—last to leave the burning ship, are finally
thrown half dead on scorching African sands.
Six days later a ship’s boat plunges through the breakers
containing six bodies, apparently dead from hunger and thirst—but
one breathes, a woman. Face to face with the eternal impulses of life,
these three souls, completely isolated from the civilized world, work
out their destiny through the instincts and impulses of primitive
man. A fantastic tale, yet real and plausible, thrilling in parts, and as
whimsical as The City of Beautiful Nonsense.
The Beloved Sinner

By

Rachel Swete Macnamara


Author of the “Fringe of the Desert,” “The Torch of Life,” and “Drifting Waters”
One of the very prettiest of springtime romances—a tale of
exuberant young spirits intoxicated with the springtime of living, of
love gone adventuring on the rough road—a story, humorous with
the gay impudences of a young Eve who is half-afraid and altogether
delighted with her fairy-prince.
G. P. Putnam’s Sons
New York

London
TRANSCRIBER’S NOTES
1. Moved the list of the author’s books from the beginning to
between p. 247 and the first advertising page.
2. Silently corrected typographical errors and variations in
spelling.
3. Retained anachronistic, non-standard, and uncertain
spellings as printed.
*** END OF THE PROJECT GUTENBERG EBOOK RETURNED EMPTY
***

Updated editions will replace the previous one—the old editions


will be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States
copyright in these works, so the Foundation (and you!) can copy
and distribute it in the United States without permission and
without paying copyright royalties. Special rules, set forth in the
General Terms of Use part of this license, apply to copying and
distributing Project Gutenberg™ electronic works to protect the
PROJECT GUTENBERG™ concept and trademark. Project
Gutenberg is a registered trademark, and may not be used if
you charge for an eBook, except by following the terms of the
trademark license, including paying royalties for use of the
Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such
as creation of derivative works, reports, performances and
research. Project Gutenberg eBooks may be modified and
printed and given away—you may do practically ANYTHING in
the United States with eBooks not protected by U.S. copyright
law. Redistribution is subject to the trademark license, especially
commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the


free distribution of electronic works, by using or distributing this
work (or any other work associated in any way with the phrase
“Project Gutenberg”), you agree to comply with all the terms of
the Full Project Gutenberg™ License available with this file or
online at www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand,
agree to and accept all the terms of this license and intellectual
property (trademark/copyright) agreement. If you do not agree
to abide by all the terms of this agreement, you must cease
using and return or destroy all copies of Project Gutenberg™
electronic works in your possession. If you paid a fee for
obtaining a copy of or access to a Project Gutenberg™
electronic work and you do not agree to be bound by the terms
of this agreement, you may obtain a refund from the person or
entity to whom you paid the fee as set forth in paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only


be used on or associated in any way with an electronic work by
people who agree to be bound by the terms of this agreement.
There are a few things that you can do with most Project
Gutenberg™ electronic works even without complying with the
full terms of this agreement. See paragraph 1.C below. There
are a lot of things you can do with Project Gutenberg™
electronic works if you follow the terms of this agreement and
help preserve free future access to Project Gutenberg™
electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright
law in the United States and you are located in the United
States, we do not claim a right to prevent you from copying,
distributing, performing, displaying or creating derivative works
based on the work as long as all references to Project
Gutenberg are removed. Of course, we hope that you will
support the Project Gutenberg™ mission of promoting free
access to electronic works by freely sharing Project Gutenberg™
works in compliance with the terms of this agreement for
keeping the Project Gutenberg™ name associated with the
work. You can easily comply with the terms of this agreement
by keeping this work in the same format with its attached full
Project Gutenberg™ License when you share it without charge
with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.

1.E. Unless you have removed all references to Project


Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project
Gutenberg™ work (any work on which the phrase “Project
Gutenberg” appears, or with which the phrase “Project
Gutenberg” is associated) is accessed, displayed, performed,
viewed, copied or distributed:

This eBook is for the use of anyone anywhere in the United


States and most other parts of the world at no cost and
with almost no restrictions whatsoever. You may copy it,
give it away or re-use it under the terms of the Project
Gutenberg License included with this eBook or online at
www.gutenberg.org. If you are not located in the United
States, you will have to check the laws of the country
where you are located before using this eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is


derived from texts not protected by U.S. copyright law (does not
contain a notice indicating that it is posted with permission of
the copyright holder), the work can be copied and distributed to
anyone in the United States without paying any fees or charges.
If you are redistributing or providing access to a work with the
phrase “Project Gutenberg” associated with or appearing on the
work, you must comply either with the requirements of
paragraphs 1.E.1 through 1.E.7 or obtain permission for the use
of the work and the Project Gutenberg™ trademark as set forth
in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is


posted with the permission of the copyright holder, your use and
distribution must comply with both paragraphs 1.E.1 through
1.E.7 and any additional terms imposed by the copyright holder.
Additional terms will be linked to the Project Gutenberg™
License for all works posted with the permission of the copyright
holder found at the beginning of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files
containing a part of this work or any other work associated with
Project Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute


this electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the
Project Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™
works unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or


providing access to or distributing Project Gutenberg™
electronic works provided that:

• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project


Gutenberg™ electronic work or group of works on different
terms than are set forth in this agreement, you must obtain
permission in writing from the Project Gutenberg Literary
Archive Foundation, the manager of the Project Gutenberg™
trademark. Contact the Foundation as set forth in Section 3
below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on,
transcribe and proofread works not protected by U.S. copyright
law in creating the Project Gutenberg™ collection. Despite these
efforts, Project Gutenberg™ electronic works, and the medium
on which they may be stored, may contain “Defects,” such as,
but not limited to, incomplete, inaccurate or corrupt data,
transcription errors, a copyright or other intellectual property
infringement, a defective or damaged disk or other medium, a
computer virus, or computer codes that damage or cannot be
read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in
paragraph 1.F.3, the Project Gutenberg Literary Archive
Foundation, the owner of the Project Gutenberg™ trademark,
and any other party distributing a Project Gutenberg™ electronic
work under this agreement, disclaim all liability to you for
damages, costs and expenses, including legal fees. YOU AGREE
THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT
LIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT
EXCEPT THOSE PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE
THAT THE FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of
receiving it, you can receive a refund of the money (if any) you
paid for it by sending a written explanation to the person you
received the work from. If you received the work on a physical
medium, you must return the medium with your written
explanation. The person or entity that provided you with the
defective work may elect to provide a replacement copy in lieu
of a refund. If you received the work electronically, the person
or entity providing it to you may choose to give you a second
opportunity to receive the work electronically in lieu of a refund.
If the second copy is also defective, you may demand a refund
in writing without further opportunities to fix the problem.

1.F.4. Except for the limited right of replacement or refund set


forth in paragraph 1.F.3, this work is provided to you ‘AS-IS’,
WITH NO OTHER WARRANTIES OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of
damages. If any disclaimer or limitation set forth in this
agreement violates the law of the state applicable to this
agreement, the agreement shall be interpreted to make the
maximum disclaimer or limitation permitted by the applicable
state law. The invalidity or unenforceability of any provision of
this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the


Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and
distribution of Project Gutenberg™ electronic works, harmless
from all liability, costs and expenses, including legal fees, that
arise directly or indirectly from any of the following which you
do or cause to occur: (a) distribution of this or any Project
Gutenberg™ work, (b) alteration, modification, or additions or
deletions to any Project Gutenberg™ work, and (c) any Defect
you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new
computers. It exists because of the efforts of hundreds of
volunteers and donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project
Gutenberg™’s goals and ensuring that the Project Gutenberg™
collection will remain freely available for generations to come. In
2001, the Project Gutenberg Literary Archive Foundation was
created to provide a secure and permanent future for Project
Gutenberg™ and future generations. To learn more about the
Project Gutenberg Literary Archive Foundation and how your
efforts and donations can help, see Sections 3 and 4 and the
Foundation information page at www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-
profit 501(c)(3) educational corporation organized under the
laws of the state of Mississippi and granted tax exempt status
by the Internal Revenue Service. The Foundation’s EIN or
federal tax identification number is 64-6221541. Contributions
to the Project Gutenberg Literary Archive Foundation are tax
deductible to the full extent permitted by U.S. federal laws and
your state’s laws.

The Foundation’s business office is located at 809 North 1500


West, Salt Lake City, UT 84116, (801) 596-1887. Email contact
links and up to date contact information can be found at the
Foundation’s website and official page at
www.gutenberg.org/contact
Section 4. Information about Donations to
the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission
of increasing the number of public domain and licensed works
that can be freely distributed in machine-readable form
accessible by the widest array of equipment including outdated
equipment. Many small donations ($1 to $5,000) are particularly
important to maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws


regulating charities and charitable donations in all 50 states of
the United States. Compliance requirements are not uniform
and it takes a considerable effort, much paperwork and many
fees to meet and keep up with these requirements. We do not
solicit donations in locations where we have not received written
confirmation of compliance. To SEND DONATIONS or determine
the status of compliance for any particular state visit
www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states


where we have not met the solicitation requirements, we know
of no prohibition against accepting unsolicited donations from
donors in such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot


make any statements concerning tax treatment of donations
received from outside the United States. U.S. laws alone swamp
our small staff.

Please check the Project Gutenberg web pages for current


donation methods and addresses. Donations are accepted in a
number of other ways including checks, online payments and
credit card donations. To donate, please visit:
www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could
be freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose
network of volunteer support.

Project Gutenberg™ eBooks are often created from several


printed editions, all of which are confirmed as not protected by
copyright in the U.S. unless a copyright notice is included. Thus,
we do not necessarily keep eBooks in compliance with any
particular paper edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg
Literary Archive Foundation, how to help produce our new
eBooks, and how to subscribe to our email newsletter to hear
about new eBooks.

You might also like