Create global temporary table [message #10263] |
Mon, 12 January 2004 01:18 |
Ric Jones
Messages: 1 Registered: January 2004
|
Junior Member |
|
|
Hi all,
I’m trying to create a global temporary table (using 8.1.7.4 on AIX) but I keep getting ORA-01031 “insufficient privileges” error whenever I run it. the user has its own tablespace and "create session" & "unlimited tablespace" privileges only but as far as I was aware, anyone could create a temp table regardless of their system privileges/roles – or am I completely wrong ??
If I am wrong, will the user need the “create table” privilege, even for a temporary table ??
TIA,
Ric Jones
|
|
|
|
|
Re: Create global temporary table [message #10494 is a reply to message #10278] |
Mon, 26 January 2004 13:12 |
Warren Crossing
Messages: 1 Registered: January 2004
|
Junior Member |
|
|
SQL> CREATE GLOBAL TEMPORARY TABLE T_REPORT13A AS SELECT * FROM dual;
Table created.
However I still get the insufficient privileges error
using the JDBC drivers from oracle classes12.jar oracle 8.1.5
java.sql.SQLException: ORA-01031: insufficient privileges
ORA-06512: at "HSDST.FN_REPORT13B", line 97
|
|
|
Re: Create global temporary table [message #10503 is a reply to message #10494] |
Tue, 27 January 2004 03:22 |
|
Barbara Boehmer
Messages: 9088 Registered: November 2002 Location: California, USA
|
Senior Member |
|
|
What privileges were granted and were they granted through roles or directly? It may be that you need to grant the required privilegs directly rather than through roles. Can you also provide a cut and paste of the exact code and error messages received?
|
|
|