Calling all Oracle heads, I’ve got a weird problem with a sql query…
Running locally, an IIS server running a basic web service executing a query via a VPN connection to another Oracle database.
Many other queries work, some more that take longer to return data.
It’s an Oracle 9i database.
Initially I was using an Oracle 11g client, then switched back to 10g thinking it may be that.
I thought it may be a ADO.NET Oracle driver issue, so extracted the sql to a file a ran it directly from sqlplus (console). Same thing. 01331 after about 1 second.
I can run the same query on the target site using an old 4gl sql editor using 9i client and it works. I tested it on SQL Worksheet on the client at the target site it work.
The only thing unusual with this sql statement is that it performs a tree walk using the CONNECT BY function.
I don’t think it’s a time out issue as more complex (well certainly larger) queries eventually return data. I did something like select count(*) from largetable where longstring not like ‘%test%’ to provide enough time to try an recreate a timeout, but it didn’t. Additionally the 03113 error occurs quite quickly after executing the statement. Nothing I can see in the sqlnet.log.
I would really appreciate any pointers?
Thanks in advance,
Sam
I’ve found the problem to be including a column of type long in the select query.
Can anybody think of a reason for this?
Tried two Oracle clients (10/11) over two guest os’ (Vista/Windows 7) and same problem.
Different local firewalls, no Oracle alert logs, no sqlnet logs. No idea.
Any further suggestions? Or is it Oracle support time?
I managed to solve this problem. I ended up porting the .net project to .net 4 and using the Oracle.DataAccess provider.
The original query contained a nested treewalk using the connect by function, which worked on the server, but not from the client. I kept getting ORA03113.
I had further problems using the 2.x version of the ODP.NET – ORA-12560: TNS:protocol adapter error. To solve this I installed the latest oracle client, 11.2 and the latest ODP.NET client, 11.2. Granted permissions to oracle home (and sub folders/item) – rebooted.
Hope this helps someone.