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

Why Table Space is created same as table name


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

New User


Joined: 07 Feb 2007
Posts: 32
Location: Chennai

PostPosted: Mon Mar 12, 2007 3:25 pm
Reply with quote

In DB2(Zos) i created a table and the table was created. I checked in SYSIBM.SYSTABLES and i saw that the table space in which this table is stored has the same name as the table name. I did not create the tablespace. Can any one explain this.
Back to top
View user's profile Send private message
venu.mainframes
Warnings : 1

New User


Joined: 12 Mar 2007
Posts: 1
Location: hyderabad

PostPosted: Mon Mar 12, 2007 3:28 pm
Reply with quote

can we modify a table space name
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Mar 12, 2007 3:40 pm
Reply with quote

Hi venu.mainframes,

Please read forum rules & start a new thread for this
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Mon Mar 12, 2007 4:57 pm
Reply with quote

MoLong,

If you dont mention the path where your table should be placed, Then DB2 places it in the default database DSNDB04 and it allocates the table space for you as well. The tablespace name would look similar to your table name.
Back to top
View user's profile Send private message
MoLong

New User


Joined: 07 Feb 2007
Posts: 32
Location: Chennai

PostPosted: Mon Mar 12, 2007 7:09 pm
Reply with quote

Hi,
When I try to create a table in the database with another userid I'm getting an error that I do not have the permission to create table on the object <my db2 database>
How do i resolve this.
Please give the command.
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Mon Mar 12, 2007 7:25 pm
Reply with quote

Get in touch with DBA and get the required Database previliges.
Back to top
View user's profile Send private message
MoLong

New User


Joined: 07 Feb 2007
Posts: 32
Location: Chennai

PostPosted: Mon Mar 12, 2007 7:48 pm
Reply with quote

Hi Vinay,
Don't we have previlege DSNDB04 by default?
What is the command for giving the previlege?

ML
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Mon Mar 12, 2007 8:16 pm
Reply with quote

Well, It depends on the installation actually. There may be few installations where when a TSO userid is created they may grant some privileges by default.

One has to use the SQL DCL's GRANT & REVOKE in order to grant & revoke the access from the users. Its purely installation dependent.

To generalise, In DB2 No access will be granted by default. It has to be granted explcitly.
Back to top
View user's profile Send private message
MoLong

New User


Joined: 07 Feb 2007
Posts: 32
Location: Chennai

PostPosted: Tue Mar 13, 2007 9:06 am
Reply with quote

Hi Vinay, icon_smile.gif
I've been a a oracle dba.
There we give
Code:
GRANT CREATE TABLE TO USERID

to allow a userid to create objects.
Here what command must be given.
Do we have to exclusively create users. Wont TSO ids be taken.
Please give the command to allow a user USERID to be able to create objects in DSNDB04.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top