Category Archives: Databases

SQL2547N while restoring database on DB2 10.5

While restoring database from DB2 9.7 to DB2 10.5 I encountered the following error:

PROBLEM

SQL2547N
The database was not restored because the backup image is from a previous release and requires rollforward recovery.

TAKEN ACTION:

I ran the DB2 check backup command db2ckbkp -h <backup_file_name>.001

And resulted with:
[1] Buffers processed: #################

Image Verification Complete – successful.

SOLUTION:

To resolve the problem a new OFFLINE backup is needed, power down your db instance and take a new backup.

Advertisements

Useful DB2 Commands

Using as DB2 user (db2inst1):

>$ db2 list active databases – display active databases

>$ db2 list database directory  – database directory

>$ db2level  – database fixpack

>$ db2licm -v  – database version

>$ db2 get db cfg for <database_name> = list database configuration settings