Database Tuning (MOSC)

MOSC Banner

TNS-12570 While running a query

edited Aug 14, 2012 5:19PM in Database Tuning (MOSC) 10 commentsAnswered ✓
Hi, I have a query that spans 3 tables with multiple sub selects. The result is a TNS-12570 when run through ODBC.
In SQLPlus, the query returns a few rows and pauses for a few seconds and returns more rows eventually finishing.
The environment is Windows 2008 Server VM and Oracle 11g.
The query is as follows :
select a.name, a.id, b.somedata, (select count(*) from table_c where table_c.id = a.id and table_c.value = 0) ,
(select count(*) from table_c where table_c.id = a.id and table_c.value = 1) ...
(select count(*) from table_c where table_c.id = a.id and table_c.value = 15)

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