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
 
Why Table Space is created same as table name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Why Table Space is created same as table name
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    Post subject: table space
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: 1187
Location: Bangalore,India

PostPosted: Mon Mar 12, 2007 3:40 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    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 Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am
No new posts Adding a userid to SMTP Security table Yolanda Harvey JCL & VSAM 1 Sun Aug 13, 2017 6:16 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm

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