Guest_imported
New member
- Jan 1, 1970
- 0
Hi there!
I have a Windows NT box with DB2 UDB 7.2 installed.
I want to schedule a backup procedure of a database.
Here are my scripts:
backupdb.bat
db2cmd "db2 -tvf d:\backupdb.ctl >> d:\backupdb.log"
backupdb.ctl
force applications all;
backup db <dbname> user <username> using <password> to d:\backupdb2;
I use the "at" command of Windows, ie.
at 9:00 cmd /c "d:\backupdb"
The following error occurs:
force applications all
SQL0567N "SYSTEM" is not a valid authorization ID. SQLSTATE=42602
backup db <dbname user <username> using to d:\backupdb2
SQL1035N The database is currently in use. SQLSTATE=57019
How can I overcome this problem?
Thnx in advance.
DIMA
I have a Windows NT box with DB2 UDB 7.2 installed.
I want to schedule a backup procedure of a database.
Here are my scripts:
backupdb.bat
db2cmd "db2 -tvf d:\backupdb.ctl >> d:\backupdb.log"
backupdb.ctl
force applications all;
backup db <dbname> user <username> using <password> to d:\backupdb2;
I use the "at" command of Windows, ie.
at 9:00 cmd /c "d:\backupdb"
The following error occurs:
force applications all
SQL0567N "SYSTEM" is not a valid authorization ID. SQLSTATE=42602
backup db <dbname user <username> using to d:\backupdb2
SQL1035N The database is currently in use. SQLSTATE=57019
How can I overcome this problem?
Thnx in advance.
DIMA