The database system can write a database trace for diagnosis purposes. The trace writer task in the user kernel thread is used to do this.