Just ran into the same issue, nuking the security settings fixed it. Query is against Oracle 11g R2 64Bit, nothing special from what I can see, it feeds a crosstab. I don't think having security off in production is going to be allowable. Query below:-
with cnts as
(SELECT a.extract_month, s.family, s.service, s.operation_name, msg_count
FROM jas_ref_service_families s,
jas_hist_stats_oper a
where a.family(+) = s.family
and a.service (+) = s.service
and a.operation_name (+) = s.operation_name
and s.reported = 'X'
order by extract_month, lower(a.family), lower(a.service), lower(a.operation_name)
)
--comment
--comment
select fill_mnth as extract_month, fill.family || '.' || fill.service || '.' || fill.operation_name operation_name, nvl(msg_count, 0) msg_count
from cnts c,
(select r, last_day(add_months(mx_time, -1 * (r-1))) fill_mnth,
operation_name, family, service, mx_time
from (select rownum r
from dual
connect by rownum <= 12),
(select distinct family, service, operation_name,
max(extract_month) over() mx_time
from cnts)) fill
where extract_month (+) = fill_mnth
and c.family(+) = fill.family
and c.service (+) = fill.service
and c.operation_name (+) = fill.operation_name
order by fill_mnth, lower(fill.family), lower(fill.service), lower(fill.operation_name)