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 > Tablespace par Défaut

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-04, 14:08
philio philio is offline
Registered User
 
Join Date: Nov 2003
Posts: 68
Tablespace par Défaut

Bonjour,
Quand je créer une table sans préciser le TBS, il choisi un tbs lauis j'en veux un autre.
Comment définir un tbs par défaut pour un utilisateur ou un schéma ?
Merçi de votre vaide
DB2 V7 AIX 4.3.3
Reply With Quote
  #2 (permalink)  
Old 02-25-04, 14:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: Tablespace par Défaut

Quote:
Originally posted by philio
Bonjour,
Quand je créer une table sans préciser le TBS, il choisi un tbs lauis j'en veux un autre.
Comment définir un tbs par défaut pour un utilisateur ou un schéma ?
Merçi de votre vaide
DB2 V7 AIX 4.3.3
Quote from the SQL reference:

"
IF table space IBMDEFAULTGROUP over which the user has USE privilege exists with sufficient page size
THEN choose it
ELSE IF a table space over which the user has USE privilege exists with sufficient page size (see below when multiple table spaces qualify)
THEN choose it
ELSE issue an error (SQLSTATE 42727).

If more than one table space is identified by the ELSE IF
condition, then choose the table space with the smallest sufficient page size over which the authorization ID of the statement has USE privilege. When more than one table space qualifies, preference is given according to who was granted the USE privilege:
1. the authorization ID
2. a group to which the authorization ID belongs
3. PUBLIC

If more than one table space still qualifies, the final choice is made by the database manager."

P.S. How do you say RTFM in French?
Reply With Quote
  #3 (permalink)  
Old 02-26-04, 07:09
achiola achiola is offline
Registered User
 
Join Date: May 2002
Location: General Deheza, Cba, Arg.
Posts: 273
Re: Tablespace par Défaut

Bonjour Philio.

now in my bad english.
the scheme is for the user. do you set the schema per default for a user with this command:

set schema <schema>

sorry by my english.
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