Dropping Dbspaces - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

Working with databases
Reserving space for
DDL commands

Dropping dbspaces

116
In the event that you run out of space to perform an operation, you will see a
message telling you to more space. In addition to space for the new dbspace
itself, you also need a small amount of space to issue the
command. To ensure that you have the space for this and related DDL
commands, set the options
TEMP_RESERVED_DBSPACE_MB
space to set these options. See the "Database Options" chapter of the Adaptive
Server IQ Reference Manual for option details.
You can issue a
DROP DBSPACE
to drop a dbspace, the following must be true:
It must not contain any data. Adaptive Server IQ does not allow you to
drop a dbspace unless it is empty.
It must be the last one added. (After you drop the last dbspace, the next
most recently added dbspace becomes the last one, and can be dropped.)
It must not be one of the four initial dbspaces,
,
IQ_SYSTEM_MAIN
dbspaces can never be dropped.
Because of the way Adaptive Server IQ fills dbspaces with data, it is unlikely
that you will be able to drop the last dbspace, especially if disk striping is in
use. You also cannot empty a dbspace by truncating the tables in it, as even an
empty table takes some space. The only way to completely remove a table and
its data is with a
DROP TABLE
Central).
If you drop or truncate a table while other users are reading from it, the normal
rules of table versioning apply, that is, old table versions remain until readers'
transactions complete; see Chapter 8, "Transactions and Versioning" for
details.
To find out whether you can drop a particular dbspace, run the stored procedure
. Look at the DB Blocks value, which tells you the block numbers
sp_iqstatus
each dbspace includes. Compare this value to the Main IQ Blocks Used (or
Temporary IQ Blocks Used), to see whether the Max Block # is in the dbspace.
If it is, you cannot drop this dbspace.
MAIN_RESERVED_DBSPACE_MB
. Do not wait until you have run out of
command to remove a database file. In order
, and
IQ_SYSTEM_TEMP
statement (or by dropping the table in Sybase
ADD DBSPACE
and
,
SYSTEM
. These
IQ_SYSTEM_MSG

Advertisement

Table of Contents
loading

Table of Contents