Home » SQL & PL/SQL » SQL & PL/SQL » end-of-file on communication channel (11.2.0.1.0)
end-of-file on communication channel [message #648766] Thu, 03 March 2016 02:10 Go to next message
pointers
Messages: 451
Registered: May 2008
Senior Member
Hi,

I wrote the following peace of code


WITH t AS
     (SELECT   m.*, COUNT (*) cnt
          FROM (SELECT nspp.ppp_name_agg, a.mkt_id prod_id, a.cal_date dt,
                       CASE
                          WHEN a.rec_count <> 'NR'
                             THEN 0
                          ELSE 1
                       END otd_flg
                  FROM ap_fact_file_count a,
                       ap_rep_file_dim b,
                       ap_rep_src_dim spp,
                       ap_ods.ods_ppp_master_new nspp
                 WHERE a.file_dim_key = b.file_dim_key
                   AND a.src_dim_key = spp.src_dim_key
                   AND spp.src_key = nspp.ppp_key
                   AND a.rec_count NOT IN ('NE')
                   AND b.delivery_status = 'Y'
                   AND a.cal_date < TRUNC (SYSDATE, 'mon')) m
      GROUP BY m.ppp_name_agg, m.prod_id, m.dt, m.otd_flg),
       t1 AS
     (SELECT   ppp_name_agg , SUM (cnt) / COUNT (DISTINCT prod_id) tcnt,
               TO_CHAR (dt, 'yyyymm') dt
          FROM t
         WHERE TO_CHAR (dt, 'yyyymm') > '201507'
      GROUP BY t.ppp_name_agg, TO_CHAR (t.dt, 'yyyymm'))
      ,t2 AS
     (SELECT   ppp_name_agg, TO_CHAR (dt, 'yyyymm') dt,
               SUM (cnt) / COUNT (DISTINCT prod_id) pcnt
          FROM t
         WHERE otd_flg = 0
      GROUP BY ppp_name_agg, TO_CHAR (dt, 'yyyymm'))
 SELECT t1.ppp_name_agg, t1.dt, t2.pcnt / t1.tcnt
  FROM t1, t2
 WHERE t1.ppp_name_agg = t2.ppp_name_agg AND t1.dt = t2.dt
/

I am not sure what iss wrong with this code but it throws the following error.
WITH t AS
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Process ID: 8577
Session ID: 299 Serial number: 14463



Thank you in advance.

Regards,
Pointers
Re: end-of-file on communication channel [message #648767 is a reply to message #648766] Thu, 03 March 2016 02:12 Go to previous message
Michel Cadot
Messages: 68647
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

ORA-00600/ORA-07445/ORA-03113 = Oracle bug => search on Metalink/MOS and/or call Oracle support
Have a look at alert.log and trace files.
You can also read this article: Troubleshooting Internal Errors.

Previous Topic: ORA-02292: integrity constraint error
Next Topic: Too many results
Goto Forum:
  


Current Time: Fri Apr 26 19:35:37 CDT 2024