如何删除SAP系统日志_sap系统错误日志

如何删除SAP系统日志_sap系统错误日志,第1张

你要把auditlog和systemlog都删掉才行auditlog删除1

ToaesstheSecurityAuditLogtoolfromtheSAPstandardmenu,chooseToolsààMonitoràSecurityAuditLogà

TheSecurityAudit:DeleteOldAuditLogsscreenappears

2

EntertheMinimumageoffilestodelete(default=30days)

Thisvaluemustbe>3

3

ActivatetheToallactiveinstancesindicatortodeletetheauditfilesfromall

Leavetheindicatorblankifyouonlywanttodeletethefilesfromtheserver

4

ActivatetheSimulationonlyindicatorifyoudonotactuallywanttodeletethefiles

Inthiscase,theactionisonlysimulated

5

ChooseAuditLogàContinue

但这个只能删3天前的,如果你一定要删现在的需要 *** 作系统的权限( *** 作系统下做动作的话, *** 作系统也会有日志的,各系统设置不同,请自行脑补)auditlog在参数rsau/local/file里决定路径和文件

systemlogsystemlog分本地log和全局log都要删Ifthesyslogreallyshouldbedeleted,youshouldfirstconsider,thatfor'n'applicationservers,thereare'n'syslogs,plus1centralsyslog

(ThecentralsyslogonlyexistsifatleastonemachineisrunningUNIX

)Youneedthefilenames

Thesecanbedetermined,forexample,withthereportRSPFPARorthecommand'sapparar'

Thefollowingtableshowstheprofilevariablesandtypicalvalues:rslg/central/file/usr/sap/C11/SYS/global/SLOGJrslg/central/old_file/usr/sap/C11/SYS/global/SLOGJOrslg/local/file/usr/sap/C11/D01/log/SLOG01rslg/send_daemon/status_file/usr/sap/C11/D01/data/rslgsstaR/3mustbestopped

Iftheoperatingsystemwasnotalsorestarted,thesharedmemorysegment'SCSA'maystillexist

Thismustalsoberemoved

Possiblewaystodothisarelistedinnotenumber12715

Todeletethecentralsyslog,bothsyslogfilesmustbedeleted

Theyarerecreatedwhenthesystemisrestarted

Todeleteoneofthelocalsyslog,stoptheapplicationserveranddeleteitsSCSA

Thesyslogfileandthesmallmanagementfilearethendeleted

Theyarerecreatedwhenthesystemisrestarted

Ifthelocalesyslogfileismistakenlydeletedwithoutthedescribedpreparation,itisrecreatedincorrectly

However,itcanberepairedafterthiswiththereport'RSLG0020'(note21153)

翻滚吧,骚年

可以的

打开 SQL Server Management Studio并连接到数据库引擎数据库。

在“对象资源管理器”窗格中展开“数据库”节点。

右击要修改的数据库,在d出的快捷菜单中选择“属性”命令,打开“数据库属性”,对话框,选择“文件”选项,显示文件设置界面。

若要添加文件,单击“添加”按钮,在“数据库文件”列表框中将出现一个新的文件,设置该文件的各个参数即可。

若要删除文件,选中要删除的文件后单击“删除”按钮即可。需要注意的是,删除数据文件和日志文件时,必须确保文件里面不能包含数据或日志,即是空文件。

完成相应的 *** 作后,单击“确定”按钮。

参考资料

SQL数据库日志文件,可以删除吗?百度经验[引用时间2018-1-3]

教你如何清除SQL日志
1.打开查询分析器,输入命令
DUMP TRANSACTION 数据库名 WITH NO_LOG
2再打开企业管理器--右键你要压缩的数据库--所有任务--收缩数据库--收缩文件--选择日志文件--在收缩方式里选择收缩至XXM,这里会给出一个允许收缩到的最小M数,直接输入这个数,确定就可以了。
清除Log有两种方法:
1自动清除法
开放数据库选项 Trunc Log on Chkpt,使数据库系统每隔一段时间自动清除Log。此方法的优点是无须人工干预,由SQL Server自动执行,并且一般不会出现Log溢满的情况;缺点是只清除Log而不做备份。
2手动清除法
执行命令“dump transaction”来清除Log。以下两条命令都可以清除日志:
dump transaction with truncate_only
dump transaction with no_log
通常删除事务日志中不活跃的部分可使用“dump transaction with trancate_only”命令,这条命令写进事务日志时,还要做必要的并发性检查。SYBASE提供“dump transaction with no_log”来处理某些非常紧迫的情况,使用这条命令有很大的危险性,SQL Server会d出一条警告信息。为了尽量确保数据库的一致性,你应将它作为“最后一招”。
以上两种方法只是清除日志,而不做日志备份,若想备份日志,应执行“dump transaction database_name to dumpdevice”命令。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/13151930.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-06-12
下一篇 2023-06-12

发表评论

登录后才能评论

评论列表(0条)

保存