By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,196 Members | 973 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,196 IT Pros & Developers. It's quick & easy.

SELECT DISTINCT causes ORA-03113 only on SQLPlus

P: n/a
-- 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
-- The query in question:
FROM scott.T_XR_CUST t2
,(SELECT distinct t2.USER_ID
WHERE rownum <= 27526) t8
-- 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 - Production

Personal Oracle9i Release - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release - Production
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.