How to: |
Note: You must be logged in as a Server Administrator with workspace configuration privileges to make any configuration changes, or to following either of the following procedures.
It may be useful for a Server to automate deleting rows from the ETL log and statistics tables. For example, you can delete all rows more than a week old on a daily basis.
-SET &DDATE=AYMD(&YYMD,-7,'I8'); EX ETLDELLS DDATE=&DDATE, DTIME=00:00:00, SUSTART=Y, ETLSTART=Y
The DataMigrator server can be configured so that if there is an error writing to the ETL log, one or more of the following events will occur:
The following procedure shows how to backup and recreate ETL log and statistics.
The following is an explanation of the stored procedures mentioned.
This procedure will create the etllogbk.foc and etlstabk.foc files in the \dm\catalog\ directory. These files are copies of the etllog.foc and etlstats.foc files. Example code for st_backup is:
SHH CRTBACKUP END
This step is optional. This procedure prevents these files from being overwritten during the next backup process. As a result of this procedure, the etllogbk.foc and etlstabk.foc files will be renamed, with a timestamp added to their suffix. For example, etllogbk_20101026_1120258.foc. Example code for st_rename is:
-SET &LOGBK = c:\ibi\srv77\dm\catalog\etllogbk.foc; -SET &STABK = c:\ibi\srv77\dm\catalog\etlstabk.foc; -SET &LOGBKREN = etllogbk || '_ ' || &YYMD || '_ ' || EDIT(&TOD,'99$99$99') || '.foc'; -SET &STABKREN= etlstabk || '_ ' || &YYMD || '_ ' || EDIT(&TOD,'99$99$99') || '.foc'; !REN &LOGBK &LOGBKREN !REN &STABK &STABKREN END
This procedure deletes the original etllog.foc and etlstats.foc files, and will replace them with the new initialized files. Example code for st_recreate is:
EX ETLCRTLS ALL, Y, N END
WebFOCUS | |
Feedback |