SQL10004C An I/O error occurred while accessing the database directory. SQLSTATE=58031 - During DB2 Restore

DB2 Version – 9.5 Fixpack 3

OS – AIX 5.3

SQL10004C An I/O error occurred while accessing the database directory. SQLSTATE=58031.

This error was returned during the restoration of db backup on a new server. As per the docs and references this can be caused by several reasons including OS level permission, db and os level version etc..

But quick workaround that can be tested to resolve this error while performing a db2 restore is to try the restoration with different database directory without using the default one with the use "dbpath on" clause of db2 restore command.


 By adding "dbpath on" to the restoration command as below,
 db2 "restore database CPSDB from '/data12/backup' dbpath on '/data12/cpsjun15' into cpsjun15 logtarget '/data12/cpsjun15/log' redirect"  


Comments

Popular posts from this blog

ORA-16433: The database or pluggable database must be opened in read/write

Wait for unread message on broadcast channel - Blocking Sessions

ORA-14126 - While splitting max value partition