using oracle hints problem
Posted: Mon 06 Jul 2009 07:24
Hi all,
I have some problem. I have created a select statement that will get data from two databases combinied via datase link.
The statement will get some data of tables from the first database and join many data from tables of the second database. The time cost of this statement was heavy. So I have used the orcale hint "DRIVING_SITE":
SELECT /*+ DRIVING_SITE(Table) */
...
When firing the statement in Toad for Oracle it will get the data very fast.
When firing the statment via dotnetConnect for Oracle in a .NET application, I will get an exception:
"ORA-00932: inconsistent datatypes: expected NUMBER got TIMESTAMP\nORA-02063: ..."
How can I solve the problem?
regards,
Ralf
I have some problem. I have created a select statement that will get data from two databases combinied via datase link.
The statement will get some data of tables from the first database and join many data from tables of the second database. The time cost of this statement was heavy. So I have used the orcale hint "DRIVING_SITE":
SELECT /*+ DRIVING_SITE(Table) */
...
When firing the statement in Toad for Oracle it will get the data very fast.
When firing the statment via dotnetConnect for Oracle in a .NET application, I will get an exception:
"ORA-00932: inconsistent datatypes: expected NUMBER got TIMESTAMP\nORA-02063: ..."
How can I solve the problem?
regards,
Ralf