<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tt/aad/ttaad4261m000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Purge Audit Files (ttaad4261m000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default">Each time an audit sequence file exceeds its maximum size, that is specified in the <GUIRef href="/baanerp/tt/aud/ttaud3135m000" role="session">Audit Trail File Sizes (ttaud3135m000)</GUIRef> session, the sequence file is terminated and a new sequence file is generated. The maximum number of sequence files for each table/company combination is 999. When the last sequence file is terminated, the audit server will try to reuse sequence file 000 again. However, the audit server cannot overwrite existing sequence files.</Paragraph>
			<Paragraph class="Default">
                                 Use this session to remove the old sequence files so that the audit server can reuse them to write new audit information.</Paragraph>
		</AimSection>
		<GeneralSection><List><ListIntro>To purge sequence files, enter a range of:</ListIntro>
				<ListItem><Link href="/baanerp/tt/glossary/glossary#table.tt" role="glossary">tables</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">packages</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/glossary/glossary#000023" role="glossary">companies</Link>
				</ListItem>
				<ListItem><Link href="/baanerp/tt/glossary/glossary#100242" role="glossary">sequences</Link>
				</ListItem>
			</List>
			<Paragraph class="Default">Click <GUIRef href="" role="manual">Purge</GUIRef> to remove the audit sequence files within the range.</Paragraph>
			<Note><SectionTitle>
                                    Note s</SectionTitle>
				<List><ListIntro>You can purge an audit file only if</ListIntro>
					<ListItem>cleaning is allowed for the audit file: i.e. if the <GUIRef href="/baanerp/tt/aud/ttaud3137m000#cleaning.allo" role="manual">Cleaning Allowed</GUIRef> check box in the <GUIRef href="/baanerp/tt/aud/ttaud3137m000" role="session">Audit Trail Security (ttaud3137m000)</GUIRef> session is selected.</ListItem>
					<ListItem>you are authorized to purge the audit file. Refer to the online help of the <GUIRef href="/baanerp/tt/aad/ttaad4162s000" role="session">Audit Authorizations (ttaad4162s000)</GUIRef> session for details.</ListItem>
					<ListItem>the audit file is not currently active: you cannot clean audit files with status "UNTERMINATED".</ListItem>
				</List>
			</Note>
			<Important><SectionTitle>
                                    Important!
                                 </SectionTitle>
				<Paragraph class="Default">Remove audit sequence files through this session only. Do not remove audit sequence files by using commands such as rm or del, because the status of the sequence file is maintained in the sequence header in the audit information file. When this session deletes the sequence file, the session also sets the status of this sequence in the information file as deleted. If the file is removed by any other means, the status is not set and this results in inconsistency</Paragraph>
			</Important>
		</GeneralSection>
		<RelatedTopics><SectionTitle>
                                 Related topics
                              </SectionTitle>
			<RelTopic><Link href="/baanerp/basictasks/000005" role="manual">To use a details session</Link>
			</RelTopic>
			<RelTopic><Link href="/baanerp/basictasks/000006" role="manual">To use From and To fields</Link>
			</RelTopic>
		</RelatedTopics>
	</HelpTopic>
</Session>
