Oracle Corporation does not make any representations or warranties as to the accuracy, adequacy, or completeness of any information con-tained in this Work, and is not responsible for an
Trang 2Oracle Database 11g:
A Beginner’s Guide
Ian Abramson
Michael Abbey
Michael J Corey
Michelle Malcher
New York Chicago San Francisco
Lisbon London Madrid Mexico City Milan
New Delhi San Juan Seoul Singapore Sydney Toronto
Trang 3Copyright © 2009 by The McGraw-Hill Companies, Inc All rights reserved Except as permitted under the United States 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 sys-tem, without the prior written permission of the publisher.
ISBN: 978-0-07-160460-4
MHID: 0-07-160460-X
The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-160459-8, MHID: 0-07-160459-6.
All trademarks are trademarks of their respective owners Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trade-mark Where such designations appear in this book, they have been printed with initial caps.
McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs To contact a representative please e-mail us at bulksales@mcgraw-hill.com.
Information has been obtained by Publisher from sources believed to be reliable However, because of the possibility of human or mechan-ical 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 con-tained in this Work, and is not responsible for any errors or omissions.
TERMS OF USE
This is a copyrighted work and The McGraw-Hill Companies, Inc (“McGraw-Hill”) and its licensors reserve all rights in and to the work Use of this work is subject to these terms Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy
of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, dis-tribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill’s prior consent You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited Your right to use the work may be terminated
if you fail to comply with these terms.
THE WORK IS PROVIDED “AS IS.” McGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUD-ING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WAR-RANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free Neither McGraw-Hill nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom McGraw-Hill has no responsibility for the content of any information accessed through the work Under no circumstances shall McGraw-Hill and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the pos-sibility of such damages This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise.
Trang 4This book is dedicated to all those who have helped us learn and become better professionals.
We share this with all of you.
Trang 5About the Authors
Ian Abramson is the current president for the Independent Oracle Users Group
(IOUG) Based in Toronto, Canada, he is an experienced industry and technical
consultant, providing expert guidance in implementing solutions for clients in
telecommunications, CRM, utilities, and other industries His focus includes the
Oracle product set, as well as other leading technologies and their use in optimizing
data warehouse design and deployment He is also a regular speaker at various
technology conferences, including COLLABORATE, Oracle OpenWorld, and
other local and regional events.
Michael Abbey is a recognized authority on database administration, installation,
development, application migration, performance tuning, and implementation Working with Ian Abramson and Michael Corey, he has coauthored works in the Oracle Press series for over 14 years Active in the international Oracle user community, Abbey is a frequent presenter at COLLABORATE, Oracle OpenWorld, and regional user group meetings.
Michael J Corey is the founder and CEO of Ntirety—The Database Administration
Experts Michael’s roots go back to Oracle version 3.0 Michael is a past president of the
Independent Oracle Users group (www.ioug.org) and the original Oracle Press author.
Michael is a frequent speaker at business and technology events and has presented all
over the world Check out Michael’s blog at http://michaelcorey.ntirety.com.
Michelle Malcher is a Senior Database Administrator with
over ten years’ experience in database development, design, and administration She has expertise in performance tuning, security, data modeling, and database architecture of very large database environments She is a contributing author for the IOUG Best Practices Tip Booklet Michelle is enthusiastically involved with the Independent Oracle User Group and is director of Special Interest Groups She enjoys presenting and sharing ideas about Oracle Database topics at technology conferences and user group meetings She can be reached at michelle_malcher@ioug.org.
About the Reviewers
Carl Dudley has worked closely with Oracle for a number of years and presents regularly at international
conferences on Oracle database technology He is currently a consultant database administrator and has research interests in database performance, disaster planning, and security Carl is a director of the UK
Oracle User Group, received Oracle Magazine’s Editors’ Choice Award for Database Administrator of the
Year in 2003 for services to the Oracle community, and achieved Oracle ACE status in 2007.
Ted Falcon, based in Toronto, Canada, is CEO of BDR Business Data Reporting Inc He has ten
years’ experience in business intelligence reporting systems, specializing in the Cognos suite of tools.
Trang 6BOECVTJOFTTUSFOET t 5IJSEQBSUZOFXTBOEBOOPVODFNFOUT
BOEPQFSBUJOHFOWJSPONFOUT t %FWFMPQNFOUBOEBENJOJTUSBUJPOUJQT t 3FBMXPSMEDVTUPNFSTUPSJFT
If there are other Oracle users at
your location who would like to
receive their own subscription to
Oracle Magazine, please
photo-copy this form and pass it along.
Web
7JTJUPVS8FCTJUFBU oracle.com/oraclemagazine
Fax
$PNQMFUFUIFRVFTUJPOOBJSFPOUIFCBDLPGUIJTDBSE
BOEGBYUIFRVFTUJPOOBJSFTJEFPOMZUP+1.847.763.9638
$PNQMFUFUIFRVFTUJPOOBJSFPOUIFCBDLPGUIJTDBSE
BOENBJMJUUP P.O Box 1263, Skokie, IL 60076-8263
1
2
3
FREE SUBSCRIPTION
GET
Y O U R
TO ORACLE MAGAZINE
Oracle Magazine is essential gear for today’s information technology professionals
Stay informed and increase your productivity with every issue of Oracle Magazine.
Inside each free bimonthly issue you’ll get:
Trang 7WHAT IS THE PRIMARY BUSINESS ACTIVITY
OF YOUR FIRM AT THIS LOCATION? (check
one only)
o01 Aerospace and Defense Manufacturing
o02 Application Service Provider
o03 Automotive Manufacturing
o04 Chemicals
o05 Media and Entertainment
o06 Construction/Engineering
o07 Consumer Sector/Consumer Packaged
Goods
o08 Education
o09 Financial Services/Insurance
o10 Health Care
o11 High Technology Manufacturing, OEM
o12 Industrial Manufacturing
o13 Independent Software Vendor
o14 Life Sciences (biotech, pharmaceuticals)
o15 Natural Resources
o16 Oil and Gas
o17 Professional Services
o18 Public Sector (government)
o19 Research
o20 Retail/Wholesale/Distribution
o21 Systems Integrator, VAR/VAD
o22 Telecommunications
o23 Travel and Transportation
o24 Utilities (electric, gas, sanitation, water)
o98 Other Business and Services _
WHICH OF THE FOLLOWING BEST DESCRIBES
YOUR PRIMARY JOB FUNCTION?
(check one only)
CORPORATE MANAGEMENT/STAFF
o01 Executive Management (President, Chair,
CEO, CFO, Owner, Partner, Principal)
o02 Finance/Administrative Management
(VP/Director/ Manager/Controller,
Purchasing, Administration)
o03 Sales/Marketing Management
(VP/Director/Manager)
o04 Computer Systems/Operations
Management
(CIO/VP/Director/Manager MIS/IS/IT, Ops)
IS/IT STAFF
o05 Application Development/Programming
Management
o06 Application Development/Programming
Staff
o07 Consulting
o08 DBA/Systems Administrator
o09 Education/Training
o10 Technical Support Director/Manager
o11 Other Technical Management/Staff
o98 Other
WHAT IS YOUR CURRENT PRIMARY OPERATING PLATFORM (check all that apply)
o01 Digital Equipment Corp UNIX/VAX/VMS
o02 HP UNIX
o03 IBM AIX
o04 IBM UNIX
o05 Linux (Red Hat)
o06 Linux (SUSE)
o07 Linux (Oracle Enterprise)
o08 Linux (other)
o09 Macintosh
o10 MVS
o11 Netware
o12 Network Computing
o13 SCO UNIX
o14 Sun Solaris/SunOS
o15 Windows
o16 Other UNIX
o98 Other
99o None of the Above
DO YOU EVALUATE, SPECIFY, RECOMMEND,
OR AUTHORIZE THE PURCHASE OF ANY OF THE FOLLOWING? (check all that apply)
o01 Hardware
o02 Business Applications (ERP, CRM, etc.)
o03 Application Development Tools
o04 Database Products
o05 Internet or Intranet Products
o06 Other Software
o07 Middleware Products
99o None of the Above
IN YOUR JOB, DO YOU USE OR PLAN TO PUR-CHASE ANY OF THE FOLLOWING PRODUCTS?
(check all that apply) SOFTWARE
o01 CAD/CAE/CAM
o02 Collaboration Software
o03 Communications
o04 Database Management
o05 File Management
o06 Finance
o07 Java
o08 Multimedia Authoring
o09 Networking
o10 Programming
o11 Project Management
o12 Scientific and Engineering
o13 Systems Management
o14 Workflow HARDWARE
o15 Macintosh
o16 Mainframe
o17 Massively Parallel Processing
o18 Minicomputer
o19 Intel x86(32)
o20 Intel x86(64)
o21 Network Computer
o22 Symmetric Multiprocessing
o23 Workstation Services SERVICES
o24 Consulting
o25 Education/Training
o26 Maintenance
o27 Online Database
o28 Support
o29 Technology-Based Training
o30 Other
99o None of the Above
WHAT IS YOUR COMPANY’S SIZE?
(check one only)
o01 More than 25,000 Employees
o02 10,001 to 25,000 Employees
o03 5,001 to 10,000 Employees
o04 1,001 to 5,000 Employees
o05 101 to 1,000 Employees
o06 Fewer than 100 Employees
DURING THE NEXT 12 MONTHS, HOW MUCH
DO YOU ANTICIPATE YOUR ORGANIZATION WILL SPEND ON COMPUTER HARDWARE, SOFTWARE, PERIPHERALS, AND SERVICES FOR YOUR LOCATION? (check one only)
o01 Less than $10,000
o02 $10,000 to $49,999
o03 $50,000 to $99,999
o04 $100,000 to $499,999
o05 $500,000 to $999,999
o06 $1,000,000 and Over
WHAT IS YOUR COMPANY’S YEARLY SALES REVENUE? (check one only)
o01 $500, 000, 000 and above
o02 $100, 000, 000 to $500, 000, 000
o03 $50, 000, 000 to $100, 000, 000
o04 $5, 000, 000 to $50, 000, 000
o05 $1, 000, 000 to $5, 000, 000
WHAT LANGUAGES AND FRAMEWORKS DO YOU USE? (check all that apply)
o01 Ajax o 13 Python
o02 C o 14 Ruby/Rails
o03 C++ o 15 Spring
o04 C# o 16 Struts
o05 Hibernate o 17 SQL
o06 J++/J# o 18 Visual Basic
o07 Java o 98 Other
o08 JSP
o09 NET
o10 Perl
o11 PHP
o12 PL/SQL
WHAT ORACLE PRODUCTS ARE IN USE AT YOUR SITE? (check all that apply)
ORACLE DATABASE
o01 Oracle Database 11g
o02 Oracle Database 10g
o03 Oracle9i Database
o04 Oracle Embedded Database (Oracle Lite, Times Ten, Berkeley DB)
o05 Other Oracle Database Release ORACLE FUSION MIDDLEWARE
o06 Oracle Application Server
o07 Oracle Portal
o08 Oracle Enterprise Manager
o09 Oracle BPEL Process Manager
o10 Oracle Identity Management
o11 Oracle SOA Suite
o12 Oracle Data Hubs ORACLE DEVELOPMENT TOOLS
o13 Oracle JDeveloper
o14 Oracle Forms
o15 Oracle Reports
o16 Oracle Designer
o17 Oracle Discoverer
o18 Oracle BI Beans
o19 Oracle Warehouse Builder
o20 Oracle WebCenter
o21 Oracle Application Express ORACLE APPLICATIONS
o22 Oracle E-Business Suite
o23 PeopleSoft Enterprise
o24 JD Edwards EnterpriseOne
o25 JD Edwards World
o26 Oracle Fusion
o27 Hyperion
o28 Siebel CRM ORACLE SERVICES
o28 Oracle E-Business Suite On Demand
o29 Oracle Technology On Demand
o30 Siebel CRM On Demand
o31 Oracle Consulting
o32 Oracle Education
o33 Oracle Support
o98 Other
99 o None of the Above
YOU MUST ANSWER ALL 10 QUESTIONS BELOW.
1
2
3
4
5
6
7
8
9
s i g n a t u r e ( r e q u i r e d ) d a t e
x
From time to time, Oracle Publishing allows our partners
exclusive access to our e-mail addresses for special
promo-tions and announcements To be included in this program,
please check this circle If you do not wish to be included, you
will only receive notices about your subscription via e-mail
Oracle Publishing allows sharing of our postal mailing list with
selected third parties If you prefer your mailing address not to
be included in this program, please check this circle
If at any time you would like to be removed from either mailing list, please contact
Customer Service at +1.847.763.9635 or send an e-mail to oracle@halldata.com
If you opt in to the sharing of information, Oracle may also provide you with
e-mail related to Oracle products, services, and events If you want to completely
unsubscribe from any e-mail communication from Oracle, please send an e-mail to:
e-mail address] For complete information on Oracle Publishing’s privacy practices,
please visit oracle.com/html/privacy/html
s t r e e t / p o b o x
Want your own FREE subscription?
Yes, please send me a FREE subscription Oracle Magazine No.
Would you like to receive your free subscription in digital format instead of print if it becomes available? Yes No
To receive a free subscription to Oracle Magazine, you must fill out the entire card, sign it, and date
it (incomplete cards cannot be processed or acknowledged) You can also fax your application to
+1.847.763.9638 Or subscribe at our Web site at oracle.com/oraclemagazine
10