473,385 Members | 1,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

find default tablespace

is there a way to tell the current tablespace for tables i create without IN
clause?

i know i can do that by create a table and select its tablespaceid from
syscat

any better solutions?
Mar 28 '08 #1
2 3070
On Mar 28, 2:14*pm, "kw.housing" <kw.hous...@gmail.comwrote:
is there a way to tell the current tablespace for tables i create without IN
clause?

i know i can do that by create a table and select its tablespaceid from
syscat

any better solutions?
Yes. The default tablespace is:
A) The first tablespace your id has created.
B) If A) does not exist then it is the first tablespace where you have
the USE priviloege.
C) If neither A) nor B) exist then it is USERSPACE1
Regards, Pierre.
Mar 29 '08 #2
On 29 Mrz., 02:28, Pierre StJ <p.stjacq...@videotron.cawrote:
On Mar 28, 2:14 pm, "kw.housing" <kw.hous...@gmail.comwrote:
is there a way to tell the current tablespace for tables i create without IN
clause?
i know i can do that by create a table and select its tablespaceid from
syscat
any better solutions?

Yes. The default tablespace is:
A) The first tablespace your id has created.
B) If A) does not exist then it is the first tablespace where you have
the USE priviloege.
C) If neither A) nor B) exist then it is USERSPACE1
Regards, Pierre.
IIRC correctly:

if a tablespace called IBMDEFAULTGROUP exists (with appropriate USE
privileges) DB2 will choose that one first.

HTH
Joachim
Mar 31 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: sandeep G | last post by:
I've a table which has a number & a blob column, both of which are NOT NULL type. This table is composite partitioned using range & hash on the same column. Each partition is sub partitioned into...
1
by: Jens H. Hamann | last post by:
Hi, I am having a strange problem with the storage parameters in Oracle 9.2.0.1 database. I create a tablespace with some default storage parameters but when i am adding a table to the tablespace...
2
by: Pattnayak | last post by:
Hi, when i am trying to create a table in Db2, and specifies the tablespace as default,it gives an error saying "There is no default tablespace".Can anybody please help me out to assign a...
6
by: robert | last post by:
just got out of a "class" on EXPLAIN, from a 390/v6 maven. was told that ACCESSTYPE = 'R' in the plan_table meant a TableSpace scan. hmmmm. next step up (or down, depending on your outlook)...
4
by: aaronk321 | last post by:
I'm cloning a db and I need to redirect the files using the set tablespace container command. However, that command requires the size of the tablepsace - I've developed the following sql which...
3
by: Bob Stearns | last post by:
I changed a varchar(255) to varchar(3000) an started receiving: Warning: odbc_exec(): SQL error: SQL1585N A system temporary table space with sufficient page size does not exist. SQLSTATE=54048...
4
by: Joachim Klassen | last post by:
DB2 V8.2 FP10 on Windows I tested the following HADR scenario: - a new tablespace on a new filesytem is created on the primary System - the replay on standby fails because of lacking permissions...
2
by: Raghava | last post by:
hi all, i was working on DB2 and came across an issue. i.e. can a tablespace be rollforwarded to POINT-IN-TIME? the scenario is as follows: i created a data base and a tablespace in it. i have...
0
by: nimjerry | last post by:
i am using db2 udb V 9 on aix 5.3 and in db2diag.log alwas has this error occurr below is sample message 2008-03-03-09.45.34.366406+420 I306667A443 LEVEL: Warning PID : 835622 ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.