Chris Lawson
Database Specialists, Inc.
www.dbspecialists.com
clawson@dbspecialists.com
ocus of Presentation
Explore some ³strange´ database problems that have
baffled some DBAs
Most of the mysteries occurred on critical production
systems, although some were on development systems
ALL of the mysteries were eventually explained
Depending on your personal experience, some of these
³mysteries´ will seem trivial or commonplace; others
will indeed seem mysterious
Most mysteries have a simple explanation
Most mysteries have a simple fix
^hy Spend Time on These
Database Mysteries?
Each DBA has a unique set of experiences and biases.
^hat one DBA thinks is obvious, another will not.
An Oracle ³detective´ is part scientist, part artist.
Many solutions require creativity, not just logic.
A superior DBA will look for ways to ³stretch´ and
learn ways to handle difficult problems.
^ithout working out difficult problems, you will not
advance as a DBA.
You will be the ³hero´ if you encounter a mystery and
solve it; remember the solution--you may see it again!
A ^ord About Oracle Versions
This presentation was originally written in
1998
Most of these mysteries involve Oracle 7
databases
Although some of the mysteries might not
apply directly to Oracle 8i, they still offer
insight into the problem-solving process
The Case of the
Berserk Application
P
P
Using HPUX, Oracle 7.3.2.3
Help desk application (Vantive) that connects to Oracle
database suddenly goes berserk, creating thousands of
connections
Program had worked normally for many months
DBAs watch helplessly as CPU load driven from 1 to 50
As DBAs kill extra processes, more take their place
Alert log and recent trace files show nothing unusual
DBAs are united in accusing the | | as the culprit
Berserk Application
( )
P
Running Sun Solaris, Oracle 7.3.2.3
Users complain that performance has degraded in recent
months
Manager states that ³something must be wrong with the
network´
Application is P , a document management/printing
application
DBA investigates. Discovers that time to connect in
SQL*Plus is 30-45 seconds, even though server load is low
Connect time is bad whether remote (PC) or directly on server
Server load (file I/O and CPU) is generally low
Berserk Application: Ã
P is the culprit. It is active by default on
many 7.3 Oracle versions
Excerpt from Oracle Corporation Alert:
|
|
|
|
|
Berserk Application: Ã
( )
c
But first, must find the ³big´ packages (will also list
SYS.STANDARD):
à 1
2+
2,*
+
+
**3
,
,*
+
+ !
The Case of the
Mysterious Package: Ã
( )
Example script to find ³big´ packages and generate
SQL script to ³pin´ them in memory
à ÃÃ
!"##
######$%
&'()*+
,
-. '
/
01231(41"54 -6Ã1(1)607 $
0121(48 9Ã.0' 2:((9
012 4Ã1(1%
The Case of the
Uncooperative Rollback
In mid-afternoon, DBA (running ³OEM Top Sessions´)
notices many users ³ACTIVE´ but showing 0 file I/O. Lock
Manager reveals one user performing big update blocking all.
Culprit tracked down--agrees to be terminated. DBA
disconnects session.
Locks are not released, but user is ³marked for kill.´
Very little file I/O activity. Alert log shows very slow
switching of redo logs.
DBA performs shutdown abort then startup. Database starts
up after 2 minutes. All is well.