If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 z/OS SQLCODE = -904, when creating declared global temporary table.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-03-09, 07:56
sushanth bobby sushanth bobby is offline
Registered User
 
Join Date: Nov 2008
Location: Hyderabad
Posts: 4
DB2 z/OS SQLCODE = -904, when creating declared global temporary table.

Hi guyz,

When i executed the following code in SPUFI, i got the following ERROR message.
Code:
  DECLARE GLOBAL TEMPORARY TABLE DEPTTMP                                        
    (DEPT    SMALLINT NOT NULL                                                  
    ,NAME    CHAR(5)  NOT NULL                                                  
    )                                                                           
  ;                                                                             
---------+---------+---------+---------+---------+---------+---------+---------+
DSNT408I SQLCODE = -904, ERROR:  UNSUCCESSFUL EXECUTION CAUSED BY AN            
         UNAVAILABLE RESOURCE. REASON 00E7009A, TYPE OF RESOURCE 200, AND       
         RESOURCE NAME TABLESPACE IN TEMPDB                                     
DSNT418I SQLSTATE   = 57011 SQLSTATE RETURN CODE                                
DSNT415I SQLERRP    = DSNXIDCL SQL PROCEDURE DETECTING ERROR                    
DSNT416I SQLERRD    = 15 0  0  -1  0  0 SQL DIAGNOSTIC INFORMATION              
DSNT416I SQLERRD    = X'0000000F'  X'00000000'  X'00000000'  X'FFFFFFFF'        
         X'00000000'  X'00000000' SQL DIAGNOSTIC INFORMATION                    
---------+---------+---------+---------+---------+---------+---------+---------+
TEMPDB database already exists with one Segmented tablespace TMPSTS01.

Can i know the reason for this ? How can i get over & resolve it ?

Thank You,
Sushanth BObby
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On