Académique Documents
Professionnel Documents
Culture Documents
25”
T:8”
S:7”
Dell recommends
Windows Vista® Business.
B:11.125”
T:10.875”
S:9.875”
MY LAPTOP TO BE A VAULT
I WANT
ControlVault™ identity protection.
Embedded fingerprint reader. Contactless smart card.
THE NEW LATITUDE Featuring the Intel® Centrino®2 Processor with vPro™ technology
™
DELL.COM/LATITUDE 866.238.DELL
Intel, the Intel logo, Centrino, Centrino Inside, Intel vPro and vPro Inside are trademarks of Intel Corporation
in the U.S. and other countries.
PUBLICATION: Oracle
ISSUE DATE: Nov/Dec - materials due 10/3
DESCRIPTION: I Want Vault + Intel
BLEED: 8.25” x 11.125”
FILE: 094_COM_M8J53600a2_c.indd
TRIM: 8” x 10.875”
CLIENT: Dell STUDIO #: 8J53600 JOB #: PDL-COM-C34356 BILLING#: PDL-COM-C34356 SAFETY: 7” x 9.875”
STUDIO ARTIST: Stan Henry 6-9932 LAST SAVE DATE: 10-2-2008 11:59 AM PAGE COUNT: 1 of 1 PRINT SCALE: 100% GUTTER: None
ACCT. EXEC.: Linsay Tolles / Natalie Huffman
DOCUMENT PATH: Retouching:Volumes:Retouching:Clients:Davinci:8J53600_PDL_COM_C34356:Latest Files:094_COM_M8J53600a2_c.indd ART DIRECTOR: None
FONT FAMILY: Gotham (Medium, Black, Bold, Book, Light), GothamCondensed (Book) COPYWRITER: None
LINK NAME: TMP8H52555c1.tif, Dell_DarkBlue_HSB_Gradient_yr.eps, cpt2vproPM_4c_088_yr.eps PRINT PROD.: Simira Davis
INK NAME: Cyan, Magenta, Yellow, Black PROJ. MNGR.: Steven Korowitz 6-9958
MECH. QC____________________ PRE-MEDIA QC____________________ RTC QC____________________ ES____________________ ES____________________ PROJ. MNGR. ____________________
HONORING LEADERSHIP
AND INNOVATION
IN TECHNOLOGY
TOM LAMMING KONSTANTINOS KAPPOS RICHARD MARTINEZ BARRY LIBENSON CELSO GUIOTOKO
TELSTRA HELLENIC TELECOMMUNICATIONS PUERTO RICO DEPARTMENT INGERSOLL-RAND NISSAN
ORGANIZATION (OTE) OF EDUCATION
IN THIS ISSUE: HP ORACLE DATABASE MACHINE • HP ORACLE EXADATA STORAGE SERVER • KEEPING ACTIVE • NEED TO KNOW
Move Ahead.
Alternative thinking is recognizing the proper role of technology in this
era is not just to be safe and steady and reliable, but to spur the
business to compete aggressively, imaginatively and daringly.
It is working with HP and Oracle to reduce risk and lower costs while
driving your business ahead.
hp.com/go/oracle
FEATUR ES
TECHNOLOGY
From all corners of the globe, from all industries,
and all areas of technology—the winners of the
seventh annual Editors’ Choice
Awards reflect outstanding
leadership, innovation,
and commitment.
The editors of
Oracle Magazine are With partner HP, Oracle has released
pleased to honor the its first-ever hardware product, the HP
Oracle Database Machine. This high-
achievements of these
performance system promises to take
talented professionals. Oracle data warehouse performance to
RON SELLERS
—David A. Kelly extreme levels. —Jeff Erickson
/31 /19
Cover: I-hua Chen
D E PAR T M E N TS
10
From the Editor / 6
Better Partnering, More
Partnering—Tom Haunert AT OR AC LE
Events / 10 Interview / 21
Find out about current and Sushil Kumar, senior director of database
Oracle OpenWorld 2008 was upcoming industry events. availability, manageability, and performance
bigger and greener than ever at Oracle, talks about Oracle’s support for
Oracle Resources / 13
before. Here are some highlights cloud computing.
Your guide to Oracle Webcasts,
from the conference. / 8 podcasts, blogs, education Interview / 22
offerings, and more Terry Olkin, vice president and chief architect
at Oracle, discusses Oracle Beehive, Oracle’s
Oracle News Briefs / 16
next-generation collaboration platform.
59 TEC HNOLOGY
HIGH AVAILABILITY
Keeping Active / 59
Use Oracle Active Data Guard to set up a physical
standby database for reporting and recovery.
—Arup Nanda
24
S QL DEV ELOP ER
Programming Productively / 63
C O MMU NI TY Use Oracle SQL Developer to work efficiently with
Partner News / 24 PL/SQL constructs. —Sue Harper
Zmanda, U&SLUNO, Helpstream,
Data Domain, Voltaire, nCipher, Accenture, INS IDE OC P
ArcSight, Capgemini New Ways to Flash Back / 67
Reverse transactions and track historical changes in
Book Beat / 24
Oracle Database 11g. —Sushma Jagannath
Education / 26
Oracle helps students prepare for AS K TOM
global challenges. On Separation and Counting / 69
Up Close / 27 Our technologist promotes more than one schema,
A user group leader helps members manage an counts partitions, and uses TKPROF. —Tom Kyte
expanding range of Oracle technologies.
Peer-to-Peer / 28
Ahmed Alomari, Gregory Rekounas,
Penny Cookson
73 C OMMENT
IN THE FIELD
Integration: It’s Coming Together / 73
Mergers, acquisitions, and growth present
opportunities for user groups. —Ian Abramson
ALL S EC UR E
50
Need to Know / 75
Getting better information is important, but some
D EVEL O PER
secrets are not for sharing.
F RA MEWO RKS —Mary Ann Davidson
Developing a Regional Accent / 50
Use task flows as regions to improve UI reuse. ANALY S T’ S C OR NER
—Steve Muench Application Server Convergence / 76
Customers gain new capabilities from the
PL / SQ L PRA CTI CES combination of Oracle and BEA technologies.
On Cursor FOR Loops / 53 —David Baum
It’s important to know when not to use cursor FOR loops.
—Steven Feuerstein
O D P.NET
Instant ODP.NET Deployment / 56
Deploy ODP.NET applications instantly with Oracle Data
Access Components. —Mark A. Williams
2 november/december 20 08 oracle.com/oraclemagazine
Want more? Keep your game razor sharp at Toad World, where you not only learn from some of the
world’s foremost database experts, but you connect with the Toad online community worldwide.
Now that’s taking tools to the next level.
Ready to learn more? Watch “Something for Everyone: Finding the Right Tools for DBAs, Developers
and Analysts” and get access to new Toad resources at www.quest.com/edge
©2008 Quest Software, Inc. All rights reserved. Quest and Quest Software are trademarks or registered trademarks of Quest Software.
All other brand or product names are trademarks or registered trademarks of their respective holders. DBM_Toad4Oracle_ToadCards_Q4_2008.
e ditorial
editor in chief Tom Haunert
tom.haunert@oracle.com
contributors
Marta Bright, Ed DeJesus, Kirk Donnan, Jeff Erickson,
Aaron Lazenby, Fred Sandsmark, Rich Schwerin, Leslie Steere
de Sign
Senior creative director Francisco G. Delgadillo
design director Richard Merchán
Production designer Kathy Cygnarowicz
e ditorial Board
WE LIVE IN THE
Ian Abramson, Karen Cannell, Andrew Clarke, Chris Claterbos, Karthika
Devi, Kimberly Floss, Kent Graziano, Taqi Hasan, Tony Jambu, Tony
HOUSE WE ALL
Jedlinski, Ari Kaplan, Val Kavi, John King, Steve Lemme, Carol McGury,
BUILD.
Sumit Sengupta, Jonathan Vincenzo, Dan Vlamis
re Source S
oracle Products +1.800.367.8674 (U.S./Canada)
oracle Services +1.888.283.0591
oracle Press Books www.oraclepress.com
Oracle Magazine (ISSN 1065-3171) is published bimonthly with a free subscription price Visit us at earthshare.org
by: Oracle, 500 Oracle Parkway, MS OPL-3C, Redwood City, CA 94065-1600. Periodicals
Postage Paid at Redwood City, CA, and additional mailing offices. • POSTMASTER:
Send address changes to: Oracle Magazine, P.O. Box 1263 Skokie, IL 60076-8263.
4 NOVEMBER/DECEMBER 20 08 oracle.com/oraclemagazine
midatlantic u.s.
dawn becker and Lisa rinaldo
dbeck71@optonline.net
+1.732.772.0160
mailing-list rentals
edith roman Associates
+1.800.223.2194, ext. 684
nextSTEPS
GETTING MORE
Within an hour of the HP Oracle Database Machine and HP
LEARN more about Oracle Exadata Storage Server announcement, I received an
HP Oracle Database Machine e-mail from a company I was not familiar with. The company
oracle.com/solutions/business_intelligence/database-machine.html spokesperson informed me that the company’s hardware was
HP Oracle Exadata Storage Server included in HP Oracle Database Machine and HP Oracle
oracle.com/exadata
Exadata Storage Server. Soon enough, I was corresponding with
JOIN Oracle PartnerNetwork a new hardware partner about coverage in Oracle Magazine.
oracle.com/partners
6 N o v e m b e r / D E C EMBER 2 0 0 8 oracle.com/oraclemagazine
hartmann Studios
took the stage to discuss and demonstrate how organizations
can take advantage of Oracle’s complete, open, and integrated
technology stack to reduce complexity and increase profitabil-
During his keynote address, Oracle President Charles Phillips chatted with
ity. In his keynote, Ellison introduced Oracle’s first-ever hard- Olympic swimmer Michael Phelps, who won a record-breaking eight gold
medals at the Beijing 2008 Olympic Games. Phelps discussed his rigorous
ware product, the HP Oracle Database Machine, which he said workout schedule and diet, and Phillips prompted laughs by comparing
Phelps’ training routine to that of an Oracle developer.
improves data warehouse query performance by a factor of 10
or more (see page 19 for details). Other major announcements included Oracle’s support for cloud
computing (see page 21 for more) and the release of Oracle Beehive, a new collaboration applica-
tion that gives customers a new way to communicate and work together (see page 22 for details).
In addition to nearly 1,800 breakout sessions and more than 300 live demonstrations, hundreds
of partners and vendors showcased products and services in the exhibition halls. Oracle Develop,
a special program for developers, returned to Oracle OpenWorld this year with
webLOCATOR
more days, more sessions, and more hands-on labs.
Oracle OpenWorld 2008
New to Oracle OpenWorld in 2008 was the Green Program, with 19 ses- oracle.com/openworld/2008
the greenest Oracle OpenWorld yet, featuring reusable water bottles and Oracle Mix
mix.oracle.com
water stations; recyclable signage; nontoxic, biodegradable giveaways; and ThinkQuest
www.thinkquest.org
virtual collateral racks.
hartmann studios
Oracle Chairman Jeff Henley (front row, second from left) with recipients
of the 2008 Empower the Green Enterprise awards. Oracle recognized 16
global customers and their partners (for a list of winners, see page 49.)
Henley kicked off the Green Program at the Yerba Buena Center for the
Arts, where he said, “Green business practices aren’t just good for the
environment. They are good for business.”
hartmann studios
Oracle Executive Vice President Chuck Rozwat announces Oracle Beehive, a built-
from-scratch collaboration application that includes e-mail, calendaring, task
management, content sharing, desktop sharing, team workspaces, and more in a
single, fully integrated solution.
bengtson PhotograPhy
Conferences and sessions to help you stay on the cutting edge OAUG Advanced Planning and
Collaboration SIG Teleconference
November 11, online
apscollaborationsig.oaug.org
Oracle BIWA Summit 2008 Grupo de Usuários Oracle RS Meeting
December 2–3, November 13, Porto Alegre, Brazil
Redwood Shores, California www.guors.com.br
The only national conference devoted Indiana Regional User Group Meeting
exclusively to Oracle-based business November 13, Indianapolis, Indiana
questers.questdirect.org/index.php?
intelligence, warehousing, and analytics, module=comm&op=index&gid=370
this event features more than 75 sessions
Northern California Oracle Users Group
on three technical tracks, plus hands-on Fall Conference
workshops. Keynote speakers include November 13, Pleasanton, California
executives from Yahoo!, Accenture, and www.nocoug.org
Oracle. Sign up at www.oraclebiwa.org. JD Edwards Southern California User
Group Holiday Social
November 19, Long Beach, California
Gartner Identity and Access Oracle HEUG Alliance Down www.jdescug.org
Management Summit Under 2008 Nashville Oracle Users Group Meeting
November 10–12, Orlando, Florida November 17–18, Brisbane, Australia November 19 and December 17,
Data breaches lead to billions of dollars of The Oracle Higher Education User Group’s Nashville, Tennessee
losses each year, both reported and unreported. event in Australia features five tracks and www.noug.net
This summit is designed to help organizations 40 sessions targeted at higher education Australian Oracle User Group Business
address the exposure that identity and access and public sector professionals, an executive Analytics and Reporting Meeting
November 20, Adelaide, South Australia
management inefficiencies and lapses create. forum, and an exhibitor fair. Find information www.ausoug.org.au
Learn more at www.gartner.com/it/ at www.heug.org.
page.jsp?id=633107. Michigan Oracle Users Summit 2008
November 20, Livonia, Michigan
DOAG Conference and www.mi-oaug.org
Quest Southeast Conference Exhibition 2008
Ottawa Oracle User Group Meeting
November 12–14, Atlanta, Georgia December 1–3, Nuremberg, Germany
November 27, Ottawa, Ontario, Canada
More than 100 sessions and 60 exhibitors will Sponsored by the German Oracle User Group www.oug-ottawa.org
cater to users of Oracle E-Business Suite and (DOAG), this conference features more than
Dallas Oracle Users Group Holiday Party
Oracle’s Hyperion, JD Edwards, and PeopleSoft 250 practical lectures given by experts from
December 4, Dallas, Texas
products. Quest Southeast will also feature a all lines of business, including technology, www.doug.org/meetings2008.cfm
forum on human capital management educa- finance, research and development, and man-
Eastern Caribbean Oracle Users Group
tion. Learn more at www.questdirect agement. The conference also offers ample Breakfast Meeting
.org/questdirect/events/quest+southeast/ networking time and a large exhibition hall. December 10, Port-of-Spain, Trinidad
quest+southeast.htm. Learn more at www.doag.org. www.ecoug.org
New York Oracle Users Group General
Gartner Master Data UK Oracle User Group Meeting
Management Summit Conference and Exhibition 2008 December 10, New York City
November 17–19, Chicago, Illinois December 1–5, Birmingham, England www.nyoug.org
The second Gartner Master Data Management UKOUG 2008 is EMEA’s largest independent
(MDM) Summit features new content in two applications and technology event for the
main directions: helping organizations build a Oracle and Oracle’s BEA, PeopleSoft, JD eventsLOCAtOR
holistic, business-driven MDM program, and Edwards, Siebel, Stellent, and Hyperion com- Oracle Events
oracle.com/events
roN sellers
going deeper into the technology foundation munities. The conference features more than
Locate user groups
that makes MDM work. Sign up at www 400 presentations and more than 80 exhibi- otn.oracle.com/collaboration/user_group
.gartner.com/it/page.jsp?id=627609. tors. Get information at www.ukoug.org.
10 November/december 20 08 oracle.com/oraclemagazine
Check out Altova MapForce® 2008 – the award-winning graphical data mapping tool from the creators
of XMLSpy ®. Drag & drop to map, convert, and transform data between:
Flat
XML EDI files WS
Test drive MapForce for yourself – Download a free, 30-day trial at www.altova.com
Geocoding
C
Web Services & APIs
M
Y
Multiplatform Tools
CM
MY
Data Submitted
CY
Now, finding the right data quality tools doesn’t have to be Name: John Wayne Brown Jr
CMY
Address: 22382 Empresa 92688
so puzzling. Melissa Data offers customizable APIs, Web Email Address: JOHN.Brown@800mail.con
K
14 november/december 20 08 oracle.com/oraclemagazine
• Software by Oracle
oracle.com/exadata
or call 1.800.ORACLE.1
Copyright © 2008, Oracle. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
A
Job No.: 002165 Live: 7" x 9.75" PUB NOTES READER
File Name: DB_Sage_RnsODW10xFstr_2165
Product: Database (Sage)
Trim:
Bleed:
7.875" x 10.5"
8.625" x 11.25"
Mgr. 9/18/08 Please use center marks 01
Headline: Runs Oracle DW 10x Faster Color: 4C Traffic Mgr. 9/18/08 to align page.
RElEAsED
Date: Fri, Sept. 19, 2008 7:00 PM Production: Proofing
Pub: TBD
Fonts:
9/18/08
9/19
Standard
Graphic Mgr. 9/18/08
Traffic: Agency
Library Ref.: 002150
Univers LT Std. 75 Blk, 65 Bold, 55 Roman, 45 Light
47 Light Condensed, Brush Script Std. Medium
Production 9/18/08
2008
Please examine these publication materials carefully. Any questions regarding the materials, please contact Jodi Cordova (650) 506-5482 or jodi.cordova@oracle.com.
d i d y O u KNOW
? a t O r a c l e briefs
IT ExEcuTIvEs sEE GrEEN DaTa cENTEr Oracle IntrOduces My Oracle suppOrt ized experience and streamline support
as MIssION-crITIcal
Nearly 90 percent of 100 CIOs and senior
IT executives interviewed at the 2008 MIT
O racle has unveiled My Oracle Support,
its next-generation customer support
platform, which integrates OracleMetaLink
delivery for its customers.”
16 november/december 20 08 oracle.com/oraclemagazine
tion, and ongoing maintenance costs. experience. Oracle Test Manager for support for all applications.
Oracle VM templates are available for Web Applications helps users manage “With this acquisition, customers will
Oracle Database 11g, Oracle Enterprise the Web application testing process, have access to a single technology for end-
Manager, Oracle’s Siebel Customer enabling full test coverage by allowing user training and process documentation
Relationship Management 8, and Oracle them to define testing requirements, that spans applications across their enter-
Enterprise Linux. specify and execute manual or auto- prise,” says Ed Abbo, senior vice president
“Customers are experiencing mated tests to validate requirements, of Oracle application development.
increased challenges as the volume and then manage the defects that those
of information in their data centers tests uncover. Oracle tO buy clearapp
continues to grow rapidly, leading to
added hardware and energy costs and
a depletion of server resources,” says
Oracle Application Testing Suite also
provides a common scripting environ-
ment between functional testing and
O racle has agreed to acquire
ClearApp, a leading supplier of
application management solutions
Wim Coekaerts, vice president, Linux load testing to help simplify the test for composite applications. ClearApp
engineering, Oracle. “The combination process and accelerate completion of addresses the increasingly difficult task
of Oracle VM templates and Oracle tests by as much as 50 percent. of managing composite applications
VM offers customers the full benefits “With Oracle Application Testing built on service-oriented architecture
of server virtualization, including opti- Suite, Oracle has delivered a compre- (SOA) platforms by providing visibility
mized resource utilization, and energy, hensive testing solution for SOA and into business services across all related
power, and space savings, in addition Web applications to help customers application components.
to faster, easier, and more-cost-effective deliver high-quality, mission-critical “As customers deploy more
software deployment—leading to further applications faster and with less effort,” SOA-based applications, the task of
lowering the cost of data center opera- says Leng Leng Tan, vice president, effectively managing them becomes
tions and contributing to green IT.” applications and systems management, paramount,” says Leng Leng Tan, vice
Oracle. “With this unique testing plat- president, applications and systems
Oracle Delivers Oracle applicatiOn form, customers can tackle small to very management, Oracle. “With the addi-
testing suite large testing projects and save time in tion of ClearApp’s technology to the
Applications, Oracle Functional Testing GKS’s OnDemand Personal Navigator Oracle JDeveloper
otn.oracle.com/products/jdev
for Web Applications, and Oracle Test product is resold as a core component
Manager for Web Applications. Oracle of the Oracle User Productivity Kit, Oracle ADf
otn.oracle.com/products/adf
Load Testing for Web Applications currently deployed at more than 2,000
Oracle TopLink
simulates tens of thousands of virtual Oracle customers. GKS products are also oracle.com/tools/toplink_adf.html
users accessing the application simul- complementary to Oracle Tutor, Oracle’s
Oracle enterprise Pack for eclipse
taneously to measure the effect of the role-based process documentation and oracle.com/tools/enterprise-eclipse-pack.html
load on application performance. Oracle training software. Oracle VM
Functional Testing for Web Applications The combination of GKS products, otn.oracle.com/products/vm
enables comprehensive functional Oracle Tutor, and Oracle’s learning Oracle Application Testing suite
testing of applications and Web ser- management software is expected to otn.oracle.com/products/oem/prod_focus/etest.html
vices. Its transaction engine simplifies provide customers a comprehensive, Oracle and Global Knowledge
automated test script generation and end-to-end enterprise solution for cre- software
oracle.com/gks
enables the automation of complex Web ating and deploying business process
Oracle and ClearApp
applications and associated technologies documentation, interactive system oracle.com/clearapp
out of the box to validate the end user’s training, and just-in-time embedded
18 November/December 20 08 oracle.com/oraclemagazine
large data volumes, the process creates a two InfiniBand connectors, which allow
HP Oracle Exadata Storage Server
bottleneck that slows query performance. the storage server to move 1GB of data oracle.com/exadata
There are two ways to solve this problem, per second between storage and servers.
nextStePS
solutions is Oracle offering? because those departments don’t necessar-
Kumar: Customers can now use their ily have the flexibility to rapidly respond.
existing licenses for Oracle Database, Enabling developers and departments
Oracle Fusion Middleware, and Oracle to directly provision a fully configured LiSten to the podcast
oracle.com/magcasts
Enterprise Manager on Amazon EC2—or Oracle server to the cloud within a
BoB adler
22 November/december 20 08 oracle.com/oraclemagazine
8 x 10 7/8
ATTENTION
All users of
JD Edwards EnterpriseOne
or JD Edwards World
Refactoring SQL
Applications
By Stephane Faroult
and Pascal L’Hermite ZMANDA’S AMANDA ENTERPRISE SUPPORTS of columns, hiding and displaying of
O’Reilly Media ORACLE DATABASE ON LINUX random table columns, and data sorting
www.oreilly.com
manda Enterprise, the flagship according to one or more columns. It
ISBN: 9780596514976
O racle partner nCipher’s nShield and and security management solutions Helpstream
www.helpstream.biz
netHSM key management solutions and an Oracle partner, has released
are now integrated with the transpar- IdentityView, a product that connects the Data Domain
www.datadomain.com
ent data encryption feature in Oracle user- and role-management functions of
Voltaire
Database 11g’s Oracle Advanced Security identity management products with the www.voltaire.com
option. The combination of Oracle trans- activity monitoring and correlation func-
nCipher
parent data encryption and nCipher’s tions of security information and event www.ncipher.com
secure key management systems provides management products. IdentityView Accenture
high data security and enables compli- includes connectors to Oracle Identity www.accenture.com/oraclebi
ance with regulations and industry Management and provides improved ArcSight
standards including the Payment Card understanding of who is on a network, www.arcsight.com
Industry Data Security Standard. what data they’re seeing, and what Capgemini
www.us.capgemini.com
An established best practice for key actions are being taken with that data.
management includes use of hardware IdentityView correlates multiple user
security modules such as nCipher identities into a single identity key. It then
Certified Advantage Partner (CAP) is Oracle
netHSM. Hardware security modules uses that key to collect and analyze all of
PartnerNetwork’s highest membership level.
are platforms within which keys can a user’s activity information to determine CAPs consistently demonstrate superior
be securely created, used, and stored. whether the user is performing unauthor- product knowledge, technical expertise, and
They are used to establish strong ized activities. IdentityView ships with a commitment to Oracle and receive advanced
authentication rules for administra- set of reports and dashboards, including levels of service, training, benefits, and
resources. To find a CAP, please visit
tors and dual-control mechanisms for activity-based role modeling and compre-
solutions.oracle.com/CAP.
shared responsibilities. hensive activity reporting.
oraclefoundation.org
project-based online learning curricula Students picked a quote from notable
thinkQuest
with the modern workplace in mind. intellects (Albert Einstein, Thomas www.thinkquest.org
Clare Dolan, vice president, Oracle Edison, or Ralph Waldo Emerson, for
26 November/december 20 08 oracle.com/oraclemagazine
nextSTEPS
first-class computer lab with donated Method R; and Oracle’s own Tom Kyte.
equipment, instituted weekly classes, and The last two days of the conference were
built its Web site into an online resource free and open to anyone who wanted to
LEARN more about PSOUG
with almost two million hits per month attend. “We’ve got about a half dozen psoug.org
from 183 countries. “We’re in a commu- members of the OakTable Network and
EXPLORE
nity where a lot of very large companies about a half dozen Oracle ACEs and ACE Tahiti search engine for documentation
use multiple database products from directors providing classes during the and syntax
multiple vendors or multiple generations open conference,” said Morgan. tahiti.oracle.com
of them,” said Morgan. “We get people Now that the conference is over, Oracle Scratchpad
jonathanlewis.wordpress.com
who are experienced at [Microsoft] SQL PSOUG members have other activity
Server who need to learn Oracle and options. “We’ve put together our own WATCH Up Close
Dan Morgan video
BOB ADLER
come to the Oracle user group as a way training lab and facilities,” said Morgan. oracle.com/oramag/upclose
of getting that cross-training.” “Vendors know it can’t hurt future sales
Spotlight on Performance
Expert tips on everything from syncing to identifying performance problems and breaking into the biz
28 novemBer/deCemBer 20 08 oracle.com/oraclemagazine
Grid and RAC Identity Management Industry Solution Integration and SOA
Solution Solution Solution
Special Thanks to the Oracle North America Titan Award 2008 Winners
partner.oracle.com
or call 1.800.323.SELL
Copyright © 2008, Oracle. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.
A
Job No.: 002155 Live: 7" x 9.75" PUB NOTES READER
File Name: OPN_TitanAwards08_2155
Product: Oracle PartnerNetwork
Trim: 7.875" x 10.5"
Bleed: 8.625" x 11.25"
Mgr. 09/12/08 Please use center marks 01
Headline: Outstanding! 2008 Titan Award Winrs Color: 4C Traffic Mgr. 09/12/08 to align page.
Released
Date: Fri, Sept. 12, 2008 9:30 AM Production: Proofing
Pub: TBD
Fonts:
09/12/08
09/12
Standard
Graphic Mgr. 09/12/08
Traffic: Agency
Library Ref.: 1933
Univers LT Std. 75 Black, 65 Bold, 55 Roman, 45 Light
Univers LT Std. 67 Bold Condensed, 57 Condensed,
47 Condensed Light Production 09/12/08
2008
OPN S Placement
NS Placement
NA
NA
NA
NA
NS
NS
NS
NS
S S S NS
NS TUSC is not vector: it is a high resolution
NA NA NS NS S S S NS
TIF file—double check size
S Size
PUBlication: NS Size NA NA NS NS NS is appropriate when scaling!!!
Please examine these publication materials carefully. Any questions regarding the materials, please contact Jodi Cordova (650) 506-5482 or jodi.cordova@oracle.com.
Is your revenue stream at risk?
©
Copyright 2008 Hewlett-Packard Company. The information contained herein is subject to change without notice. Oracle is a
registered US trademark of Oracle Corporation, Redwood City, California. Unicode is a trademark of Unicode, Inc.
EDITORS’ CHOICE AWARDS 2008
HONORING LEADERSHIP
MANOJ BOHRA
AND INNOVATION IN
PAUL CITARELLA TECHNOLOGY
ALEX DE VERGORI
Each year the editors of Oracle Magazine present Editors’
BILL EVJEN
Choice Awards to extremely accomplished candidates—
CELSO GUIOTOKO
people who best reflect the highest achievements and
LYNN HERSEY-MILLER
vision in their areas of expertise. Nominated from all
KONSTANTINOS KAPPOS corners of the globe, these candidates represent the most
MARK KNIGHT advanced, forward-thinking, and experienced people work-
DENES KUBICEK ing with Oracle technology today.
TOM LAMMING Selecting the award winners from a pool of such candi-
BARRY LIBENSON dates, all of whom are worthy of recognition, is a difficult
DEBRA LILLEY yet rewarding task. Our deliberations completed, we are
RICHARD MARTINEZ honored to announce the winners of our seventh annual
TORSTEN MINKWITZ
represent a diverse and vital force bringing innovation and
BRYAN A. MJAANES
leadership to the workforce every day.
–THE EDITORS OF ORACLE MAGAZINE
HIMANSHU PARIKH
NATHALIE ROMAN
PHIL SANT
JAN SHOOK
MARK TONNESEN
HAI WANG
JOHN YOUNG
PLAMEN ZYUMBYULEV
BY DAVID A. KELLY
OTE) have increasingly relied on products Award: CIO of the Year, Europe, Middle
East, and Africa, 2008
from Oracle, including Oracle Database,
Oracle OLAP, Oracle Warehouse Builder,
Oracle SOA Suite, and Oracle E-Business Suite. With these prod-
ucts, Kappos’ leadership, and his team’s efforts, OTE is successfully
reconstructing itself from a traditional telecom company to a forward-
looking content and services provider—all while using technologies
such as business intelligence to keep closer to their customers and
their customers’ needs.
“Business intelligence is critical to address our business challenges
because it allows us to better understand our customers,” says Kappos.
“We use business intelligence to enable the company to develop value-
added services and deliver them at the right time, based on our deeper
understanding of customer needs and trends.”
GETTY IMAGES/ORESTIS STAVROPOULOS
that became part of the solution by wanting to get things done and
having the tenacity to see it through,” says Martinez. “By pulling
together people from different areas within the agency and other
sectors, we could make it happen. Now we’re starting to realize the
impact it will have on our schools, students, and teachers—and it’s
very satisfying.”
able to do this type of M&A [merger and Award: CIO of the Year, North
America, 2008
acquisition] activity,” says Libenson.
“If you have a strong ERP environment,
you can gather information more easily,” he says. “The data is more
current, it’s more detailed, and you can get a lot of important analyti-
cal information from it, slicing and dicing in ways that you can’t with a
hundred different systems.”
Oracle’s growth and Ingersoll-Rand’s strategic relationship with
Oracle have facilitated Ingersoll-Rand’s IT strategy.
“Our relationship with Oracle has grown because of Oracle’s
acquisition strategy and the products they’ve added to the portfolio,”
says Libenson. “We’ve gone from being purely an [Oracle] E-Business
Suite and database customer to one that’s using Oracle business intel-
ligence, CRM [customer relationship management], HRMS [human
resource management systems], and transportation and logistics appli-
BOB RIVES
36 NOVEMBER/DECEMBER 20 08 ORACLE.COM/ORACLEMAGAZINE
IT needs to deliver that will help move the company forward and
achieve its goals,” says Tonnesen.
need to work closely with business leaders. Award: IT Manager of the Year 2008
38 NOVEMBER/DECEMBER 20 08 ORACLE.COM/ORACLEMAGAZINE
Shook’s redesigned Oracle-based system uses about 95 percent less power— Company: Verizon Wireless
from about 200,000 watts per hour to about 5,000—as a result of migrating from Location: Orangeburg, New York
CATHERINE GIBBONS
roughly 6 tons of legacy hardware to about 150 pounds of new equipment. The Award: Green IT Architect of the
Year 2008
system “significantly reduces power consumption and lowers capital require-
ments while still supporting huge volumes that grow year after year,” Shook says.
JOHN BLYTHE
like 1,000 bet transactions per second. With Oracle, our growth has been
exponential, so that has enabled us to succeed in our market.”
42 NOVEMBER/DECEMBER 20 08 ORACLE.COM/ORACLEMAGAZINE
ORACLE MAGAZINE N OV E M B E R / D E C E M B E R 2 0 0 8 43
TON HENDRIKS
solutions you want to use,” says Roman. “That’s one of the reasons that
Oracle’s so great—all the tools are integrated.”
winnerSPECS
Name: Bill Evjen
2008 BILL EVJEN
Job title/description: Technical ENTERPRISE DEVELOPER OF THE YEAR
Architect
Company: Lipper, a subsidiary of
Thompson Reuters Developer fights segmentation and brings Microsoft .NET
Location: St. Louis, Missouri and Oracle together.
Award: Enterprise Developer of the
Year 2008 Sometimes two great things are better when put together. For Bill Evjen,
Oracle Magazine’s Enterprise Developer of the Year, that’s especially true for
database and development teams, or .NET and Oracle.
“People make a tremendous mistake by segmenting database teams and
development teams,” says Evjen, technical architect at Lipper, a subsidiary
of Thompson Reuters that provides news, information, and analytical tools
to the financial industry. “By doing that, productivity wanes and you’ll see
solutions that aren’t exactly what you’re looking for. When you’re doing
enterprise-level solutions, you need to have an integration of those two
teams so that everyone can understand each other’s needs and goals.”
Evjen spends a lot of time optimizing mission-critical development efforts
that span .NET clients to enterprise Oracle databases. His goal is to create
applications that provide the analysis customers need from the mountain
of data that Lipper maintains. “Using .NET and Oracle together has worked
excellently for us. We can move a tremendous amount of data quickly from our
databases to our end clients,” he says. “We’ve found that Oracle Data Provider
CHRIS WILBORN
for .NET is the best data provider for making that link between .NET and the
Oracle database—in terms of functionality, performance, and flexibility.”
then be reported using Oracle Essbase and Oracle tools, leveraging back-end
Oracle databases.
“In the past, users were busy collecting information instead of analyzing it,”
says Bohra. “Now, the information is available to them, so they have enough
time for analysis. It’s a major shift.”
and not just when related to Oracle,” says Lilley. “I have made
many true friends.”
CATHERINE GIBBONS
customer self-service Web presence enabled by SOA.
“Our SOA-based Web presence offers our customers another convenient
channel for customer support while reducing the need for costly live agents,”
says Citarella. “That’s a benefit for both our customers and Synapse.”
Oracle’s customers and partners demonstrate The recipients of the 2008 Oracle Excellence Award are: Amway,
Arrow Electronics, British Telecom (BT), Charles Schwab, Chick-fil-A,
innovation and leadership in many areas of tech- Eaton Steel, EMC Corporation, Florida A&M, KPN, MASCO Builder
nology, applications, and sustainability. In addi- Cabinet Group, Pearson, Pfizer, PNC Financial Services Group,
tion to Oracle Magazine’s Editors’ Choice Awards, Rabobank Nederland, Regal Beloit, University of Louisville, West Virginia
Oracle sponsors awards programs honoring its University, and Zebra Technologies.
customers and partners for their excellent work.
ORACLE “EMPOWER THE GREEN
ENTERPRISE” AWARDS
THE TITAN AWARDS
This year for the first time, Oracle honors companies for their sustain-
The Oracle PartnerNetwork honors partners for their excellence in
ability efforts with the Oracle Empower the Green Enterprise award.
developing and implementing innovative solutions based on Oracle
This award recognizes customers and their partners that use Oracle
technologies. In its fifth year, the Titan Awards acknowledge 14 part-
applications and technologies to support green business practices
ners across 17 categories for developed or delivered solutions and
and sustainability initiatives that will reduce environmental impact
best practices. The categories and winners for 2008 are
and costs and improve business efficiencies. Recipients of the 2008
Oracle Empower the Green Enterprise award include: Alcoa, Australian
• Oracle E-Business Suite Solution: Deloitte Consulting Vintage Limited, BT Group, Dell Inc., Embry Riddle Aeronautical
• Edge Applications Solution: Hitachi Consulting University, Fiji Water, Ingersoll-Rand, InterCall, Interface, Motorola,
• JD Edwards Solution: CSS International National Ignition Facility & Photon Service, Novartis International
AG, Pacific Gas & Electric, Standard Parking, Sun Microsystems,
• Applications Momentum: Deloitte Consulting
and Supervalu. Partners that worked with these customers and also
• PeopleSoft Solution: CherryRoad Technologies
received an Oracle Empower the Green Enterprise award include:
• Enterprise Performance Management Solution: InterRel Consulting Conservation International, CSS International, Deloitte, ESS, HCL
• CRM Solution: Deloitte Consulting Technologies, and Wipro Technologies.
• Midsize Business Applications Solution: Systime
• Industry Solution: Deloitte Consulting
• Financial Services Industry Solution: SmartDog Services
• Manufacturing Industry Solution: Terillium
• Business Intelligence Solution: Piocon Technologies
• Technology Momentum: Accenture
• Grid and Oracle RAC Solution: TUSC
• Integration and SOA Solution: CedarCrestone
• Identity Management Solution: Entology
• Content Management Solution: LS Technologies
50 nOveMBeR/DeceMBeR 20 08 oracle.com/oraclemagazine
click the BrowseEmployees.jspx page ferent row in the table, the region will Steve Muench is a consulting product manager for
in the Application Navigator and click update to display the Empno value of Oracle JDeveloper and an Oracle ACE. Since 1990 he
Run. When your browser appears, you’ll the new row. To see it in action, rerun the has developed and supported Oracle tools and XML
see the table of employee numbers and BrowseEmployees.jspx page, and, when technologies and continues to evangelize them. Muench
names at the left of the page, with the your browser launches, click any row in coauthored the Oracle ADF Developer’s Guide for
contents of the reusable show-emp-details the table. Because the task flow’s input Forms/4GL Developers (Oracle, 2006), wrote Building
region displaying the full details of the parameter is bound to the Empno attribute Oracle XML Applications (O’Reilly Media, 2000), and
first employee to the right of the table. in the current row of the table, the region shares tips and tricks on OTN (otn.oracle.com) and in
However, if you select a different row in refreshes to show that row. his “Dive into ADF” blog (radio.weblogs.com/0118231).
the table, you’ll notice that the region I’ve shown you only the simplest-
does not update. To enable the update, we
need to configure the task flow binding so
possible region example in this column,
but the bounded task flows you reuse nextsTePs
that the region will refresh whenever the as regions can utilize the full power of reaD more frameworks
values of its input parameters change. the Oracle Application Development otn.oracle.com/oramag/oracle/frameworks
To accomplish this, right-click in the Framework task flow feature. This means reaD more about
page and choose Go to Page Definition. that they can include any combination oracle JDeveloper and oracle aDf
otn.oracle.com/products/jdev
In the Structure window, expand the of task flow activities, including multiple otn.oracle.com/products/jdev/tips/muench/
executables folder and select the task view activities whose “current” page frag- designpatterns
flow binding named showempdetails1. ment specifies the contents of the region Oracle ADF Developer’s Guide
In the Common section of the Property at runtime. This allows great flexibility in oracle.com/technology/documentation/jdev.html
Inspector, set the Refresh property to the creating reusable UI components, simple DowNLoaD
value ifNeeded. That’s all that’s neces- or complex. You can package them into oracle JDeveloper 11g
otn.oracle.com/products/jdev/11
sary to have the region “restart” when the libraries, which you or another developer
starter workspace for this column
values of its input parameters change. on your project team can then drop onto otn.oracle.com/oramag/oracle/08-nov/o68frame.zip
In this case, when a user clicks a dif- pages wherever necessary. ■
52 NOVEMBER/DECEMBER 20 08 oracle.com/oraclemagazine
BEGIN rows should never exceed a certain limit. lute limit of 12 is respected, as shown in
l_months.extend; Suppose, for example, that I have a table Listing 3. If, for some reason, more than
l_months(13) := ‘Extra-ember’; (training_months) of the months in a 12 rows are found in the table, Oracle
END; year in which I am available to provide Database will raise an exception.
training on the PL/SQL language. There However, there’s one concern with
ORA-06532: Subscript outside of limit cannot be more than 12 rows in this this varray approach: what if you know
table, but there may certainly be fewer. the maximum number of elements
Varrays offer a very nice mechanism I need to retrieve these months into a that can appear in the varray and that
when you need to retrieve multiple rows collection and then display each month. I maximum is 1,000,000? This tech-
of data efficiently and the number of can use a varray to ensure that the abso- nique will “work,” but the program will
54 november/december 20 08 oracle.com/oraclemagazine
nextSTEPS
COLLECT with the LIMIT clause. Listing much more performant than single-row
4 shows the use of the LIMIT clause. fetches. Consequently, I suggest that
The limit value can be a variable; in you convert cursor FOR loops to BULK READ more
this case, I provide a default value of 100 COLLECT retrievals only if you identify Best Practice PL/SQL
(retrieve up to 100 rows with each fetch). a performance bottleneck in that part of otn.oracle.com/oramag/oracle/plsql
otn.oracle.com/pub/columns/plsql
As for the appropriate limit value, you your code. Otherwise, leave the cursor
will theoretically use the largest number FOR loop in place. DOWNLOAD Oracle Database 11g
otn.oracle.com/software/products/database
that can be accommodated within the That’s it for my recommendations. But
DISCUSS PL/SQL
per-session memory your DBA feels can an unattributed programmers’ axiom has forums.oracle.com/forums/forum.jspa?forumiD=75
be allocated per connection. it that rules exist to serve, not to enslave.
56 novemBer/decemBer 20 08 oracle.com/oraclemagazine
copy both the Oracle client files and xcopy /e /f C:\NovDec2008\bin\Release \\ Congratulations! You have success-
the application files to the deploy- chepstow\c$\temp\NovDec2008\ fully created and deployed an Oracle
ment target. (Note that you will need Data Access Components with Xcopy
appropriate permissions on the deploy- 5. As you did on the developer deployment application.
ment target machine. If you have any machine, you need to add two items
questions about permissions or need to the Path environment variable on conclusion
to make adjustments to the process, the deployment target machine. On the This column has demonstrated how to
contact your local system administrator.) deployment target machine (chepstow install Oracle Data Access Components
To complete the deployment of in my environment), right-click the My 11.1.0.6.21 with Xcopy deployment
Oracle Database Instant Client and the Computer icon and select Properties components; develop a simple ODP
application you just created to the target from the context menu. Next, click .NET application to verify functional-
machine, do the following: the Advanced tab in the System ity; and deploy both the Oracle client
1. On the developer machine (chesham Properties dialog box and then click and application files to a deployment
in my case), open a command prompt the Environment Variables button. In target, using the xcopy command.
window by first clicking Start -> Run, the System variables group, locate the Xcopy deployment is especially useful
then typing cmd in the Run dialog box, Path variable in the list. (Scroll down if you want to customize an install
and clicking OK. if necessary.) Click the Path variable package with an Oracle client or you
2. Now execute the net use command in the list and then click Edit. In the are seeking ways to deploy an Oracle
to map the administrative share of the C Edit System Variable dialog box, place client to numerous client machines.
drive on the deployment target machine the cursor at the beginning of the These steps are just one way to
to the developer machine. In the entries and type C:\oracle\11.1\odac;C:\ accomplish the goal of simpler and
command prompt window, type the fol- oracle\11.1\odac\bin;. Click OK to smaller application deployments. I
lowing command (making any necessary close the Edit System Variable dialog recommend taking these steps and
adjustments for your environment): box, click OK to close the Environment adapting them to what works best in
Variables dialog box, and finally your environment. ■
C:\>net use \\chepstow\c$ click OK again to close the System
The password or user name is invalid Properties dialog box. Mark A. Williams (mawilliams@cheshamdbs.com)
for \\chepstow\c$. is an Oracle ACE director, an Oracle Certified
ExEcutE thE ApplicAtion on thE Professional DBA, the author of Pro .NET Oracle
Enter the user name for ‘chepstow’: oracle tArgEt MAchinE Programming (Apress, 2004), and a contributor to
Enter the password for chepstow: You have successfully deployed the the Oracle Data Provider for .NET forum on Oracle
Oracle client files and the application Technology Network.
The command completed successfully. files to the deployment target machine,
and now it is time to verify that the
Note that you may be prompted for
credential information if the credentials
application works as expected. (Note
that there are no network configuration nextSTEPS
you used to log in to the developer files to create or manage in my deploy- READ more ODP.NET
machine are not valid on the deploy- ment scenario.) otn.oracle.com/oramag/oracle/odpnet
ment target machine. (In this example, To verify that the deployed applica- DOWNLOAD
my credentials were not valid on the tion is working properly on the target Oracle Data Access Components with
deployment target machine.) machine, do the following: Xcopy deployment
otn.oracle.com/software/tech/windows/odpnet
3. Now deploy the Oracle installation to 1. On the deployment target machine
Oracle Database Instant Client
the deployment target machine: (chepstow in my environment), open otn.oracle.com/software/tech/oci/instantclient
a command prompt window by first
the sample application for this column
xcopy /e /f c:\oracle \\chepstow\ clicking Start -> Run, then typing cmd otn.oracle.com/oramag/oracle/08-nov/o68odpnet.zip
c$\oracle\ in the Run dialog box, and clicking OK. LEARN more about ODP.NET
2. Change to the directory where the The .NET Developer Center
The files will be listed as they are copied. application files were copied: otn.oracle.com/dotnet
Oracle Data Provider for .NET Developer’s Guide
4. Next, deploy the application files to download.oracle.com/docs/cd/B28359_01/win.111/
the deployment target machine. Be sure cd /d C:\temp\NovDec2008 b28375/toc.htm
to use the path you specified when saving Oracle Database Net Services Administrator’s Guide
download.oracle.com/docs/cd/B28359_01/
the solution (such as C:\NovDec2008), 3. Execute the application, by typing network.111/b28316/toc.htm
and if the path contains spaces, use NovDec2008, and verify that the output is Oracle Database Globalization Support Guide
download.oracle.com/docs/cd/B28359_01/server.111/
double quotes around the pathname. I the same as what was produced on the b28298/toc.htm
used the following command: developer machine.
58 november/december 20 08 oracle.com/oraclemagazine
Keeping Active
Use Oracle Active Data Guard to set up a physical standby database for reporting and recovery.
hysical standby databases of standby database activation in the network server (LNS). A process on
provide a rock-solid mecha- event of a primary database failure. the standby database called remote file
nism for high availability and Oracle Active Data Guard is even server (RFS) gets the redo stream from
disaster recovery. In a nutshell, the more useful when you enable real time the LNS and writes it to the standby
physical standby database is a physical apply, which applies the changes on the redo log files.
copy of the source (primary) database, primary database in near real time to A managed recovery process coor-
and the redo entries from the primary the standby database. With this com- dinates the reads from the standby
database are applied to the standby bination, the reporting applications redo log files as they are written and,
database continuously using media recovery,
(or periodically) over the updates the standby data-
network to keep it in sync. base immediately. (This
If the primary database managed recovery process
fails, the standby database is active only when the
can be quickly activated— standby database is in
a process known as role managed recovery mode.)
reversal—enabling appli- Physical standby data-
cations to connect to the bases can operate in dif-
database that was called the ferent modes. The default,
standby before and resume described here and shown
processing without a sig- in Figure 1, is maximum
nificant delay. performance mode.
A valuable property
of the physical standby Active StePS
database is that it can To demonstrate the
be opened for read-only Oracle Active Data Guard
access. This makes it highly infrastructure with real
desirable for reporting and other appli- accessing the standby database view time apply, I use the following
cations that need not be run on the data almost as soon as it appears in the database setup:
primary database, reducing the load primary database.
there considerably. This article shows how to build an Primary Standby
In the past, when you opened a Oracle Active Data Guard infrastructure Server prisvr1 sbysvr1
physical standby database for read-only with real time apply. Database Pridb Sbydb
access, you had to stop the application
of redo entries to the standby database. A Quick Primer
With the redo application stopped, the Let’s look at how Oracle Active Data There is a simple way to build a
standby database might not have been Guard with real time apply works for a physical standby database by using
ready to immediately take over for physical standby database. As Figure 1 Oracle Recovery Manager (Oracle
the primary database if that database illustrates, the primary database gener- RMAN) commands in Oracle Database
failed. However, a new option of Oracle ates redo entries as users modify data, 11g, and I also make use of that feature.
Database 11g called Oracle Active Data and these entries are written to the This article also assumes that Oracle
Guard allows you to continue apply- online redo log files by a process called Automatic Storage Management is used
ing redo changes while the physical log writer (LGWR), an integral part of on both the primary and standby data-
standby database is open in read-only the Oracle Database instance. bases. The primary database is on one
mode. This makes efficient use of the The LGWR process sends redo disk group: DATA1.
daN huBig
standby database for reporting applica- entries directly to the standby server, Prerequisites. The following prerequi-
tions without compromising the speed using a subprocess called log writer sites are required for running through
60 November/december 20 08 oracle.com/oraclemagazine
Active StAndby
trail files for the SYSDBA connections. ■ Shuts down the standby database Now you can bring up the standby data-
Creation. Now that the setup is complete, instance and restarts it with the newly base in read-only mode and continue
let’s create the standby database. created spfile to have the standby database updated
1. On the standby server, start the data- ■ Creates a standby controlfile on the from the primary. Here are the steps to
base instance only: primary database and copies it over to achieve that:
the standby server 1. Stop the managed recovery process:
sqlplus / as sysdba ■ Creates a clone database on the standby
SQL> startup nomount server using Oracle RMAN cloning SQL> alter database recover managed
■ Converts the cloned database to a standby database cancel;
2. On the primary server, execute the physical standby database
Oracle RMAN cr_sbydb.rman script, Table 1 shows a line-by-line explana- 2. Open the standby database as
shown in Listing 1, by issuing the fol- tion of the script in Listing 1. read-only:
lowing command: The log file for the cr_sbydb.rman
script is available in the online version SQL> alter database open read only;
$ rman cmdfile=cr_sbydb.rman of this article, at otn.oracle.com/
log=cr_sbydb.log oramag/oracle/08-nov/o68adg.html. The 3. Restart the managed recovery process:
end of the log file includes the follow-
The process may take a long time, ing lines: SQL> alter database
depending on the size of the database. recover managed standby database
(While the Oracle RMAN process is media recovery complete, using current logfile disconnect;
running, you can tail the cr_sbydb.log elapsed time: 00:00:02
log file to check the progress and spot Finished recover at 25-MAY-08 Now the standby database is being
any errors.) Finished Duplicate Db at 25-MAY-08 updated, but it is simultaneously open
The Oracle RMAN script does sql statement: alter system archive for read-only access—this is the essence
the following: log current of Oracle Active Data Guard.
62 November/december 20 08 oracle.com/oraclemagazine
Programming Productively
Use Oracle SQL Developer to work efficiently with PL/SQL constructs.
ou can become a more pro- codeLISTING 1: Calculating the bonus amount
ductive PL/SQL developer
DECLARE -- declare and assign values
when you use efficient methods bonus_rate NUMBER(2,3) := 0.05;
to debug code that won’t bonus NUMBER(8,2);
emp_id NUMBER(6) := 120; -- assign a test value for employee ID
compile, locate constructs you want to
BEGIN
reuse, test your code, and learn how -- retrieve a salary from the employees table, then calculate the bonus and
much time your program spends in -- assign the value to the bonus variable
SELECT salary * bonus_rate INTO bonus FROM employees
each subprogram. Working with
WHERE employee_id = emp_id;
PL/SQL in Oracle SQL Developer can -- display the employee_id, bonus amount, and bonus rate
help you accomplish these tasks. In DBMS_OUTPUT.PUT_LINE ( ‘Employee: ‘ || TO_CHAR(emp_id)
|| ‘ Bonus: ‘ || TO_CHAR(bonus) || ‘ Bonus Rate: ‘ || TO_CHAR(bonus_rate));
the November/December 2007 issue of
END;
Oracle Magazine, this column covered /
PL/SQL development primarily from a
debugging—including remote debug-
ging—perspective. In this column,
you’ll learn how to
■ Create, edit, and run PL/SQL code
efficiently
■ Work with stored procedures and
packages productively
■ Access Oracle Database 11g features
codeLISTING 2: Editing the emp_actions package Developer 1.5 introduced code refactoring
to help make refactoring easier and safer.
PROCEDURE hire_employee (lastname VARCHAR2,
firstname VARCHAR2, email VARCHAR2, phoneno VARCHAR2, In the SQL worksheet, highlight
hiredate DATE, jobid VARCHAR2, sal NUMBER, commpct NUMBER, the complete SELECT statement, right-
mgrid NUMBER, deptid NUMBER);
click, and select Refactoring -> Extract
PROCEDURE remove_employee (empid NUMBER);
FUNCTION emp_sal_ranking (empid NUMBER) RETURN NUMBER; Procedure…, as shown in Figure 1.
Select Stored, and enter bonus_
update in the Name field. Click OK.
The Confirm Running SQL window
shows the PL/SQL stored procedure that
will be created. Note that each of the
parameters created is an IN OUT param-
eter. Because you are passing in two
parameters and expecting two out, you
can adjust these later as appropriate. But
the code will work as defined, so for now,
click Yes.
Review the code in the SQL work-
sheet, and note that the SELECT state-
ment has been replaced with a call to
the new PL/SQL bonus_update pro-
cedure. Now expand the Procedures
node in the Connections Navigator.
Right-click BONUS_UPDATE, and
select Compile. Now run the PL/SQL
code in the SQL worksheet again. Select
the DBMS Output tab to verify that the
code works as it did before.
Figure 2: PL/SQL package specification
Working With stored ProCedUres
Using Code insight the EMPLOYEES table and from the Next, select BONUS_UPDATE in the
Now return to the SQL worksheet, and PL/SQL block declaration. Connections Navigator to display the
insert a new row in the declaration code you created by refactoring. Right-
section, below the declaration of emp_id navigating to errors click BONUS_UPDATE, and select Run.
(insert the cursor and press Enter). In Next, replace TO_CHAR(emp_id) with Whenever you run a PL/SQL pro-
the new row, type TO_CHAR(emp_name). Press F5 to run the cedure or package in Oracle SQL
code. You should see the employee’s last Developer, a Run PL/SQL window
emp_name varchar2(25); name in the DMBS Output tab. opens. It displays an anonymous
Now remove emp_name from the PL/SQL block that is automatically
Note that as you start typing SELECT statement and rerun your code created for PL/SQL programs. Here you
varchar2(25), a code insight list appears (press F5). An error report displayed can see the IN OUT parameters listed
so that you can select varchar2 rather on the Script Output tab shows the at the top and in the anonymous block.
than type it. Code insight is available line number and column position of the Update this PL/SQL block by changing
for you in the SQL worksheet and in error. Right-click in the SQL worksheet
the PL/SQL Code Editor, which you’ll gutter (to the left of the code text), and BONUS_RATE := NULL;
work with later in this column. select Toggle Line Numbers to switch EMP_ID := NULL;
Now edit the SELECT statement so on the line numbers. This helps you
that it looks like this: navigate to the point of the error. Find to
the error, fix the code (restore emp_name
SELECT salary * bonus_rate, last_name to the SELECT statement), and rerun it. BONUS_RATE := 0.05;
INTO bonus, emp_name FROM employees EMP_ID := 120;
WHERE employee_id = emp_id; refaCtoring Code
When you refactor code, it’s important Scroll down to review the rest of the
As you start typing last_name, note not to change the meaning or function code, and click OK. The output now
that code insight can access details from of any code you modify. Oracle SQL displays in the Running - Log window.
64 November/december 20 08 oracle.com/oraclemagazine
concluSion
This column has shown how Oracle SQL
Developer can enhance your productiv-
ity when you write, edit, compile, and
troubleshoot PL/SQL code. Whether you
are a novice or an experienced PL/SQL
developer, Oracle SQL Developer can
Figure 4: PL/SQL hierarchical profiles make your day-to-day PL/SQL develop-
ment tasks easier. ■
PL/SQL Hierarchical Profiler, and runs When the setup is complete, again
the scripts necessary to set up the envi- right-click EMP_ACTIONS and select Sue Harper is an Oracle senior principal product
ronment. Once it is set up, you can Profile in the Connections Navigator. manager based in London. Her technical blog,
repeatedly run and review the output This time, because the environment sueharper.blogspot.com, addresses Oracle SQL
through an easy-to-read report. has been prepared and the tables are in Developer features.
Using the preceding code examples, place, the profile can be revealed. Select
right-click the EMP_ACTIONS speci- the Execution Profiles tab in the EMP_
fication and select Profile. Select the
EMP_SAL_RANKING procedure again.
ACTIONS editor. (Each time you select
Profile, you re-execute the PL/SQL code
nextSTEPS
Click OK. If you have never run the and a new profile is created.) Select the READ more Oracle SQL Developer
otn.oracle.com/oramag/oracle/sql
PL/SQL Hierarchical Profiler for this HR profile, and inspect the detail.
LEARN more about
schema before, a once-only window will Select the Hierarchy tab, as shown
Oracle SQL Developer
display the setup details. Click Yes to in Figure 4. Even in as small a program otn.oracle.com/products/database/sql_developer
execute the SQL and prepare to use the unit as EMP_SAL_RANKING, you can “Creating a Database Connection”
PL/SQL Hierarchical Profiler. Figure 3 see the hierarchical structure and the otn.oracle.com/products/database/sql_developer/
files/viewlets.html
displays the detail. various program units called. More-
This dialog box is followed by one complex PL/SQL programs reveal more PARTICIPATE in the Oracle SQL
Developer Exchange
that creates the PL/SQL hierarchical detail, which can be of great benefit for sqldeveloper.oracle.com
tables. (This also executes only once.) tuning your code.
66 November/december 20 08 oracle.com/oraclemagazine
irst introduced in Oracle9i SQL> alter database add supplemental VALUES (5, 'Pole');—is flashed back with
Database, Oracle Flashback log data; NOCASCADE FORCE as the recovery option?
technology comprises a group of Database altered. A. The respective undo SQL statements
features with which you can view are executed for the first, second, and
data at different points in time and SQL> alter database add supplemental third transactions.
recover data without using point-in- log data (primary key) columns; B. The undo SQL is executed only for
time media recovery. Database altered. the first and third transactions, because
Oracle Database 11g offers two key of the referential integrity constraint.
new flashback technology features that For which of these are the above com- C. The undo SQL is executed only for
continue to provide DBAs with a power- mands prerequisites? the first transaction.
ful set of data protection tools: A. Oracle Flashback Transaction D. The undo SQL statements are not
■ Oracle Flashback Transaction rolls back B. Fine-grained audit executed for any of the transactions,
a transaction and its dependent transac- C. Oracle Flashback Query because of a conflict among them.
tions while the database remains online. D. Oracle Flashback Database The correct answer is C. NOCASCADE
■ Oracle Flashback Data Archive pro- The correct answer is A. These com- FORCE backs out only the transac-
vides solutions for retaining transac- mands are required before you start tion on which the flashback transaction
tional changes to data for a long period. Oracle Flashback Transaction; they operation is applied, irrespective of the
This column focuses on these enable the log miner to extract transac- dependency. Answers A and B are incor-
two new flashback features of Oracle tions from redo logs. Answer B is incor- rect because there is no dependency
Database 11g and presents sample ques- rect because fine-grained audit does not between the second and third transac-
tions of the kind you may encounter need redo logs. Answer C is incorrect tions or between the first and third trans-
when taking the Oracle Database 11g because Oracle Flashback Query uses actions. Answer D is incorrect because
Administration Workshop II exam. undo data. Answer D is incorrect because undo SQL is not executed for any trans-
Passing this exam is a requirement Oracle Flashback Database uses flashback actions when NO CONFLICT is used as
for achieving the Oracle Certified log data from the flash recovery area. the recovery option.
Professional level of certification. Examine the following transactions:
Oracle Flashback DaTa archive
Oracle Flashback TransacTiOn SQL> INSERT INTO hr.regions Organizations often need to track and
Oracle Flashback Transaction can roll VALUES (5, ’Pole’); store all transactional changes to a
back a specific transaction and its depen- SQL> COMMIT; record for the duration of its lifetime.
dent transactions while the database Oracle Flashback Data Archive satisfies
remains online. It uses undo data and the SQL> UPDATE hr.regions SET long-retention requirements securely, by
archived redo logs for the specified trans- region_name=’Poles’ WHERE region_id = 5; enabling the database to automatically
actions to create and execute the compen- SQL> UPDATE hr.regions SET track and store all transactional changes
sating transactions that return the affected region_name=’North and South Poles’ to a table for its entire lifetime. Thus,
data to its original state. Oracle Flashback WHERE region_id = 5; you do not need to build this functional-
Transaction requires that supplemental SQL> COMMIT; ity into database applications.
logging is enabled, and the user must A flashback data archive consists
have SELECT, FLASHBACK, and DML SQL> INSERT INTO hr.countries of one or more tablespaces or parts of
privileges on all affected tables. This VALUES (‘TT’ , ’Test Country’ , 5); tablespaces. When you create a flashback
operation can be performed with either a SQL> COMMIT; data archive, you specify the name, the
PL/SQL procedure (DBMS_FLASHBACK retention period, and the tablespace that
.TRANSACTION_BACKOUT) or an The referential integrity is set between the is to be tracked. The database automati-
Oracle Enterprise Manager wizard. COUNTRIES and REGIONS tables. Which cally purges historical flashback data the
Examine the following commands issued statement describes the result when the day after the retention period expires.
by the DBA: first transaction—INSERT INTO hr.regions You can turn Oracle Flashback Data
Archive on and off for individual tables. codeLisTinG 1: Tablespace information for failed CREATE FLASHBACK ARCHIVE
By default, Oracle Flashback Data
SELECT TABLESPACE_NAME, BLOCK_SIZE, STATUS, CONTENTS, EXTENT_MANAGEMENT,
Archive is turned off for every table. ALLOCATION_TYPE, SEGMENT_SPACE_MANAGEMENT, BIGFILE
Examine the tablespace information in FROM DBA_TABLESPACES;
Listing 1. The database has the standard
TABLESPACE_NAME BLOCK_SIZE STATUS CONTENTS EXTENT_MAN ALLOCATIO SEGMEN BIG
block size of 8K. Why does the following ------------------------------------------ --------------------------- ----------------- -------------------------- ---------------------------- ------------------------- ------------------ --------
command fail to create the default flash- SYSTEM 8192 ONLINE PERMANENT LOCAL SYSTEM MANUAL NO
SYSAUX 8192 ONLINE PERMANENT LOCAL SYSTEM AUTO NO
back data archive?
UNDOTBS1 8192 ONLINE UNDO LOCAL SYSTEM MANUAL NO
TEMP 8192 ONLINE TEMPORARY LOCAL UNIFORM MANUAL NO
SQL>CREATE FLASHBACK ARCHIVE USERS 8192 ONLINE PERMANENT LOCAL SYSTEM AUTO NO
EXAMPLE 8192 ONLINE PERMANENT LOCAL SYSTEM AUTO NO
DEFAULT fla1 TABLESPACE orclflash
SOEINDEX 8192 ONLINE PERMANENT LOCAL UNIFORM AUTO NO
RETENTION 1 YEAR; SOE 8192 ONLINE PERMANENT LOCAL UNIFORM AUTO NO
ORCLFLASH 4096 ONLINE PERMANENT LOCAL SYSTEM MANUAL NO
A. The ORCLFLASH tablespace is not
using automatic segment space manage- that are yet to be published. online operation—historical access can
ment (ASSM). The correct answer is A. Table-related coexist with current access. Answer E is
B. The content of the ORCLFLASH operations such as DROP, TRUNCATE, incorrect because Oracle Flashback Data
tablespace is not of the UNDO type. and RENAME and certain ALTER TABLE Archive stores historical information in
C. The ORCLFLASH tablespace is not a operations cannot be performed when one or more tablespaces and tracks the
bigfile tablespace. the table is enabled to track the changes history of one or more tables. Answer
D. The ORCLFLASH tablespace has a in a flashback data archive. Answer B is F is incorrect because Oracle Flashback
nonstandard block size. incorrect because auditing tracks only Data Archive archives the original data
The correct answer is A. This CREATE the operations that are performed on the but does not include the indexes, because
FLASHBACK ARCHIVE command gener- table and does not stop the TRUNCATE the retrieval pattern of historical informa-
ates the following error message: operation. Answer C is incorrect because tion might be different from that of the
AWR baselines are collected and stored current information.
ERROR at line 1: for performance comparisons of the
ORA-55627: Flashback Archive tablespace database instance and are not bound to ConClusion
must be ASSM tablespace a table. Answer D is incorrect because This column focused on two new flash-
the collection of statistics may affect back features introduced in Oracle
Answers B and C are incorrect performance but does not restrict the Database 11g:
because you can enable Oracle TRUNCATE operation. Oracle Flashback Transaction enables you
Flashback Data Archive on a nonundo Which statements are true about Oracle to reverse a transaction and its depen-
tablespace and also on tablespaces that Flashback Data Archive? dent transactions. The database rewinds
are not of the bigfile type. Answer D A. It provides access to data at any to a pretransaction state.
is incorrect because the tablespace can point in time without changing the Oracle Flashback Data Archive enables you
contain nonstandard block sizes. current data. to track historical changes to the data in
A user receives the following error message B. It stores data in compressed form. a highly secure and efficient manner, thus
while truncating a table: C. It provides the option of setting differ- eliminating the need to build this func-
ent retention requirements. tionality into database applications. ■
ERROR at line 1: D. It enables access to historical data
ORA-55610: Invalid DDL statement on alongside current data. Sushma Jagannath (ocpexam_ww@oracle.com) is
history-tracked table E. It is enabled at a database level. a certification exam development manager at Oracle.
F. It archives the original data along with She has been with the company since 2000.
What do you conclude from the above its associated indexes.
error message? The correct answers are A, B, C, and
A. Oracle Flashback Data Archive has
been enabled for the table.
D. Oracle Flashback Data Archive does
not change the current data but offers the
nextsTeps
LeARn more about
B. Auditing has been applied on the ability to access the data as of any point the oracle certification program
table. in time. It stores data in compressed form oracle.com/education/certification
C. One or more automatic workload to minimize storage requirements. You oracle Flashback technology
repository (AWR) baselines exist that can group historical data by retention otn.oracle.com/deploy/availability/htdocs/
flashback_overview.htm
contain performance information from requirements and create different data
ReAd inside ocp columns
transactions on the table. archives based on those requirements. otn.oracle.com/oramag/oracle/ocp
D. Pending statistics exist for the table Oracle Flashback Data Archive is an
68 November/december 20 08 oracle.com/oraclemagazine
The RighT NumbeR of PaRTiTioNs codeLIstING 1: Four partitions (OK) versus five partitions (not OK)
I have a table with about one million records,
but the table has the potential to grow to three SQL> CREATE TABLE t1 ( x )
million or more records. I am planning to parti- 2 PARTITION BY hash(x)
3 ( partition part1 ,
tion this table, using hash partitioning on the
4 partition part2 ,
most queried column, but before I do that, I 5 partition part3 ,
have a few questions: 6 partition part4
7 )
1. I have read somewhere that due to the
8 as
hashing algorithm Oracle Database uses, it is 9 select rownum from all_objects;
better to use a power-of-2 number of parti-
Table created.
tions. Is that correct?
2. Is there a recommendation on how many
partitions are optimal for a given number of SQL> CREATE TABLE t2 ( x )
2 PARTITION BY hash(x)
records? What would you take into consideration
3 ( partition part1 ,
when deciding on the number of partitions? 4 partition part2 ,
3. Do you have any other recommendations? 5 partition part3 ,
6 partition part4,
First, when you’re using hash parti-
7 partition part5
tioning, it is paramount to use a power 8 )
of 2—2, 4, 8, 16, 32, 64 . . . —and no 9 as
other numbers in between. If you do not, 10 select rownum from all_objects;
70 November/december 20 08 oracle.com/oraclemagazine
call count cpu elapsed disk query current rows SQL> select count(subobject_name)
----------------- ------------- ------------- ----------------- ------------------ -------------------- ----------------- -----------
from big_table.big_table;
Parse 1 0.00 0.01 0 3 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 99.36 262.10 1840758 1840797 0 1 COUNT(SUBOBJECT_NAME)
----------------- ------------- ------------- ----------------- ------------------ -------------------- ----------------- -----------
-----------------------------------------------------
total 4 99.36 262.11 1840758 1840800 0 1
688256
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
TKPROF will produce a report that
Parsing user id: 344
looks much like the content of Listing 2.
Rows Row Source Operation Now we have a bunch of facts:
--------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ■ The query took a long time—about
1 SORT AGGREGATE (cr=1840797 pr=1840758 pw=0 time=262104893 us)
128000000 TABLE ACCESS FULL BIG_TABLE (cr=1840797 pr=1840758 pw=0 time=384004887 us) four and a half minutes.
■ We did a lot of physical I/O.
Elapsed times include waiting on following events: ■ We did a lot of logical I/O.
Event waited on Times Max. Wait Total Waited ■ We used about 100 CPU seconds.
---------------------------------------------------------------------- Waited -------------------- ------------------------ ■ The query took about 262 seconds
SQL*Net message to client 2 0.00 0.00
of elapsed time but only 99 seconds of
db file scattered read 14425 0.22 195.87
db file sequential read 13 0.01 0.06 CPU time, so we waited lots of seconds
SQL*Net message from client 2 0.00 0.00 for something.
■ We waited for DB file scattered read
EMPNO. Further suppose you have an 5 (download.oracle.com/docs/cd/ ■ We can see our query.
index on last_name and you only locally B28359_01/server.111/b28313/parpart ■ We have the plan that was used.
partition that index on last_name. .htm#i1007993). Also, in my book Now, what can we do with these
Now, when you query Expert Oracle Database Architecture, I facts? We can use our knowledge of the
discuss all of this in some detail, includ- data and how Oracle Database works to
select * from employees ing why you want to know why you are “tune.” What are some obvious things to
where last_name=:x partitioning, how to approach partition- think about there?
ing, and what not to do. Well, we see that the query result
you will do 16 index range scans—16 returned about 688,256 rows out of
times the work! Using TKPROF 128,000,000. That in itself gives us
In this case, you would have wanted How can I use TKPROF to find problematic another fact or two:
to do one of the following: queries? The only point I know is that when ■ We needed a very small subset of rows
■ Not partition that index at all. The size elapsed time is longer, it means that the from this table to answer this query.
of the index in a single partition was query spent more time waiting for something. ■ The table’s high-water mark is prob-
fine with you. But I am not sure how to use TKPROF for ably OK. Given that we read 1.8 million
■ Partition that index by range. For query tuning. blocks and processed 128 million rows,
example, A–K go into one partition First, you use TKPROF in general to we must have about 70 rows per block,
and L–Z go into another. Use whatever identify queries in your application that so the table seems to be well packed. So,
ranges make sense for your data. consume “lots of resources,” includ- shrinking or reorganizing the table isn’t
■ Hash-partition it. This presumes ing CPU time, elapsed time, and so on. going to do anything.
that you always use equality in your Suppose you do this (enable tracing in These facts make it possible to rule
searches, because hash-partitioned your application and then run bits of things out. That is as useful as using
indexes are not suitable for LIKE and your application): facts to rule something in.
<, > searches. OK, so what are some possible
To gain an understanding of par- SQL> begin “tuning” options?
titioning, you will want to review the 2 dbms_monitor.session_trace_enable 1. Make the full scan faster, maybe by
codeLIstING 3: TKPROF report, second run I want to know if there is a simple way to
find out which queries use the index, because
select count(subobject_name) I want to re-create the index with fewer
from columns, but I do not want to degrade the per-
big_table.big_table
formance of the queries.
call count cpu elapsed disk query current rows As for the question about how to find
----------------- ------------- --------- ----------------- ----------- ------------ ---------------- ---------- out which queries use an index, you
Parse 1 0.00 0.04 0 0 0 0
can query V$SQL_PLAN to see which
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 0.28 0.52 3342 3355 0 1 queries that are in the shared pool right
----------------- ------------- --------- ------------------ ----------- ------------ ---------------- ----------- now (that last bit is important—to see
total 4 0.28 0.56 3342 3355 0 1
which queries that are in the shared
Misses in library cache during parse: 1 pool right now) use that index.
Optimizer mode: ALL_ROWS But more importantly, you wrote,
Parsing user id: 344
“. . . the other five [columns] are not
Rows Row Source Operation selective. . . .” That fact has nothing to
------------------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- do with whether they are useful or not.
1 SORT AGGREGATE (cr=3355 pr=3342 pw=0 time=520528 us)
I don’t care if they are constant or have
688256 INDEX FAST FULL SCAN BIG_TABLE_SO_IDX (cr=3355 pr=3342 pw=0 time=730570 us)
(object id 161278) two distinct values—that they are not
selective has nothing to do with whether
Elapsed times include waiting on following events:
they should be in the index. Selectivity
Event waited on Times Max. Wait Total Waited has nothing to do, really, with whether a
----------------------------------------------------------------------------------- Waited ------------------------ ----------------------------- column should be indexed. The questions
SQL*Net message to client 2 0.00 0.00
you ask and the data patterns dictate
db file scattered read 42 0.01 0.27
SQL*Net message from client 2 0.00 0.00 what columns make sense in an index.
The online version of this column, at
otn.oracle.com/oramag/oracle/08-nov/
o68asktom.html, includes a demonstra-
compressing the table. ■ Use the facts you can derive from tion on selecting the best columns for an
2. Because we need only about 0.54 TKPROF and other sources and apply index for a given query. ■
percent of the table’s rows to answer our your knowledge of the data, the data
query (count the non-null occurrences patterns, and Oracle Database— Tom Kyte is a database evangelist in Oracle’s Server
of subobject_name), maybe indexing including the indexes it has to offer, the Technology division and has worked for Oracle since
would improve query performance. schema structures (clusters, index- 1993. He is the author of Expert Oracle Database
Let’s try option 2 first, because it will organized tables, heap tables, partition- Architecture: 9i and 10g Programming Techniques and
have the least impact. ing, and so on) it has to offer, and the Solutions (Apress, 2005) and Effective Oracle by Design
SQL it supports (because you can rewrite (Oracle Press, 2003), among others.
SQL> create index big_table_so_idx a query more efficiently in many cases).
on big_table(subobject_name); So when you use TKPROF for query
Index created. tuning, you are getting half of what you
need—the facts. The other half is all nextstEPs
After we do that and rerun the query, about you and your knowledge of the ask tom
TKPROF shows the report in Listing 3. database. If you don’t have or don’t want Tom Kyte answers your most difficult technology ques-
tions. Highlights from that forum appear in this column.
Now in real life, it’ll be more com- to have that other half, you’ll be using asktom.oracle.com
plicated than this, of course. You’ll have tools such as the performance pack in
REaD online-only column content
a multitable query to deal with and Oracle Enterprise Manager. otn.oracle.com/oramag/oracle/08-nov/
complex data relationships. To tune that o68asktom.html
72 November/december 20 08 oracle.com/oraclemagazine
Discover theNew
OracleWhitePapers.com
Copyright © 2008, Oracle Corporation and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Need to Know
Getting better information is important, but some secrets are not for sharing.
well-known term in many failed. Somebody, somewhere, leaks us protect customers, by allowing the
security communities is need the information before mitigation or a people who need access to bug details to
to know: the idea that unless fix is available, and we all suffer. (An get them so they can fix the bugs, while
there is a compelling reason example of a relative success was the minimizing the chances that information
for someone to have access to informa- recent multivendor cooperation to fix about unpublished security bugs will
tion, that person shouldn’t have it. These a domain name system vulnerability. leak to the larger community.
days, need to know is almost an archaic Multiple affected vendors implemented Oracle Label Security also transpar-
concept. Having decided post-9/11 that correct, compatible-with-others fixes and ently enforces need to know on data
the risk of not sharing data outweighs released them at the same time.) to users, based on a composite label.
the risk of sharing it, even the U.S. Transparently means not only that the
government is embracing need to share. TecHNOLOGY AND NeeD TO KNOW users don’t necessarily know the data
Web 2.0 is all about massive information Oracle, as an organization, enforces need labeling scheme but also that they may
sharing: the premise is that if we give up to know by using our own technology. not be aware that they failed the need-
private enclaves of data, we will be col- Within Oracle we use Oracle Virtual to-know test. Telling users, “You need a
lectively smarter and more productive. Private Database functionality to limit secret clearance to access this data” fool-
At the risk of being called reactionary, access to security bugs in the bug data- ishly conveys that there is information
I think need to know is still important, base (the database we use to record and they have asked to see but cannot, thus
because highly sensitive information manage vulnerabilities in Oracle prod- encouraging fishing expeditions. Merely
often has an element of time during ucts). Oracle Virtual Private Database failing to return data enforces true need
which secrecy is vital. You don’t want enforces the rule that people working on to know, by not revealing that data exists
your enemies to know your war plans security bug fixes can see bug details for to those users who can’t see it.
until after the attack, or your competitors the issues they are working on but that Data sharing may be the wave of
to know your product plans until after the larger developer community cannot. the Web 2.0 future, but need to know
the launch. All things being equal, the We allow parts of the management chain is nonetheless a critical weapon in the
more people who know something that to see these bugs, to ensure that they information security arsenal. Loose lips
is time-sensitive and not merely sensi- receive the attention they deserve—in still do sink ships. ■
tive, the greater the chances that the data open bug reports for particular prod-
will leak, to the detriment of all con- ucts, for example. And although we Mary Ann Davidson is the chief security officer of
cerned. “Loose lips sink ships,” to quote allow customers to access the bug data- Oracle, responsible for secure development practices,
old World War II posters. base, security bugs are not published security evaluations, and assessments. She represents
It’s hard to explain need to know (accessible), to prevent someone without Oracle on the board of directors of the Information
to people who aren’t familiar with it, a need to know from reading details on Technology Information Security Analysis Center
because almost everyone wants to be in unfixed security bugs. (IT-ISAC), has served on the U.S. Defense Science Board,
the know or an A-lister. Generally, need I personally have opted out of needing and is on the editorial review board of SC Magazine.
to know can be determined only by to know detailed information about secu-
nextSTePS
the person who holds the information, rity vulnerabilities. Although my security
not by the people who don’t hold it but vulnerability handling team needs to
might think they should. When a test know security bug details such as the LeArN more about
is done properly, the people who don’t severity of the bug or the correctness of a Oracle Virtual Private Database
have a need to know will never know fix to analyze it, I don’t. Therefore, I don’t oracle.com/database/security.html
that they were the object of a need-to- have access to security bug details, even Oracle Label Security
oracle.com/database/label-security.html
know test and that they failed. though I am in the management chain
In the larger information security of the vulnerability handlers. (I think reAD more Davidson
blogs.oracle.com/maryanndavidson
community, almost all attempts at enforcing need to know on myself sets a
selective information sharing about positive leadership example.) DIScuSS Security
forums.oracle.com/forums/forum.jspa?forumiD=51
nonpublic security vulnerabilities have Oracle Virtual Private Database helps
nextSTEPS
whole landscape of IT and positioned Oracle has a top-down approach to
application servers to play a critical role. modeling at an enterprise level. BEA
It made it easier to integrate, say, an SAP acquired a technology several years
READ about Oracle WebLogic
application with a Siebel application, back from Fuego, which is more of a
application server products
since many of those services are handled departmental BPM solution suitable for oracle.com/appserver
for you and defined in a standard way. individual lines of business and work LISTEN to Oracle Fusion Middleware
Oracle Magazine: How do the Oracle groups. This means Oracle customers Radio
Fusion Middleware and Oracle now have two paths to BPM, both of oracle.com/products/middleware/ofmradio.html
WebLogic [formerly BEA WebLogic] which use Oracle’s implementation of DOWNLOAD Oracle WebLogic Server
otn.oracle.com/software/products/ias/htdocs/
application server platforms fit together? the BPEL standard. wls_main.html
Baer: Even though these application server Finally, BEA’s IDE stack adds an
76 novemBer/decemBer 20 08 oracle.com/oraclemagazine
oracle.com/middleware
or call 1.800.ORACLE.1
Copyright © 2008, Oracle. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.
A
Job No.: 002143 Live: 7" x 9.75" PUB NOTES READER
File Name: MdW_1MdW_BEA_2143
Product: Middleware
Trim:
Bleed:
7.875" x 10.5"
8.625" x 11.25"
Mgr. 8/25/08 Please use center marks 01
Headline: #1 Middleware Color: 4C Traffic Mgr. 8/25/08 to align page.
Released
Date: Mon, Aug. 25, 2008 1:30 PM Production: Proofing
Pub: TBD
Fonts:
8/25/08
8/25
Standard
Graphic Mgr. 8/25/08
Traffic: Agency
Library Ref.: 002143
Univers LT Std. 75 Blk, 65 Bold, 55 Roman/Oblique, 45 Light
Univers LT Std. 47 Light Condensed
Production 8/25/08
2008
S Size NA x x NA NA x x x
PUBlication: NS Size NA NA NA
Please examine these publication materials carefully. Any questions regarding the materials, please contact Jodi Cordova (650) 506-5482 or jodi.cordova@oracle.com.