Regex Dictionary Lookup
Hello,
I think regular expressions is what i need to solve this but i am not sure - any guidance would be appreciated..
I have created a program to decrtpyt a monoalphabetic substitution cipher - and have extracted text as follows:
teabeganasamedicineandgrewintoabeverage.inchina,intheeighthcentury,
Decrypted text has no spaces in... i need to restore the spaces.
I have an english dictionary text file in the format~:
+mahogany
mahout
maid
maiden
maidenhair
maidenhead
maidenhood
maidenly
...+
I need to somehow use this english dictionary to identify the words in the text and add a space at the end of them.
Any ideas how a regexp would do this for me in Java?
Rgds,
Andy
patonar wrote:
Yes i know the result may end up incorrect - but as it is a decryption, it is never going to be 100% prescise... without some form of human intervention.
My lecturer said this when i asked for help reinstating the spaces:
*+ , the secret is to use the
dictionary or word list - for example the group of letters 'cupof' won't be in the
dictionary so you can search for partial matches in the dictionary - you may find
regular expressions helpful?+*
Having never used regexp before i dont have a clue how to approach this - or even if this is the right method...
Im not looking for someone to do this for me - just advise on the best way to do it.
Rgds,
AndyThere are a few users here that are really good at regexp, they might read this later and say that regexp might be a possible solution. I have used regexp pretty much but the first solution that I can think of is to build a tree out of all valid words and traverse that tree while you are looking at your string without spaces. I would look for the longest possible match, insert a space and then try to find next word. One problem is that you might be forced to backtrack so it sounds like you need something that is recursive.
A good start might be to read about Trie:
http://en.wikipedia.org/wiki/Ternary_search_tree
Hmm.. this sounds pretty advanced. At what level are you?
Similar Messages
-
Trackpad triple-finger tap dictionary lookup is not working on maybookPro with OS X 10.8.5. I have never seen it working before. I have also checked un System Preferences and it is enabled. All other gestures seem to work fine too. Could you please help?
Try running the combo update.
10.8.5 Combo Update
That solved it for one person. -
Is it possible to use the OSX dictionary lookup in Microsoft Word
Hi All,
Trying to figure out if I can use the quick dictionary lookup in Microsoft Word (sorry to mention the words in the Pages section). Either the three finger tap look-up, or the command - control - D or command- D function. I'm sick to death of the erroneous dictionary that Microsoft created along with Word.
Eternally frustrated, I might have to swap back to Libre OfficeLibreOffice does not incorporate the Apple code that enables the keyboard, or three-finger tap dictionary access. With a given word selected, a right-click offers Synonyms on the contextual menu. At the bottom of the Synonyms sub-menu is Thesaurus… which will pop-up a window, which in the case of the word “cautiously,” provides the following (click to enlarge):
-
DICTIONARY LOOKUP CURSOR CACHED
Hi,
Can anyone please tell me what is this 'DICTIONARY LOOKUP CURSOR CACHED' cause I found that my ADF application uses to many off this cursors when the application is running and over loads my Database too fast.
Can any one please tell me the purpose for this cursors being created and how.
My environment is as follows,
Database : oracle 11g
Server : Weblogic 10My database tells me you are posting to the wrong forum:
CHE_TEST@tcp_asterix_impl> r
1 select case when 'ADF' = 'FORMS'
2 then 'correct forum'
3 else 'incorrect forum' end
4* from dual
CASEWHEN'ADF'='
incorrect forum
CHE_TEST@tcp_asterix_impl>you also may want to try google first.
cheers -
I randomly came upon a quick lookup for spelling options, where you can press ESC while on a word and a list of similar words appears. Is there a similar key or key combination that immediately looks up the definition of words, without the use of the mouse cursor? It would be nice to not have to take my hands off the keyboard to lookup words.
thanks,
tjermantjerman
the commandcontrolD system wide shortcut for dictionary, mentioned by Terence, has a drawback: the mouse cursor must be over the word in question in order for it to work. The services menu "Look up in Dictionary" entry, also mentioned by Terence, is your best bet but you have to assign a short-cut your self as it has not got one assigned.
Launch the System Preferences application and click on the Keyboard & Mouse pane. Click on the Keyboard Shortcuts tab and then on the "+" button bottom left. On the pop-up menu that appears make sure the the "Applications" section is set to "All Applications" and the the "Menu Title" is exactly "Look Up in Dictionary" without the quotation marks. Click on the Keyboard Shortcut field and define a new shortcut by pressing the combination of keys you want. Bear in mind that the system will not alert you if there is a conflict with the combination you use so make sure that the combination is unique to the list in System Preferences > Keyboard & Mouse > Keyboard Shortcuts as well as the application(s) you will be using. In my case I use commandalt+shiftD.
You will have to quit any applications you are using to "make them aware" of the change.
The above will work within applications that subscribe to that particular service., For example it does work in safari but not in MS Word.
In order for the dictionary to be invoked the word you are trying to look up must be highlighted. -
Direct dictionary lookup in iOS 5?
I love the new built-in dictionary in iOS 5. But I'm amazed that they didn't include a way to directly look up a word in the dictionary — the only way I've found to look up a word is to highlight it within the context of another app.
What I've been doing when I want to look up a word is: go to notes, type the word, highlight it, and then select define. But it would be nice if there were a better way to do this (preferably that didn't involve highlighting the word, which I find to be the longest step).
I thought there might be an option in Spotlight Search to "look up in dictionary." Alas no.
Has anyone found any secret or clever ways to directly look things up in the dictionary?
(I know there are apps for this — in fact I have the dictionary.com app — but I prefer the New Oxford American Dictionary, and I find most dictionary apps to be clunky.)There is this app
Dictionary Offline!
By iBoutique
https://itunes.apple.com/in/app/dictionary-offline!/id474435901?mt=8
It uses the Apples Built In Dictionary.
Enjoy!! -
I had an add on or extension that allowed me to highlight a word and a definition would pop up with links to more information - now it's gone after updating Firefox. I'm looking for the name so I can re-load it.
Thanks.Do you see such an extension listed as disabled on the Tools > Add-ons > Extensions page?
-
Does anyone know of any classes or free package somewhere I can use for language translation?
What I'm looking for is a program that would read in a .properties file and translate the English language values to another language.
Or if not that, a simple program that holds a listing of all words of a certain language keyed by the English word.
Example: I pass the word 'red' to a hashtable of french words and it returns the french equivalent of the word 'rouge'.
Anything else relevant someone know about? Note that I understand internationalization fine, I'm just looking for something that will more quickly automate the translation from English to other languages.There are free services on the web such as Babelfish. You could perhaps write some code that submits your text fragments to one of those and extracts the translation from the response. However as ulrika says, their output is not always satisfactory. You might be better off just hiring a professional translator for half a day.
-
I am picking up French, so I've downloaded some French books in iBooks to hone my reading skill (and to pick up some vocab).
iBooks has dictionary lookup function, however, this doesn't seen to work for French words (duh!)
Does anyone know a way to add French dictionary to iPad so that I can look up French words in iBooks?
btw, I've tried setting the iPad in French keyboard and France region mode.
Thanks a lotThere is no way to do what you want. iBooks has only English and Japanese dictionaries. Ask Apple for more here:
http://www.apple.com/feedback/ipad.html
You might check whether the Kindle.app or other ereaders have a French dictionary included with them. -
My text doc's spell checking has suddenly broken..... Everything I write it now thinks is incorrect. I have checked the dictionary settings in each app (Text/Word/Pages etc) and all are using the correct one, any ideas?
I just noticed that I can't use my Safari contextual menu to look up a word in Safari. Choosing "look up in dictionary" produces no response. Search in spotlight and search in google work just fine from the contextual menu. Look up in Dictionary unde the Services menu works fine. I just updated to 10.4.8 and I repaired permissions both before and after the update. Any ideas of how to get the contextual dictionary lookup to work again?
-
AWR Report - suggestions to improve performance.
Hi Folks,
Web application server version - 10.1.2.0.2
Database version - 10.1.0.4.0
OS version - AIX 5.3
WORKLOAD REPOSITORY report for
DB Name DB Id Instance Inst Num Release Cluster Host
xxxx 3419432639 xxxx 1 10.1.0.4.0 NO hostname
Snap Id Snap Time Sessions Curs/Sess
Begin Snap: 16598 07-Jul-09 16:30:54 23 60.7
End Snap: 16599 07-Jul-09 17:30:46 36 94.1
Elapsed: 59.88 (mins)
DB Time: 44.99 (mins)
Cache Sizes (end)
~~~~~~~~~~~~~~~~~
Buffer Cache: 1,536M Std Block Size: 8K
Shared Pool Size: 1,248M Log Buffer: 1,024K
Load Profile
~~~~~~~~~~~~ Per Second Per Transaction
Redo size: 30,495.86 138,156.74
Logical reads: 1,735.49 7,862.39
Block changes: 197.66 895.45
Physical reads: 564.70 2,558.28
Physical writes: 54.64 247.52
User calls: 2.00 9.04
Parses: 14.32 64.87
Hard parses: 1.37 6.22
Sorts: 5.83 26.42
Logons: 0.12 0.54
Executes: 72.71 329.38
Transactions: 0.22
% Blocks changed per Read: 11.39 Recursive Call %: 99.64
Rollback per transaction %: 17.53 Rows per Sort: 5933.99
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 100.00 Redo NoWait %: 100.00
Buffer Hit %: 71.24 In-memory Sort %: 99.79
Library Hit %: 96.22 Soft Parse %: 90.41
Execute to Parse %: 80.31 Latch Hit %: 99.99
Parse CPU to Parse Elapsd %: 21.82 % Non-Parse CPU: 96.80
Shared Pool Statistics Begin End
Memory Usage %: 13.13 27.55
% SQL with executions>1: 61.04 15.52
% Memory for SQL w/exec>1: 60.96 12.31
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~ % Total
Event Waits Time (s) DB Time Wait Class
db file scattered read 135,977 1,204 44.62 User I/O
CPU time 547 20.26
db file sequential read 99,521 187 6.92 User I/O
log file parallel write 10,995 16 .59 System I/O
direct path write temp 7,225 13 .47 User I/O
Wait Events DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> s - second
-> cs - centisecond - 100th of a second
-> ms - millisecond - 1000th of a second
-> us - microsecond - 1000000th of a second
-> ordered by wait time desc, waits desc (idle events last)
Avg
Total Wait wait Waits
Event Waits Timeouts Time (s) (ms) /txn
db file scattered read 135,977 0 1,204 9 171.5
db file sequential read 99,521 0 187 2 125.5
log file parallel write 10,995 0 16 1 13.9
direct path write temp 7,225 0 13 2 9.1
process startup 117 1 7 58 0.1
latch: library cache 306 0 5 15 0.4
direct path read temp 152,490 0 4 0 192.3
db file parallel write 342 0 4 11 0.4
log file sync 309 3 4 13 0.4
db file parallel read 359 0 3 8 0.5
latch: cache buffers lru ch 80 0 2 19 0.1
control file parallel write 1,325 0 1 1 1.7
latch: row cache objects 26 0 1 51 0.0
latch: cache buffers chains 138 138 1 9 0.2
log file switch completion 3 0 1 399 0.0
buffer busy waits 94 0 1 10 0.1
latch: shared pool 44 0 0 6 0.1
control file sequential rea 1,258 0 0 0 1.6
latch: object queue header 3 0 0 41 0.0
SQL*Net message to client 5,866 0 0 0 7.4
LGWR wait for redo copy 495 1 0 0 0.6
direct path read 58 0 0 1 0.1
latch: session allocation 6 0 0 6 0.0
latch: In memory undo latch 3 0 0 10 0.0
SQL*Net break/reset to clie 62 0 0 0 0.1
control file single write 40 0 0 1 0.1
latch: redo allocation 12 0 0 2 0.0
latch free 2 0 0 11 0.0
enq: TX - index contention 1 0 0 21 0.0
latch: messages 8 0 0 2 0.0
log file single write 2 0 0 4 0.0
direct path write 99 0 0 0 0.1
SQL*Net more data to client 237 0 0 0 0.3
log file sequential read 2 0 0 2 0.0
latch: library cache lock 1 0 0 3 0.0
latch: enqueue hash chains 3 0 0 0 0.0
SQL*Net more data from clie 2 0 0 0 0.0
SQL*Net message from client 5,855 0 23,607 4032 7.4
jobq slave wait 3,441 3,334 9,925 2884 4.3
Queue Monitor Wait 1,537 623 3,532 2298 1.9
Queue Monitor Slave Wait 503 0 3,532 7022 0.6
wakeup time manager 12 0 3,527 293898 0.0
virtual circuit status 120 120 3,512 29266 0.2
class slave wait 2 2 10 4883 0.0
Background Wait Events DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by wait time desc, waits desc (idle events last)
Avg
Total Wait wait Waits
Event Waits Timeouts Time (s) (ms) /txn
log file parallel write 10,995 0 16 1 13.9
process startup 117 1 7 58 0.1
db file sequential read 1,255 0 4 3 1.6
db file parallel write 342 0 4 11 0.4
control file parallel write 1,329 0 1 1 1.7
db file scattered read 151 0 1 7 0.2
latch: cache buffers lru ch 32 0 0 15 0.0
latch: library cache 5 0 0 69 0.0
control file sequential rea 213 0 0 1 0.3
latch: cache buffers chains 2 2 0 34 0.0
LGWR wait for redo copy 495 1 0 0 0.6
control file single write 40 0 0 1 0.1
latch: redo allocation 12 0 0 2 0.0
latch: messages 8 0 0 2 0.0
latch: object queue header 2 0 0 8 0.0
log file single write 2 0 0 4 0.0
direct path write 25 0 0 0 0.0
buffer busy waits 1 0 0 7 0.0
latch: shared pool 2 0 0 2 0.0
log file sequential read 2 0 0 2 0.0
direct path read 22 0 0 0 0.0
rdbms ipc message 15,461 10,346 26,675 1725 19.5
Queue Monitor Wait 1,537 623 3,532 2298 1.9
Queue Monitor Slave Wait 503 0 3,532 7022 0.6
wakeup time manager 12 0 3,527 293898 0.0
smon timer 175 8 3,418 19530 0.2
Time Model Statistics DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by Time (seconds) desc
Time % Total
Statistic Name (seconds) DB Time
sql execute elapsed time 2,708.75 100.35
DB time 2,699.22 100.00
DB CPU 546.94 20.26
background elapsed time 113.64 4.21
parse time elapsed 90.88 3.37
hard parse elapsed time 59.03 2.19
PL/SQL execution elapsed time 56.46 2.09
Java execution elapsed time 8.99 .33
background cpu time 8.18 .30
PL/SQL compilation elapsed time 4.55 .17
connection management call elapsed time 1.08 .04
failed parse elapsed time .73 .03
hard parse (sharing criteria) elapsed time .70 .03
hard parse (bind mismatch) elapsed time .61 .02
sequence load elapsed time .41 .02
inbound PL/SQL rpc elapsed time .00 .00
failed parse (out of shared memory) elapsed t .00 .00
Operating System Statistics DB/Inst: xxxx/xxxx Snaps: 16598-16599
Statistic Name Value
AVG_BUSY_TICKS 771,364
AVG_IDLE_TICKS 346,024
AVG_IN_BYTES 3,812,632,576
AVG_IOWAIT_TICKS 38,470
AVG_OUT_BYTES 1,141,137,408
AVG_SYS_TICKS 2,786
AVG_USER_TICKS 13,588
BUSY_TICKS 3,085,837
IDLE_TICKS 1,384,395
IN_BYTES 15,250,530,304
IOWAIT_TICKS 154,103
OS_CPU_WAIT_TIME 70,200
OUT_BYTES 4,564,549,632
RSRC_MGR_CPU_WAIT_TIME 0
SYS_TICKS 11,439
USER_TICKS 54,613
Service Statistics DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by DB Time
Physical Logical
Service Name DB Time (s) DB CPU (s) Reads Reads
xxxx 2,032.9 519.7 1,804,948 5,709,611
SYS$USERS 666.3 27.2 219,320 501,732
SYS$BACKGROUND 0.0 0.0 4,565 28,708
xxxxXDB 0.0 0.0 0 0
Service Wait Class Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Wait Class info for services in the Service Statistics section.
-> Total Waits and Time Waited displayed for the following wait
classes: User I/O, Concurrency, Administrative, Network
-> Time Waited (Wt Time) in centisecond (100th of a second)
Service Name
User I/O User I/O Concurcy Concurcy Admin Admin Network Network
Total Wts Wt Time Total Wts Wt Time Total Wts Wt Time Total Wts Wt Time
xxxx
374696 127922 0 0 0 0 3701 7
SYS$USERS
18820 12406 172 222 0 0 2129 0
SYS$BACKGROUND
2218 783 0 0 0 0 0 0
SQL ordered by Elapsed Time DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Resources reported for PL/SQL code includes the resources used by all SQL
statements called by the code.
-> % Total DB Time is the Elapsed Time of the SQL statement divided
into the Total Database Time multiplied by 100
<<<<<<<<<<<<<<<<<<<<<<<<<<<SQLs Deleted >>>>>>>>>>>>
SQL ordered by Sharable Memory DB/Inst: xxxx/xxxx Snaps: 16598-16599
No data exists for this section of the report.
SQL ordered by Version Count DB/Inst: xxxx/xxxx Snaps: 16598-16599
No data exists for this section of the report.
Instance Activity Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
Statistic Total per Second per Trans
CPU used by this session 53,470 14.9 67.4
CPU used when call started 51,928 14.5 65.5
CR blocks created 5,298 1.5 6.7
Cached Commit SCN referenced 192,226 53.5 242.4
Commit SCN cached 3,613 1.0 4.6
DB time 1,253,838 349.0 1,581.1
DBWR checkpoint buffers written 4,304 1.2 5.4
DBWR checkpoints 1 0.0 0.0
DBWR transaction table writes 59 0.0 0.1
DBWR undo block writes 5,557 1.6 7.0
IMU CR rollbacks 1 0.0 0.0
IMU Flushes 191 0.1 0.2
IMU Redo allocation size 860,820 239.6 1,085.5
IMU commits 381 0.1 0.5
IMU contention 5 0.0 0.0
IMU ktichg flush 1 0.0 0.0
IMU undo allocation size 1,839,872 512.1 2,320.1
SQL*Net roundtrips to/from clien 5,591 1.6 7.1
active txn count during cleanout 948 0.3 1.2
application wait time 4 0.0 0.0
background checkpoints completed 1 0.0 0.0
background checkpoints started 1 0.0 0.0
background timeouts 10,366 2.9 13.1
buffer is not pinned count 2,387,595 664.6 3,010.8
buffer is pinned count 792,051 220.5 998.8
bytes received via SQL*Net from 333,467 92.8 420.5
bytes sent via SQL*Net to client 2,449,972 682.0 3,089.5
calls to get snapshot scn: kcmgs 319,869 89.0 403.4
calls to kcmgas 17,576 4.9 22.2
calls to kcmgcs 1,912 0.5 2.4
change write time 2,175 0.6 2.7
cleanout - number of ktugct call 4,589 1.3 5.8
cluster key scan block gets 579,340 161.3 730.6
cluster key scans 283,013 78.8 356.9
commit cleanout failures: block 1 0.0 0.0
commit cleanout failures: buffer 1 0.0 0.0
commit cleanout failures: callba 1 0.0 0.0
commit cleanout failures: cannot 5 0.0 0.0
commit cleanouts 25,713 7.2 32.4
commit cleanouts successfully co 25,705 7.2 32.4
commit txn count during cleanout 4,110 1.1 5.2
concurrency wait time 650 0.2 0.8
consistent changes 7,352 2.1 9.3
consistent gets 5,509,829 1,533.7 6,948.1
consistent gets - examination 1,061,141 295.4 1,338.1
consistent gets direct 39 0.0 0.1
consistent gets from cache 5,509,790 1,533.7 6,948.0
cursor authentications 310 0.1 0.4
data blocks consistent reads - u 6,747 1.9 8.5
db block changes 710,092 197.7 895.5
db block gets 725,044 201.8 914.3
db block gets direct 14,789 4.1 18.7
db block gets from cache 710,255 197.7 895.7
deferred (CURRENT) block cleanou 14,036 3.9 17.7
dirty buffers inspected 9,309 2.6 11.7
enqueue conversions 926 0.3 1.2
enqueue releases 92,643 25.8 116.8
enqueue requests 92,643 25.8 116.8
enqueue waits 1 0.0 0.0
execute count 261,199 72.7 329.4
Instance Activity Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
Statistic Total per Second per Trans
free buffer inspected 1,719,681 478.7 2,168.6
free buffer requested 1,804,893 502.4 2,276.0
heap block compress 1,617 0.5 2.0
hot buffers moved to head of LRU 295,841 82.4 373.1
immediate (CR) block cleanout ap 3,664 1.0 4.6
immediate (CURRENT) block cleano 6,108 1.7 7.7
index fast full scans (full) 533 0.2 0.7
index fetch by key 582,804 162.2 734.9
index scans kdiixs1 328,534 91.5 414.3
leaf node 90-10 splits 190 0.1 0.2
leaf node splits 353 0.1 0.5
logons cumulative 426 0.1 0.5
messages received 5,699 1.6 7.2
messages sent 5,699 1.6 7.2
no buffer to keep pinned count 0 0.0 0.0
no work - consistent read gets 4,088,134 1,137.9 5,155.3
opened cursors cumulative 46,867 13.1 59.1
parse count (failures) 27 0.0 0.0
parse count (hard) 4,933 1.4 6.2
parse count (total) 51,443 14.3 64.9
parse time cpu 1,748 0.5 2.2
parse time elapsed 8,012 2.2 10.1
physical read IO requests 390,490 108.7 492.4
physical reads 2,028,713 564.7 2,558.3
physical reads cache 1,793,229 499.2 2,261.3
physical reads cache prefetch 1,557,452 433.5 1,964.0
physical reads direct 235,484 65.6 297.0
physical reads direct (lob) 36 0.0 0.1
physical reads direct temporary 235,426 65.5 296.9
physical reads prefetch warmup 6,031 1.7 7.6
physical write IO requests 15,092 4.2 19.0
physical writes 196,287 54.6 247.5
physical writes direct 179,731 50.0 226.7
physical writes direct (lob) 39 0.0 0.1
physical writes direct temporary 179,664 50.0 226.6
physical writes from cache 16,556 4.6 20.9
physical writes non checkpoint 194,791 54.2 245.6
pinned buffers inspected 2 0.0 0.0
prefetch warmup blocks aged out 1,292 0.4 1.6
prefetched blocks aged out befor 293,795 81.8 370.5
process last non-idle time 1,954 0.5 2.5
recursive calls 1,997,982 556.1 2,519.5
recursive cpu usage 50,834 14.2 64.1
redo blocks written 224,755 62.6 283.4
redo buffer allocation retries 3 0.0 0.0
redo entries 357,063 99.4 450.3
redo log space requests 3 0.0 0.0
redo log space wait time 123 0.0 0.2
redo ordering marks 5,391 1.5 6.8
redo size 109,558,292 30,495.9 138,156.7
redo synch time 398 0.1 0.5
redo synch writes 300 0.1 0.4
redo wastage 1,486,252 413.7 1,874.2
redo write time 1,657 0.5 2.1
redo writer latching time 7 0.0 0.0
redo writes 5,499 1.5 6.9
rollback changes - undo records 5,688 1.6 7.2
rows fetched via callback 96,659 26.9 121.9
session connect time 0 0.0 0.0
session logical reads 6,234,873 1,735.5 7,862.4
Instance Activity Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
Statistic Total per Second per Trans
session pga memory 162,220,520 45,154.5 204,565.6
session pga memory max 341,641,032 95,096.7 430,821.0
session uga memory 790,286,168,264 219,978,374.3 #############
session uga memory max 267,584,080 74,482.8 337,432.6
shared hash latch upgrades - no 327,865 91.3 413.5
shared hash latch upgrades - wai 47 0.0 0.1
sorts (disk) 44 0.0 0.1
sorts (memory) 20,909 5.8 26.4
sorts (rows) 124,334,820 34,609.0 156,790.4
summed dirty queue length 10,849 3.0 13.7
switch current to new buffer 125 0.0 0.2
table fetch by rowid 362,785 101.0 457.5
table fetch continued row 1,811 0.5 2.3
table scan blocks gotten 2,989,662 832.2 3,770.1
table scan rows gotten 102,945,486 28,655.2 129,817.8
table scans (long tables) 65 0.0 0.1
table scans (short tables) 8,082 2.3 10.2
transaction rollbacks 72 0.0 0.1
undo change vector size 40,524,316 11,280.1 51,102.5
user I/O wait time 140,959 39.2 177.8
user calls 7,168 2.0 9.0
user commits 654 0.2 0.8
user rollbacks 139 0.0 0.2
workarea executions - onepass 30 0.0 0.0
workarea executions - optimal 13,486 3.8 17.0
write clones created in foregrou 6 0.0 0.0
-------------------------------------------------------------contd on next ...
Edited by: LazyDBA10g on Jul 8, 2009 4:50 AMInstance Activity Stats - Absolute Values DB/Inst: xxxx/xxxx Snaps: 1
-> Statistics with absolute values (should not be diffed)
-> Statistics identified by '(derived)' come from sources other than SYSSTAT
Statistic Begin Value End Value
opened cursors current 1,397 3,387
logons current 23 36
Instance Activity Stats - Thread Activity DB/Inst: xxxx/xxxx Snaps: 16
Statistic Total per Hour
log switches (derived) 1 1.00
Tablespace IO Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by IOs (Reads + Writes) desc
Tablespace
Av Av Av Av Buffer Av Buf
Reads Reads/s Rd(ms) Blks/Rd Writes Writes/s Waits Wt(ms)
TEMP2
153,326 43 0.2 1.6 6,040 2 0 0.0
AA_DATA
115,909 32 5.8 7.6 217 0 0 0.0
AA_WEB
57,358 16 9.1 12.8 2,200 1 0 0.0
AA_INDEX
43,576 12 3.3 3.3 738 0 0 0.0
AA_WEB_IDX
11,475 3 2.9 1.1 6 0 0 0.0
SYSTEM
5,575 2 3.8 1.4 2,528 1 61 16.1
SYSAUX
3,017 1 5.3 1.4 2,401 1 5 0.0
UNDOTBS1
262 0 5.0 1.0 955 0 28 0.0
AA_LOB
36 0 13.6 5.5 3 0 0 0.0
USERS
3 0 33.3 1.0 3 0 0 0.0
EXAMPLE
1 0 40.0 1.0 1 0 0 0.0
File IO Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by Tablespace, File
Tablespace Filename
Av Av Av Av Buffer Av Buf
Reads Reads/s Rd(ms) Blks/Rd Writes Writes/s Waits Wt(ms)
EXAMPLE /AAA/oradata/xxxx/example01.dbf
1 0 40.0 1.0 1 0 0 0.0
SYSAUX /AAA/oradata/xxxx/sysaux01.dbf
3,017 1 5.3 1.4 2,401 1 5 0.0
SYSTEM /AAA/oradata/xxxx/system01.dbf
5,575 2 3.8 1.4 2,528 1 61 16.1
TEMP2 /AAA/oradata/xxxx/TEMP02.DBFf
153,324 43 0.2 1.6 6,040 2 0
TEMP2 /AAA/oradata/xxxx/TEMP03.DBF
2 0 5.0 1.0 0 0 0
UNDOTBS1 /AAA/oradata/xxxx/undotbs01.dbf
181 0 4.9 1.0 307 0 3 0.0
UNDOTBS1 /AAA/oradata/xxxx/undotbs02.dbf
70 0 5.6 1.0 157 0 20 0.0
UNDOTBS1 /AAA/oradata/xxxx/undotbs021.dbf
11 0 2.7 1.0 491 0 5 0.0
USERS /AAA/oradata/xxxx/users01.dbf
1 0 50.0 1.0 1 0 0 0.0
USERS /AAA/oradata/xxxx/users02.dbf
1 0 30.0 1.0 1 0 0 0.0
USERS /AAA/oradata/xxxx/users03.dbf
1 0 20.0 1.0 1 0 0 0.0
AA_DATA /AAA/oradata/xxxx/AA_DATA01.DBF
28,830 8 5.8 7.6 80 0 0 0.0
AA_DATA /AAA/oradata/xxxx/AA_DATA02.DBF
30,068 8 5.8 7.5 34 0 0 0.0
AA_DATA /AAA/oradata/xxxx/AA_DATA03.DBF
28,669 8 5.8 7.5 56 0 0 0.0
AA_DATA /AAA/oradata/xxxx/AA_DATA04.DBF
28,342 8 5.9 7.7 47 0 0 0.0
AA_INDEX /AAA/oradata/xxxx/AA_INDEX01.DBF
22,286 6 3.1 3.2 439 0 0 0.0
AA_INDEX /AAA/oradata/xxxx/AA_INDEX02.DBF
21,290 6 3.4 3.3 299 0 0 0.0
AA_LOB /AAA/oradata/xxxx/AA_LOB01.DBF
20 0 11.0 5.4 1 0 0 0.0
AA_LOB /AAA/oradata/xxxx/AA_LOB02.DBF
11 0 17.3 5.5 1 0 0 0.0
AA_LOB /AAA/oradata/xxxx/AA_LOB03.DBF
5 0 16.0 6.2 1 0 0 0.0
AA_WEB /AAA/oradata/xxxx/AA_WEB01.DBF
28,640 8 9.2 12.8 1,079 0 0 0.0
AA_WEB /AAA/oradata/xxxx/AA_WEB02.DBF
28,718 8 9.0 12.8 1,121 0 0 0.0
AA_WEB_IDX /AAA/oradata/xxxx/AA_WEB_IDX01.DBF
5,068 1 2.8 1.2 2 0 0 0.0
AA_WEB_IDX /AAA/oradata/xxxx/AA_WEB_IDX02.DBF
6,407 2 2.9 1.1 4 0 0 0.0
Buffer Pool Statistics DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Standard block size Pools D: default, K: keep, R: recycle
-> Default Pools for other block sizes: 2k, 4k, 8k, 16k, 32k
Free Writ Buffer
Number of Pool Buffer Physical Physical Buff Comp Busy
P Buffers Hit% Gets Reads Writes Wait Wait Waits
D 190,848 71 6,220,953 1,793,255 16,556 0 0 94
Instance Recovery Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> B: Begin snapshot, E: End snapshot
Targt Estd Log File Log Ckpt Log Ckpt
MTTR MTTR Recovery Actual Target Size Timeout Interval
(s) (s) Estd IOs Redo Blks Redo Blks Redo Blks Redo Blks Redo Blks
B 0 8 155 955 5359 360000 5359
E 0 9 311 1177 4572 360000 4572
Buffer Pool Advisory DB/Inst: xxxx/xxxx Snap: 16599
-> Only rows with estimated physical reads >0 are displayed
-> ordered by Block Size, Buffers For Estimate
Size for Size Buffers for Est Physical Estimated
P Estimate (M) Factr Estimate Read Factor Physical Reads
D 144 .1 17,892 1.97 3,571,363
D 288 .2 35,784 1.62 2,936,281
D 432 .3 53,676 1.57 2,850,391
D 576 .4 71,568 1.44 2,616,052
D 720 .5 89,460 1.33 2,414,217
D 864 .6 107,352 1.15 2,091,986
D 1,008 .7 125,244 1.04 1,882,876
D 1,152 .8 143,136 1.02 1,857,287
D 1,296 .8 161,028 1.02 1,844,981
D 1,440 .9 178,920 1.01 1,830,107
D 1,536 1.0 190,848 1.00 1,816,003
D 1,584 1.0 196,812 0.98 1,785,023
D 1,728 1.1 214,704 0.93 1,688,213
D 1,872 1.2 232,596 0.89 1,613,261
D 2,016 1.3 250,488 0.88 1,594,176
D 2,160 1.4 268,380 0.87 1,584,933
D 2,304 1.5 286,272 0.87 1,582,965
D 2,448 1.6 304,164 0.86 1,569,802
D 2,592 1.7 322,056 0.86 1,569,169
D 2,736 1.8 339,948 0.86 1,568,758
D 2,880 1.9 357,840 0.86 1,568,194
PGA Aggr Summary DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> PGA cache hit % - percentage of W/A (WorkArea) data processed only in-memory
PGA Cache Hit % W/A MB Processed Extra W/A MB Read/Written
88.0 4,058 552
PGA Aggr Target Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> B: Begin snap E: End snap (rows dentified with B or E contain data
which is absolute i.e. not diffed over the interval)
-> Auto PGA Target - actual workarea memory target
-> W/A PGA Used - amount of memory used for all Workareas (manual + auto)
-> %PGA W/A Mem - percentage of PGA memory allocated to workareas
-> %Auto W/A Mem - percentage of workarea memory controlled by Auto Mem Mgmt
-> %Man W/A Mem - percentage of workarea memory under manual control
%PGA %Auto %Man
PGA Aggr Auto PGA PGA Mem W/A PGA W/A W/A W/A Global Mem
Target(M) Target(M) Alloc(M) Used(M) Mem Mem Mem Bound(K)
B 500 432 57.5 0.0 .0 .0 .0 25,600
E 500 428 70.2 0.0 .0 .0 .0 25,600
PGA Aggr Target Histogram DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Optimal Executions are purely in-memory operations
Low High
Optimal Optimal Total Execs Optimal Execs 1-Pass Execs M-Pass Execs
2K 4K 11,726 11,726 0 0
64K 128K 256 256 0 0
128K 256K 206 206 0 0
256K 512K 583 583 0 0
512K 1024K 363 363 0 0
1M 2M 124 124 0 0
2M 4M 107 107 0 0
4M 8M 66 64 2 0
8M 16M 49 35 14 0
16M 32M 52 39 13 0
32M 64M 3 2 1 0
64M 128M 4 4 0 0
128M 256M 2 2 0 0
PGA Memory Advisory DB/Inst: xxxx/xxxx Snap: 16599
-> When using Auto Memory Mgmt, minimally choose a pga_aggregate_target value
where Estd PGA Overalloc Count is 0
Estd Extra Estd PGA Estd PGA
PGA Target Size W/A MB W/A MB Read/ Cache Overalloc
Est (MB) Factr Processed Written to Disk Hit % Count
63 0.1 4,098.7 2,609.3 61.0 0
125 0.3 4,098.7 1,521.6 73.0 0
250 0.5 4,098.7 1,354.7 75.0 0
375 0.8 4,098.7 1,109.3 79.0 0
500 1.0 4,098.7 373.4 92.0 0
600 1.2 4,098.7 71.6 98.0 0
700 1.4 4,098.7 41.6 99.0 0
800 1.6 4,098.7 41.6 99.0 0
900 1.8 4,098.7 0.0 100.0 0
1,000 2.0 4,098.7 0.0 100.0 0
1,500 3.0 4,098.7 0.0 100.0 0
2,000 4.0 4,098.7 0.0 100.0 0
3,000 6.0 4,098.7 0.0 100.0 0
4,000 8.0 4,098.7 0.0 100.0 0
Shared Pool Advisory DB/Inst: xxxx/xxxx Snap: 16599
-> SP: Shared Pool Est LC: Estimated Library Cache Factr: Factor
-> Note there is often a 1:Many correlation between a single logical object
in the Library Cache, and the physical number of memory objects associated
with it. Therefore comparing the number of Lib Cache objects (e.g. in
v$librarycache), with the number of Lib Cache Memory Objects is invalid.
Est LC Est LC Est LC Est LC
Shared SP Est LC Time Time Load Load Est LC
Pool Size Size Est LC Saved Saved Time Time Mem
Size(M) Factr (M) Mem Obj (s) Factr (s) Factr Obj Hits
224 .2 130 9,174 380 1.0 91 1.0 408,867
352 .3 171 12,647 381 1.0 90 1.0 409,226
480 .4 171 12,647 381 1.0 90 1.0 409,226
608 .5 171 12,647 381 1.0 90 1.0 409,226
736 .6 171 12,647 381 1.0 90 1.0 409,226
864 .7 171 12,647 381 1.0 90 1.0 409,226
992 .8 171 12,647 381 1.0 90 1.0 409,226
1,120 .9 171 12,647 381 1.0 90 1.0 409,226
1,248 1.0 171 12,647 381 1.0 90 1.0 409,226
1,376 1.1 171 12,647 381 1.0 90 1.0 409,226
1,504 1.2 171 12,647 381 1.0 90 1.0 409,226
1,632 1.3 171 12,647 381 1.0 90 1.0 409,226
1,760 1.4 171 12,647 381 1.0 90 1.0 409,226
1,888 1.5 171 12,647 381 1.0 90 1.0 409,226
2,016 1.6 171 12,647 381 1.0 90 1.0 409,226
2,144 1.7 171 12,647 381 1.0 90 1.0 409,226
2,272 1.8 171 12,647 381 1.0 90 1.0 409,226
2,400 1.9 171 12,647 381 1.0 90 1.0 409,226
2,528 2.0 171 12,647 381 1.0 90 1.0 409,226
Java Pool Advisory DB/Inst: xxxx/xxxx Snap: 16599
Est LC Est LC Est LC Est LC
Java JP Est LC Time Time Load Load Est LC
Pool Size Size Est LC Saved Saved Time Time Mem
Size(M) Factr (M) Mem Obj (s) Factr (s) Factr Obj Hits
32 .1 6 142 2 1.0 23 1.0 142
64 .3 6 142 2 1.0 23 1.0 142
96 .4 6 142 2 1.0 23 1.0 142
128 .5 6 142 2 1.0 23 1.0 142
160 .6 6 142 2 1.0 23 1.0 142
192 .8 6 142 2 1.0 23 1.0 142
224 .9 6 142 2 1.0 23 1.0 142
256 1.0 6 142 2 1.0 23 1.0 142
288 1.1 6 142 2 1.0 23 1.0 142
320 1.3 6 142 2 1.0 23 1.0 142
352 1.4 6 142 2 1.0 23 1.0 142
384 1.5 6 142 2 1.0 23 1.0 142
416 1.6 6 142 2 1.0 23 1.0 142
448 1.8 6 142 2 1.0 23 1.0 142
480 1.9 6 142 2 1.0 23 1.0 142
512 2.0 6 142 2 1.0 23 1.0 142
Buffer Wait Statistics DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by wait time desc, waits desc
Class Waits Total Wait Time (s) Avg Time (ms)
data block 66 1 15
undo block 25 0 0
undo header 3 0 0
Enqueue Activity DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Enqueue stats gathered prior to 10i should not be compared with 10i data
-> ordered by Wait Time desc, Waits desc
Enqueue Type (Request Reason)
Requests Succ Gets Failed Gets Waits Wt Time (s) Av Wt Time(ms)
TX-Transaction (index contention)
1 1 0 1 0 22.00
Undo Segment Summary DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> Undo segment block stats:
-> uS - unexpired Stolen, uR - unexpired Released, uU - unexpired reUsed
-> eS - expired Stolen, eR - expired Released, eU - expired reUsed
Undo Undo Num Max Qry Max Tx Snap OutOf uS/uR/uU/
TS# Blocks Trans Len (s) Concurcy TooOld Space eS/eR/eU
1 5,497 6,716 2,708 4 0 0 0/0/0/0/0/0
Undo Segment Stats DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> ordered by Time desc
Undo Num Max Qry Max Tx Snap OutOf uS/uR/uU/
End Time Blocks Trans Len (s) Concy TooOld Space eS/eR/eU
07-Jul 17:24 26 161 2,708 1 0 0 0/0/0/0/0/0
07-Jul 17:14 27 143 2,108 2 0 0 0/0/0/0/0/0
07-Jul 17:04 27 226 1,508 1 0 0 0/0/0/0/0/0
07-Jul 16:54 1,565 1,734 204 4 0 0 0/0/0/0/0/0
07-Jul 16:44 2,985 3,078 145 4 0 0 0/0/0/0/0/0
07-Jul 16:34 867 1,374 0 4 0 0 0/0/0/0/0/0
Latch Activity DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> "Get Requests", "Pct Get Miss" and "Avg Slps/Miss" are statistics for
willing-to-wait latch get requests
-> "NoWait Requests", "Pct NoWait Miss" are for no-wait latch get requests
-> "Pct Misses" for both should be very close to 0.0
Pct Avg Wait Pct
Get Get Slps Time NoWait NoWait
Latch Name Requests Miss /Miss (s) Requests Miss
Consistent RBA 5,501 0.0 0 0
FOB s.o list latch 523 0.0 0 0
In memory undo latch 4,267 0.1 1.0 0 728 1.2
JOX SGA heap latch 22 0.0 0 0
JS queue state obj latch 25,992 0.0 0 0
JS slv state obj latch 338 0.0 0 0
KTF sga enqueue 8 0.0 0 1,092 0.0
KWQMN job cache list lat 12 0.0 0 0
KWQP Prop Status 415 0.0 0 0
MQL Tracking Latch 0 0 72 0.0
Memory Management Latch 18,075 0.0 0 1,207 0.0
PL/SQL warning settings 1,607 0.0 0 0
SQL memory manager latch 1 0.0 0 1,206 0.0
SQL memory manager worka 127,457 0.0 0.0 0 0
SWRF Alerted Metric Elem 13,029 0.0 0 0
Shared B-Tree 2,523 0.0 0 0
active checkpoint queue 1,560 0.0 0 0
active service list 6,791 0.0 0 0
archive control 8 0.0 0 0
begin backup scn array 40 0.0 0 0
cache buffer handles 4,560 0.0 0 0
cache buffers chains 14,704,024 0.0 0.2 1 3,447,993 0.0
cache buffers lru chain 62,381 0.3 0.4 2 3,121,799 0.4
channel handle pool latc 759 0.0 0 0
channel operations paren 14,505 0.0 0 0
checkpoint queue latch 67,923 0.0 0 16,481 0.0
child cursor hash table 36,508 0.0 0 0
client/application info 16 0.0 0 0
compile environment latc 1,063 0.0 0 0
cursor bind value captur 125 0.0 0 384 1.0
dictionary lookup 107 0.0 0 0
dml lock allocation 52,017 0.1 0.0 0 0
dummy allocation 839 0.4 0.0 0 0
enqueue hash chains 186,347 0.0 0.1 0 0
enqueues 122,225 0.0 0.0 0 0
event group latch 230 0.0 0 0
file cache latch 153 0.0 0 0
global KZLD latch for me 110 0.0 0 0
hash table column usage 512 0.0 0 138,833 0.0
hash table modification 125 0.0 0 0
internal temp table obje 3 0.0 0 0
job workq parent latch 0 0 388 0.0
job_queue_processes para 172 0.0 0 0
ksuosstats global area 243 0.0 0 0
ktm global data 175 0.0 0 0
kwqbsn:qsga 2,523 0.0 0 0
lgwr LWN SCN 6,225 0.0 0 0
library cache 1,069,757 0.1 0.3 5 2,857 227.5
library cache load lock 10,002 0.0 0 0
library cache lock 277,733 0.0 0.0 0 0
library cache lock alloc 4,092 0.0 0 0
library cache pin 776,264 0.0 0.0 0 0
library cache pin alloca 4,018 0.0 0 0
list of block allocation 1,044 0.0 0 0
loader state object free 460 0.0 0 0
longop free list parent 1,357 0.0 0 19,547 0.0
message pool operations 334 0.0 0 0
messages 37,979 0.0 0.9 0 0
mostly latch-free SCN 6,237 0.0 0.0 0 0
multiblock read objects 351,202 0.0 0.0 0 0
Latch Activity DB/Inst: xxxx/xxxx Snaps: 16598-16599
-> "Get Requests", "Pct Get Miss" and "Avg Slps/Miss" are statistics for
willing-to-wait latch get requests
-> "NoWait Requests", "Pct NoWait Miss" are for no-wait latch get requestscontd..............
Edited by: LazyDBA10g on Jul 8, 2009 4:51 AM -
How can I use AirportExtreme to extend range of iMac based AirportNetwork ?
I've read a lot of infomation about using Airport Extreme or Express to extend a network that has an Airport Extreme base station as its 'hub' via WDS, but nothing about the case where the 'hub' (that creates the network and is connected to the internet) is not a base station, but a computer.
I have a cable modem connected directly (Ethernet) to my iMac G5. My MacBookPro can connect to the internet via an Airport network created by the iMac, but i need to extend the range of this. A friend has given me an Airport Extreme that he isn't using and I have spent all day trying to get it to connect to the iMacs network ... to act as a 'relay', but can't see how to do it.
(I can get the iMac, and MacBookPro to connect to a network created by the Airport Extreme with no problems, but not the other way round) .... Please help, i'm going crazy with this !
Many Macs/ Many OS's desperate
Many Macs/ Many OS'sHi SGIII,
I just wanted to say thanks for kick starting me. I am well on my way to accomplishing this task with some modifications to the Applescript source you provided. I figured out that I would need to loop through the input and lookup each individual character in the dictionary (so I created a separate service to handle simple dictionary lookup). I parse the definition using your suggested code wrapped into a function, and then append the output. Right now it's close but not perfect: showing this output for the characters above:
"wǒshìAměiAguórén" (the A is wrong and the reason is that I need to change the delimiter to factor that some definitions will have a capital A in them). I will share the finished script on my pastebin.
----on run {input, parameters}
set my_string to "我是美国人" --input
set output to ""
repeat with counter_variable_name from 1 to count of my_string
set current_character to item counter_variable_name of my_string
set current_definition to do shell script "automator -i " & current_character & " ~/Library/Services/GetChineseDefinition.workflow"
set output to output & parseForPinyin(current_definition)
end repeat
--end run
on parseForPinyin(character_input)
set pyCharSet to {"a", "ā", "á", "ǎ", "à", "b", "c", "d", "e", "ē", "é", "ě", "è", "f", "g", "h", "i", "ī", "í", "ǐ", "ì", "j", "k", "l", "m", "n", "o", "ō", "ó", "ǒ", "ò", "p", "q", "r", "s", "t", "u", "ū", "ú", "ǔ", "ù", "ǖ", "ǚ", "ǜ", "w", "x", "y", "z"}
set {oTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "①"}
set cc to (character_input as string)'s text items's item 1's characters 2 thru -1
set py to ""
repeat with c in cc
if c is in pyCharSet then set py to py & c
end repeat
set AppleScript's text item delimiters to oTID
return py
end parseForPinyin
The GetChineseDictionary Service couldn't be simpler: -
Page error causes server to crash
These are the symptoms: we start loading a page and Oracle launches a process that hogs as much CPU as it can, slowing everything on the server to a near standstill. If we don't catch it within about 5 minutes, we cannot even log on to kill the process. Within a short space of time the OS is paging like crazy, and within about 10 minutes the 4GB of physical memory and 8GB of swap is all used up. The page never loads, and a few minutes after starting to load the page we get a 404 error. What happens after the available memory falls to zero is unpredictable but never good.
Our APEX/Oracle environment is as follows:
Product Build: 3.0.0.00.20
Language Preference: en-gb
NLS_CHARACTERSET: WE8ISO8859P1
DAD CHARACTERSET: ISO-8859-1
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
OS: Red Hat Linux ES4 64bit
First, I have to hold my hands up and say that it's always caused by an error that we have made, but often these are relatively trivial errors on the page that APEX will either gloss over or handle correctly 99 times out of a hundred (and certainly nothing obvious like an infinite loop). These kinds of problems also occur very rarely (thankfully), but what gets me is why the result is quite so catastrophic. I should also say that we're talking about a development environment containing very little data - the example we tested is a page with 3 report regions each based on fewer than 100 rows of data, comprising around 20 numeric columns, some dates, flags and audit information.
What I'm keen to understand is whether this is a consequence of Oracle misconfiguration, or if there is anything else (other than never making any coding errors) that we can do to stop this from happening.
These are examples of the kinds of errors that have that lead to the above symptoms (although not necessarily to the output listed below):
1. Deleting a page item that a PL/SQL function within a page region references, without removing that reference. Mostly APEX will ignore such errors, treating the item value as null, but the difference seems to be where the item had a value in session state, and we did nothing to clear it after deleting the page item, although I suspect that this isn't the whole story, as this scenario doesn't predictably lead to the problem we're occasionally seeing.
2. Returning SQL from a PL/SQL function that did not correspond either with the report template in use (for example dummy SQL (within an error block) that doesn't match the report template we're using (for example a column needed for conditional row formatting is missing)), or with the report definition (numbers and attributes of columns displayed - sorry I can't be very specific on this score, but in these cases deleting and recreating the report region with the same source has cured it).
3. Other errors in the region PL/SQL source, such as referring to the wrong package when declaring a type, causing a type mismatch error.
The latest page we had this problem with was returning SQL from a packaged PL/SQL function, in which creating a SQL block had thrown a 'character string buffer too small' error, and returned a dummy SQL string that did not contain a header column referenced in the report template, although some supposition has gone into that, as the focus was more on fixing the problem than pinning down its exact cause.
The Apache logs don't tell us a great deal, other than that the server is in a great deal of trouble. There is nothing to indicate the start of the problem, but after a while we gets lots of entries like this:
[<date/time>] [warn] [client <ip>] mod_plsql: Long running URL [pls/htmldb/wwv_flow.accept] timed out
Later we get lots of:
[<date/time>] [error] [client <ip>] [ecid: 1248707261:<ip>:24047:0:1,0] mod_plsql: /pls/htmldb/f HTTP-503 ORA-3113
And a few:
[<date/time>] [warn] [client <ip>] [ecid: 1248707264:<ip>:24081:0:1,0] mod_plsql: DMS Logging: Unable to read data from <Apache path>/Apache/modplsql/cache/modplsql.lck
Plus a smattering of:
[<date/time>] [error] [client <ip>] [ecid: 1248707384:<ip>:25588:0:6710,0] mod_plsql: Database (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<server name>)(PORT=1530)))(CONNECT_DATA=(SERVICE_NAME=<service>))) Failed (time=10190ms rc=-1 ORA-1013)
[<date/time>] [error] [client 10.100.36.48] [ecid: 1248707384:<ip>:25588:0:6710,0] mod_plsql: Failed to reset database connection (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<server name>)(PORT=1530)))(CONNECT_DATA=(SERVICE_NAME=<service>))) rc=-1 ORA-1013 ORA-01013: user requested cancel of current operation\n
[<date/time>] [warn] [client <ip>] [ecid: 1248707384:<ip>:25588:0:6710,0] mod_plsql: Discarded pooled connection (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<server name>)(PORT=1530)))(CONNECT_DATA=(SERVICE_NAME=<service>))) because of ping failure
On the database side, it's difficult for us to figure out what's happening, but it looks like APEX is trying to run an error-handling routine, which makes sense, but it does appear to be locked into a try-fail-retry cycle. We loaded an APEX page that had previously exhibited those symptoms with the DBAs running a trace, and the highlights of the TKPROF output were:
This SQL: SELECT MESSAGE_TEXT, DECODE(MESSAGE_LANGUAGE,LOWER(NVL(:B3 ,:B2 )),1,0)
MESSAGE_ORDER
FROM
WWV_FLOW_MESSAGES$ WHERE SECURITY_GROUP_ID = 10 AND (MESSAGE_LANGUAGE =
LOWER(NVL(:B3 ,:B2 )) OR MESSAGE_LANGUAGE = LOWER(SUBSTR(NVL(:B3 ,:B2 ),1,2)
)) AND NAME = UPPER(:B1 ) ORDER BY 2 DESC
was run approx 45,000 times, returning no rows.
This SQL: SELECT MESSAGE_TEXT, DECODE(MESSAGE_LANGUAGE,LOWER(NVL(:B5 ,:B4 )),1,0)
MESSAGE_ORDER
FROM
WWV_FLOW_MESSAGES$ WHERE FLOW_ID = NVL(:B7 , :B6 ) AND (MESSAGE_LANGUAGE =
LOWER(NVL(:B5 ,:B4 )) OR MESSAGE_LANGUAGE = LOWER(SUBSTR(NVL(:B5 ,:B4 ),1,2)
)) AND SECURITY_GROUP_ID = DECODE(NVL(:B2 ,0),0,:B3 ,:B2 ) AND NAME =
UPPER(:B1 ) ORDER BY 2 DESC
was also run approx 45,000 times, returning no rows.
This SQL: SELECT M.MESSAGE_TEXT
FROM
WWV_FLOW_MESSAGES$ M, WWV_FLOWS F WHERE M.NAME = UPPER(:B2 ) AND
M.MESSAGE_LANGUAGE = F.FLOW_LANGUAGE AND F.ID = :B1 AND M.SECURITY_GROUP_ID
= 10
was also run approx 45,000 times, returning no rows.
This SQL: SELECT DECODE(MESSAGE_LANGUAGE,'en-us',0,1) WEIGHT, MESSAGE_TEXT
FROM
WWV_FLOW_MESSAGES$ WHERE NAME = UPPER(:B1 ) AND SECURITY_GROUP_ID = 10 ORDER
BY 1 ASC
was also run approx 45,000 times, returning 1 row per execution.
This SQL: SELECT PLUG_SOURCE
FROM
WWV_FLOW_PAGE_PLUGS WHERE ID = :B1
was run nearly 13,000 times, returning 1 row per execution.
This SQL: SELECT USER_ID
FROM
SYS.ALL_USERS WHERE USERNAME = UPPER(:B1 )
was run nearly 6,500 times, returning no rows.
This SQL: SELECT MESSAGE
FROM
WWV_FLOW_DEBUG WHERE ID = :B1 ORDER BY SEQ
was also run nearly 6,500 times, returning no rows.
And so it goes on. Later we have:
SELECT ID, CURRENT_TAB, CURRENT_TAB_FONT_ATTR, NON_CURRENT_TAB,
NON_CURRENT_TAB_FONT_ATTR, CURRENT_IMAGE_TAB, NON_CURRENT_IMAGE_TAB,
TOP_CURRENT_TAB, TOP_CURRENT_TAB_FONT_ATTR, TOP_NON_CURRENT_TAB,
TOP_NON_CURRENT_TAB_FONT_ATTR, HEADER_TEMPLATE, BOX, FOOTER_TEMPLATE,
NAVIGATION_BAR, NAVBAR_ENTRY, SUCCESS_MESSAGE, BODY_TITLE, MESSAGE,
TABLE_BGCOLOR, TABLE_CATTRIBUTES, REGION_TABLE_CATTRIBUTES, HEADING_BGCOLOR,
FONT_SIZE, FONT_FACE, APP_TAB_BEFORE_TABS, APP_TAB_CURRENT_TAB,
APP_TAB_NON_CURRENT_TAB, APP_TAB_AFTER_TABS, NVL(DEFAULT_BUTTON_POSITION,
'TOP') DEFAULT_BUTTON_POSITION
FROM
WWV_FLOW_TEMPLATES WHERE ID = :B1
executing nearly 6,500 times and returning 1 row per execution.
and the same for this SQL: SELECT ERROR_PAGE_TEMPLATE
FROM
WWV_FLOW_TEMPLATES WHERE ID = NVL(:B3 ,NVL(:B2 ,:B1 ))
Later we have some very obscure-looking data dictionary lookups.
I'd be interested to know if anyone has any thoughts on what might be occurring, or what other information I should obtain to provide clues as to what is going wrong.
Many thanks for your help.
Regards,
John.PLEASE READ THE FAQ FOR THIS FORUM.. Posting to threads this old is USELESS!! The participants are NOT going to be alerted to your question..
Next time, post a NEW question, with a link to the old thread, ok??
Also include some relevant information like:
Database version (10g, 11g, XE, Standard, Enterprise)
Web Server?
Browser Involved?
Heck, even posting sample code to oracle's hosted site would be helpful..
Thank you,
Tony Miller
Raleigh, NC -
What are the best solutions for data warehouse configuration in 10gR2
I need help on solutions to be provided to my Client for upgrading the data warehouse.
Current Configuration: Oracle database 9.2.0.8. This database contains the data warehouse and one more data mart on the same host.Sizes are respectively 6 Terabyte(retention policy of 3 years+current year) and 1 Terabyte. The ETL tool and BO Reporting tools are also hosted on the same host. This current configuration is really performing poor.
Client cannot go for a major architectural or configuration changes to its existing environment now due to some constraints.
However, they have agreed to separate out the databases on separate hosts from the ETL tools and BO objects. Also we are planning to upgrade the database to 10gR2 to attain stability, better performance and overcome current headaches.
We cannot upgrade the database to 11g as the BO is at a version 6.5 which isn't compatible with Oracle 11g. And Client cannot afford to upgrade anything else other than the database.
So, my role is very vital in providing a perfect solution towards better performance and take a successful migration of Oracle Database from one host to another (similar platform and OS) in addition to upgrade.
I have till now thought of the following:
Move the Oracle database and data mart to separate host.
The host will be the same platform, that is, HP Superdome with HP-UX 32-bit OS (we cannot change to 64-bit as ETL tool doesn't support)
Install new Oracle database 10g on the new host and move the data to it.
Exploring all new features of 10gR2 to help data warehouse, that is, SQL MODEL Clause introduction, Parallel processing, Partitioning, Data Pump, SPA to study pre and post migrations.
Also thinking of RAC to provide more better solution as our main motive is to show a tremendous performance enhancement.
I need all your help to prepare a good road map for my assignment. Please suggest.
Thanks,
TapanSGA=27.5 GB and PGA=50 MB
Also I am pasting part of STATSPACK Report, eliminating the snaps of DB bounce. Please suggest the scope of improvement in this case.
STATSPACK report for
Snap Id Snap Time Sessions Curs/Sess Comment
Begin Snap: 582946 11-Mar-13 20:02:16 46 12.8
End Snap: 583036 12-Mar-13 18:24:24 60 118.9
Elapsed: 1,342.13 (mins)
Cache Sizes (end)
~~~~~~~~~~~~~~~~~
Buffer Cache: 21,296M Std Block Size: 16K
Shared Pool Size: 6,144M Log Buffer: 16,384K
Load Profile
~~~~~~~~~~~~ Per Second Per Transaction
Redo size: 1,343,739.01 139,883.39
Logical reads: 100,102.54 10,420.69
Block changes: 3,757.42 391.15
Physical reads: 6,670.84 694.44
Physical writes: 874.34 91.02
User calls: 1,986.04 206.75
Parses: 247.87 25.80
Hard parses: 5.82 0.61
Sorts: 1,566.76 163.10
Logons: 10.99 1.14
Executes: 1,309.79 136.35
Transactions: 9.61
% Blocks changed per Read: 3.75 Recursive Call %: 43.34
Rollback per transaction %: 3.49 Rows per Sort: 190.61
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 99.90 Redo NoWait %: 100.00
Buffer Hit %: 96.97 In-memory Sort %: 100.00
Library Hit %: 99.27 Soft Parse %: 97.65
Execute to Parse %: 81.08 Latch Hit %: 99.58
Parse CPU to Parse Elapsd %: 3.85 % Non-Parse CPU: 99.34
Shared Pool Statistics Begin End
Memory Usage %: 7.11 50.37
% SQL with executions>1: 62.31 46.46
% Memory for SQL w/exec>1: 26.75 13.47
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~ % Total
Event Waits Time (s) Ela Time
CPU time 492,062 43.66
db file sequential read 157,418,414 343,549 30.49
library cache pin 92,339 66,759 5.92
PX qref latch 63,635 43,845 3.89
db file scattered read 2,506,806 41,677 3.70
Background Wait Events for DB: P7IN1 Instance: P7IN1 Snaps: 582946 -583036
-> ordered by wait time desc, waits desc (idle events last)
Avg
Total Wait wait Waits
Event Waits Timeouts Time (s) (ms) /txn
log file sequential read 176,386 0 3,793 22 0.2
log file parallel write 2,685,833 0 1,813 1 3.5
db file parallel write 239,166 0 1,350 6 0.3
control file parallel write 33,432 0 79 2 0.0
LGWR wait for redo copy 478,120 536 75 0 0.6
rdbms ipc reply 10,027 0 47 5 0.0
control file sequential read 32,414 0 40 1 0.0
db file scattered read 4,101 0 30 7 0.0
db file sequential read 13,946 0 29 2 0.0
direct path read 203,694 0 14 0 0.3
log buffer space 363 0 13 37 0.0
latch free 3,766 0 9 2 0.0
direct path write 80,491 0 6 0 0.1
async disk IO 351,955 0 4 0 0.5
enqueue 28 0 1 21 0.0
buffer busy waits 1,281 0 1 0 0.0
log file single write 172 0 0 1 0.0
rdbms ipc message 10,563,204 251,286 992,837 94 13.7
pmon timer 34,751 34,736 78,600 2262 0.0
smon timer 7,462 113 76,463 10247 0.0
Instance Activity Stats for DB: P7IN1 Instance: P7IN1 Snaps: 582946 -583036
Statistic Total per Second per Trans
CPU used by this session 49,206,154 611.0 63.6
CPU used when call started 49,435,735 613.9 63.9
CR blocks created 6,740,777 83.7 8.7
Cached Commit SCN referenced 423,253,503 5,256.0 547.2
Commit SCN cached 19,165 0.2 0.0
DBWR buffers scanned 48,276,489 599.5 62.4
DBWR checkpoint buffers written 6,959,752 86.4 9.0
DBWR checkpoints 454 0.0 0.0
DBWR free buffers found 44,817,183 556.5 57.9
DBWR lru scans 137,149 1.7 0.2
DBWR make free requests 162,528 2.0 0.2
DBWR revisited being-written buff 4,220 0.1 0.0
DBWR summed scan depth 48,276,489 599.5 62.4
DBWR transaction table writes 5,036 0.1 0.0
DBWR undo block writes 2,989,436 37.1 3.9
DDL statements parallelized 3,723 0.1 0.0
DFO trees parallelized 4,157 0.1 0.0
DML statements parallelized 3 0.0 0.0
OS Block input operations 29,850 0.4 0.0
OS Block output operations 1,591 0.0 0.0
OS Characters read/written 182,109,814,791 2,261,447.1 235,416.9
OS Integral unshared data size ################## 242,463,432.4 ############
OS Involuntary context switches 188,257,786 2,337.8 243.4
OS Maximum resident set size 43,518,730,619 540,417.4 56,257.5
OS Page reclaims 159,430,953 1,979.8 206.1
OS Signals received 5,260,938 65.3 6.8
OS Socket messages received 79,438,383 986.5 102.7
OS Socket messages sent 93,064,176 1,155.7 120.3
OS System time used 10,936,430 135.8 14.1
OS User time used 132,043,884 1,639.7 170.7
OS Voluntary context switches 746,207,739 9,266.4 964.6
PX local messages recv'd 55,120,663 684.5 71.3
PX local messages sent 55,120,817 684.5 71.3
Parallel operations downgraded 1 3 0.0 0.0
Parallel operations not downgrade 4,154 0.1 0.0
SQL*Net roundtrips to/from client 155,422,335 1,930.0 200.9
SQL*Net roundtrips to/from dblink 18 0.0 0.0
active txn count during cleanout 16,529,551 205.3 21.4
background checkpoints completed 43 0.0 0.0
background checkpoints started 43 0.0 0.0
background timeouts 280,202 3.5 0.4
branch node splits 4,428 0.1 0.0
buffer is not pinned count 6,382,440,322 79,257.4 8,250.7
buffer is pinned count 9,675,661,370 120,152.8 12,507.9
bytes received via SQL*Net from c 67,384,496,376 836,783.4 87,109.3
bytes received via SQL*Net from d 6,142 0.1 0.0
bytes sent via SQL*Net to client 50,240,643,657 623,890.4 64,947.1
bytes sent via SQL*Net to dblink 3,701 0.1 0.0
calls to get snapshot scn: kcmgss 145,385,064 1,805.4 187.9
calls to kcmgas 36,816,132 457.2 47.6
calls to kcmgcs 3,514,770 43.7 4.5
change write time 369,373 4.6 0.5
cleanout - number of ktugct calls 20,954,488 260.2 27.1
cleanouts and rollbacks - consist 6,357,174 78.9 8.2
cleanouts only - consistent read 10,078,802 125.2 13.0
cluster key scan block gets 69,403,565 861.9 89.7
Instance Activity Stats for DB: P7IN1 Instance: P7IN1 Snaps: 582946 -583036
Statistic Total per Second per Trans
cluster key scans 41,311,211 513.0 53.4
commit cleanout failures: block l 413,776 5.1 0.5
commit cleanout failures: buffer 414 0.0 0.0
commit cleanout failures: callbac 41,194 0.5 0.1
commit cleanout failures: cannot 174,382 2.2 0.2
commit cleanouts 11,469,056 142.4 14.8
commit cleanouts successfully com 10,839,290 134.6 14.0
commit txn count during cleanout 17,155,424 213.0 22.2
consistent changes 145,418,277 1,805.8 188.0
consistent gets 8,043,252,188 99,881.4 10,397.7
consistent gets - examination 3,180,028,047 39,489.7 4,110.9
current blocks converted for CR 9 0.0 0.0
cursor authentications 14,926 0.2 0.0
data blocks consistent reads - un 143,706,500 1,784.6 185.8
db block changes 302,577,666 3,757.4 391.2
db block gets 336,562,217 4,179.4 435.1
deferred (CURRENT) block cleanout 2,912,793 36.2 3.8
dirty buffers inspected 627,174 7.8 0.8
enqueue conversions 1,296,337 16.1 1.7
enqueue releases 13,053,200 162.1 16.9
enqueue requests 13,239,092 164.4 17.1
enqueue timeouts 185,878 2.3 0.2
enqueue waits 114,120 1.4 0.2
exchange deadlocks 7,390 0.1 0.0
execute count 105,475,101 1,309.8 136.4
free buffer inspected 1,604,407 19.9 2.1
free buffer requested 258,126,047 3,205.4 333.7
hot buffers moved to head of LRU 22,793,576 283.1 29.5
immediate (CR) block cleanout app 16,436,010 204.1 21.3
immediate (CURRENT) block cleanou 2,860,013 35.5 3.7
index fast full scans (direct rea 12,375 0.2 0.0
index fast full scans (full) 3,733 0.1 0.0
index fast full scans (rowid rang 192,148 2.4 0.3
index fetch by key 1,321,024,486 16,404.5 1,707.7
index scans kdiixs1 406,165,684 5,043.8 525.1
leaf node 90-10 splits 50,373 0.6 0.1
leaf node splits 697,235 8.7 0.9
logons cumulative 884,756 11.0 1.1
messages received 3,276,719 40.7 4.2
messages sent 3,257,171 40.5 4.2
no buffer to keep pinned count 569 0.0 0.0
no work - consistent read gets 4,406,092,172 54,715.0 5,695.8
opened cursors cumulative 20,527,704 254.9 26.5
parse count (failures) 267,088 3.3 0.4
parse count (hard) 468,996 5.8 0.6
parse count (total) 19,960,548 247.9 25.8
parse time cpu 323,024 4.0 0.4
parse time elapsed 8,393,422 104.2 10.9
physical reads 537,189,332 6,670.8 694.4
physical reads direct 292,545,140 3,632.8 378.2
physical writes 70,409,002 874.3 91.0
physical writes direct 59,248,394 735.8 76.6
physical writes non checkpoint 69,103,391 858.1 89.3
pinned buffers inspected 11,893 0.2 0.0
prefetched blocks 95,892,161 1,190.8 124.0
prefetched blocks aged out before 1,495,883 18.6 1.9
Instance Activity Stats for DB: P7IN1 Instance: P7IN1 Snaps: 582946 -583036
Statistic Total per Second per Trans
process last non-idle time ################## ############## ############
queries parallelized 417 0.0 0.0
recursive calls 122,323,299 1,519.0 158.1
recursive cpu usage 3,144,533 39.1 4.1
redo blocks written 180,881,558 2,246.2 233.8
redo buffer allocation retries 5,400 0.1 0.0
redo entries 164,728,513 2,045.6 213.0
redo log space requests 1,006 0.0 0.0
redo log space wait time 2,230 0.0 0.0
redo ordering marks 2,563 0.0 0.0
redo size 108,208,614,904 1,343,739.0 139,883.4
redo synch time 558,520 6.9 0.7
redo synch writes 2,343,824 29.1 3.0
redo wastage 1,126,585,600 13,990.0 1,456.4
redo write time 718,655 8.9 0.9
redo writer latching time 7,763 0.1 0.0
redo writes 2,685,833 33.4 3.5
rollback changes - undo records a 522,742 6.5 0.7
rollbacks only - consistent read 335,177 4.2 0.4
rows fetched via callback 1,100,990,382 13,672.1 1,423.3
session connect time ################## ############## ############
session cursor cache count 1,061 0.0 0.0
session cursor cache hits 1,687,796 21.0 2.2
session logical reads 8,061,057,193 100,102.5 10,420.7
session pga memory 1,573,228,913,832 19,536,421.0 2,033,743.8
session pga memory max 1,841,357,626,496 22,866,054.4 2,380,359.0
session uga memory 1,074,114,630,336 13,338,399.4 1,388,529.0
session uga memory max 386,645,043,296 4,801,374.0 499,823.6
shared hash latch upgrades - no w 410,360,146 5,095.9 530.5
sorts (disk) 2,657 0.0 0.0
sorts (memory) 126,165,625 1,566.7 163.1
sorts (rows) 24,048,783,304 298,638.8 31,088.3
summed dirty queue length 5,438,201 67.5 7.0
switch current to new buffer 1,302,798 16.2 1.7
table fetch by rowid 6,201,503,534 77,010.5 8,016.8
table fetch continued row 26,649,697 330.9 34.5
table scan blocks gotten 1,864,435,032 23,152.6 2,410.2
table scan rows gotten 43,639,997,280 541,923.3 56,414.3
table scans (cache partitions) 26,112 0.3 0.0
table scans (direct read) 246,243 3.1 0.3
table scans (long tables) 340,200 4.2 0.4
table scans (rowid ranges) 359,617 4.5 0.5
table scans (short tables) 9,111,559 113.2 11.8
transaction rollbacks 4,819 0.1 0.0
transaction tables consistent rea 824 0.0 0.0
transaction tables consistent rea 1,386,848 17.2 1.8
user calls 159,931,913 1,986.0 206.8
user commits 746,543 9.3 1.0
user rollbacks 27,020 0.3 0.0
write clones created in backgroun 7 0.0 0.0
write clones created in foregroun 4,350 0.1 0.0
Buffer Pool Statistics for DB: P7IN1 Instance: P7IN1 Snaps: 582946 -583036
-> Standard block size Pools D: default, K: keep, R: recycle
-> Default Pools for other block sizes: 2k, 4k, 8k, 16k, 32k
Free Write Buffer
Number of Cache Buffer Physical Physical Buffer Complete Busy
P Buffers Hit % Gets Reads Writes Waits Waits Waits
D 774,144 95.6############ 233,869,082 10,089,734 0 0########
K 504,000 99.9############ 3,260,227 1,070,338 0 0 65,898
R 63,504 96.2 196,079,539 7,511,863 535 0 0 0
Buffer wait Statistics for DB: P7IN1 Instance: P7IN1 Snaps: 582946 -583036
-> ordered by wait time desc, waits desc
Tot Wait Avg
Class Waits Time (s) Time (ms)
data block 7,791,121 14,676 2
file header block 587 101 172
undo header 151,617 71 0
segment header 299,312 58 0
1st level bmb 45,235 7 0
bitmap index block 392 1 3
undo block 4,250 1 0
2nd level bmb 14 0 0
system undo header 2 0 0
3rd level bmb 1 0 0
Latch Activity for DB: P7IN1 Instance: P7IN1 Snaps: 582946 -583036
->"Get Requests", "Pct Get Miss" and "Avg Slps/Miss" are statistics for
willing-to-wait latch get requests
->"NoWait Requests", "Pct NoWait Miss" are for no-wait latch get requests
->"Pct Misses" for both should be very close to 0.0
Pct Avg Wait Pct
Get Get Slps Time NoWait NoWait
Latch Requests Miss /Miss (s) Requests Miss
Consistent RBA 2,686,230 0.0 0.2 0 0
FAL request queue 86 0.0 0 0
FAL subheap alocation 0 0 2 0.0
FIB s.o chain latch 1,089 0.0 0 0
FOB s.o list latch 4,589,986 0.5 0.0 2 0
NLS data objects 1 0.0 0 0
SQL memory manager worka 5,963 0.0 0 0
Token Manager 0 0 2 0.0
active checkpoint queue 719,439 0.3 0.1 0 1 0.0
alert log latch 184 0.0 0 2 0.0
archive control 4,365 0.0 0 0
archive process latch 1,808 0.6 0.6 0 0
begin backup scn array 3,387,572 0.0 0.0 0 0
cache buffer handles 1,577,222 0.2 0.0 0 0
cache buffers chains ############## 0.5 0.0 430 354,357,972 0.3
cache buffers lru chain 17,153,023 0.1 0.0 1 385,505,654 0.5
cas latch 538,804,153 0.3 0.0 7 0
channel handle pool latc 1,776,950 0.5 0.0 0 0
channel operations paren 2,901,371 0.3 0.0 0 0
checkpoint queue latch 99,329,722 0.0 0.0 0 11,153,369 0.1
child cursor hash table 3,927,427 0.0 0.0 0 0
commit callback allocati 8,739 0.0 0 0
dictionary lookup 7,980 0.0 0 0
dml lock allocation 6,767,990 0.1 0.0 0 0
dummy allocation 1,898,183 0.2 0.1 0 0
enqueue hash chains 27,741,348 0.1 0.1 4 0
enqueues 17,450,161 0.3 0.1 6 0
error message lists 132,828 2.6 0.2 1 0
event group latch 884,066 0.0 0.7 0 0
event range base latch 1 0.0 0 0
file number translation 34 38.2 0.9 0 0
global tx hash mapping 577,859 0.0 0 0
hash table column usage 4,062 0.0 0 8,757,234 0.0
hash table modification 16 0.0 0 2 0.0
i/o slave adaptor 0 0 2 0.0
job workq parent latch 4 100.0 0.3 0 494 8.7
job_queue_processes para 1,950 0.0 0 2 0.0
ksfv messages 0 0 4 0.0
ktm global data 8,219 0.0 0 0
lgwr LWN SCN 2,687,862 0.0 0.0 0 0
library cache 310,882,781 0.9 0.0 34 104,759 4.0
library cache load lock 30,369 0.0 0.3 0 0
library cache pin 153,821,358 0.1 0.0 2 0
library cache pin alloca 126,316,296 0.1 0.0 4 0
list of block allocation 2,730,808 0.3 0.0 0 0
loader state object free 566,036 0.1 0.0 0 0
longop free list parent 197,368 0.0 0 8,390 0.0
message pool operations 14,424 0.0 0.0 0 0
messages 25,931,764 0.1 0.0 1 0
mostly latch-free SCN 40,124,948 0.3 0.0 5 0
Latch Sleep breakdown for DB: P7IN1 Instance: P7IN1 Snaps: 582946 -583036
-> ordered by misses desc
Get Spin &
Latch Name Requests Misses Sleeps Sleeps 1->4
cache buffers chains ############## 74,770,083 1,062,119 73803903/884
159/71439/10
582/0
redo allocation 170,107,983 3,441,055 149,631 3292872/1467
48/1426/9/0
library cache 310,882,781 2,831,747 89,240 2754499/6780
6/7405/2037/
0
shared pool 158,471,190 1,755,922 55,268 1704342/4836
9/2826/385/0
cas latch 538,804,153 1,553,992 6,927 1547125/6808
/58/1/0
row cache objects 161,142,207 1,176,998 27,658 1154070/1952
0/2560/848/0
process queue reference 1,893,917,184 1,119,215 106,454 78758/4351/1
36/0/0
Library Cache Activity for DB: P7IN1 Instance: P7IN1 Snaps: 582946 -583036
->"Pct Misses" should be very low
Get Pct Pin Pct Invali-
Namespace Requests Miss Requests Miss Reloads dations
BODY 3,137,721 0.0 3,137,722 0.0 0 0
CLUSTER 6,741 0.1 4,420 0.2 0 0
INDEX 353,708 0.8 361,065 1.2 0 0
SQL AREA 17,052,073 0.3 54,615,678 0.9 410,682 19,628
TABLE/PROCEDURE 3,521,884 0.2 12,922,737 0.1 619 0
TRIGGER 1,975,977 0.0 1,975,977 0.0 1 0
SGA Memory Summary for DB: P7IN1 Instance: P7IN1 Snaps: 582946 -583036
SGA regions Size in Bytes
Database Buffers 22,330,474,496
Fixed Size 779,288
Redo Buffers 17,051,648
Variable Size 7,180,648,448
sum 29,528,953,880 -
Statspack interpreting help - buffer busy waits
Hi,
I've got statspack report from 9.2.0.8 DB, cpu_count = 12 , there is 'buffer busy waits' in top 5 .
Is there a problem ?
DB Name DB Id Instance Inst Num Release Cluster Host
XXXX 138180125 XXXX 1 9.2.0.8.0 NO X1
Snap Id Snap Time Sessions Curs/Sess Comment
Begin Snap: 35980 14-Jul-10 01:00:02 17 8.8
End Snap: 35984 14-Jul-10 05:00:01 17 8.8
Elapsed: 239.98 (mins)
Cache Sizes (end)
~~~~~~~~~~~~~~~~~
Buffer Cache: 3,072M Std Block Size: 8K
Shared Pool Size: 512M Log Buffer: 4,096K
Load Profile
~~~~~~~~~~~~ Per Second Per Transaction
Redo size: 317,746.23 4,498.59
Logical reads: 11,150.77 157.87
Block changes: 2,134.89 30.23
Physical reads: 466.05 6.60
Physical writes: 133.62 1.89
User calls: 82.42 1.17
Parses: 67.92 0.96
Hard parses: 0.02 0.00
Sorts: 106.77 1.51
Logons: 0.03 0.00
Executes: 516.58 7.31
Transactions: 70.63
% Blocks changed per Read: 19.15 Recursive Call %: 95.00
Rollback per transaction %: 0.00 Rows per Sort: 4.34
Instance Efficiency Percentages (Target 100%)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 99.03 Redo NoWait %: 100.00
Buffer Hit %: 95.91 In-memory Sort %: 100.00
Library Hit %: 100.00 Soft Parse %: 99.98
Execute to Parse %: 86.85 Latch Hit %: 99.65
Parse CPU to Parse Elapsd %: 7.82 % Non-Parse CPU: 99.91
Shared Pool Statistics Begin End
Memory Usage %: 43.53 43.92
% SQL with executions>1: 64.89 70.00
% Memory for SQL w/exec>1: 55.95 61.64
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~ % Total
Event Waits Time (s) Ela Time
SQL*Net message from dblink 797,760 44,575 41.69
PL/SQL lock timer 1,207 34,992 32.73
db file sequential read 3,297,249 17,047 15.94
buffer busy waits 1,558,995 3,987 3.73
CPU time 3,204 3.00
Statistic Total per Second per Trans
enqueue timeouts 299 0.0 0.0
enqueue waits 425 0.0 0.0
exchange deadlocks 41 0.0 0.0
execute count 7,438,297 516.6 7.3
failed probes on index block recl 13 0.0 0.0
free buffer inspected 107,385 7.5 0.1
free buffer requested 7,344,870 510.1 7.2
hot buffers moved to head of LRU 2,332,802 162.0 2.3
immediate (CR) block cleanout app 356,492 24.8 0.4
immediate (CURRENT) block cleanou 1,751,731 121.7 1.7
index crx upgrade (found) 7 0.0 0.0
index crx upgrade (positioned) 25,604 1.8 0.0
index fast full scans (full) 888 0.1 0.0
index fetch by key 6,008,269 417.3 5.9
index scans kdiixs1 2,343,163 162.7 2.3
leaf node 90-10 splits 330 0.0 0.0
leaf node splits 13,681 1.0 0.0
logons cumulative 447 0.0 0.0
messages received 2,760,503 191.7 2.7
messages sent 2,760,503 191.7 2.7
no buffer to keep pinned count 0 0.0 0.0
no work - consistent read gets 89,143,249 6,190.9 87.7
opened cursors cumulative 978,462 68.0 1.0
parse count (failures) 0 0.0 0.0
parse count (hard) 243 0.0 0.0
parse count (total) 977,939 67.9 1.0
parse time cpu 276 0.0 0.0
parse time elapsed 3,531 0.3 0.0
physical reads 6,710,684 466.1 6.6
physical reads direct 140,520 9.8 0.1
physical writes 1,924,011 133.6 1.9
physical writes direct 149,434 10.4 0.2
physical writes non checkpoint 1,160,293 80.6 1.1
pinned buffers inspected 88,165 6.1 0.1
prefetched blocks 2,965,135 205.9 2.9
prefetched blocks aged out before 1,485 0.1 0.0
process last non-idle time 14,401 1.0 0.0
recovery blocks read 0 0.0 0.0
recursive calls 22,566,381 1,567.2 22.2
recursive cpu usage 314,662 21.9 0.3
redo blocks written 9,712,190 674.5 9.6
redo buffer allocation retries 483 0.0 0.0
redo entries 17,147,344 1,190.9 16.9
redo log space requests 760 0.1 0.0
redo log space wait time 1,255 0.1 0.0
redo ordering marks 21 0.0 0.0
redo size 4,575,228,028 317,746.2 4,498.6
redo synch time 73,190 5.1 0.1
redo synch writes 333,440 23.2 0.3
redo wastage 240,517,096 16,703.7 236.5
redo write time 136,628 9.5 0.1
redo writer latching time 56 0.0 0.0
redo writes 865,653 60.1 0.9
rollback changes - undo records a 60,510 4.2 0.1
rows fetched via callback 3,948,006 274.2 3.9
session connect time 0 0.0 0.0
Statistic Total per Second per Trans
session logical reads 160,559,938 11,150.8 157.9
session pga memory 223,020,424 15,488.6 219.3
session pga memory max 841,058,240 58,410.9 827.0
session uga memory 682,912,005,944 47,427,738.5 671,472.1
session uga memory max 505,627,192 35,115.4 497.2
shared hash latch upgrades - no w 1,661,152 115.4 1.6
shared hash latch upgrades - wait 101 0.0 0.0
sorts (disk) 2 0.0 0.0
sorts (memory) 1,537,403 106.8 1.5
sorts (rows) 6,669,072 463.2 6.6
summed dirty queue length 71,613 5.0 0.1
switch current to new buffer 80,971 5.6 0.1
table fetch by rowid 79,047,167 5,489.8 77.7
table fetch continued row 5,013,545 348.2 4.9
table scan blocks gotten 10,328,271 717.3 10.2
table scan rows gotten 381,848,913 26,519.1 375.5
table scans (long tables) 82 0.0 0.0
table scans (short tables) 1,117,114 77.6 1.1
transaction rollbacks 32,437 2.3 0.0
transaction tables consistent rea 39 0.0 0.0
transaction tables consistent rea 82,904 5.8 0.1
user calls 1,186,828 82.4 1.2
user commits 1,017,037 70.6 1.0
user rollbacks 0 0.0 0.0
workarea executions - onepass 7 0.0 0.0
workarea executions - optimal 2,291,005 159.1 2.3
write clones created in backgroun 3 0.0 0.0
write clones created in foregroun 711 0.1 0.0
Class Waits Time (s) Time (ms)
data block 1,549,301 4,015 3
segment header 253 1 2
undo block 2,574 0 0
undo header 2,209 0 0
extent map 2 0 5
Eq Requests Succ Gets Failed Gets Waits Time (ms) Time (s)
TX 1,749,961 1,749,961 0 202 6.47 1
HW 20,789 20,789 0 223 .40 0
Pct Avg Wait Pct
Get Get Slps Time NoWait NoWait
Latch Requests Miss /Miss (s) Requests Miss
Consistent RBA 866,126 0.0 0.0 0 0
FIB s.o chain latch 594 0.0 0 0
FOB s.o list latch 2,891 0.0 0.0 0 0
SQL memory manager latch 4 0.0 0 4,793 0.0
SQL memory manager worka 3,266,221 0.0 0.0 0 0
active checkpoint queue 1,905,423 0.5 0.0 0 0
archive control 28 0.0 0 0
cache buffer handles 12,070 0.0 0 0
cache buffers chains 387,508,854 0.6 0.0 134 11,212,815 0.1
cache buffers lru chain 1,946,036 0.0 0.0 0 14,681,284 0.2
channel handle pool latc 668 0.0 0 0
channel operations paren 12,460 0.0 0.0 0 0
checkpoint queue latch 209,244,852 0.0 0.0 0 1,775,314 0.0
child cursor hash table 3,240 0.7 0.0 0 0
commit callback allocati 16 0.0 0 0
dictionary lookup 13 0.0 0 0
dml lock allocation 5,900,238 0.3 0.0 0 0
dummy allocation 894 0.2 0.0 0 0
enqueue hash chains 19,444,854 0.1 0.0 0 0
enqueues 9,380,299 0.7 0.0 0 0
event group latch 288 0.0 0 0
event range base latch 3 0.0 0 0
global tx hash mapping 4,988,645 0.0 0.0 0 0
hash table column usage 82 0.0 0 1,783 0.0
job workq parent latch 1 100.0 0.0 0 242 15.3
job_queue_processes para 287 0.0 0 0
ktm global data 265 0.0 0 0
lgwr LWN SCN 868,053 0.1 0.0 0 0
library cache 29,540,874 0.1 0.0 0 37 0.0
library cache load lock 102 0.0 0 0
library cache pin 24,145,848 0.0 0.0 0 0
library cache pin alloca 3,988,997 0.0 0.0 0 0
list of block allocation 363,684 0.0 0.0 0 0
loader state object free 912 0.0 0 0
longop free list parent 479 0.0 0 60 1.7
message pool operations 100 1.0 0.0 0 0
messages 8,036,523 0.3 0.0 0 0
mostly latch-free SCN 878,016 1.0 0.0 0 0
multiblock read objects 922,048 0.1 0.0 0 0
ncodef allocation latch 230 0.0 0 0
object stats modificatio 2,100 0.0 0 0
post/wait queue 709,603 0.0 0.0 0 334,338 0.0
process allocation 576 0.0 0 288 0.0
process group creation 576 0.2 0.0 0 0
redo allocation 18,881,467 0.7 0.0 0 0
redo copy 0 0 17,155,579 0.1
redo writing 4,513,716 0.2 0.0 0 0
resumable state object 48 0.0 0 0
row cache enqueue latch 3,556,148 0.1 0.0 0 0
row cache objects 6,671,783 0.1 0.0 0 0
Pct Avg Wait Pct
Get Get Slps Time NoWait NoWait
Latch Requests Miss /Miss (s) Requests Miss
sequence cache 1,533,482 0.0 0.0 0 0
session allocation 15,194,281 0.1 0.0 0 0
session idle bit 3,005,477 0.0 0.0 0 0
session switching 230 0.0 0 0
session timer 4,825 0.0 0 0
shared pool 2,114,153 0.0 0.0 0 0
sim partition latch 0 0 10,243 0.6
simulator hash latch 8,460,492 0.0 0.0 0 0
simulator lru latch 223,868 0.0 0.3 0 470,589 0.1
sort extent pool 1,823 0.5 0.0 0 0
temporary table state ob 16 0.0 0 0
transaction allocation 533,964 0.0 0 0
transaction branch alloc 1,259,723 0.1 0.0 0 0
undo global data 17,460,173 0.0 0.0 0 14,976 0.0
user lock 906 0.1 0.0 0 0
Get Spin &
Latch Name Requests Misses Sleeps Sleeps 1->4
cache buffers chains 387,508,854 2,447,832 12,701 2435135/1269
3/4/0/0
redo allocation 18,881,467 131,460 343 131118/341/1
/0/0
enqueues 9,380,299 62,436 122 62314/122/0/
0/0
library cache 29,540,874 38,344 80 38264/80/0/0
/0
messages 8,036,523 25,266 28 25238/28/0/0
/0
dml lock allocation 5,900,238 19,220 25 19195/25/0/0
/0
enqueue hash chains 19,444,854 10,510 27 10483/27/0/0
/0
active checkpoint queue la 1,905,423 9,896 36 9860/36/0/0/
0
library cache pin 24,145,848 8,451 17 8434/17/0/0/
0
mostly latch-free SCN 878,016 8,423 17 8406/17/0/0/
0
session allocation 15,194,281 8,290 33 8257/33/0/0/
0
redo writing 4,513,716 7,235 13 7222/13/0/0/
0
undo global data 17,460,173 4,113 8 4105/8/0/0/0
row cache objects 6,671,783 3,680 4 3676/4/0/0/0
row cache enqueue latch 3,556,148 2,015 1 2014/1/0/0/0
checkpoint queue latch 209,244,852 1,756 6 1750/6/0/0/0
transaction branch allocat 1,259,723 1,236 7 1229/7/0/0/0
shared pool 2,114,153 808 2 806/2/0/0/0
library cache pin allocati 3,988,997 649 1 648/1/0/0/0
cache buffers lru chain 1,946,036 588 13 575/13/0/0/0
multiblock read objects 922,048 469 8 461/8/0/0/0
sequence cache 1,533,482 333 1 332/1/0/0/0
session idle bit 3,005,477 97 1 96/1/0/0/0
Consistent RBA 866,126 55 1 54/1/0/0/0
simulator lru latch 223,868 33 9 24/9/0/0/0
post/wait queue 709,603 27 1 26/1/0/0/0
NoWait Waiter
Latch Name Where Misses Sleeps Sleeps
active checkpoint queue kcbbacq: scan active check 0 36 36
cache buffers chains kcbgtcr: kslbegin excl 0 10,706 10,084
cache buffers chains kcbrls: kslbegin 0 937 1,577
cache buffers chains kcbzwb 0 371 388
cache buffers chains kcbgtcr: fast path 0 223 174
cache buffers chains kcbgcur: kslbegin 0 86 114
cache buffers chains kcbget: pin buffer 0 57 47
cache buffers chains kcbzib: finish free bufs 0 54 27
cache buffers chains kcbchg: kslbegin: bufs not 0 52 89
cache buffers chains kcbnlc 0 46 37
cache buffers chains kcbzgb: scan from tail. no 0 42 0
cache buffers chains kcbzib: multi-block read: 0 25 0
cache buffers chains kcbget: exchange rls 0 12 3
cache buffers chains kcbchg: kslbegin: call CR 0 12 80
cache buffers chains kcbget: exchange 0 10 8
cache buffers chains kcbnew 0 9 0
cache buffers chains kcbcge 0 1 0
cache buffers chains kcbgtcr 0 1 0
cache buffers chains kcbbxsv 0 1 16
cache buffers chains kcbkzs 0 1 3
cache buffers chains kcbbic2 0 1 2
cache buffers chains kcbbic1 0 1 5
cache buffers lru chain kcbzgb: multiple sets nowa 10,344 10 0
cache buffers lru chain kcbbiop: lru scan 112 3 0
checkpoint queue latch kcbklbc: Link buffer into 0 6 0
dml lock allocation ktaiam 0 15 16
dml lock allocation ktaidm 0 10 9
enqueue hash chains ksqgtl3 0 17 11
enqueue hash chains ksqrcl 0 9 15
enqueue hash chains ksqcnl 0 1 1
enqueues ksqdel 0 60 50
enqueues ksqgel: create enqueue 0 60 56
enqueues ksqies 0 2 16
lgwr LWN SCN kcs023 0 9 0
library cache kglpnc: child 0 29 29
library cache kglupc: child 0 25 22
library cache kgllkdl: child: cleanup 0 11 2
library cache kglpndl: child: before pro 0 5 4
library cache kglhdgn: child: 0 3 13
library cache kglhdgc: child: 0 2 1
library cache kglpndl: child: after proc 0 2 0
library cache kgldte: child 0 0 1 2
library cache kglpin: child: heap proces 0 1 0
library cache kglobpn: child: 0 1 5
library cache pin kglpndl 0 6 1
library cache pin kglpnc: child 0 6 8
library cache pin kglupc 0 5 4
library cache pin alloca kglpnal 0 1 1
messages ksarcv 0 12 5
messages ksarcv: after wait 0 8 19
messages ksaamb: after wakeup 0 8 4
mostly latch-free SCN kcslcu3 0 8 17
mostly latch-free SCN kcsnew_scn_rba 0 1 0
Latch Name Where Misses Sleeps Sleeps
multiblock read objects kcbzib: mbr get 0 4 4
multiblock read objects kcbzib: normal mbr free 0 4 4
post/wait queue ksliwat:add:nowait 0 1 0
redo allocation kcrfwr 0 322 248
redo allocation kcrfwi: more space 0 14 88
redo allocation kcrfwi: before write 0 7 7
redo writing kcrfwcr 0 9 12
redo writing kcrfwint: rba scn pair 0 2 0
redo writing kcrfwint: after write 0 2 6
row cache enqueue latch kqreqa 0 1 1
row cache objects kqrpre: find obj 0 3 1
row cache objects kqrpfl: not dirty 0 1 1
sequence cache kdnss 0 1 1
session allocation ksuprc 0 14 5
session allocation ksudlc 0 10 7
session allocation ksucri 0 6 14
session allocation ksuxds: not user session 0 3 7
session idle bit ksupuc: clear busy 0 1 0
shared pool kghalo 0 1 0
shared pool kghupr1 0 1 2
simulator lru latch kcbs_simulate: simulate se 0 8 9
simulator lru latch kcbs_lookup_setid 0 1 0
transaction branch alloc ktcbba 0 4 2
transaction branch alloc ktcbod 0 2 3
transaction branch alloc ksupuc 0 1 2
undo global data ktudba: KSLBEGIN 0 8 7
Top 5 Logical Reads per Segment for DB: XXXXX Instance: XXXXX Snaps: 35980
-> End Segment Logical Reads Threshold: 10000
Subobject Obj. Logical
Owner Tablespace Object Name Name Type Reads %Total
xxxxxxxx XXXXXDATA TAB1TABLE TABLE 39,838,592 37.65
Top 5 Physical Reads per Segment for DB: XXXXX Instance: XXXXX Snaps: 3598
-> End Segment Physical Reads Threshold: 1000
Subobject Obj. Physical
Owner Tablespace Object Name Name Type Reads %Total
xxxxxxxx XXXXXDATA TAB1TABLE TABLE 3,568,038 58.64
Top 5 Buf. Busy Waits per Segment for DB: XXXXX Instance: XXXXX Snaps: 359
-> End Segment Buffer Busy Waits Threshold: 100
Buffer
Subobject Obj. Busy
Owner Tablespace Object Name Name Type Waits %Total
xxxxxxxx XXXXXDATA TAB1TABLE 1,421,043 91.65
xxxxxxxx XXXXXDATA IDX_SOMEIDX INDEX 62,638 4.04
xxxxxxxx XXXXXTABLE TABLE 26,914 1.74
----------So, for me It looks like :
TAB1TABLE is buffer busy deliver but there are no inserts reported for that table,
I've checked that TAB1TABLE tablespace is NO ASSM and extent management is local with uniform size 1M .
So this is not obvious free list problem . Kind of strange for me .
Any ideas greatly appreciated :).
Regards.
Greguser10388717 wrote:
Hi,
I've got statspack report from 9.2.0.8 DB, cpu_count = 12 , there is 'buffer busy waits' in top 5 .
Is there a problem ?
DB Name DB Id Instance Inst Num Release Cluster Host
XXXX 138180125 XXXX 1 9.2.0.8.0 NO X1
Snap Id Snap Time Sessions Curs/Sess Comment
Begin Snap: 35980 14-Jul-10 01:00:02 17 8.8
End Snap: 35984 14-Jul-10 05:00:01 17 8.8
Elapsed: 239.98 (mins)
----------So, for me It looks like :
TAB1TABLE is buffer busy deliver but there are no inserts reported for that table,
I've checked that TAB1TABLE tablespace is NO ASSM and extent management is local with uniform size 1M .
So this is not obvious free list problem . Kind of strange for me .
Any ideas greatly appreciated :).We can't tell if you have a problem - only you (or your users) can know.
But you've shown us a statspack snapshot covering 4 hours and in that time you've reported about 30 hours of database time (sum foreground "in-database" waits and CPU), with a fairly small number of sessions which (allowing for background sessions) means most of your foreground sessions seem to be working pretty much non-stop for the entire period. I could take a guess and say that you would like some of the work that they're doing completed sooner.
The largest fraction of your time goes into waiting for messages from db link, with an average time of 55ms - maybe you have a network problem, maybe you have a query that has a bad choice of execution path that is doing lots of unnecessary trips to the remote db, maybe the queries that get to the remote db could be made much more efficient. (Look for 'sql ordered by executions' in a statspack from the remote db for clues).
pl/sql lock timer is the next big chunk of time - but this is deliberately coded waits in pl/sql (dbms_lock.sleep) maybe that's supposed to be happening, but you could check the logic to see if some "slow" processes are actually coded to sleep much longer than necessary.
Your db file sequential reads (single block reads) are, on average taking 5.5 ms - which is reasonable, so you have to ask if the number (and we know which table a lot of them are hitting) is reasonable. This brings us to your buffer busy waits: these can be caused by updates and deletes as well as inserts, but in 9i they are also caused by "read by other session" - so the buffer busy wait may simple be one session waiting for another session to complete a db file sequential read.
I'd look at your "SQL ordered by Reads" to see if you have some inefficient execution plans (or poorly defined indexes) that result in large amounts of the critical table being constantly re-read. It's possible that you can eliminate redundant visits to this table and reduce your I/O, BBW, and CPU in one shot.
Regards
Jonathan Lewis
Maybe you are looking for
-
Photoshop CS4 shuts down only when creating new project.
I've had CS4 web premium since nov. 08 and everything worked fine until the most recent update from adobe. I ONLY have this problem with Photoshop cs4: when creating a new project after selecting the aspects (name, width, hight, etc.) when you press
-
The Finder can't complete the operation because some data can't be read or written. (Error code -36) What does this error code mean?
-
alright. yesterday, i was my itunes stopped reading the majority of my music. it dropped the list of music from 250G to 18G all of which is on my external HD. i have had a similar problem before and have always found that simply moving it into a newl
-
Default table scripts in ORACLE 9i
Hi, Is there an sql script which is available to create and populate the default tables in the SCOTT user. At the moment it has the EMP, DEPT, SALGRADE tables. But there is an another version of these tables and data: EMPLOYEES DEPARTMENTS JOB_GRADES
-
I've been using ai for many years. As far back as I can remember if you select an item and have either of the arrow tools as your current tool, hit the return key or double click either arrow tool you get the move dialog box. Everything in CS5 seems