I have a problem with using temporary tables for storing output results of my java procedure inside Oracle DB.
Connection connection =
DriverManager.getConnection("jdbc:default:connection:");
...
st.executeUpdate("CREATE GLOBAL TEMPORARY TABLE TT1 (id NUMBER, name VARCHAR2(10)) ON COMMIT DELETE ROWS");
st.executeUpdate("INSERT INTO TT1 VALUES (1, 'Scott')");
...
After executing procedure I want to manage the data from temporary table using SQL code, but temporary table "doesn't exist".Is it erased because i made commit in java?
I tried create table with ON COMMIT PRESERVE ROWS, but have same result. Is it because java is running in another session?