SQL引起的,修改写法即可
SQL> select t3.SOURCE_ID, t4.SOURCE_ID, count(1)
2 from (select bss_id,
3 user_mobile,
4 to_char(query_time, ‘yyyymmddhh24miss‘) query_time,
5 ‘tj‘ SOURCE_ID,
6 area_id,
7 to_char(query_time, ‘yyyymmdd‘) dt
8 from ltyyt_st.t_mobbiz_bss
9 where operate_type in (‘1‘, ‘2‘, ‘3‘)
10 and result = ‘0‘
11 and query_time >= to_date(‘2014-11-18‘, ‘yyyy-mm-dd‘)
12 and query_time < to_date(‘2014-11-19‘, ‘yyyy-mm-dd‘)) t3
13 full join (select bss_id, max(query_time) qt, ‘hd‘ SOURCE_ID
14 from t_ods_tmpmobbiz
15 where operate_type in (‘2‘, ‘3‘, ‘4‘)
16 and location_type <> ‘yl‘
17 group by bss_id) t4
18 on t3.bss_id = t4.bss_id
19 group by t3.SOURCE_ID, t4.SOURCE_ID;
ERROR:
ORA-00600: internal error code, arguments: [qernsRowP], [1], [], [], [], [],
[], [], [], [], [], []
no rows selected
Execution Plan
----------------------------------------------------------
Plan hash value: 468241507
--------------------------------------------------------------------------------
--------------------------------------------------
| Id | Operation | Name | Rows | Bytes
|TempSpc| Cost (%CPU)| Time | Pstart| Pstop |
--------------------------------------------------------------------------------
--------------------------------------------------
| 0 | SELECT STATEMENT | | 234K| 1831
K| | 15114 (2)| 00:03:02 | | |
| 1 | SORT GROUP BY NOSORT | | 234K| 1831
K| | 15114 (2)| 00:03:02 | | |
| 2 | VIEW | VW_FOJ_0 | 234K| 1831
K| | 15114 (2)| 00:03:02 | | |
|* 3 | HASH JOIN FULL OUTER | | 234K| 13
M| | 15114 (2)| 00:03:02 | | |
| 4 | PARTITION RANGE SINGLE | | 3 | 93
| | 8 (0)| 00:00:01 | 38 | 38 |
| 5 | VIEW | | 3 | 93
| | 8 (0)| 00:00:01 | | |
|* 6 | TABLE ACCESS BY LOCAL INDEX ROWID| T_MOBBIZ_BSS | 3 | 141
| | 8 (0)| 00:00:01 | 38 | 38 |
|* 7 | INDEX RANGE SCAN | I_MBD_D | 26 |
| | 2 (0)| 00:00:01 | 38 | 38 |
| 8 | VIEW | | 234K| 7098
K| | 15103 (2)| 00:03:02 | | |
| 9 | HASH GROUP BY | | 234K| 12
M| 16M| 15103 (2)| 00:03:02 | | |
|* 10 | TABLE ACCESS FULL | T_ODS_TMPMOBBIZ | 234K| 12
M| | 11793 (2)| 00:02:22 | | |
--------------------------------------------------------------------------------
--------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
3 - access("T3"."BSS_ID"="T4"."BSS_ID")
6 - filter("RESULT"=‘0‘ AND ("OPERATE_TYPE"=‘1‘ OR "OPERATE_TYPE"=‘2‘ OR "OPE
RATE_TYPE"=‘3‘))
7 - access("QUERY_TIME">=TO_DATE(‘ 2014-11-18 00:00:00‘, ‘syyyy-mm-dd hh24:mi
:ss‘) AND "QUERY_TIME"<TO_DATE(‘
2014-11-19 00:00:00‘, ‘syyyy-mm-dd hh24:mi:ss‘))
10 - filter(("OPERATE_TYPE"=‘2‘ OR "OPERATE_TYPE"=‘3‘ OR "OPERATE_TYPE"=‘4‘) A
ND "LOCATION_TYPE"<>‘yl‘)
Statistics
----------------------------------------------------------
1 recursive calls
1 db block gets
706859 consistent gets
0 physical reads
0 redo size
749 bytes sent via SQL*Net to client
520 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
0 rows processed
;