一个drop operation 持续2天没有出来!!

接到T3的请求说一个Drop materialied view preserve table 持续2天没有出来。

原来是被一个大的SQL block住了。

看来是一个大的循环。

SQL> select xidusn, object_id, session_id, locked_mode from v$locked_object;

    XIDUSN  OBJECT_ID SESSION_ID LOCKED_MODE
---------- ---------- ---------- -----------
         9        212        242           3
         9        224        242           3
         9        228        242           3
         9        226        242           3
         9        220        242           3
SQL> SELECT PID FROM V$PROCESS WHERE ADDR=
  2          (SELECT PADDR FROM V$SESSION WHERE SID=242);

       PID
----------
       136
       SQL> select blocking_session,event from v$session where sid=242;

BLOCKING_SESSION
----------------
EVENT
--------------------------------------------------------------------------------
             264
library cache lock

SQL> select sql_id,sql_hash_value,sql_address
  2   from v$session where sid=264;

SQL_ID                     SQL_HASH_VALUE SQL_ADDRESS
-------------------------- -------------- ----------------
2h78kmrvf333d                  4141976685 0000000389313F10
SQL> select  SQL_FULLTEXT from v$sql where SQL_ID='2h78kmrvf333d';
The  follow SQL block the drop operation.
/* Formatted on 2009/08/04 13:34 (Formatter Plus v4.8.8) */
SELECT   devs.device_name, al.nbocc, al.nbalert, al.nbticket, al.nbmast, t999,
        t998, t997, t996, t995, t994, t993, t992, t991, t990, t989, t988,
        t987, t986, t985, t984, t983, t982, t981, t980, t979, t978, t977,
        t976, t975, t974, t973, t972, t971, t970, t969, t968, t967, t966,
        t965, t964, t963, t962, t961, t960, t959, t958, t957, t956, t955,
        t954, t953, t952, t951, t950, t949, t948, t947, t946, t945, t944,
        t943, t942, t941, t940, t939, t938, t937, t936, t935, t934, t933,
        t932, t931, t930, t929, t928, t927, t926, t925, t924, t923, t922,
        t921, t920, t919, t918, t917, t916, t915, t914, t913, t912, t911,
        t910, t909, t908, t907, t906, t905, t904, t903, t902, t901, t900,
        t899, t898, t897, t896, t895, t894, t893, t892, t891, t890, t889,
        t888, t887, t886, t885, t884, t883, t882, t881, t880, t879, t878,
        t877, t876, t875, t874, t873, t872, t871, t870, t869, t868, t867,
        t866, t865, t864, t863, t862, t861, t860, t859, t858, t857, t856,
        t855, t854, t853, t852, t851, t850, t849, t848, t847, t846, t845,
        t844, t843, t842, t841, t840, t839, t838, t837, t836, t835, t834,
        t833, t832, t831, t830, t829, t828, t827, t826, t825, t824, t823,
        t822, t821, t820, t819, t818, t817, t816, t815, t814, t813, t812,
        t811, t810, t809, t808, t807, t806, t805, t804, t803, t802, t801,
        t800, t799, t798, t797, t796, t795, t794, t793, t792, t791, t790,
        t789, t788, t787, t786, t785, t784, t783, t782, t781, t780, t779,
        t778, t777, t776, t775, t774, t773, t772, t771, t770, t769, t768,
        t767, t766, t765, t764, t763, t762, t761, t760, t759, t7

你可能感兴趣的:(sql,session,object,library,table,cache)