The error is 2413 offcourse 'negative'
so
SQL2413N Online backup is not allowed
because either logretain or
userexit for roll-forward is not
activated, or a backup pending
condition is in effect for the
database.
Explanation: Online backup cannot be
performed while the database is not logging for
forward recovery as forward recovery will be
required at restore time. Forward recovery is
placed into effect by setting either the database
configuration logretain parameter or the userexit
parameter, and then performing an offline
backup of the database.
User Response: Execute an offline backup or
reconfigure the database for roll-forward
recovery and issue an offline backup so that
subsequent online backups will be allowed.
check if the logretain or userexit is on
db2 get db cfg for <database_name>|grep -i LOG
You will also find the state of the database from the above statement.
try to connect to database(will give you an error, if the database is inconsistent mode).
regards,
mujeeb