I would like to take a physical backup of a DB2 database, but I am struggling to find all the files I would need to make a copy of.
I need to write a script to do this that will be able to find all the files rather than hardcode anything.
So far I have...
select container_name from sysibmadm.container_utilization for the tablespaces and I know I need the SQLSPCS.1 and SQLSPCS.2 files, although I'm not sure yet how I would script finding those.
I searched the web and searched this forum, but I can't find many references to taking physical backups of DB2 databases, I guess everyone must be happy with the backup functionality that is already available.
Where I work, we take physical backups of the Oracle databases and want to do the same for the DB2 databases.
Any thoughts / directions please?