This article mainly describes the actual operation process of correctly recovering some data in the original database after DB2 is uninstalled. To better describe it, this article mainly explains it in a Q & A manner, the following is a detailed description of the main content of the article.
Q: I accidentally uninstalled DB2. Is there any way to restore the data in the original database? DB2 and DB2CTLSV are left after DB2 is uninstalled, but these two directories are not big. Could you tell us about the DB2 database files?
Are there two directories? If not, it would be miserable.
Answer:
- The database shocould be in DB2 directory.
- You have to reinstall db2. After that, issue the following command:
- Db2 catalog db db_name on drive_name
- Where db_name is the database name, drive_name is where DB2 directory resides.
The above content is an introduction to how to restore data in the original database after DB2 is uninstalled. I hope you will have some gains.
The above content describes how to restore the data in the original database after DB2 is uninstalled, hoping to help you in this regard.