IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to create a DB2 tablespace using spufi???


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sreenath.yettapu

New User


Joined: 10 Feb 2011
Posts: 1
Location: United Kingdom

PostPosted: Thu Feb 10, 2011 9:51 am
Reply with quote

Hi,

I am trying to create my own database, storage group and tablespace using the following query in SPUFI. But I am facing problem with tablespace creation query. Can anyone please guide me?

Thanks in Advance..

Query:
CREATE DATABASE DBS2302 STOGROUP STGS2302;
---------+---------+---------+---------+---------+---------+
DSNE616I STATEMENT EXECUTION WAS SUCCESSFUL, SQLCODE IS 0
---------+---------+---------+---------+---------+---------+

CREATE TABLESPACE TSS2302 IN DBS2302
USING STOGROUP STGS2302
BUFFERPOOL BP0;
---------+---------+---------+---------+---------+---------+---------+--
DSNT408I SQLCODE = -204, ERROR: STGS2302 IS AN UNDEFINED NAME
DSNT418I SQLSTATE = 42704 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNXISUB SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = 40 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'00000028' X'00000000' X'00000000' X'FFFFFFFF'
X'00000000' X'00000000' SQL DIAGNOSTIC INFORMATION
---------+---------+---------+---------+---------+---------+---------+--
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Feb 10, 2011 12:09 pm
Reply with quote

you probably have to qualify the storage group name,
since under spufi,
you are running with your userid as creator.

easiest way to find out is look at the sysibm. table that lists storage groups.
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Fri Feb 11, 2011 2:17 pm
Reply with quote

Hi

You probably mentioned a STOGROUP name which is not available in the catalog table(SYSIBM.SYSSTOGROUP).

Check the SYSIBM.SYSSTOGROUP table for the existance of the STOGROUP you have mentioned in the statement.

The STOGROUP you specified in the create database statement will bypass the STOGROUP name if it is not in the catalog table and will use the default STOGROUP name (SYSDEFLT).

But when you are creating a tablespace in a STOGROUP, DB2 will check whether it is available in the catalog table..

Hope this will help you.

Regards
Raghu
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Fri Feb 11, 2011 2:18 pm
Reply with quote

Hi sreenath.yettapu

Test it and post the result.

Regards
Raghu
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts force tablespace using LISTDEF input DB2 1
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
Search our Forums:

Back to Top