SQL Language (MOSC)

MOSC Banner

Using multiple IN statements in WHERE clause results in EOF on communication channel

edited Feb 18, 2010 4:02AM in SQL Language (MOSC) 11 commentsAnswered
We have an application that is running a count statement against a table to determine the number of records we will be retrieving back from the table prior to loading the data. 

We have two environments that are running the same code:

  • Environment A  - Linux based Oracle 10.2.0.3 implementation
  • Environment B - Solaris Based Oracle 10.2.0.3 implementation

The table we are running a count against has multiple rows per ID (about 2.5 million rows total in the table), so our count query looks like this:

Select count(distinct SCID) from myTable a

where a.SCID in (2304, 2305, 3589, 7649, 8972...)    -- this can have up to 999 values in it

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center