473,472 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

drop tablespace in 390

the real DBAs aren't around for a few days, so rather than
shoot myself in a tender spot, i thought i'd ask first.

what docs i can find say that the syntax is:

DROP TABLESPACE FOO

seems simple enough, except that the other side is

CREATE TABLESPACE FOO IN BARx

in this shop, BAR is referred to as a database (not sure
that's what DB2 thinks it is). there are multiple
FOO tablespaces spread over many BAR1, BAR2, etc. so,
how does DB2 know which FOO to drop??

thanks,
robert
Nov 12 '05 #1
2 6412
"robert" <gn*****@rcn.com> wrote in message
news:da**************************@posting.google.c om...
the real DBAs aren't around for a few days, so rather than
shoot myself in a tender spot, i thought i'd ask first.

what docs i can find say that the syntax is:

DROP TABLESPACE FOO

seems simple enough, except that the other side is

CREATE TABLESPACE FOO IN BARx

in this shop, BAR is referred to as a database (not sure
that's what DB2 thinks it is). there are multiple
FOO tablespaces spread over many BAR1, BAR2, etc. so,
how does DB2 know which FOO to drop??

thanks,
robert


You need the SQL Reference manual. You can download the PDF version from the
IBM website.

DROP TABLESPACE BARX.FOO

Here is the stuff from the manual:

DROP TABLESPACE database-name.table-space-name

Identifies the table space to be dropped. The name must identify a table
space
that exists at the current server. The database name must not be DSNDB06.
Omission of the database name is an implicit specification of DSNDB04.
Whenever a table space is directly or indirectly dropped, all the tables in
the
table space are also dropped. The name of a dropped table space cannot be
reused until a commit operation is performed.

A table space in a TEMP database can be dropped only if it does not contain
an active declared temporary table. A LOB table space can be dropped only if
it
does not contain an auxiliary table.

Whenever a base table space that contains tables with LOB columns is
dropped, all the auxiliary tables and indexes on those auxiliary tables that
are
associated with the base table space are also dropped.
Nov 12 '05 #2
"Mark A" <ma@switchboard.net> wrote in message news:<kc*****************@news.uswest.net>...

i had looked up the syntax in our local copy of
the 390/V6 manual.

i'll get a new copy of the pdf.

thanks,
robert
"robert" <gn*****@rcn.com> wrote in message
news:da**************************@posting.google.c om...
the real DBAs aren't around for a few days, so rather than
shoot myself in a tender spot, i thought i'd ask first.

what docs i can find say that the syntax is:

DROP TABLESPACE FOO

seems simple enough, except that the other side is

CREATE TABLESPACE FOO IN BARx

in this shop, BAR is referred to as a database (not sure
that's what DB2 thinks it is). there are multiple
FOO tablespaces spread over many BAR1, BAR2, etc. so,
how does DB2 know which FOO to drop??

thanks,
robert


You need the SQL Reference manual. You can download the PDF version from the
IBM website.

DROP TABLESPACE BARX.FOO

Here is the stuff from the manual:

DROP TABLESPACE database-name.table-space-name

Identifies the table space to be dropped. The name must identify a table
space
that exists at the current server. The database name must not be DSNDB06.
Omission of the database name is an implicit specification of DSNDB04.
Whenever a table space is directly or indirectly dropped, all the tables in
the
table space are also dropped. The name of a dropped table space cannot be
reused until a commit operation is performed.

A table space in a TEMP database can be dropped only if it does not contain
an active declared temporary table. A LOB table space can be dropped only if
it
does not contain an auxiliary table.

Whenever a base table space that contains tables with LOB columns is
dropped, all the auxiliary tables and indexes on those auxiliary tables that
are
associated with the base table space are also dropped.

Nov 12 '05 #3

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

Similar topics

2
by: Darshak Shah | last post by:
Hi, * Question background : My DB is in ArchiveLog mode. I have TS in ReadOnly mode. As i know, - Oracle allows to DROP table resides in ReadOnly TS (& other objects also) even though that...
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: Ian Dobson | last post by:
Hi, I need to drop a schema from a database but it has 400 tables in it. Is there an easy way to do it other than drop table schema1.table1 drop table schema1.table2 etc.. to 400 and then drop...
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)...
14
by: deko | last post by:
Can the DROP TABLE statement be used with a select or where statement? DROP TABLE SELECT * FROM tblTablesImported WHERE Import_ID Not In (SELECT FROM tblTablesInternal); Or do I have to...
2
by: vj_dba | last post by:
Hi Group, I have a problem in restoring my tablespace, my database is running in ARCHIVAL logging, I created a tablespace, did some transaction, then took the ONLINE BACKUP of the tablespace....
1
by: jainarayan5484 | last post by:
hi All, Sir i want to know That What is the need to Create Tablespace,Alter TableSpace,Drop Tablespace.Whereas database use default tablespace. plz help me ...
0
by: wugon.net | last post by:
Env: DB2 LUW V8 + FP14 AIX 5.3 Problem Description: Our production database create one big temporary tablespace to do off- line reorg, after reorg complete, we drop this tablespace online...
1
by: bujjus173 | last post by:
Hi, I need to drop a tablespace, I am unable to drop because it says the containers it uses is inaccessible, because a process deleted the container. the tablespace went into pending state. I just...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.