-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Hello folks.
I am trying the parser on a 11.2.0.3 AWR report and getting error from script.
Here is the version of parser:
AWRSCRIPT_VERSION="1.02"
AWRSCRIPT_LASTUPDATE="05/01/2015"
Please help to get it working.
$ ./awr-parser.sh awrrep_151026_3386819768_1.txt
Filename,Database Name,Instance Number,Instance Name,Database Version,Cluster,Hostname,Host OS,Num CPUs,Server Memory (GB),DB Block Size,Begin Snap,Begin Time,End Snap,End Time,Elapsed Time (mins),DB Time (mins),Average Active Sessions,Busy Flag,Logical Reads/sec,Block Changes/sec,Read IOPS,Write IOPS,Redo IOPS,All Write IOPS,Total IOPS,Read Throughput (MiB/sec),Write Throughput (MiB/sec),Redo Throughput (MiB/sec),All Write Throughput (MiB/sec),Total Throughput (MiB/sec),DB CPU Time (s),DB CPU %DBTime,Wait Class User I/O Waits,Wait Class User I/O Time (s),Wait Class User I/O Latency (ms),Wait Class User I/O %DBTime,User Calls/sec,Parses/sec,Hard Parses/sec,Logons/sec,Executes/sec,Transactions/sec,Buffer Hit Ratio (%),In-Memory Sort Ratio (%),Log Switches (Total),Log Switches (Per Hour),Top5 Event1 Name,Top5 Event1 Class,Top5 Event1 Waits,Top5 Event1 Time (s),Top5 Event1 Average Time (ms),Top5 Event1 %DBTime,Top5 Event2 Name,Top5 Event2 Class,Top5 Event2 Waits,Top5 Event2 Time (s),Top5 Event2 Average Time (ms),Top5 Event2 %DBTime,Top5 Event3 Name,Top5 Event3 Class,Top5 Event3 Waits,Top5 Event3 Time (s),Top5 Event3 Average Time (ms),Top5 Event3 %DBTime,Top5 Event4 Name,Top5 Event4 Class,Top5 Event4 Waits,Top5 Event4 Time (s),Top5 Event4 Average Time (ms),Top5 Event4 %DBTime,Top5 Event5 Name,Top5 Event5 Class,Top5 Event5 Waits,Top5 Event5 Time (s),Top5 Event5 Average Time (ms),Top5 Event5 %DBTime,db file sequential read Waits,db file sequential read Time (s),db file sequential read Latency (ms),db file sequential read %DBTime,db file scattered read Waits,db file scattered read Time (s),db file scattered read Latency (ms),db file scattered read %DBTime,direct path read Waits,direct path read Time (s),direct path read Latency (ms),direct path read %DBTime,direct path write Waits,direct path write Time (s),direct path write Latency (ms),direct path write %DBTime,direct path read temp Waits,direct path read temp Time (s),direct path read temp Latency (ms),direct path read temp %DBTime,direct path write temp Waits,direct path write temp Time (s),direct path write temp Latency (ms),direct path write temp %DBTime,log file sync Waits,log file sync Time (s),log file sync Latency (ms),log file sync %DBTime,db file parallel write Waits,db file parallel write Time (s),db file parallel write Latency (ms),db file parallel write %DBTime,log file parallel write Waits,log file parallel write Time (s),log file parallel write Latency (ms),log file parallel write %DBTime,log file sequential read Waits,log file sequential read Time (s),log file sequential read Latency (ms),log file sequential read %DBTime,OS busy time,OS idle time,OS iowait time,OS sys time,OS user time,OS cpu wait time,OS resource mgr wait time,Data Guard Flag,Exadata Flag,Wait Class Admin Waits,Wait Class Admin Time (s),Wait Class Admin Latency (ms),Wait Class Admin %DBTime,Wait Class Application Waits,Wait Class Application Time (s),Wait Class Application Latency (ms),Wait Class Application %DBTime,Wait Class Cluster Waits,Wait Class Cluster Time (s),Wait Class Cluster Latency (ms),Wait Class Cluster %DBTime,Wait Class Commit Waits,Wait Class Commit Time (s),Wait Class Commit Latency (ms),Wait Class Commit %DBTime,Wait Class Concurrency Waits,Wait Class Concurrency Time (s),Wait Class Concurrency Latency (ms),Wait Class Concurrency %DBTime,Wait Class Configuration Waits,Wait Class Configuration Time (s),Wait Class Configuration Latency (ms),Wait Class Configuration %DBTime,Wait Class Network Waits,Wait Class Network Time (s),Wait Class Network Latency (ms),Wait Class Network %DBTime,Wait Class Other Waits,Wait Class Other Time (s),Wait Class Other Latency (ms),Wait Class Other %DBTime,Wait Class System I/O Waits,Wait Class System I/O Time (s),Wait Class System I/O Latency (ms),Wait Class System I/O %DBTime,Histogram <1ms db file sequential read,Histogram <2ms db file sequential read,Histogram <4ms db file sequential read,Histogram <8ms db file sequential read,Histogram <16ms db file sequential read,Histogram <32ms db file sequential read,Histogram <1s db file sequential read,Histogram >1s db file sequential read,Histogram <1ms log file parallel write,Histogram <2ms log file parallel write,Histogram <4ms log file parallel write,Histogram <8ms log file parallel write,Histogram <16ms log file parallel write,Histogram <32ms log file parallel write,Histogram <1s log file parallel write,Histogram >1s log file parallel write
Info : Parsing file awrrep_151026_3386819768_1.txt at 2015-11-30 16:13:50
syntax error on line 1 stdin
./awr-parser.sh: line 1589: [: =: unary operator expected
awrrep_151026_3386819768_1.txt,NETCLD,1,netcld1,11.2.0.3.0,Y,srbh-serv-netcoo,AIX-Based Systems (64-bit),16,16.00,8K,26656,26-Oct-15 10:00:48,26662,26-Oct-15 16:00:04,359.27,734.75,2.0,N,10309.9,198.0,114.7,4.6,3.1,7.7,122.4,7.05,.14,.06,.20,7.25,1075,2.4,2346477,20300,8.651,46.0,6.3,2.1,0.6,0.2,10.9,0.8,91.65,100.00,5,.84,db file scattered read,User I/O,1167541,12886,11.037,29.2,db file sequential read,User I/O,1167506,6727,5.762,15.3,DB CPU,,,1075,,2.4,direct path read,User I/O,9986,678,67.895,1.5,SQL*Net more data from dblink,Network,32821,266,8.105,.6,1167506,6727,5.762,15.3,1167541,12886,11.037,29.2,9986,678,67.895,1.5,,,,,,,,,1,0,0,.0,8223,9,1.094,.0,37824,49,1.295,6.8,66535,51,0.767,7.0,918,11,11.983,1.6,1481475,33669540,2108,1061193,420282,7489900,0,N,N,2,0,0,0.0,35466,22,0.620,0.1,141112,142,1.006,0.3,8223,9,1.094,0.0,62796,27,0.430,0.1,43,4,93.023,0.0,147773,284,1.922,0.6,43847,103,2.349,0.2,3434,81,23.588,0.2,20.4,1.1,11.2,55.2,9.8,1.2,1.2,.0,93.8,3.3,1.0,.9,.6,.2,.2,
Info : No more files found
Info :
Info : SUMMARY
Info : Files found : 1
Info : Files processed : 1
Info : Processing errors : 0
Info :
Info : Completed successfully