Using global temporary tables with java jdbc [message #479355] |
Sat, 16 October 2010 05:54 |
pyscho
Messages: 134 Registered: December 2009
|
Senior Member |
|
|
I am encountering a strange problem. I am using a global temp table created as such
DROP TABLE PF.PF_ANOMALIES_TMP CASCADE CONSTRAINTS;
CREATE GLOBAL TEMPORARY TABLE PF.PF_ANOMALIES_TMP
(
ID VARCHAR2(10 BYTE) NOT NULL,
FVD_TYPE VARCHAR2(10 BYTE) NOT NULL,
CLIENT_ID VARCHAR2(10 BYTE),
SEDOL_CODE VARCHAR2(7 BYTE),
PLAN_ID VARCHAR2(10 BYTE),
LTY_ID VARCHAR2(10 BYTE),
ORIG_PRICE_CCY VARCHAR2(3 BYTE),
CUSTOM_ANOMALY_DESC VARCHAR2(300 BYTE),
ANOMALY_ERROR_CODE NUMBER(9)
)
ON COMMIT PRESERVE ROWS
NOCACHE;
DROP PUBLIC SYNONYM PF_ANOMALIES_TMP;
CREATE PUBLIC SYNONYM PF_ANOMALIES_TMP FOR PF.PF_ANOMALIES_TMP;
GRANT DELETE, INSERT, SELECT, UPDATE ON PF.PF_ANOMALIES_TMP TO PF_USER;
The front end app is programmed in java, and at some point this global temp table is getting populated (java calls an oracle proc that populates this tmp table, using jdbc)
Now at a later point, I am trying to query this global temp table using the same connection that was originally used to populate the table in the first place.. but i am getting no rows back
Below is the backend query im testing that is callewd by front end java to populate a dialog, but i get nothing back
OPEN anomalies_cursor
FOR
SELECT pat.client_id
FROM pf_anomalies_tmp pat;
RETURN anomalies_cursor
Can anyone indicate what is possibly going wrong here?
|
|
|
|
|
|
|