on 2017 Jan 15 11:40 AM
We are moving DB's from v11 to v17 and backing up each DB to NAS
At first the backups using the drive letter wouldn't work, so we used the full name and it worked - now it's started to kick off again...
BEGIN
DECLARE day_of_week VARCHAR(9);
DECLARE backup_stmt LONG VARCHAR;
SET day_of_week = substr(dayname(today()),1,3);
SET backup_stmt = 'BACKUP DATABASE DIRECTORY '||
'''\\\\\\\\\\Storeage003\\\\DB2\\\\BACKUP\\\\CrescentVillasCA17\\\\' || day_of_week || ''' ';
EXECUTE IMMEDIATE backup_stmt;
END
and throws the toys out with
Could not execute statement.
Error during backup/restore: Could not create directory
"\\\\Storeage003\\DB2\\DB2\\BACKUP\\CrescentVillasCA17\\Sun" -- No such file or directory
SQLCODE = =-697, ODBC 3 State='HY000"
Line 1, column 1
Any ideas?
I am aware that the NAS name is a typo, but it is correct nonetheless.
Thanks
They have come a long way with health care, but there is still no cure for stupid!
The ones that were working also had the share name! Sigh...
BEGIN
DECLARE day_of_week VARCHAR(9);
DECLARE backup_stmt LONG VARCHAR;
SET day_of_week = substr(dayname(today()),1,3);
SET backup_stmt = 'BACKUP DATABASE DIRECTORY '||
'''\\\\\\\\\\Storeage003\\\\DB_Backups\\\\DB2\\\\BACKUP\\\\ParkwoodNV17\\\\' || day_of_week || ''' ';
EXECUTE IMMEDIATE backup_stmt;
END
Sorry 😞
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.