Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 30 Mar 2001 @ 10:58:12 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


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 .

Howard

     replace MACRO production_macro.ClearMyPeakDisk
      AS  ( UPDATE DataBaseSpace
                 SET PeakPermSpace = 0, PeakSpoolSpace = 0
      where
      dbc.databasespace.databaseId in (select dbc.dbase.databaseid
      from dbc.dbase
      where
      dbc.dbase.databasename=user); );


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023