DB2 tablespace silent status

Source: Internet
Author: User
Tags quiesce

If the DB2 tablespace is in the silent State, some operations such as sql00005n or SQL0290N may cause the tablespace to be inaccessible due to the silent operation.

Take the DB2INST1. STAFF table in the table space of DB2INST1. USERSPAC1 as an example:

A) silent DB2 tablespace indicates the intention to update status:

Db2 quiesce tablespaces for table db2inst1. staff intent to update

B) the attempt to delete the table will fail:

Db2 delete from db2inst1. staff
DB21034E The command was processed as an SQL statement because it was not
Valid Command Line Processor command. During SQL processing it returned:
SQL0290N Table space access is not allowed. SQLSTATE = 55039

If:

Db2 list tablespaces

Run the following command TO check the space status:

......
Tablespace ID = 2
Name = USERSPACE1
Type = System managed space
Contents = Any data
State = 0x0002
Detailed explanation:
Quiesced: UPDATE
......

To remove this silent State, you can use the "RESET" option in the silent command to restore the tablespace to normal state 0x0000) to achieve normal access to tables in the DB2 tablespace.

If you try to use any DB2 user, run the following command to remove the silent State of the tablespace:

Db2 quiesce tablespaces for table db2inst1. staff reset
DB20000I The quiesce tablespaces command completed successfully.

We can see that the command has been successfully completed, but when we try the DELETE operation again, we still encounter the same SQL0290N error, that is, the tablespace cannot be accessed. Querying the table space status indicates that it is still in the silent State of the original intention update.
 

Create a DB2 tablespace in windows

Take you to the DB2 Character Set and MySql Character Set

DB2 update statements for records in the same table

How to expand the tablespace and Field Length in db2

Introduction to DB2 datetime Data Types

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.