Archives of the TeradataForum
Message Posted: Fri, 30 Mar 2001 @ 10:58:12 GMT
| Subj: || || ClearPeakDisk and PeakSpoolSpace |
| From: || || Howard Bradley |
I have been trying to develop a macro which will set the PeakSpoolSpace , PeakPermSpace and PeakTempSpace measures in DBC.DATABASESPACE
to 0 (zero) in a similar way to DBC.CLEARPEAKDISK but only for a specified database (E.g the USER executing the macro) but I am getting the
error 3719 "Join update of non-hashed table PeakSpoolSpace is not allowed"
Does anyone know if a DBC (or similar) macro already exists to perform this or of a fix to my method or of a system variable which will
supplier the databaseid of the user so I don't have to join to DBASE to get it. Thanks in anticipation , the macro is below .
replace MACRO production_macro.ClearMyPeakDisk
AS ( UPDATE DataBaseSpace
SET PeakPermSpace = 0, PeakSpoolSpace = 0
dbc.databasespace.databaseId in (select dbc.dbase.databaseid