Home » SQL & PL/SQL » SQL & PL/SQL » Error -933: ORA-00933: SQL command not properly ended ORA-02063: preceding line from abc
Error -933: ORA-00933: SQL command not properly ended ORA-02063: preceding line from abc [message #47351] Wed, 11 August 2004 07:41 Go to next message
Hari
Messages: 59
Registered: August 2000
Member
Hi,
Upon quering the view xxx_vw as given below

SELECT COUNT(1)
FROM xxx_vw
WHERE a = 'aaa'
AND NOT EXISTS (SELECT 1
FROM xxx_vw
WHERE b = 'bbb'
AND a = 'aaa');
I'm getting the following error.
Error -933: ORA-00933: SQL command not properly ended ORA-02063: preceding line from abc

The above error is coming upon using a correlated subquery.

A normal subquery on the same view doesn't throw any error.

The view xxx_vw is using database links which are pointing to Oracle 8i.
The view xxx_vw is on Oracle 9i.

Please let me know, how to solve the problem.
Is there is any compatability with 9i & 8i on using a correlated subquery on a view which using database links.

Thanks in advance.
-hari.
Re: Error -933: ORA-00933: SQL command not properly ended ORA-02063: preceding l [message #47932 is a reply to message #47351] Sun, 03 October 2004 00:09 Go to previous messageGo to next message
jugnu gupta
Messages: 1
Registered: October 2004
Junior Member
Hello Hari,
I also faced the same error for which i tried following and it worked:
Drop the link and recreate the link with some different name and use that in your query.
I hope it will work for you also.
Thanks
Jugnu
Re: Error -933: ORA-00933: SQL command not properly ended ORA-02063: preceding l [message #48614 is a reply to message #47351] Fri, 03 December 2004 07:41 Go to previous message
Danielle
Messages: 5
Registered: February 2002
Junior Member
CREATE OR REPLACE TYPE BODY Jogador_objtyp AS
MEMBER FUNCTION numero_de_gols RETURN INTEGER is
numeroGols INTEGER;
BEGIN
select (jogador.fez_ntab).count into numeroGols
from Jogador_objtab jogador;
RETURN numeroGols;
END;
MEMBER FUNCTION numero_de_gols(ano INTEGER) RETURN INTEGER is
numeroGols2 INTEGER;
BEGIN
select (jogador.fez_ntab).count into numeroGols2
from Jogador_objtab jogador, table(cast(jogador.escalado_para_ntab as Escalacao_ntabtyp)) escalacao,deref(escalacao.escalada_para_ref) jogo
where deref(jogo.pertence_a_ref).ano = ano;
RETURN numeroGols2;
END;
MEMBER FUNCTION numero_de_jogos(ano INTEGER) RETURN INTEGER is
numeroJogos INTEGER;
BEGIN
select (c.possui_ntab).count into numeroJogos
from Campeonato_objtab c
where c.ano = ano;
RETURN numeroJogos;
END;
END;
/
Previous Topic: build WHERE clause
Next Topic: To disable truncation of column name by SQL*Plus command
Goto Forum:
  


Current Time: Sat Aug 02 11:14:33 CDT 2025