检查反应较慢的时间段,数据库整体运行情况,从awr报告总看看是否有异常


 
以上是两个节点的等待事件排行,其中发现cursor: pin S wait on X等待事件类型是并行,切较高,开始分析的时候先留意一下,接着向下看

 
 
在其他的sql方面,比如逻辑读,物理读等方面基本上算是正常的,平时也都可以看到类似的存储过程和sql,但是在CPU time栏位,明显有异常的SQL存在.具体的sql文本为:
  1. SELECT /* OPT_DYN_SAMP */ /*+ ALL_ROWS IGNORE_WHERE_CLAUSE NO_PARALLEL(SAMPLESUB) opt_param('parallel_execution_enabled', 'false') NO_PARALLEL_INDEX(SAMPLESUB) NO_SQL_TUNE */ NVL(SUM(C1), : "SYS_B_00"),
  2. NVL(SUM(C2), : "SYS_B_01")
  3. FROM (
  4. SELECT /*+ IGNORE_WHERE_CLAUSE NO_PARALLEL("D") FULL("D") NO_PARALLEL_INDEX("D") */ : "SYS_B_02" AS C1,
  5. CASE
  6. WHEN "D"."CONTACTTEXT" LIKE : "SYS_B_03"
  7. AND "D"."CONTACTTYPECODE" = : "SYS_B_04"
  8. AND "D"."SYSSRC" <> : "SYS_B_05"
  9. AND "D"."SYSSRC" <> : "SYS_B_06"
  10. AND "D"."SYSSRC" <> : "SYS_B_07"
  11. THEN : "SYS_B_08"
  12. ELSE : "SYS_B_09"
  13. END AS C2
  14. FROM "CMDS"."STD_CONTRACT" SAMPLE BLOCK(: "SYS_B_10", : "SYS_B_11") SEED(: "SYS_B_12") "D"
  15. ) SAMPLESUB
这个sql是oracle内部执行的,这是oracle发生了动态采样的时候会有的sql.
怀疑Oracle在某个SQL中采用了调节dynamic sample比例的过程,Oracle从11g开始应用一种自动调节的动态收集机制。如果一个SQL对应数据表很大,而且应该用并行策略,同时有没有统计量。这个时候,Oracle会自己调节采样比例,到一个比较大的取值。
awr报告下面的其他部分基本上都是正常的,磁盘的速度,和其他信息,现在怀疑两点:
1.怀疑并行导致
2.怀疑表的统计信息不准确
下面首先检查表和表上面索引的并行度情况:
  1. SQL> select degree,table_name from user_tables where degree > '1';
  2. no rows selected
  3. SQL> select degree,table_name,index_name from user_indexes where degree > '1';
  4. DEGREE TABLE_NAME INDEX_NAME
  5. ---------------------------------------- ------------------------------ ------------------------------
  6. 8 PSN_CUSTOMER_UPD_BAK IDX_PSN_CUSTOMER_UPD_NEW1_BAK
  7. 16 GUIBING_CHECK_1021_2 IDX_GUIBING_CHECK_NO
  8. 128 PSN_CUSTOMER IDX_PSN_CUST_5YS2
  9. 128 PSN_CUSTOMER IDX_PSN_CUST_CUSTID
  10. 8 CHECK_UPD_BAK IDX_CHECK_UPD_NEW1_BAK
  11. 8 GRP_CUSTOMER GRP_CUSTOMER_IDX2
  12. 16 STD_CONTRACT IDX_STD_SGID
  13. 8 COMBINED_CNTR COMBINED_CNTR_IDX2
  14. 8 CNTR_CG_ID CNTR_CGID_IDX2

上面的结果看cmds用户的表并行度是正确的,我们一般不设置表的并行度,如有需求,手工在sql中添加hint提示,索引的并行度是错误的,首先不应该大于1,并且在PSN_CUSTOMER上面,并行度太高了,cpus一共是128.
检查表的统计信息情况:
  1. select last_analyzed,table_name from user_tables where table_name in ('PSN_CUSTOMER_UPD_BAK','GUIBING_CHECK_1021_2','PSN_CUSTOMER','CHECK_UPD_BAK','GRP_CUSTOMER','STD_CONTRACT','COMBINED_CNTR','CNTR_CG_ID');
  2. LAST_ANAL TABLE_NAME
  3. --------- ------------------------------
  4. 21-SEP-16 CHECK_UPD_BAK
  5. 23-DEC-16 CNTR_CG_ID
  6. 15-FEB-17 COMBINED_CNTR
  7. 06-FEB-17 GRP_CUSTOMER
  8. 21-OCT-16 GUIBING_CHECK_1021_2
  9. 19-NOV-16 PSN_CUSTOMER
  10. 01-SEP-16 PSN_CUSTOMER_UPD_BAK
  11. 06-FEB-17 STD_CONTRACT
表统计信息一般没有大问题,个别感觉稍长时间没更新的,手工更新一下就可以,没有差的太多,这个可以忽略了
  1. SQL> exec DBMS_STATS.GATHER_table_STATS ('CMDS','PSN_CUSTOMER',estimate_percent => dbms_stats.auto_sample_size,method_opt => 'for all columns size auto',degree => 15,cascade => true);
  2. PL/SQL procedure successfully completed.

目前定位问题是以上几个表上面索引的并行度导致了sql执行产生了较高的cursor: pin S wait on X,导致相关表上面数据更新缓慢

下面删除并行,后续观察数据库情况
  1. select 'alter index '||index_name||' noparallel;' from user_indexes where degree > '1';
  2. 'ALTERINDEX'||INDEX_NAME||'NOPARALLEL;'
  3. ------------------------------------------------------
  4. alter index IDX_GUIBING_CHECK_NO noparallel;
  5. alter index IDX_CHECK_UPD_NEW1_BAK noparallel;
  6. alter index IDX_PSN_CUSTOMER_UPD_NEW1_BAK noparallel;
  7. alter index IDX_STD_SGID noparallel;
  8. alter index IDX_PSN_CUST_5YS2 noparallel;
  9. alter index IDX_PSN_CUST_CUSTID noparallel;
  10. alter index GRP_CUSTOMER_IDX2 noparallel;
  11. alter index CNTR_CGID_IDX2 noparallel;
  12. alter index COMBINED_CNTR_IDX2 noparallel;


之后检查发现归并的效率并没有得到提高.

检查索引情况
  1. SQL> select status,index_name from user_ind_subpartitions;
  2. STATUS INDEX_NAME
  3. -------- ------------------------------
  4. USABLE PARTY_RELATION_IND_MAP
  5. USABLE PARTY_RELATION_IND_MAP
  6. USABLE PARTY_RELATION_IND_MAP
  7. USABLE PARTY_RELATION_IND_MAP
  8. USABLE PARTY_RELATION_IND_MAP
  9. USABLE PARTY_RELATION_IND_MAP
  10. USABLE PARTY_RELATION_IND_MAP
  11. USABLE PARTY_RELATION_IND_MAP
  12. USABLE PARTY_RELATION_IND_MAP
  13. USABLE PARTY_RELATION_IND_MAP
  14. USABLE PARTY_RELATION_IND_MAP
  15. USABLE PARTY_RELATION_IND_MAP
  16. USABLE PARTY_RELATION_IND_MAP
  17. USABLE PARTY_RELATION_IND_MAP
  18. USABLE PARTY_RELATION_IND_MAP
  19. USABLE PARTY_RELATION_IND_MAP
  20. USABLE PARTY_RELATION_IND_MAP
  21. USABLE PARTY_RELATION_IND_MAP
  22. USABLE PARTY_RELATION_IND_MAP
  23. USABLE PARTY_RELATION_IND_MAP
  24. USABLE PARTY_RELATION_IND_MAP
  25. USABLE PARTY_RELATION_IND_MAP
  26. USABLE PARTY_RELATION_IND_MAP
  27. USABLE PARTY_RELATION_IND_MAP
  28. USABLE PARTY_RELATION_IND_MAP
  29. USABLE PARTY_RELATION_IND_MAP
  30. USABLE PARTY_RELATION_IND_MAP
  31. USABLE PARTY_RELATION_IND_MAP
  32. USABLE PARTY_RELATION_IND_MAP
  33. USABLE PARTY_RELATION_IND_MAP
  34. USABLE PARTY_RELATION_IND_MAP
  35. USABLE PARTY_RELATION_IND_MAP
  36. USABLE PARTY_RELATION_IND_MAP
  37. USABLE PARTY_RELATION_IND_MAP
  38. USABLE PARTY_RELATION_IND_MAP
  39. USABLE PARTY_RELATION_IND_MAP
  40. USABLE PARTY_RELATION_IND_MAP
  41. USABLE PARTY_RELATION_IND_MAP
  42. USABLE PARTY_RELATION_IND_MAP
  43. USABLE PARTY_RELATION_IND_MAP
  44. USABLE PARTY_RELATION_IND_MAP
  45. USABLE PARTY_RELATION_IND_MAP
  46. USABLE PARTY_RELATION_IND_MAP
  47. USABLE PARTY_RELATION_IND_MAP
  48. USABLE PARTY_RELATION_IND_MAP
  49. USABLE PARTY_RELATION_IND_MAP
  50. USABLE PARTY_RELATION_IND_MAP
  51. USABLE PARTY_RELATION_IND_MAP
  52. USABLE PARTY_RELATION_IND_MAP
  53. USABLE PARTY_RELATION_IND_MAP
  54. USABLE PARTY_RELATION_IND_MAP
  55. USABLE PARTY_RELATION_IND_MAP
  56. USABLE PARTY_RELATION_IND_MAP
  57. USABLE PARTY_RELATION_IND_MAP
  58. USABLE PARTY_RELATION_IND_MAP
  59. USABLE PARTY_RELATION_IND_MAP
  60. USABLE PARTY_RELATION_IND_MAP
  61. USABLE PARTY_RELATION_IND_MAP
  62. USABLE PARTY_RELATION_IND_MAP
  63. USABLE PARTY_RELATION_IND_MAP
  64. USABLE PARTY_RELATION_IND_MAP
  65. USABLE PARTY_RELATION_IND_MAP
  66. USABLE PARTY_RELATION_IND_MAP
  67. USABLE PARTY_RELATION_IND_MAP
  68. USABLE PARTY_RELATION_IND_MAP
  69. USABLE PARTY_RELATION_IND_MAP
  70. USABLE PARTY_RELATION_IND_MAP
  71. USABLE PARTY_RELATION_IND_MAP
  72. USABLE PARTY_RELATION_IND_MAP
  73. USABLE PARTY_RELATION_IND_MAP
  74. USABLE PARTY_RELATION_IND_MAP
  75. USABLE PARTY_RELATION_IND_MAP
  76. USABLE PARTY_RELATION_IND_MAP
  77. USABLE PARTY_RELATION_IND_MAP
  78. USABLE PARTY_RELATION_IND_MAP
  79. USABLE PARTY_RELATION_IND_MAP
  80. USABLE PARTY_RELATION_IND_MAP
  81. USABLE PARTY_RELATION_IND_MAP
  82. USABLE PARTY_RELATION_IND_MAP
  83. USABLE PARTY_RELATION_IND_MAP
  84. USABLE PARTY_RELATION_IND_MAP
  85. USABLE PARTY_RELATION_IND_MAP
  86. USABLE PARTY_RELATION_IND_MAP
  87. USABLE PARTY_RELATION_IND_MAP
  88. USABLE PARTY_RELATION_IND_MAP
  89. USABLE PARTY_RELATION_IND_MAP
  90. USABLE PARTY_RELATION_IND_MAP
  91. USABLE PARTY_RELATION_IND_MAP
  92. USABLE PARTY_RELATION_IND_MAP
  93. USABLE PARTY_RELATION_IND_MAP
  94. USABLE PARTY_RELATION_IND_MAP
  95. USABLE PARTY_RELATION_IND_MAP
  96. USABLE PARTY_RELATION_IND_MAP
  97. USABLE PARTY_RELATION_IND_MAP
  98. USABLE PARTY_RELATION_IND_MAP
  99. USABLE PARTY_RELATION_IND_MAP
  100. USABLE PARTY_RELATION_IND_MAP
  101. USABLE PARTY_RELATION_IND_MAP
  102. USABLE PARTY_RELATION_IND_MAP
  103. USABLE PARTY_RELATION_IND_MAP
  104. USABLE PARTY_RELATION_IND_MAP
  105. USABLE PARTY_RELATION_IND_MAP
  106. USABLE PARTY_RELATION_IND_MAP
  107. USABLE PARTY_RELATION_IND_MAP
  108. USABLE PARTY_RELATION_IND_MAP
  109. USABLE PARTY_RELATION_IND_MAP
  110. USABLE PARTY_RELATION_IND_MAP
  111. USABLE PARTY_RELATION_IND_MAP
  112. USABLE PARTY_RELATION_IND_MAP
  113. USABLE PARTY_RELATION_IND_MAP
  114. USABLE PARTY_RELATION_IND_MAP
  115. USABLE PARTY_RELATION_IND_MAP
  116. USABLE PARTY_RELATION_IND_MAP
  117. USABLE PARTY_RELATION_IND_MAP
  118. USABLE PARTY_RELATION_IND_MAP
  119. USABLE PARTY_RELATION_IND_MAP
  120. USABLE PARTY_RELATION_IND_MAP
  121. USABLE PARTY_RELATION_IND_MAP
  122. USABLE PARTY_RELATION_IND_MAP
  123. USABLE PARTY_RELATION_IND_MAP
  124. USABLE PARTY_RELATION_IND_MAP
  125. USABLE PARTY_RELATION_IND_MAP
  126. USABLE PARTY_RELATION_IND_MAP
  127. USABLE PARTY_RELATION_IND_MAP
  128. USABLE PARTY_RELATION_IND_MAP
  129. USABLE PARTY_RELATION_IND_MAP
  130. USABLE PARTY_RELATION_IND_MAP
  131. USABLE PARTY_RELATION_IND_MAP
  132. USABLE PARTY_RELATION_IND_MAP
  133. USABLE PARTY_RELATION_IND_MAP
  134. USABLE PARTY_RELATION_IND_MAP
  135. USABLE PARTY_RELATION_IND_MAP
  136. USABLE PARTY_RELATION_IND_MAP
  137. USABLE PARTY_RELATION_IND_MAP
  138. USABLE PARTY_RELATION_IND_MAP
  139. USABLE PARTY_RELATION_IND_MAP
  140. USABLE PARTY_RELATION_IND_MAP
  141. USABLE PARTY_RELATION_IND_MAP
  142. USABLE PARTY_RELATION_IND_MAP
  143. USABLE PARTY_RELATION_IND_MAP
  144. USABLE PARTY_RELATION_IND_MAP
  145. USABLE PARTY_RELATION_IND_MAP
  146. USABLE PARTY_RELATION_IND_MAP
  147. USABLE PARTY_RELATION_IND_MAP
  148. USABLE PARTY_RELATION_IND_MAP
  149. USABLE PARTY_RELATION_IND_MAP
  150. USABLE PARTY_RELATION_IND_MAP
  151. USABLE IDX_CONTACTLIST_CUSTID
  152. USABLE IDX_CONTACTLIST_CUSTID
  153. USABLE IDX_CONTACTLIST_CUSTID
  154. USABLE IDX_CONTACTLIST_CUSTID
  155. USABLE IDX_CONTACTLIST_CUSTID
  156. USABLE IDX_CONTACTLIST_CUSTID
  157. USABLE IDX_CONTACTLIST_CUSTID
  158. USABLE IDX_CONTACTLIST_CUSTID
  159. USABLE IDX_CONTACTLIST_CUSTID
  160. USABLE IDX_CONTACTLIST_CUSTID
  161. USABLE IDX_CONTACTLIST_CUSTID
  162. USABLE IDX_CONTACTLIST_CUSTID
  163. USABLE IDX_CONTACTLIST_CUSTID
  164. USABLE IDX_CONTACTLIST_CUSTID
  165. USABLE IDX_CONTACTLIST_CUSTID
  166. USABLE IDX_CONTACTLIST_CUSTID
  167. USABLE IDX_CONTACTLIST_CUSTID
  168. USABLE IDX_CONTACTLIST_CUSTID
  169. USABLE IDX_CONTACTLIST_CUSTID
  170. USABLE CNTR_ID_IDX1
  171. USABLE CNTR_ID_IDX1
  172. USABLE CNTR_ID_IDX1
  173. USABLE CNTR_ID_IDX1
  174. USABLE CNTR_ID_IDX1
  175. USABLE CNTR_ID_IDX1
  176. USABLE CNTR_ID_IDX1
  177. USABLE CNTR_ID_IDX1
  178. USABLE CNTR_ID_IDX1
  179. USABLE CNTR_ID_IDX1
  180. USABLE CNTR_ID_IDX1
  181. USABLE CNTR_ID_IDX1
  182. USABLE CNTR_ID_IDX1
  183. USABLE CNTR_ID_IDX1
  184. USABLE CNTR_ID_IDX1
  185. USABLE CNTR_ID_IDX1
  186. USABLE CNTR_ID_IDX1
  187. USABLE CNTR_ID_IDX1
  188. USABLE CNTR_ID_IDX1
  189. USABLE CNTR_ID_IDX1
  190. USABLE CNTR_ID_IDX1
  191. USABLE CNTR_ID_IDX1
  192. USABLE CNTR_ID_IDX1
  193. USABLE CNTR_ID_IDX1
  194. USABLE CNTR_ID_IDX1
  195. USABLE CNTR_ID_IDX1
  196. USABLE CNTR_ID_IDX1
  197. USABLE CNTR_ID_IDX1
  198. USABLE CNTR_ID_IDX1
  199. USABLE CNTR_ID_IDX1
  200. USABLE CNTR_ID_IDX1
  201. USABLE CNTR_ID_IDX1
  202. USABLE CNTR_ID_IDX1
  203. USABLE CNTR_ID_IDX1
  204. USABLE CNTR_ID_IDX1
  205. USABLE CNTR_ID_IDX1
  206. USABLE CNTR_ID_IDX1
  207. USABLE CNTR_ID_IDX1
  208. USABLE CNTR_ID_IDX1
  209. USABLE CNTR_ID_IDX1
  210. USABLE CNTR_ID_IDX1
  211. USABLE CNTR_ID_IDX1
  212. USABLE IDX_CONTACTLIST_CUSTID
  213. USABLE IDX_CONTACTLIST_CUSTID
  214. USABLE IDX_CONTACTLIST_CUSTID
  215. USABLE IDX_CONTACTLIST_CUSTID
  216. USABLE IDX_CONTACTLIST_CUSTID
  217. USABLE IDX_CONTACTLIST_CUSTID
  218. USABLE IDX_CONTACTLIST_CUSTID
  219. USABLE IDX_CONTACTLIST_CUSTID
  220. USABLE IDX_CONTACTLIST_CUSTID
  221. USABLE IDX_CONTACTLIST_CUSTID
  222. USABLE IDX_CONTACTLIST_CUSTID
  223. USABLE IDX_CONTACTLIST_CUSTID
  224. USABLE IDX_CONTACTLIST_CUSTID
  225. USABLE IDX_CONTACTLIST_CUSTID
  226. USABLE IDX_CONTACTLIST_CUSTID
  227. USABLE IDX_CONTACTLIST_CUSTID
  228. USABLE IDX_CONTACTLIST_CUSTID
  229. USABLE IDX_CONTACTLIST_CUSTID
  230. USABLE IDX_CONTACTLIST_CUSTID
  231. USABLE IDX_CONTACTLIST_CUSTID
  232. USABLE IDX_CONTACTLIST_CUSTID
  233. USABLE IDX_CONTACTLIST_CUSTID
  234. USABLE IDX_CONTACTLIST_CUSTID
  235. USABLE IDX_CONTACTLIST_CUSTID
  236. USABLE IDX_CONTACTLIST_CUSTID
  237. USABLE IDX_CONTACTLIST_CUSTID
  238. USABLE IDX_CONTACTLIST_CUSTID
  239. USABLE IDX_CONTACTLIST_CUSTID
  240. USABLE IDX_CONTACTLIST_CUSTID
  241. USABLE IDX_CONTACTLIST_CUSTID
  242. USABLE IDX_CONTACTLIST_CUSTID
  243. USABLE IDX_CONTACTLIST_CUSTID
  244. USABLE IDX_CONTACTLIST_CUSTID
  245. USABLE IDX_CONTACTLIST_CUSTID
  246. USABLE IDX_CONTACTLIST_CUSTID
  247. USABLE IDX_CONTACTLIST_CUSTID
  248. USABLE IDX_CONTACTLIST_CUSTID
  249. USABLE IDX_CONTACTLIST_CUSTID
  250. USABLE IDX_CONTACTLIST_CUSTID
  251. USABLE IDX_CONTACTLIST_CUSTID
  252. USABLE IDX_CONTACTLIST_CUSTID
  253. USABLE IDX_CONTACTLIST_CUSTID
  254. USABLE IDX_CONTACTLIST_CUSTID
  255. USABLE IDX_CONTACTLIST_CUSTID
  256. USABLE IDX_CONTACTLIST_CUSTID
  257. USABLE IDX_CONTACTLIST_CUSTID
  258. USABLE IDX_CONTACTLIST_CUSTID
  259. USABLE IDX_CONTACTLIST_CUSTID
  260. USABLE IDX_CONTACTLIST_CUSTID
  261. USABLE IDX_CONTACTLIST_CUSTID
  262. USABLE IDX_CONTACTLIST_CUSTID
  263. USABLE IDX_CONTACTLIST_CUSTID
  264. USABLE IDX_CONTACTLIST_CUSTID
  265. USABLE IDX_CONTACTLIST_CUSTID
  266. USABLE IDX_CONTACTLIST_CUSTID
  267. USABLE IDX_CONTACTLIST_CUSTID
  268. USABLE IDX_CONTACTLIST_CUSTID
  269. USABLE IDX_CONTACTLIST_CUSTID
  270. USABLE IDX_CONTACTLIST_CUSTID
  271. USABLE IDX_CONTACTLIST_CUSTID
  272. USABLE IDX_CONTACTLIST_CUSTID
  273. USABLE IDX_CONTACTLIST_CUSTID
  274. USABLE IDX_CONTACTLIST_CUSTID
  275. USABLE IDX_CONTACTLIST_CUSTID
  276. USABLE IDX_CONTACTLIST_CUSTID
  277. USABLE IDX_CONTACTLIST_CUSTID
  278. USABLE IDX_CONTACTLIST_CUSTID
  279. USABLE IDX_CONTACTLIST_CUSTID
  280. USABLE IDX_CONTACTLIST_CUSTID
  281. USABLE IDX_CONTACTLIST_CUSTID
  282. USABLE IDX_CONTACTLIST_CUSTID
  283. USABLE IDX_CONTACTLIST_CUSTID
  284. USABLE IDX_CONTACTLIST_CUSTID
  285. USABLE IDX_CONTACTLIST_CUSTID
  286. USABLE IDX_CONTACTLIST_CUSTID
  287. USABLE IDX_CONTACTLIST_CUSTID
  288. USABLE IDX_CONTACTLIST_CUSTID
  289. USABLE IDX_CONTACTLIST_CUSTID
  290. USABLE IDX_CONTACTLIST_CUSTID
  291. USABLE IDX_CONTACTLIST_CUSTID
  292. USABLE IDX_CONTACTLIST_CUSTID
  293. USABLE IDX_CONTACTLIST_CUSTID
  294. USABLE IDX_CONTACTLIST_CUSTID
  295. USABLE IDX_CONTACTLIST_CUSTID
  296. USABLE IDX_CONTACTLIST_CUSTID
  297. USABLE IDX_CONTACTLIST_CUSTID
  298. USABLE IDX_CONTACTLIST_CUSTID
  299. USABLE IDX_CONTACTLIST_CUSTID
  300. USABLE IDX_CONTACTLIST_CUSTID
  301. USABLE IDX_CONTACTLIST_CUSTID
  302. USABLE IDX_CONTACTLIST_CUSTID
  303. USABLE IDX_CONTACTLIST_CUSTID
  304. USABLE IDX_CONTACTLIST_CUSTID
  305. USABLE IDX_CONTACTLIST_CUSTID
  306. USABLE IDX_CONTACTLIST_CUSTID
  307. USABLE IDX_CONTACTLIST_CUSTID
  308. USABLE IDX_CONTACTLIST_CUSTID
  309. USABLE IDX_CONTACTLIST_CUSTID
  310. USABLE IDX_CONTACTLIST_CUSTID
  311. USABLE IDX_CONTACTLIST_CUSTID
  312. USABLE IDX_CONTACTLIST_CUSTID
  313. USABLE IDX_CONTACTLIST_CUSTID
  314. USABLE IDX_CONTACTLIST_CUSTID
  315. USABLE IDX_CONTACTLIST_CUSTID
  316. USABLE IDX_CONTACTLIST_CUSTID
  317. USABLE IDX_CONTACTLIST_CUSTID
  318. USABLE IDX_CONTACTLIST_CUSTID
  319. USABLE IDX_CONTACTLIST_CUSTID
  320. USABLE IDX_CONTACTLIST_CUSTID
  321. USABLE IDX_CONTACTLIST_CUSTID
  322. USABLE IDX_CONTACTLIST_CUSTID
  323. USABLE IDX_CONTACTLIST_CUSTID
  324. USABLE IDX_CONTACTLIST_CUSTID
  325. USABLE IDX_CONTACTLIST_CUSTID
  326. USABLE IDX_CONTACTLIST_CUSTID
  327. USABLE IDX_CONTACTLIST_CUSTID
  328. USABLE IDX_CONTACTLIST_CUSTID
  329. USABLE IDX_CONTACTLIST_CUSTID
  330. USABLE IDX_CONTACTLIST_CUSTID
  331. USABLE IDX_CONTACTLIST_CUSTID
  332. USABLE IDX_CONTACTLIST_CUSTID
  333. USABLE IDX_CONTACTLIST_CUSTID
  334. USABLE IDX_CONTACTLIST_CUSTID
  335. USABLE IDX_CONTACTLIST_CUSTID
  336. USABLE IDX_CONTACTLIST_CUSTID
  337. USABLE IDX_CONTACTLIST_CUSTID
  338. USABLE IDX_CONTACTLIST_CUSTID
  339. USABLE IDX_CONTACTLIST_CUSTID
  340. USABLE CNTR_ID_IDX1
  341. USABLE CNTR_ID_IDX1
  342. USABLE CNTR_ID_IDX1
  343. USABLE CNTR_ID_IDX1
  344. USABLE CNTR_ID_IDX1
  345. USABLE CNTR_ID_IDX1
  346. USABLE CNTR_ID_IDX1
  347. USABLE CNTR_ID_IDX1
  348. USABLE CNTR_ID_IDX1
  349. USABLE CNTR_ID_IDX1
  350. USABLE CNTR_ID_IDX1
  351. USABLE CNTR_ID_IDX1
  352. USABLE CNTR_ID_IDX1
  353. USABLE CNTR_ID_IDX1
  354. USABLE CNTR_ID_IDX1
  355. USABLE CNTR_ID_IDX1
  356. USABLE CNTR_ID_IDX1
  357. USABLE CNTR_ID_IDX1
  358. USABLE CNTR_ID_IDX1
  359. USABLE CNTR_ID_IDX1
  360. USABLE CNTR_ID_IDX1
  361. USABLE CNTR_ID_IDX1
  362. USABLE CNTR_ID_IDX1
  363. USABLE CNTR_ID_IDX1
  364. USABLE CNTR_ID_IDX1
  365. USABLE CNTR_ID_IDX1
  366. USABLE CNTR_ID_IDX1
  367. USABLE CNTR_ID_IDX1
  368. USABLE CNTR_ID_IDX1
  369. USABLE CNTR_ID_IDX1
  370. USABLE CNTR_ID_IDX1
  371. USABLE CNTR_ID_IDX1
  372. USABLE CNTR_ID_IDX1
  373. USABLE CNTR_ID_IDX1
  374. USABLE CNTR_ID_IDX1
  375. USABLE CNTR_ID_IDX1
  376. USABLE CNTR_ID_IDX1
  377. USABLE CNTR_ID_IDX1
  378. USABLE CNTR_ID_IDX1
  379. USABLE CNTR_ID_IDX1
  380. USABLE CNTR_ID_IDX1
  381. USABLE CNTR_ID_IDX1
  382. USABLE CNTR_ID_IDX1
  383. USABLE CNTR_ID_IDX1
  384. USABLE CNTR_ID_IDX1
  385. USABLE CNTR_ID_IDX1
  386. USABLE CNTR_ID_IDX1
  387. USABLE CNTR_ID_IDX1
  388. USABLE CNTR_ID_IDX1
  389. USABLE CNTR_ID_IDX1
  390. USABLE CNTR_ID_IDX1
  391. USABLE CNTR_ID_IDX1
  392. USABLE CNTR_ID_IDX1
  393. USABLE CNTR_ID_IDX1
  394. USABLE CNTR_ID_IDX1
  395. USABLE CNTR_ID_IDX1
  396. USABLE CNTR_ID_IDX1
  397. USABLE CNTR_ID_IDX1
  398. USABLE CNTR_ID_IDX1
  399. USABLE CNTR_ID_IDX1
  400. USABLE CNTR_ID_IDX1
  401. USABLE CNTR_ID_IDX1
  402. USABLE CNTR_ID_IDX1
  403. USABLE CNTR_ID_IDX1
  404. USABLE CNTR_ID_IDX1
  405. USABLE CNTR_ID_IDX1
  406. USABLE CNTR_ID_IDX1
  407. USABLE CNTR_ID_IDX1
  408. USABLE CNTR_ID_IDX1
  409. USABLE CNTR_ID_IDX1
  410. USABLE CNTR_ID_IDX1
  411. USABLE CNTR_ID_IDX1
  412. USABLE CNTR_ID_IDX1
  413. USABLE CNTR_ID_IDX1
  414. USABLE CNTR_ID_IDX1
  415. USABLE CNTR_ID_IDX1
  416. USABLE CNTR_ID_IDX1
  417. USABLE CNTR_ID_IDX1
  418. USABLE CNTR_ID_IDX1
  419. USABLE CNTR_ID_IDX1
  420. USABLE CNTR_ID_IDX1
  421. USABLE CNTR_ID_IDX1
  422. USABLE CNTR_ID_IDX1
  423. USABLE CNTR_ID_IDX1
  424. USABLE CNTR_ID_IDX1
  425. USABLE CNTR_ID_IDX1
  426. USABLE CNTR_ID_IDX1
  427. USABLE CNTR_ID_IDX1
  428. USABLE CNTR_ID_IDX1
  429. USABLE CNTR_ID_IDX1
  430. USABLE CNTR_ID_IDX1
  431. USABLE CNTR_ID_IDX1
  432. USABLE CNTR_ID_IDX1
  433. USABLE CNTR_ID_IDX1
  434. USABLE CNTR_ID_IDX1
  435. USABLE CNTR_ID_IDX1
  436. USABLE CNTR_ID_IDX1
  437. USABLE CNTR_ID_IDX1
  438. USABLE CNTR_ID_IDX1
  439. USABLE CNTR_ID_IDX1
  440. USABLE CNTR_ID_IDX1
  441. USABLE CNTR_ID_IDX1
  442. USABLE CNTR_ID_IDX1
  443. USABLE CNTR_ID_IDX1
  444. USABLE CNTR_ID_IDX1

  1. SQL> select status,index_name,table_name from user_indexes where status !='UNUSABLE';
  2. STATUS INDEX_NAME TABLE_NAME
  3. -------- ------------------------------ ------------------------------
  4. VALID PK_TREE_TB TREE_TB
  5. VALID SYS_C0015294 CUS_MERGE_QUERY
  6. VALID PK_CUST_REL_INFO CUST_REL_INFO
  7. VALID IDX_CUST_RELATION_UPD_1 CUST_RELATION_UPD
  8. VALID IDX_CUST_RELATION_UPD_2 CUST_RELATION_UPD
  9. VALID TMP_IDX2_UNCNTRNO CNTR_NO_UN_20160912
  10. VALID TMP_IDX1_UNCNTRNO CNTR_NO_UN
  11. VALID SYS_IL0020101372C00045$$ SYS_EXPORT_SCHEMA_01
  12. VALID SYS_C0024368 SYS_EXPORT_SCHEMA_01
  13. VALID SYS_MTABLE_00132B8FC_IND_1 SYS_EXPORT_SCHEMA_01
  14. VALID SYS_MTABLE_00132B8FC_IND_2 SYS_EXPORT_SCHEMA_01
  15. VALID SYS_C0015292 SUSP_CUSTOMER
  16. VALID IDX_PSN_CUSTOMER_UPD_NEW1_BAK PSN_CUSTOMER_UPD_BAK
  17. VALID IDX_PSN_CUSTOMER_UPD_1 PSN_CUSTOMER_UPD_20160901
  18. VALID IDX_PSN_CUSTOMER_UPD_2 PSN_CUSTOMER_UPD_20160901
  19. VALID IDX_PSN_HLDR_UPD_1 PSN_HLDR_UPD
  20. VALID IDX_PSN_HLDR_UPD_2 PSN_HLDR_UPD
  21. VALID IDX_CUST_RELATION_ID CUST_RELATION
  22. VALID IDX_CUST_RELATION_NO CUST_RELATION
  23. VALID SYS_C0024706 CUST_NO
  24. VALID SYS_C0015296 CUST_MERGE_MANAGE
  25. VALID PK_CUST_INFO CUST_INFO
  26. VALID PK_CUST_FAM_SPLITSHOW CUST_FAM_SPLITSHOW
  27. VALID PK_CUST_FAM_SPLIT CUST_FAM_SPLIT
  28. VALID PK_CUST_FAM_INFO CUST_FAM_INFO
  29. VALID PK_CUST_FAM_DISPLAY CUST_FAM_DISPLAY
  30. VALID PK_CUST_FAM_CHECKQUERY CUST_FAM_CHECKQUERY
  31. VALID PK_CUST_FAM_CHECK CUST_FAM_CHECK
  32. VALID PK_CUSTRELATE CUSTRELATE
  33. VALID PK_AU_CALENDAR AU_WORKCALENDAR
  34. VALID PK_AU_VISITOR AU_VISITOR
  35. VALID PK_AU_USERPROFILE AU_USERPROFILE
  36. VALID PK_LOGIN AU_USER
  37. VALID IDX_USER_LOGINID AU_USER
  38. VALID PK_AU_SYSPARAS AU_SYSPARAS
  39. VALID SYS_IL0001860042C00012$$ AU_SYSERROR
  40. VALID SYS_IL0001860042C00013$$ AU_SYSERROR
  41. VALID PK_AU_SYSERROR AU_SYSERROR
  42. VALID PK_AU_RESOURCE AU_RESOURCE
  43. VALID PK_AU_PROXYHISTORY AU_PROXYHISTORY
  44. VALID PK_AU_POSITION AU_POSITION
  45. VALID PK_AU_PARTYTYPE AU_PARTYTYPE
  46. VALID PK_AU_PARTYRELATIONTYPE AU_PARTYRELATIONTYPE
  47. VALID PK_AU_PARTYRELATION AU_PARTYRELATION
  48. VALID IDX_PR_PARENTCODE_CHILDCODE AU_PARTYRELATION
  49. VALID PK_AU_PARTY AU_PARTY
  50. VALID PK_AU_LOGIN_LOG AU_LOGIN_LOG
  51. VALID PK_AU_HISTORY AU_HISTORY
  52. VALID SYS_IL0001860032C00011$$ AU_HISTORY
  53. VALID PK_AU_FUNCTREE AU_FUNCTREE
  54. VALID IDX_UNIQUE_TOTALCODE AU_FUNCTREE
  55. VALID PK_AU_EMPLOYEE AU_EMPLOYEE
  56. VALID PK_AU_DEPARTMENT AU_DEPARTMENT
  57. VALID PK_AU_CONNECTRULE AU_CONNECTRULE
  58. VALID PK_AU_COMPANY AU_COMPANY
  59. VALID PK_AU_AUTHORIZE_LOG AU_AUTHORIZE_LOG
  60. VALID PK_AU_AUTHORIZE AU_AUTHORIZE
  61. VALID PK_AU_APPENDDATA AU_APPENDDATA
  62. VALID CONTACTLIST_IND1 CONTACTLIST
  63. VALID CONTACTLIST_IND2 CONTACTLIST
  64. VALID GRPPARTY_RELATION_IND1 GRP_PARTY_RELATION
  65. VALID GRPPARTY_RELATION_IND2 GRP_PARTY_RELATION
  66. VALID IDX_PSN_CUSTOMER_UPD_NEW1 PSN_CUSTOMER_UPD
  67. VALID IDX_PSN_CUSTOMER_UPD_NEW2 PSN_CUSTOMER_UPD
  68. VALID IDX_GRPPERSON_INFO GRP_PERSON
  69. VALID IDX_GRPPERSON_PARTYID GRP_PERSON
  70. VALID IDX_GUIBING_CHECK_NO GUIBING_CHECK_1021_2
  71. VALID GUIBINGTEST_IND1 GUIBINGTEST
  72. VALID SYS_IL0001860089C00006$$ EMP_JOB
  73. VALID PK_EMP_JOB EMP_JOB
  74. VALID EMP_ID_UNIQUE EMP_INFO
  75. VALID PK_INFO EMP_INFO
  76. VALID PK_EDUCATION EMP_EDUCATION
  77. VALID DUBIOUSRELATION_INDEX_PCBSC DUBIOUSRELATION
  78. VALID DUBIOUSRELATION_INDEX DUBIOUSRELATION
  79. VALID PK_DB_USERINFO DB_USERINFO
  80. VALID IDX_UNIQUE_BUILD_ROOM DB_ROOM
  81. VALID PK_DB_ROOM DB_ROOM
  82. VALID PK_DB_ORDER DB_ORDER
  83. VALID PK_DB_ITEM DB_ITEM
  84. VALID PK_DB_DISCOUNT DB_DISCOUNT
  85. VALID PK_DB_BUILD DB_BUILD
  86. VALID PK_DB_BOOK DB_BOOK
  87. VALID PK_DB_ACCOUNT DB_ACCOUNT
  88. VALID IDXTMPSTDCONTRACTINCR000002 TMP_STD_CONTRACT_INCR_000002
  89. VALID IND_OPEN_ID CMDS_TS
  90. VALID MERGTOAUDIT_INDEX MERGTOAUDIT
  91. VALID SYS_C0015300 MERGE_VERIFY_QUERY
  92. VALID SYS_C0015302 MERGE_VERIFY
  93. VALID SYS_C0015304 MERGE_RESULT_QUERY
  94. VALID SYS_C0015306 MERGED_MESSAGE
  95. VALID SYS_C0015271 MANUALSPLITSINGLE
  96. VALID SYS_C0015281 MANUALSPLITRESULTSINGLE
  97. VALID PK_MANUALSPLITRESULTLIST MANUALSPLITRESULTLIST
  98. VALID SYS_C0015276 MANUALSPLITCHECKSINGLE
  99. VALID PK_MANUALSPLITCHECKLIST MANUALSPLITCHECKLIST
  100. VALID PK_MANUALMERGERESULTLIST MANUALMERGERESULTLIST
  101. VALID SYS_C0023002 LISTTYPE
  102. VALID SYS_C0022997 LISTORDER
  103. VALID SYS_C0022998 LISTORDER
  104. VALID SYS_C0022995 LISTGROUP
  105. VALID PK_TASTFO IPSNCUSTOMER
  106. VALID IDX_X_FANSINFO_1214 X_FANSINFO_1214
  107. VALID IDX_X_FANSINFO X_FANSINFO_1207
  108. VALID PK_WSPARAM WSPARAM
  109. VALID PK_VERSIONINFO VERSIONINFO
  110. VALID PK_PURVIEWINFO_1 PURVIEWINFOERR
  111. VALID PK_PURVIEWINFO PURVIEWINFO
  112. VALID IDX_ZB_2 TEMP_PSN_CUSTOMER_REP_3
  113. VALID IDX_TEMP_PSN_CUSTOMER_REP_3 TEMP_PSN_CUSTOMER_REP_3
  114. VALID IDX_ZB_032001 TEMP_PSN_CUSTOMER_REP_3
  115. VALID IDX_ZB_1 TEMP_PSN_CNTR_HOLDER_REP_3
  116. VALID PK_REGISTERINFO REGISTERINFO
  117. VALID INDEX_REGISTERINFO_PARTYID REGISTERINFO
  118. VALID SYS_C0022991 BLACKORWHITE
  119. VALID SYS_C0022988 BLACKLIST
  120. VALID PK_BINDPOLOPTION BINDPOLOPTION
  121. VALID IDX_BINDPOLINFO_PARTYID BINDPOLINFO
  122. VALID IDX_BINDPOLINFO_CNTRNO BINDPOLINFO
  123. VALID PK_FACTORY FACTORY
  124. VALID IDX_ZB_031802 TEMP_PERSON_REP_3
  125. VALID IDX_ZB_031904 TEMP_PERSON_REP_21
  126. VALID IDX_ZB_31801 TEMP_INSURED_REP_3
  127. VALID PK_ORDERS ORDERS
  128. VALID PK_ORDERCONTENT ORDERCONTENT
  129. VALID IND_OPENIDPUTINFOBYCCS OPENIDPUTINFOBYCCS
  130. VALID OPENIDINFO_IND1 OPENIDINFO
  131. VALID OPENIDINFO_IND2 OPENIDINFO
  132. VALID INDEX_NEW_CLERK_CODE NEW_CLERK_CODE
  133. VALID IDX_INSURED_UPD_1 INSURED_UPD
  134. VALID IDX_INSURED_UPD_2 INSURED_UPD
  135. VALID INSURED_TMP_STATS_BAK INSURED_TMP_STATS_BAK
  136. VALID SYS_IL0007431970C00026$$ INSURED_TMP_STATS_BAK
  137. VALID TMP_IDX1_JSAPPLNO T_APPL_NO_JS
  138. VALID INDEX_APPL_INSURED APPL_INSURED
  139. VALID INDEX_APPL_INSURED_CUSTNO APPL_INSURED
  140. VALID PK_APPL_STATE APPL_STATE
  141. VALID INDEX_APPL_STATE APPL_STATE
  142. VALID INDEX_APPL_STATE_CNTRNO APPL_STATE
  143. VALID INDEX_INSUR_APPL INSUR_APPL
  144. VALID INDEX_INSUR_APPL_APPLNO INSUR_APPL
  145. VALID INDEX_INSUR_APPL_CUSTNO INSUR_APPL
  146. VALID IDX_INSURED_NO INSURED
  147. VALID IDX_INSURED INSURED
  148. VALID IDX_IDAUTHENTICATION_IDNO IDAUTHENTICATION
  149. VALID IDX_IDAUTHENTICATION_REID IDAUTHENTICATION
  150. VALID IDX_PERSON_YS PERSON_E
  151. VALID IDX_PERSON_NAME PERSON_E
  152. VALID IDX_PERSON_PARTYID PERSON_E
  153. VALID IDX_PERSON_YS_1 PERSON
  154. VALID PERSON_IND1 PERSON
  155. VALID PK_PASSWORDSTAT_1 PASSWORDSTATERR
  156. VALID PK_PASSWORDSTAT PASSWORDSTAT
  157. VALID PK_PASSWORDINFO_TEMP_1126 PASSWORDINFO_TEMP_20141126
  158. VALID PK_PASSWORDINFO_TEMP PASSWORDINFO_TEMP
  159. VALID PK_PASSWORDINFO_1 PASSWORDINFOERR
  160. VALID PK_PASSWORDINFO PASSWORDINFO
  161. VALID PK_APPL_BNFR APPL_BNFR
  162. VALID INDEX_APPL_BNFR APPL_BNFR
  163. VALID PK_ALL_DBLINK_INCR ALL_DBLINK_INCR
  164. VALID PK_ALL_DBLINK ALL_DBLINK
  165. VALID PK_AGENT AGENT
  166. VALID PK_ADDRCITIZENINFO ADDRCITIZENINFO
  167. VALID SYS_IL0008889750C00036$$ PLAN_TABLE
  168. VALID PK_AASTFOA CUSTDETAIL
  169. VALID IDX_CUSTOMINFO_CNTR_ID CUSTOMINFO_E_SINGLE_CNTR
  170. VALID SYS_C0015298 CUSTOMER_MERGE_QUERY
  171. VALID PK_CUSTOMERINFO CUSTOMERINFO
  172. VALID PK_CUSTOMERHISINFO CUSTOMERHISINFO
  173. VALID IDX_PSN_CUST_5YS2 PSN_CUSTOMER
  174. VALID IDX_PSN_CUST_CUSTID PSN_CUSTOMER
  175. VALID PSN_CUSTOMER_IDX1 PSN_CUSTOMER
  176. VALID IDX_PSN_CUST_UPDDATE PSN_CUSTOMER
  177. VALID TMP_IDX_CONTACTTEXT TEMP_CONTACT_LIST_DUBIOUS
  178. VALID TMP_IDX_CUSTID TEMP_CONTACT_LIST_DUBIOUS
  179. VALID IDX_GRPINFO_UPDDATE GRPINFO
  180. VALID CY_SCH_BRANCH_PK CY_SCH_BRANCH
  181. VALID CY_SCHTASK_ITEM_LOG_IDX4_OLD CY_SCHTASK_ITEM_LOG_20170802
  182. VALID CY_SCHTASK_ITEM_LOG_IDX3 CY_SCHTASK_ITEM_LOG
  183. VALID CY_SCHTASK_ITEM_LOG_IDX4 CY_SCHTASK_ITEM_LOG
  184. VALID CY_SCHTASK_ITEM_LOG_IDX1 CY_SCHTASK_ITEM_LOG
  185. VALID CY_SCHTASK_ITEM_LOG_IDX2 CY_SCHTASK_ITEM_LOG
  186. VALID CY_SCHPLAN_TASK_RUNTIME_K0 CY_SCHPLAN_TASK_RUNTIME
  187. VALID PK_CY_SCHPLAN_TASK_BRANCH CY_SCHPLAN_TASK_BRANCH
  188. VALID PK_CITIZENSIMPLEINFO CITIZENSIMPLEINFO
  189. VALID PK_CITIZENINFO CITIZENINFO
  190. VALID IDX_CHECK_UPD_NEW1_BAK CHECK_UPD_BAK
  191. VALID IDX_WECHAT_OPENID_1214 T_WECHAT_REGIST_1214
  192. VALID IDX_WECHAT_OPENID T_WECHAT_REGIST_1208
  193. VALID IDX_WECHAT_REGID T_WECHAT_REGIST_1208
  194. VALID IDX_CONTACT_COMB CONTACT_COMB
  195. VALID GRP_CUSTOMER_HIS_IDX1 GRP_CUSTOMER_HISTROY
  196. VALID GRP_CUSTOMER_HIS_IDX2 GRP_CUSTOMER_HISTROY
  197. VALID PK_GRP_CUSTOMER_EXCEP GRP_CUSTOMER_EXCEP
  198. VALID GRP_CUSTOMER_EXCEP_IDX1 GRP_CUSTOMER_EXCEP
  199. VALID TMP_IDX_STD_CONTACT_CNTRID TEMP_STD_CONTRACT_DUBIOUS
  200. VALID TMP_IDX_STD_CONTACT_CNTRNO TEMP_STD_CONTRACT_DUBIOUS
  201. VALID POL_ATTRIB_CBPS_CODE POL_ATTRIB
  202. VALID TEST1 POL_ATTRIB
  203. VALID GRP_CUSTOMER_IDX1 GRP_CUSTOMER
  204. VALID PK_GRP_CUSTOMER GRP_CUSTOMER
  205. VALID GRP_CUSTOMER_IDX2 GRP_CUSTOMER
  206. VALID TEST2 BRANCH_DEF
  207. VALID SYS_C0022986 RETURNMESSAGE
  208. VALID PK_REMOTESERVICE REMOTESERVICE
  209. VALID GRP_CNTR_HLDR_IDX1 GRP_CNTR_HLDR
  210. VALID GRP_CNTR_HLDR_IDX2 GRP_CNTR_HLDR
  211. VALID IDX_STD_CONTRACT_INFORCE STD_CONTRACT
  212. VALID IDX_STD_CONTACT_CNTRNO STD_CONTRACT
  213. VALID IDX_STD_CONTACT_CNTRID STD_CONTRACT
  214. VALID IDX_STD_CONTACT_APPLNO STD_CONTRACT
  215. VALID IDX_STD_SGID STD_CONTRACT
  216. VALID STAT_TABLE STAT_TABLE
  217. VALID SYS_IL0011725993C00026$$ STAT_TABLE
  218. VALID STAT_INSURED_20151113 STAT_INSURED_20151113
  219. VALID SYS_IL0013384187C00026$$ STAT_INSURED_20151113
  220. VALID STAT_INSURED_20151023 STAT_INSURED_20151023
  221. VALID SYS_IL0013055796C00026$$ STAT_INSURED_20151023
  222. VALID INDEX_SPLITTOAUDIT_PC SPLITTOAUDIT
  223. VALID INDEX_SPLITTOAUDIT_P SPLITTOAUDIT
  224. VALID INDEX_SPLITTOAUDIT_FP SPLITTOAUDIT
  225. VALID PK_SESSIONINFO SESSIONINFO
  226. VALID PK_SERVICEENGINE_SERVER SERVICEENGINE_SERVER
  227. VALID PK_SERVICEENGINE_CLIENT SERVICEENGINE_CLIENT
  228. VALID PK_SERVICEENGINE SERVICEENGINE
  229. VALID PK_RM_DICTIONA2 RM_DICTIONARYTYPE
  230. VALID IDXU_TYPEKEYWORD RM_DICTIONARYTYPE
  231. VALID PK_RM_DICTIONAR RM_DICTIONARY
  232. VALID IDXU_TYPE_KEY RM_DICTIONARY
  233. VALID I_T_PSN_CUSTOMER_V8_610000 T_PSN_CUSTOMER_V8_610000
  234. VALID INDEX_T_CUST_INFO_1512 T_CUST_INFO_1512
  235. VALID IDX_PARTY_REL_PARTYID PARTY_RELATION_E
  236. N/A PARTY_RELATION_IND_MAP PARTY_RELATION_E
  237. VALID PARTY_RELATION_IND2 PARTY_RELATION
  238. VALID PARTY_RELATION_IND1 PARTY_RELATION
  239. VALID IDX_POLINFO_CNTRID POLINFO
  240. VALID IDX_POLINFO_UPDDATE POLINFO
  241. VALID IDX_POLINFO_CGID POLINFO
  242. VALID PK_TASKTRACE TASKTRACE
  243. VALID PK_TASKSTAT TASKSTAT
  244. VALID PK_TASKINFO TASKINFO
  245. VALID PK_PHONEINFO PHONEINFO
  246. VALID IDX_CONTACTTEXT CONTACT_LIST
  247. VALID IDX_CUSTID CONTACT_LIST
  248. N/A IDX_CONTACTLIST_CUSTID CONTACT_LIST
  249. VALID INDEX_PARTYRELATION2_PC PARTYRELATION2
  250. VALID PSN_CUSTOMER_HIS_IDX1 PSN_CUSTOMER_HISTROY
  251. VALID PSN_CUSTOMER_HIS_IDX2 PSN_CUSTOMER_HISTROY
  252. VALID IDX_ZB_031901 PSN_CUSTOMER_DELETED
  253. VALID IDX_PSN_CUSTOMER_DEL_IDX1 PSN_CUSTOMER_DEL
  254. VALID IDX_PSN_CUSTOMER_DEL_IDX2 PSN_CUSTOMER_DEL
  255. VALID IDX_PSN_CNTR_CNTRID PSN_CNTR_HOLDER
  256. VALID IDX_PSN_CNTR_HOLDERNO PSN_CNTR_HOLDER
  257. VALID PK_CNTRHOLDERINFO CNTRHOLDERINFO
  258. VALID PK_PRODUCT PRODUCT
  259. VALID PK_CANCELCITIZENINFO CANCELCITIZENINFO
  260. VALID AA COMBINED_CNTR
  261. VALID COMBINED_CNTR_IDX1 COMBINED_CNTR
  262. VALID COMBINED_CNTR_IDX2 COMBINED_CNTR
  263. VALID CODEMANAGE_CODECODE CODEMANAGE
  264. VALID CNTR_CGID_IDX2 CNTR_CG_ID
  265. N/A CNTR_ID_IDX1 CNTR_CG_ID

查看归并耗时的sql脚本:
  1. SELECT round(ROUND(TO_NUMBER(to_date(aaaa.run_endtime, 'yyyy-mm-dd hh24:mi:ss') - to_date(aaaa.run_begintime, 'yyyy-mm-dd hh24:mi:ss')) * 24 * 60 * 60) / 60, 2),
  2. aaaa.run_begintime,
  3. aaaa.run_endtime,
  4. aaaa.wsid,
  5. bbbb.wsname
  6. FROM cmds.cy_schplan_log aaaa,
  7. cmds.cy_schplan bbbb
  8. WHERE to_date(aaaa.run_begintime, 'yyyy-mm-dd hh24:mi:ss') >= to_date('2017-02-21 00:00:00', 'yyyy-mm-dd hh24:mi:ss')
  9. AND bbbb.wsid = aaaa.wsid
  10. AND aaaa.wsid IN ('WS00000865')
  11. ORDER BY aaaa.run_begintime ASC;


查看中间库27.3的抽取情况
查看索引情况
  1. STATUS INDEX_NAME TABLE_NAME OWNER
  2. -------- ------------------------------ ------------------------------ ------------------------------
  3. N/A IDX_V8_CONTACT_LST_FLAG CONTACT_LST INCRCBPS8
  4. N/A INX2 CONTACT_CLSLIST_TEST INCRCBPS8
  5. N/A IDX_V8_CONTACT_CLSLIST_FLAG CONTACT_CLSLIST INCRCBPS8
  6. N/A IDX_CONTACT_CLSLIST CONTACT_CLSLIST INCRCBPS8
  7. N/A IDX_STD_CONTRACT STD_CONTRACT INCRCBPS8
  8. N/A IDX_V8_STD_CONTRACT_FLAG STD_CONTRACT INCRCBPS8
  9. N/A INDEX_GRP_CUSTOMER_COUNT_SEQ GRP_CUSTOMER INCRCBPS8
  10. N/A INDEX_GRP_CUSTOMER_FLAG GRP_CUSTOMER INCRCBPS8
  11. N/A IDX_V8_INSURED_FLAG INSURED INCRCBPS8
  12. N/A INDEX_HAVE_FLAG_APPL_STATE APPL_STATE INCRCBPS8
  13. N/A INDEX_HAVE_FLAG_APPL_INSURED APPL_INSURED INCRCBPS8
  14. N/A IDX_V8_BENEFICIARY_FLAG BENEFICIARY INCRCBPS8
  15. N/A IDX_V8_PSN_CUSTOMER_FLAG PSN_CUSTOMER INCRCBPS8
  16. N/A IDX_BRANCH_TRANS PSN_CNTR_HOLDER INCRCBPS8
  17. N/A IDX_V8_PSN_CNTR_HOLDER_FLAG PSN_CNTR_HOLDER INCRCBPS8
  18. N/A INDEX_HAVE_FLAG_INSUR_APPL INSUR_APPL INCRCBPS8
  19. N/A IDX_V8_CUSTOMER_FLAG CUSTOMER INCRCBPS8
  20. N/A IDX_V8_SVR_GROUP_FLAG SVR_GROUP INCRCBPS8
  21. N/A INDEX_HAVE_FLAG_APPL_BNFR APPL_BENEFICIARY INCRCBPS8
  22. N/A IDX_PSN_CNTR_HLDR PSN_CNTR_HLDR INCRSLBPS
  23. N/A IDX_STD_CONTRACT STD_CONTRACT INCRSLBPS
  24. N/A IDX_PSN_CUSTOMER PSN_CUSTOMER INCRSLBPS
  25. N/A IDX_CONTACT_CLSLIST CONTACT_CLSLIST INCRSLBPS
  26. N/A IDX_CUSTOMER CUSTOMER INCRSLBPS
  27. N/A IDX_CG_INSURED CG_INSURED INCRSLBPS
  28. N/A IDX_T1PRD T1PRD INCRUBPS
  29. N/A IDX_T1APL T1APL INCRUBPS
  30. N/A IDX_T1BNF T1BNF INCRUBPS
  31. N/A IDX_T1RECVACCT T1RECVACCT INCRUBPS
  32. N/A IDX_T1PLCBASE T1PLCBASE INCRUBPS
  33. N/A IDX_T1ISD T1ISD INCRUBPS
  34. N/A IDX_T4CUSTBASE T4CUSTBASE INCRUBPS
  35. N/A IDX_T_PLCAPL T_PLCAPL INCRGAPS
  36. N/A IDX_T_CUSTOMER T_CUSTOMER INCRGAPS
  37. N/A IDX_T_SUBPLCISD T_SUBPLCISD INCRGAPS
  38. N/A IDX_T_SUBPLCBANK T_SUBPLCBANK INCRGAPS
  39. N/A IDX_T_PLCBASE T_PLCBASE INCRGAPS
  40. N/A IDX_T_SUBPLCBNF T_SUBPLCBNF INCRGAPS
  41. N/A IDX_T_SUBPLCBASE T_SUBPLCBASE INCRGAPS
  42. N/A IDX_T_CUSTOMER T_CUSTOMER INCRTKPS
  43. N/A IDX_T_SUBPLCISD T_SUBPLCISD INCRTKPS
  44. N/A IDX_T_PLCBASE T_PLCBASE INCRTKPS
  45. N/A IDX_T_PLCAPL T_PLCAPL INCRTKPS
  46. N/A IDX_T_SUBPLCBNF T_SUBPLCBNF INCRTKPS
  47. N/A IDX_T_SUBPLCBASE T_SUBPLCBASE INCRTKPS
  48. N/A IDX_T_SUBPLCBANK T_SUBPLCBANK INCRTKPS
  49. 46 rows selected.


下面是短险的一些分区表索引情况
  1. SQL> select status,index_name from user_ind_partitions;
  2. STATUS INDEX_NAME
  3. -------- ------------------------------
  4. USABLE IDX_STD_CONTRACT
  5. USABLE IDX_STD_CONTRACT
  6. USABLE IDX_STD_CONTRACT
  7. USABLE IDX_PSN_CUSTOMER
  8. USABLE IDX_PSN_CUSTOMER
  9. USABLE IDX_PSN_CUSTOMER
  10. USABLE IDX_PSN_CNTR_HLDR
  11. USABLE IDX_PSN_CNTR_HLDR
  12. USABLE IDX_PSN_CNTR_HLDR
  13. USABLE IDX_CUSTOMER
  14. USABLE IDX_CUSTOMER
  15. USABLE IDX_CUSTOMER
  16. USABLE IDX_CONTACT_CLSLIST
  17. USABLE IDX_CONTACT_CLSLIST
  18. USABLE IDX_CONTACT_CLSLIST
  19. USABLE IDX_CG_INSURED
  20. USABLE IDX_CG_INSURED
  21. USABLE IDX_CG_INSURED

下面是8版的:
  1. SQL> select status,index_name from user_ind_subpartitions;
  2. STATUS INDEX_NAME
  3. -------- ------------------------------
  4. USABLE INX2
  5. USABLE INX2
  6. USABLE INX2
  7. USABLE INX2
  8. USABLE INX2
  9. USABLE INX2
  10. USABLE IDX_V8_BENEFICIARY_FLAG
  11. USABLE IDX_V8_BENEFICIARY_FLAG
  12. USABLE IDX_V8_BENEFICIARY_FLAG

从结果上,分区表和非分区表上面的索引状态都是正常的。

 

继续查看目的端库的情况

awr报告,增加了sql的数量

第一节点取了前100个,第二节点取了前50个,都没有看到p_cust_merg_incr_new_n相关的存储过程
   
其中于到sql语句数量有关的参数是top_n_sql、top_n_sql_max、top_sql_pct,如果我们要在生成的AWR报告里包含50条语句,那么可以先执行
exec DBMS_WORKLOAD_REPOSITORY.AWR_SET_REPORT_THRESHOLDS(top_n_sql=>100),然后再使用@?/rdbms/admin/awrrpt生成报告,如此报告里便能看到top 50的SQL了,记住DBMS_WORKLOAD_REPOSITORY.AWR_SET_REPORT_THRESHOLDS的执行结果仅在session级别生效。


2017/2/23 星期四 10:40:44

今天检查中间库的抽取情况,将awr报告sql数量调到100个
在耗时的排行里面,看到主要sql如下:

第一个sql
  1. SELECT ROWID, "CUST_ID",
  2. "CONTACT_SEQ",
  3. "CONTACT_TYPE",
  4. "PRIM_CONTACT_WAY",
  5. "FROM_BRANCH",
  6. "COMMIT_CSN",
  7. "OP_SEQ",
  8. "LAST_OP_FLAG",
  9. "HAVE_FLAG"
  10. FROM "CONTACT_LST" "B"
  11. WHERE "HAVE_FLAG"='0'
  12. AND "FROM_BRANCH"='120000'

第二个sql
  1. SELECT "CNTR_ID",
  2. "BANK_CODE",
  3. "BANK_ACC_NO",
  4. "ACC_CUST_NAME",
  5. "FROM_BRANCH",
  6. "COMMIT_CSN",
  7. "OP_SEQ",
  8. "LAST_OP_FLAG",
  9. "ORA_ROWSCN"
  10. FROM "STD_CONTRACT" "B"
  11. WHERE "FROM_BRANCH"='440000'
  12. AND "ORA_ROWSCN">=14582484242296
  13. AND "ORA_ROWSCN"<=14582485963333


通过sql id确认第一个sql的执行者是incrslbps,并且经过查询发现
  1. SQL> select index_name from user_indexes where table_name ='CONTACT_LST';
  2. no rows selected

下面梳理短险用户下面所有表的索引情况:

  1. SQL> select a.index_name,b.table_name,a.status from user_indexes a,user_tables b where a.table_name=b.table_name order by b.table_name;
  2. INDEX_NAME TABLE_NAME STATUS
  3. ------------------------------ ------------------------------ --------
  4. INDEX_HAVE_FLAG_APPL_BNFR APPL_BENEFICIARY VALID
  5. INDEX_HAVE_FLAG_APPL_INSURED APPL_INSURED VALID
  6. INDEX_HAVE_FLAG_APPL_STATE APPL_STATE VALID
  7. IDX_CG_INSURED CG_INSURED N/A
  8. IDX_CONTACT_CLSLIST CONTACT_CLSLIST N/A
  9. IDX_CUSTOMER CUSTOMER N/A
  10. INDEX_HAVE_FLAG_INSUR_APPL INSUR_APPL VALID
  11. IDX_PSN_CNTR_HLDR PSN_CNTR_HLDR N/A
  12. IDX_PSN_CUSTOMER PSN_CUSTOMER N/A
  13. STD_CONTRACT_IND1 STD_CONTRACT VALID
  14. IDX_STD_CONTRACT STD_CONTRACT N/A



  1. create index CONTACT_LST_IND1 on CONTACT_LST(HAVE_FLAG,FROM_BRANCH) tablespace CMDSEXIDXTBS parallel 32;
    alter index CONTACT_LST_IND1 noparallel;

  2. SQL> select index_name from user_indexes where table_name ='CONTACT_LST';
  3. INDEX_NAME
  4. ------------------------------
  5. CONTACT_LST_IND1
给CONTACT_LST表添加索引,完成之后的执行计划对比

  1. ---------------------------------------------------------------------------------------------------
  2. | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
  3. ---------------------------------------------------------------------------------------------------
  4. | 0 | SELECT STATEMENT | | 8 | 576 | 32441 (3)| 00:06:30 | | |
  5. | 1 | PARTITION RANGE ALL| | 8 | 576 | 32441 (3)| 00:06:30 | 1 |1048575|
  6. |* 2 | TABLE ACCESS FULL | CONTACT_LST | 8 | 576 | 32441 (3)| 00:06:30 | 1 |1048575|
  7. ---------------------------------------------------------------------------------------------------
  1. -----------------------------------------------------------------------------------------------------------------------
  2. | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
  3. -----------------------------------------------------------------------------------------------------------------------
  4. | 0 | SELECT STATEMENT | | 8 | 576 | 5 (0)| 00:00:01 | | |
  5. | 1 | TABLE ACCESS BY GLOBAL INDEX ROWID| CONTACT_LST | 8 | 576 | 5 (0)| 00:00:01 | ROWID | ROWID |
  6. |* 2 | INDEX RANGE SCAN | CONTACT_LST_IND1 | 8 | | 4 (0)| 00:00:01 | | |
  7. -----------------------------------------------------------------------------------------------------------------------


2017/2/24 星期五 20:42:09

今天对日志表进行了归档和重建,删除了不必要的索引
  1. select sess.sid,
  2. sess.serial#,
  3. lo.oracle_username,
  4. lo.os_user_name,
  5. ao.object_name,
  6. lo.locked_mode
  7. from v$locked_object lo, dba_objects ao, v$session sess, v$process p
  8. where ao.object_id = lo.object_id
  9. and lo.session_id = sess.sid and ao.object_name like 'CY_SCHTASK%';
  10. SELECT distinct(object_name)
  11. ,STATISTIC_NAME
  12. ,value
  13. FROM v$segment_statistics
  14. WHERE STATISTIC_NAME = 'row lock waits'
  15. ORDER BY 1;
  16. CREATE TABLE "CMDS"."CY_SCHTASK_ITEM_LOG"
  17. ( "TASKID" VARCHAR2(32),
  18. "TASKNO" VARCHAR2(32),
  19. "STARTDT" VARCHAR2(20),
  20. "ELAPSEDSECS" NUMBER,
  21. "EXSTATE" NUMBER,
  22. "ERRMSG" VARCHAR2(1024),
  23. "EXNO" VARCHAR2(64),
  24. "EXSUBNO" VARCHAR2(64),
  25. "WSID" VARCHAR2(32),
  26. "BRANCHCODE" VARCHAR2(32)
  27. ) SEGMENT CREATION IMMEDIATE
  28. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  29. NOCOMPRESS LOGGING
  30. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  31. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  32. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  33. TABLESPACE "CUST"
  34. ora ddl cmds index CY_SCHTASK_ITEM_LOG_IDX1
  35. ora ddl cmds index CY_SCHTASK_ITEM_LOG_IDX2
  36. ora ddl cmds index CY_SCHTASK_ITEM_LOG_IDX3
  37. ora ddl cmds index CY_SCHTASK_ITEM_LOG_IDX4
  38. CREATE INDEX "CMDS"."CY_SCHTASK_ITEM_LOG_IDX1" ON "CMDS"."CY_SCHTASK_ITEM_LOG"("TASKNO")
  39. CREATE INDEX "CMDS"."CY_SCHTASK_ITEM_LOG_IDX2" ON "CMDS"."CY_SCHTASK_ITEM_LOG"("BRANCHCODE")
  40. CREATE INDEX "CMDS"."CY_SCHTASK_ITEM_LOG_IDX3" ON "CMDS"."CY_SCHTASK_ITEM_LOG"("TASKID", "EXSTATE")
  41. CREATE INDEX "CMDS"."CY_SCHTASK_ITEM_LOG_IDX4" ON "CMDS"."CY_SCHTASK_ITEM_LOG"("TASKID", "TASKNO", "EXNO", "EXSUBNO");
  42. explain plan for
  43. UPDATE cy_schtask_item_log
  44. SET taskid = 'TA00000321'
  45. ,taskno = '141'
  46. ,exno = 'SH17337715'
  47. ,exsubno = '170223162239632.009160.0001.000000'
  48. ,wsid = 'WS00002062'
  49. ,exstate = '1'
  50. ,elapsedsecs = '0.89'
  51. WHERE taskid = 'TA00000321'
  52. AND taskno = '141'
  53. AND exno = 'SH17337715'
  54. AND exsubno = '170223162239632.009160.0001.000000';
  55. select * from table(dbms_xplan.display);
  56. create index "CMDS"."CY_SCHTASK_ITEM_LOG_IDX5" ON "CMDS"."CY_SCHTASK_ITEM_LOG"("EXSUBNO") parallel 32;
  57. alter index CY_SCHTASK_ITEM_LOG_IDX5 noparallel;







附件列表

cmds系统归并缓慢的处理过程 2017-2-16的更多相关文章

  1. linux Kernell crash dump------kdump 的安装设置+Linux系统崩溃的修复解决过程+mysql+kvm

    http://www.ibm.com/developerworks/cn/linux/l-cn-dumpanalyse/https://www.kernel.org/pub/linux/utils/k ...

  2. 浅析嵌入式Linux系统的构成和启动过程

    在我们的周围,大量的嵌入式设备都是基于Linux系统来构建的,嵌入式Linux与主机Linux相比有着自己的一些特点,本文就嵌入式Linux系统的构成和启动过程做一些总结. 一.嵌入式Linux系统构 ...

  3. ubuntu18.04 & Windows10 双系统关机缓慢

    1.Windows与Ubuntu双系统关机缓慢并不少见,有时单系统下的Linux mint或Ubuntu都会出现这个现象.主要原因是还有没有关闭的进程或者是软件兼容的原因,所以导致每次关机都有一个90 ...

  4. 系统运行缓慢,CPU 100%,以及Full GC次数过多问题的排查思路

    前言 处理过线上问题的同学基本上都会遇到系统突然运行缓慢,CPU 100%,以及Full GC次数过多的问题.当然,这些问题的最终导致的直观现象就是系统运行缓慢,并且有大量的报警. 本文主要针对系统运 ...

  5. 嵌入式Linux系统的构成和启动过程

    转自:http://blog.csdn.net/weiganyi/article/details/11561859 在我们的周围,大量的嵌入式设备都是基于Linux系统来构建的,嵌入式Linux与主机 ...

  6. hdu6078[优化递推过程] 2017多校4

    这道题一眼看过去好像和最长公共子序列有点像. 一开始只想到暴力的推法, 令dp[i][j][k]表示 a[i]=b[j](即以ai,bj为结尾的波浪序列的方案数), 且最终状态为k(0,1分别代表下降 ...

  7. cmds系统数据库源端大表数据更新优化

    cmds系统数据库源端大表数据更新优化 以下脚本可以用于将表按照rowid范围分区,获得指定数目的rowid Extent区间(Group sets of rows in the table into ...

  8. 性能测试 | 系统运行缓慢,CPU 100%,Full GC次数过多问题排查

    处理过线上问题的同学基本上都会遇到系统突然运行缓慢,CPU 100%,以及Full GC次数过多的问题.当然,这些问题的最终导致的直观现象就是系统运行缓慢,并且有大量的报警.本文主要针对系统运行缓慢这 ...

  9. Linux系统LVM逻辑卷创建过程以及自动化脚本

    转至:https://cloud.tencent.com/developer/article/1068328 Linux系统LVM逻辑卷创建过程以及自动化脚本 2018-03-21阅读 6300   ...

随机推荐

  1. 数据对象如何定义为Java代码示例

    想将数据保存为这样子: [{ "subject": { "code": "B123", "words": [{ &quo ...

  2. React组件介绍与使用(父传子、子传父、兄弟传)

    1.创建组件的方法     1.1.函数式无状态组件 1.1.1.语法 1 function myComponent(props) { 2 return 3 <div>Hello {pro ...

  3. 可靠性、幂等性和事务 Kafka

    Kafka笔记—可靠性.幂等性和事务   分类: 消息队列 标签: kafka 这几天很忙,但是我现在给我的要求是一周至少要出一篇文章,所以先拿这篇笔记来做开胃菜,源码分析估计明后两天应该能写一篇.给 ...

  4. Linux内核中的IS_ERR()实现

    1.前言 对于任何一个指针来说,必然有三种情况:一种是有效指针,一种是NULL,也就是空指针,一种是错误指针,也就是无效指针,在Linux内核中,所谓的错误指针就是指其已经到达了内核空间的最后一个pa ...

  5. WPF 营销管理平台

    利用空闲时间计划开发一款开源的营销商城平台,项目写的不够规范,有需要可以看看 项目介绍: 前端使用 WPF,采用MVVM模式  后端数据库采用的sqlite 依靠本地化运行   后期可能会采用WebA ...

  6. vue父子(父传子)传值

    vue2.0中,实现父子组件间的传值,需要依靠一个props的属性,作为变量接收的对象. 注:vue.js文件引用的是本地的js文件,拷贝本机运行时,可以使用cnd替换. https://www.bo ...

  7. 【数据结构与算法】单链表操作(C++)

    #include <stdio.h> #include <malloc.h> /*单链表节点定义*/ typedef struct LNode { int data; //da ...

  8. c++中如何判断sqlite表是否存在

    在项目中遇到需要判断sqlite数据库中某个表是否存在,上网搜索一些资料后,解决了问题,如下: 首先,在每个sqlite数据库中,都有一个名为sqlite_master的表,它定义了数据库的模式,它的 ...

  9. Java基础扫盲系列(-)—— String中的format

    Java基础扫盲系列(-)-- String中的format 以前大学学习C语言时,有函数printf,能够按照格式打印输出的内容.但是工作后使用Java,也没有遇到过格式打印的需求,今天遇到项目代码 ...

  10. ping程序和tracert(traceroute)背后的故事--ICMP协议

    为路由器生,为交换机死,为了Ping通奋斗一辈子-----tracert.cn 上面是一个网络工程师的个人定位,很有意思,哈哈!那么我们来看看ping和tracert都是什么吧 PING (Packe ...