Hi,
I have just added in a Database Server to one of my solutions that is talking to an Oracle 10g database using a read-only username/password to allow my solution to look up Purchase Orders from another system back-ended by Oracle.
(My solution is using SQL Server as back-end)
This is the first time I have connected to Oracle and it took me ages to get the JDBC connection configured properly as I was given a SID that I had to 'translate' into the long string from the ORA.TNS file...
This connection is actually going over some 'data pipe' using a secure connection from one hospital to another.
I was having a problem where when using Smart Client and viewing the form that shows the linked data from Oracle, sometimes error messages pop up and it seems that the connection pool is 'exhausted' and sockets are closed.
It might be that after a certain amount of time without any calls to that connection, Oracle is closing the connection? (This part of the solution may not be accessed for long periods of time)
I tried using 'Query Validation' & 'SELECT 1;', but it didn't like it (bad char), so got rid of ';' then it wanted a 'FROM' so I made it 'SELECT 1 FROM PURCHASE_ORDERS' but that didn't work either, so had to go back to 'Exception Validation'.
Is there a way I can use something like 'Query Validation' & 'SELECT 1;' to make it keep the connection 'alive'??
I have set
Max Conn Active = 50
Max Conn Idle = 10
Max Prep Stmts Idel = 100
I also didn't understand quite how to set up the Schema that is suggested in a dialog by Servoy about using the Oracle username to stop it showing system tables. When I tried creating a schema with the username it just didn't connect, so I have it set to default <none>...
If anyone that is using Oracle can advise me, I'd be very grateful
Thanks
Rafi