Failed to reset the silent State of the DB2 tablespace

Source: Internet
Author: User
Tags quiesce

Errors may occur when you reset the silent State of the DB2 tablespace. The following describes an example of a failure to reset the silent State of the DB2 tablespace for your reference.

A frequent failed reset operation:

Because of the existence of locking caused by silent operations, when performing some operations on such DB2 tablespace, an error message such as sql00005n or SQL0290N may occur, prompting that the tablespace is inaccessible. Take the DB2INST1. STAFF table in the table space of DB2INST1. USERSPAC1 as an example:

A) silent 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 DB2 tablespace 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 DB2 tablespace to the normal state 0x0000) to achieve normal access to tables in the table space.

If you try to use any DB2 user, run the following command to remove the silent State of the Multi-DB2 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. Why does the preceding command successfully reset the silent State, but does not actually remove the silent State of the tablespace?

Silent status of three DB2 tables

Troubleshooting of DB2 database detachment

How to detach a DB2 database

How to manually Uninstall a DB2 database

DB2 table management statements

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.