Home » SQL & PL/SQL » SQL & PL/SQL » ORA-02063: preceding line from (Oracle 10.2.4.0)
ORA-02063: preceding line from [message #523194] Fri, 16 September 2011 02:54 Go to next message
Its_me_ved
Messages: 979
Registered: October 2009
Location: India
Senior Member
I am getting the below error when executed the query below in production database.
The database version of both the database is 10.2.0.4
ORA-01008: not all variables bound
ORA-02063: preceding line from DBLINK.PROD.NIC.CMS

select count(*)
  from order_tbl@DBLINK.PROD.NIC.CMS a
 group by a.col1
having count(distinct a.col2) > 1

the same sql is working fine in dev environment.

Is this a bug?

Regards
Ved
Re: ORA-02063: preceding line from [message #523195 is a reply to message #523194] Fri, 16 September 2011 03:15 Go to previous messageGo to next message
Michel Cadot
Messages: 68765
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Is this a standalone SQL query or is this called from PL/SQL?

Regards
Michel
Re: ORA-02063: preceding line from [message #523205 is a reply to message #523195] Fri, 16 September 2011 03:53 Go to previous messageGo to next message
Its_me_ved
Messages: 979
Registered: October 2009
Location: India
Senior Member
its a standalone sql query.

segards
Ved
Re: ORA-02063: preceding line from [message #523215 is a reply to message #523205] Fri, 16 September 2011 04:22 Go to previous messageGo to next message
Michel Cadot
Messages: 68765
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Just this SELECT, it is not a part of an UPDATE, MERGE or DELETE?
What is the definition of the remote object?
What is the RBDMS and version target of the db link?

Regards
Michel
Re: ORA-02063: preceding line from [message #523218 is a reply to message #523215] Fri, 16 September 2011 04:36 Go to previous messageGo to next message
Its_me_ved
Messages: 979
Registered: October 2009
Location: India
Senior Member
Its just a simple select.
The remote database is Oracle 10.2.0.4. The version is same for the two database.

If I query like below there is no error and getting the output.
select count(*)
  from order_tbl@DBLINK.PROD.NIC.CMS a
 group by a.col1


But when I used having count(*)>1 then I am getting the error. I am executing the sql in
pl/sql developer. In other DEV environment it working fine.


Regards
Ved

[Updated on: Fri, 16 September 2011 04:37]

Report message to a moderator

Re: ORA-02063: preceding line from [message #523219 is a reply to message #523215] Fri, 16 September 2011 04:39 Go to previous messageGo to next message
cookiemonster
Messages: 13967
Registered: September 2008
Location: Rainy Manchester
Senior Member
Michel Cadot wrote on Fri, 16 September 2011 10:22

What is the definition of the remote object?

Re: ORA-02063: preceding line from [message #523221 is a reply to message #523219] Fri, 16 September 2011 05:01 Go to previous messageGo to next message
Its_me_ved
Messages: 979
Registered: October 2009
Location: India
Senior Member
Its a table. The column name is not the issue here.Provided correct column name

Regards
Ved
Re: ORA-02063: preceding line from [message #523223 is a reply to message #523221] Fri, 16 September 2011 05:13 Go to previous messageGo to next message
Michel Cadot
Messages: 68765
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Quote:
The column name is not the issue here

If you say so. you then know the final answer? Otherwise you can't say it is not the issue.

Quote:
What is the RBDMS and version target of the db link?


Please answer ALL the questions we asked you and stay with your issue.

Regards
Michel
Re: ORA-02063: preceding line from [message #523233 is a reply to message #523223] Fri, 16 September 2011 05:44 Go to previous messageGo to next message
Its_me_ved
Messages: 979
Registered: October 2009
Location: India
Senior Member
What I meant that I provided the correct column name of the table.

What is the RBDMS and version target of the db link?

> Oracle 10.2.0.4

Both the database is same oracle version

Regards
Ved
Re: ORA-02063: preceding line from [message #523237 is a reply to message #523233] Fri, 16 September 2011 05:58 Go to previous messageGo to next message
Michel Cadot
Messages: 68765
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
So it seems a bug, refer to Oracle support.
Of course you will to provide us a complete test case which you didn't post here (too bad).

Regards
Michel

[Updated on: Fri, 16 September 2011 06:00]

Report message to a moderator

Re: ORA-02063: preceding line from [message #523240 is a reply to message #523237] Fri, 16 September 2011 06:09 Go to previous messageGo to next message
Its_me_ved
Messages: 979
Registered: October 2009
Location: India
Senior Member

My apologies!! Due to some restrictions I am unable to provide the test case in the database 10.2.0.4.

When tried with analytical function it worked.

select cnt from 
(
select count(*) ( partition by a.col1) cnt
  from order_tbl@DBLINK.PROD.NIC.CMS a
)
where cnt >1 


Regards
Ved
Re: ORA-02063: preceding line from [message #523262 is a reply to message #523240] Fri, 16 September 2011 08:09 Go to previous messageGo to next message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
Its_me_ved wrote on Fri, 16 September 2011 07:09

My apologies!! Due to some restrictions I am unable to provide the test case in the database 10.2.0.4.


Why, are some of the keys on your keyboard locked or missing? Do you know what a test case is?
Re: ORA-02063: preceding line from [message #523279 is a reply to message #523262] Fri, 16 September 2011 08:35 Go to previous message
Its_me_ved
Messages: 979
Registered: October 2009
Location: India
Senior Member
Michel/Robert,
I found that the problem occured in PLSQL Developer tool. I used SQL plus and its working fine.Thanks for giving your time!

@joy_division,
Again, I would say due to some restrictions..hope you understand:)
Regards,
Ved
Previous Topic: can any body help me on this
Next Topic: sql query
Goto Forum:
  


Current Time: Thu Aug 07 21:56:47 CDT 2025