Unix Technical Forum

drop tablespace in 390

This is a discussion on drop tablespace in 390 within the DB2 forums, part of the Database Server Software category; --> the real DBAs aren't around for a few days, so rather than shoot myself in a tender spot, i ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 06:07 PM
robert
 
Posts: n/a
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 06:07 PM
Mark A
 
Posts: n/a
Default Re: drop tablespace in 390

"robert" <gnuoytr@rcn.com> wrote in message
news:da3c2186.0402131256.25b614c2@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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 06:07 PM
robert
 
Posts: n/a
Default Re: drop tablespace in 390

"Mark A" <ma@switchboard.net> wrote in message news:<kcbXb.166$M93.33585@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" <gnuoytr@rcn.com> wrote in message
> news:da3c2186.0402131256.25b614c2@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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:46 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com