SantaMufasa
Technical User
Twice in a row now, while backing up databases, I have encountered (on different databases) this fatal error:
Following is an excerpt of the code I run (after having properly set the system variables that appear in the code:
This code has worked perfectly for months on my DB2 databases, but I obviously need to do something more to avoid the above error.
Do you have any suggestions?
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
Code:
SQL1035N The database is currently in use. SQLSTATE=57019
Code:
...
db2 disconnect all > /dev/null
db2 connect to $SCHEMA user $DB2USER using $DB2USERPW >> $SCHEMALOG 2>&1
db2 backup database $SCHEMA to $EXPPIPE without prompting >> $SCHEMALOG 2>&1
********************************************************************************
Do you have any suggestions?
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]