same version of DB, different query results. [message #429050] |
Sun, 01 November 2009 19:14 |
kang
Messages: 89 Registered: November 2007
|
Member |
|
|
select ltrim(max(sys_connect_by_path(plc_nm, ', ')), ', ') plc_nm
from (select plc_nm,
row_number() over(order by regexp_replace(PLC_NM, '[url=http://www.orafaq.com/wiki/:space:]:space:[/url]', '')) rnum
from (
select distinct *
from (
SELECT a.PLC_NM,
a.busi_deal_no
FROM TB_USE_PLC a,
tb_seal_ri_prms_detl s
where a.use_plc_seq = s.use_plc_seq
and s.busi_deal_no(+) = '10'
and s.busi_detl_seq(+) = '1'
union all
SELECT a.PLC_NM,
a.busi_deal_no
FROM TB_USE_PLC a,
tb_unseal_ri_prms_detl s
where a.use_plc_seq = s.use_plc_seq
and s.busi_deal_no(+) = '10'
and s.busi_detl_seq(+) = '1'
union all
SELECT a.PLC_NM,
a.busi_deal_no
FROM TB_USE_PLC a,
tb_rg_prms_detl s
where a.use_plc_seq = s.use_plc_seq
and s.busi_deal_no(+) = '10'
and s.busi_detl_seq(+) = '1'
)
ORDER BY REGEXP_REPLACE(PLC_NM, '[url=http://www.orafaq.com/wiki/:space:]:space:[/url]', '')))
start with rnum = 1
connect by prior rnum = rnum - 1
ORA-03113: end-of-file on communication channel
the versions of two databases are exactly the same.
select * from v$version;
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Productio
NLSRTL Version 10.2.0.3.0 - Production
why one database complains ora-03113?
my client tool is pl/sql developer 7.1.
|
|
|
|
|