Analysis of the actual operation steps for DB2 to restore a tablespace

Source: Internet
Author: User

This article mainly describes the actual operation steps for DB2 to restore a tablespace. If you encounter the problem of restoring a tablespace in DB2, however, you do not know how to solve the problem correctly, so the following articles must be good teachers and friends for you.

Space

Online archiving and database backup,

Delete the dms tablespace, and then delete the file in the dms tablespace,

Using DB2 list tablespaces, we can see that some tablespaces are offline,

Now, I want to restore the tablespace. Apart from restoring the entire database, is there any way to restore this dms tablespace, instead of anything else.

My database is installed on linux5 and uses V8.1,

I use

 
 
  1. DB2 "restore db testdb rebuild with tablespace ( SYSCATSPACE, TB1) from $HOME/online" 

Result prompt

 
 
  1. SQL0104N an unexpected token "rebuild" was found following "<identifier>".  
  2. expected tokens may include : "continue", SQLSTATE=42601  

The above content is an introduction to restoring a table space in DB2. I hope you will get something better.

The above content is an introduction to restoring a table space in DB2. I hope you will get something better.

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.