Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to create a DB2 tablespace using spufi???

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to create a DB2 tablespace using spufi???
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: 6970
Location: porcelain throne

PostPosted: Thu Feb 10, 2011 12:09 pm    Post subject:
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    Post subject: Reply to: How to create a DB2 tablespace using spufi???
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    Post subject: Reply to: How to create a DB2 tablespace using spufi???
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts Need better approach to create a sort... Vamshi Veludandi DFSORT/ICETOOL 8 Thu Mar 08, 2018 5:59 pm
No new posts Can we create REXX ouput in an Excel ... upendrasri CLIST & REXX 3 Wed Jan 17, 2018 8:19 pm
No new posts How to create issuer certificate? :'( vasanthz All Other Mainframe Topics 1 Sat Nov 18, 2017 5:14 am
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us