Drop database left some settings befind, so create database can't be executed
Up to DB2Drop database left some settings befind, so create database can't be executed
Posted by Pawan at May 09. 2008Hi,
on db2 enterprise v8.2 fp 09 on Linux I have drop the database and it looks like drop database was not correctly done.
When executing command:
db2 restore database mydb from /backup/ to /workingdir/db into mynewdb
error was returned: SQL1036C An I/O error occurred while accessing the database. SQLSTATE=58030
I tried to restore to different directory
db2 restore database mydb from /backup/ to /workingdir/dbnew into mynewdb
and restore commpleted successfully.
It looks like drop database was not correctly done. How can I "clean up" settings that have been left from drop? I would like to restore database to my original directory?
Thanks & Regards
Pawan
Re: Drop database left some settings befind, so create database can't be executed
Posted by perallis at May 09. 2008Hello Pawan,
Try to drop manually the files related with the old database in the first director.
Or
Catalog db yourdbname
drop db yourdbname
And execute the restore again"