Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Connection closed on simple query
On Oracle 9.2i I get the error ORA-03113 when executing the following
script. I actually wrote the following example for analysing a more
complex query, but then I realized that I can't execute it - Oracle
just simply closes the connection.
Is this a bug? How can I work around it?
Greetings,
-Caspar
CREATE TABLE test_table (
country_id NUMBER(10),
country_text CHAR(20),
turnover NUMBER(10),
t_year NUMBER(4)
);
INSERT INTO test_table (country_id, country_text, turnover, t_year) VALUES (1, 'USA', 300, 1999); INSERT INTO test_table (country_id, country_text, turnover, t_year) VALUES (1, 'USA', 300, 2000); INSERT INTO test_table (country_id, country_text, turnover, t_year) VALUES (1, 'USA', 300, 2001); INSERT INTO test_table (country_id, country_text, turnover, t_year) VALUES (2, 'Germany', 300, 2000);
INSERT INTO test_table (country_id, country_text, turnover, t_year) VALUES (2, 'Germany', 300, 2001);
SELECT
COALESCE(t00.country_text, t01.country_text), t00.turnover, t01.turnover
![]() |
![]() |