How to Fix SQL0293N Error in DB2 database

By | August 21, 2014

Fix SQL0293N Error Users have started reporting the inconsistency while using DB2 database. You might have encountered any error messages while using the DB2 database or altering or executing SQL command? And if “Yes” then it can be due three possible causes –

  • Container is corrupted.
  • Container could not be found
  • Container is not tagged to a different table space.

And in some cases the database becomes un-mountable as well as the data which is stored in it becomes inaccessible. To explain this error take a practical scenario: When you tried to connect to your database you find an error message

 “SQL0293N Error Accessing a table space container. SQLSTATE=57048

You restarted your DB2 database but it fail to fix the issue. After getting this error message you found that you are unable to access your db2 database and unable to perform any action on it. After the error message is flashed the data saved in the database becomes inaccessible. The error appears when the database is started and while processing of the ALTER TABLESPACE SQL statement with SWITCH ONLINE option.

In order to resolve the error message and to access the saved data follow the below steps –

1. Make sure that the containers is readable or writable by database instance owner.

2. If you have the current or the updated copy of backup, then restore the table space or the DB2 database.

3. If the above action fails just because of the bad container then first manually remove the container.

4. If you found that the error is returned from the processing of the ALTER TABLESPACE SQL statement with SWITCH ONLINE option, then again issue the statement after correcting the above problems.

downloadnow buynow learn-more-button-orange

But after performing all the above steps if you find the same error message in your database then you can use a Repair Tool to resolve the issue. To resolve the above error message and to access DB2 database records you need to use a third party repair tool. It is quite impossible to resolve the corruption but the help of DB2 Repair Tool you can easily repair and recover corrupted or inaccessible db2 file without losing the data.

This is the most reliable repair tool that performs a deep scan and retrieves the inaccessible or corrupt database back in a new healthy form. It uses a very effective repair technique to repair the corrupted and damaged database DB2 after this you can restore the repaired one in a safe and secure location. It is built with user-friendly interface so it doesn’t need any technical skill to operate it.

Steps to Fix SQL0293N Error in DB2 database:

Step 1:  Download, Install and Run DB2 File Repair software. It will provides two options to repair db2 file, first option is for if the database is attached to DB2, then you can select the option ‘Repair the database stored at default location‘, and if the database is not attached to DB2 then choose the manual selection of database.

1 (3)

Step 2: It will provide you the list of database attached to DB2. Select the particular database you want to repair and recover corresponding database objects.

2 (2)

Step 3: In this step this tool provide the list of recoverable database files. You can see the preview by clicking on it.

3 (2)

Step 4: Give the path location for the recoverable database and its object to be saved. Click on ‘Ok’ button.

4 (2)