469,643 Members | 1,452 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

SELECT DISTINCT causes ORA-03113 only on SQLPlus

-- The issue
This following query works fine on Toad and PowerBuilder yet when it is run
on SQLPlus I get: "ORA-03113: end-of-file on communication channel"

When I remove the distinct from the first line (capitalized below) it runs
fine on SQLPlus.

Is there some flag I need to set in SQLPlus to get this to work
properly?
-- The query in question:
SELECT DISTINCT t2.USER_GROUP_ID nn
FROM scott.T_XR_CUST t2
,(SELECT distinct t2.USER_ID
FROM scott.T_XR_CUST_ORDER t2
WHERE rownum <= 27526) t8
WHERE t2.USER_ID = t8.USER_ID
;
-- The tables I am selecting from
create table scott.t_xr_cust
(cust_id number(10,0) NOT NULL,
,user_group_id number(10,0) NOT NULL
);
Primary key is cust_id.

create table scott.t_xr_cust_order
(cust_id number(10,0) NOT NULL,
,order_id number(10,0) NOT NULL
);
Primary key is cust_id, order_id.
Foreign key constraint exists on the cust_id column and tr_xr_cust.cust_id.
-- Environment
OS: Running Windows XP (Home Edition) on a Toshiba A25-S207 laptop.

SQL*Plus: Release 9.2.0.1.0 - Production

Personal Oracle9i Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Jul 19 '05 #1
0 3329

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Arthur | last post: by
5 posts views Thread by Martin Feuersteiner | last post: by
2 posts views Thread by mfyahya | last post: by
3 posts views Thread by Tcs | last post: by
9 posts views Thread by Kelvin | last post: by
5 posts views Thread by Daniel Wetzler | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.