awrsqrpt.sql 在oracle 版本10.2.0.4(for windows)的bug
awrsqrpt.sql 在oracle 版本10.2.0.4(for windows)的bug
和開發人員理論了半天,發現抓出的SQL值前後不一致,原來是SQL文字內容出現換行時的內容重複bug。
太低階的BUG了。
@?/rdbms/admin/awrsqrpt.sql
應該是:
select * from MEDREC.HT_MEDICAL_ORDER where INSERTFLAG in('1','2') and ROWNUM<=
1000 order by FLOWID
結果:
換行時內容重複了; 該是 INSERTFLAG in('1','2') ,變成了INSERTFLAG in('1','22') .
awrsqrpt.sql末尾
Full SQL Text
SQL ID SQL Text
------------ -----------------------------------------------------------------
6v84tf3dmx5r select * from MEDREC.HT_MEDICAL_ORDER where INSERTFLAG in('1', '2
2') and ROWNUM<=1000 order by FLOWID
WORKLOAD REPOSITORY SQL Report
Snapshot Period Summary
DB Name DB Id Instance Inst Num Release RAC Host
------------ ----------- ------------ -------- ----------- --- ------------
ORACLE10 2512774806 oracle10 1 10.2.0.4.0 NO xxxx
Snap Id Snap Time Sessions Curs/Sess
--------- ------------------- -------- ---------
Begin Snap: 23362 19-Dec-14 10:00:12 584 1.2
End Snap: 23363 19-Dec-14 11:00:27 555 1.2
Elapsed: 60.25 (mins)
DB Time: 421.86 (mins)
SQL Summary DB/Inst: ORACLE10/oracle10 Snaps: 23362-23363
Elapsed
SQL Id Time (ms)
------------- ----------
5qfzbpj75amdu 3,521,856
Module: JDBC Thin Client
select * from inpatientinfo where impflag='0' order by recordflow
....
Full SQL Text
SQL ID SQL Text
------------ -----------------------------------------------------------------
5qfzbpj75amd select * from inpatientinfo where impflag='0' order by recordflow
w
ORKLOAD REPOSITORY SQL Report
Snapshot Period Summary
DB Name DB Id Instance Inst Num Release RAC Host
------------ ----------- ------------ -------- ----------- --- ------------
ORACLE10 2512774806 oracle10 1 10.2.0.4.0 NO xxxx
Snap Id Snap Time Sessions Curs/Sess
--------- ------------------- -------- ---------
Begin Snap: 23362 19-Dec-14 10:00:12 584 1.2
End Snap: 23363 19-Dec-14 11:00:27 555 1.2
Elapsed: 60.25 (mins)
DB Time: 421.86 (mins)
SQL Summary DB/Inst: ORACLE10/oracle10 Snaps: 23362-23363
Elapsed
SQL Id Time (ms)
------------- ----------
6v84tf3dmx5rb 3,530,367
select * from MEDREC.HT_MEDICAL_ORDER where INSERTFLAG in('1','2') and ROWNUM<=
1000 order by FLOWID
Full SQL Text
SQL ID SQL Text
------------ -----------------------------------------------------------------
6v84tf3dmx5r select * from MEDREC.HT_MEDICAL_ORDER where INSERTFLAG in('1', '2
2') and ROWNUM<=1000 order by FLOWID
和開發人員理論了半天,發現抓出的SQL值前後不一致,原來是SQL文字內容出現換行時的內容重複bug。
太低階的BUG了。
@?/rdbms/admin/awrsqrpt.sql
應該是:
select * from MEDREC.HT_MEDICAL_ORDER where INSERTFLAG in('1','2') and ROWNUM<=
1000 order by FLOWID
結果:
換行時內容重複了; 該是 INSERTFLAG in('1','2') ,變成了INSERTFLAG in('1','22') .
awrsqrpt.sql末尾
Full SQL Text
SQL ID SQL Text
------------ -----------------------------------------------------------------
6v84tf3dmx5r select * from MEDREC.HT_MEDICAL_ORDER where INSERTFLAG in('1', '2
2') and ROWNUM<=1000 order by FLOWID
WORKLOAD REPOSITORY SQL Report
Snapshot Period Summary
DB Name DB Id Instance Inst Num Release RAC Host
------------ ----------- ------------ -------- ----------- --- ------------
ORACLE10 2512774806 oracle10 1 10.2.0.4.0 NO xxxx
Snap Id Snap Time Sessions Curs/Sess
--------- ------------------- -------- ---------
Begin Snap: 23362 19-Dec-14 10:00:12 584 1.2
End Snap: 23363 19-Dec-14 11:00:27 555 1.2
Elapsed: 60.25 (mins)
DB Time: 421.86 (mins)
SQL Summary DB/Inst: ORACLE10/oracle10 Snaps: 23362-23363
Elapsed
SQL Id Time (ms)
------------- ----------
5qfzbpj75amdu 3,521,856
Module: JDBC Thin Client
select * from inpatientinfo where impflag='0' order by recordflow
....
Full SQL Text
SQL ID SQL Text
------------ -----------------------------------------------------------------
5qfzbpj75amd select * from inpatientinfo where impflag='0' order by recordflow
w
ORKLOAD REPOSITORY SQL Report
Snapshot Period Summary
DB Name DB Id Instance Inst Num Release RAC Host
------------ ----------- ------------ -------- ----------- --- ------------
ORACLE10 2512774806 oracle10 1 10.2.0.4.0 NO xxxx
Snap Id Snap Time Sessions Curs/Sess
--------- ------------------- -------- ---------
Begin Snap: 23362 19-Dec-14 10:00:12 584 1.2
End Snap: 23363 19-Dec-14 11:00:27 555 1.2
Elapsed: 60.25 (mins)
DB Time: 421.86 (mins)
SQL Summary DB/Inst: ORACLE10/oracle10 Snaps: 23362-23363
Elapsed
SQL Id Time (ms)
------------- ----------
6v84tf3dmx5rb 3,530,367
select * from MEDREC.HT_MEDICAL_ORDER where INSERTFLAG in('1','2') and ROWNUM<=
1000 order by FLOWID
Full SQL Text
SQL ID SQL Text
------------ -----------------------------------------------------------------
6v84tf3dmx5r select * from MEDREC.HT_MEDICAL_ORDER where INSERTFLAG in('1', '2
2') and ROWNUM<=1000 order by FLOWID
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8494287/viewspace-1377152/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- dbms_random在Oracle 10.2.0.4下的bugrandomOracle
- ORACLE 10.2.0.4 RAC BUG IN HPOracle
- Oracle10.2.0.4 bug list and patchOracle
- 10.2.0.4 Bug Fixes by CategoryGo
- 遭遇ora-600 [qkacon:FJswrwo], [3] oracle 10.2.0.4 bugJSOracle
- Windows 下 oracle 10g升級到10.2.0.4的方法WindowsOracle 10g
- windows 下oracle從10.2.0.1升級到10.2.0.4WindowsOracle
- oracle awrsqrpt.sql 指令碼使用方法OracleSQL指令碼
- 在 Windows 的 WampServer 新增 PHP 版本WindowsServerPHP
- windows 2003,oracle 10.2.0.1升級到10.2.0.4WindowsOracle
- windows 的bugWindows
- 教你如何簡單的在windows 10使用DebugWindows
- oracle 10.2.0.4 的emca配置錯誤Oracle
- 2014年第1季度Oracle PSU更新(For 10.2.0.4+版本)Oracle
- upgrade oracle 10.2.0.4 for aixOracleAI
- 在oracle 10.2.0.4上配置字符集掃描工具Csscan(一)OracleCSS
- oracle 10.2.0.4 patch的下載地址列表Oracle
- Windows 2003 + Oracle 10.2.0.4 DBCA 建庫時報錯ORA-28547WindowsOracle
- oracle 10.2.0.4 EM的一個bug(EM對於用rman刪除歸檔日誌後不敏感)Oracle
- oracle 10g clusterware 在redhat as 5上的bugOracle 10gRedhat
- oracle 10g clusterware 在redhat as 5上的bugOracle 10gRedhat
- oracle 9207在AIX下安裝的bugOracleAI
- oracle 版本修復的bug列表和打補丁注意事項Oracle
- 在oracle 10.2.0.4上使用字符集掃描工具Csscan(二)OracleCSS
- oracle在linux平臺從10.2.0.1升級到10.2.0.4方法OracleLinux
- oracle 10.2.0.4版本或以上需要對作業系統使用者設定的capabilities解釋Oracle作業系統
- oracle rac 10.2.0.1 升級到 oracle 10.2.0.4Oracle
- ORA-00600 [qkacon:FJswrwo] on aix 5.3 10.2.0.4 bugJSAI
- 在windows上打Oracle的CPU補丁WindowsOracle
- 在rhel5上oracle 10.2.0.4 上dbca silent刪除資料庫Oracle資料庫
- 在windows下切換node版本,很簡單!Windows
- Oracle groupby的bugOracle
- oracle10.2.0.4 dbvault 安裝篇Oracle
- Oracle 10.2.0.1 升級到 10.2.0.4Oracle
- 靜默升級oracle到10.2.0.4Oracle
- oracle 10.2.0.2升級到10.2.0.4Oracle
- 在64位windows2003 安裝Oracle11.2.0.1.0版本問題WindowsOracle
- rhel5上oracle10.2.0.4 silent配置oracleOracle