I have an agent that does a look up to an Oracle database. The agent connects to the database fine using a DSN on my workstation. It does not return a result set for any query I try.
I have validated the query by trying it in the Oracle SQL Plus client. Depending on the query, I get 20 - 400 results in the SQL Plus client.
I have validated the DSN by using MS Access to bring in linked tables from the Oracle database. I can view the data through MS Access with no problems.
I have also used ndctest to validate the connection.
I don’t get any errors, I don’t see any problem other than the fact that no matter what query I try, I get 0 (zero) records returned in the result set.
Has anyone else had similar problems with Oracle databases? Do I need to format the query differently? Do I need to set the fetchbatch size or the cache size in some specific way (currently I haven’t set them at all)? I’m about to start trial and error, but if someone has insight, it could save me some time.
thanks in advance,
Tom
Subject: UPDATE
Funny thing- when I actually copied the query out of the debugger and pasted it into SQLPlus, I got an error.
I ended up having to put single quotes around a variable I was passing into the query in order to make it work.
Funny that I’d have to actually get the query verbatim from the debugger. When I type the same thing in or copy it from the code and paste it into SQLPlus it works fine.
Wonders never cease.
Subject: Problem with LS:DO Connection to Oracle- no result set
I also used to have a similar problem when I was working with migrating data from notes to MySQL tables and then some data into Oracle tables. Connection seems OK from client. But I do not know whey I did not get connection to the Oracle source thru Script. It was always failing. I could able to query tables but unable to access it thru script. With the same script, changing the source name and table etc., I can be able to migrate data to Mysql tables.
As finally, I did not get any solution, DBAdmin created the tables in MySQL exactly as in Oracle, into which I Migrated the Notes data. He said he will later migrate the data into Oracle tables from mySQL. I don’t know how he did it. But that’s the way I completed migration leaving Oracle source.