I'm having trouble with using an Oracle Global Temporary Table on one of our servers. Here's the details of what I'm trying to accomplish.
- Create OracleConnection.
- Begin an OracleTransaction from that connection.
- Create an OracleCommand to insert a single value into an Oracle global temporary table (GTT). e.g. insert into MY_GTT (SOME_FIELD) values (123);
- Enlist above command in transaction and ExecuteNonQuery.
- Create another OracleCommand to read that value from the Oracle GTT. e.g. select SOME_FIELD from MY_GTT;
- Enlist above command in transaction and ExecuteReader.
- Commit the transaction.
This case works on all of our servers except one. What is even stranger, is that this test case does work on the server in question after the worker processes are recycled, but subsequent requests do not work.
So, maybe the server is not properly recycling the connections or something like that...