Quote:
Originally posted by Marcus_A
According to the SQL Reference, if you don't specify the table space in the create table statement (issued by Brio):
"The name of the table space is derived from the table name. Its other attributes are those it would have if it were created by a CREATE TABLESPACE statement with all optional clauses omitted."
If the database name is not specified then DSNDB04 is used. I don't see anything in the SQL Reference about any other way to specify the default table space name or default attributes. Maybe you should ask Brio exactly what option on the host they are talking about.
I would not expect DB2 Connect to have anything to do with this.
|
I believe UDB works differently from DB2 for OS/390. In UDB, if u dont specify the tablespace it will work as u said. But in OS/390, as Marcus had said, it will create a tablespace EVERY TIME a create statement is given and the name of the tablespace will be a name which is derived from the table name. I have seen this happening. THAT is my problem. I wanted to predefine the tablespace name for the user thus avoiding the random creation of the tablespaces.
I read the manual too. There is nothing mentioned there..
Below is the reply what Brio had said. it didnt make sense to me. Also whatever they are saying is for UDB and not OS/390:
---------------------------------------------------------------------------
-----Original Message-----
From: Jack Burton
Sent: Tuesday, January 27, 2004 2:30 PM
To: Kathrin Robbins
Subject: RE: SR # 2-1895601
The same is true for DB2. If you do not define a table space the default user and temp table spaces will be used. Creating a separate table space for Hps is recommended but not necessary. It is very easy to you do this via Db2 Command Center. Or from the db2 prompt.
db2 connect to mydatabase
db2 create tablespace myspace pagesize 16k managed by system using
"('/home/inst1/tablespace')"
db2 connect reset
It is simplier to use contro center.
I always use the default at Hyperion on Aix.
db2 => connect to hps
Database Connection Information
Database server = DB2/6000 8.1.2
SQL authorization ID = BRIO8
Local database alias = HPS
db2 => list TABLESPACES
Tablespaces for Current Database
Tablespace ID = 0
Name = SYSCATSPACE
Type = System managed space
Contents = Any data
State = 0x0000
Detailed explanation:
Normal
Tablespace ID = 1
Name = TEMPSPACE1
Type = System managed space
Contents = System Temporary data
State = 0x0000
Detailed explanation:
Normal
Tablespace ID = 2
Name = USERSPACE1
Type = System managed space
Contents = Any data
State = 0x0000
Detailed explanation:
Normal
db2 =>
-----Original Message-----
From: Kathrin
Sent: Tuesday, January 27, 2004 1:54 PM
To: Jack
Subject: FW: SR # 2-1895601
Hi Jack,
Noelle told me you are very familiar with DB2.
Srini told me that in Oracle, you have to define a tablespace for each user and if you don't, the Oracle default is System or Temp.
Is the same true for DB2?
If so, how does my customer set this up?
Thank you,
Kathy
--------------------------------------------------------------------------------