数据库丢失!寻找根本原因

发布于 2024-09-18 00:08:07 字数 153 浏览 5 评论 0原文

假设有一天,管理员像往常一样来到办公室,在 Sql Server 数据库上执行管理任务,他惊讶地发现数据库丢失了。他不知道是谁删除了它,或者是来自外部批处理或 SQL 注入等……从哪里开始调查,以及应该采取哪些重要参数/发现来找到删除数据库的根本原因。比如应该检查哪些日志,应该调查哪些信息?

Assume one fine day an admin comes to the office like he always does to do his admin tasks on Sql Server Databases and to his surprise finds a database missing. He has no clue of who dropped it or was it from an external batch or SQL injection etc ... where do one start an investigation and what are the important parameters/ findings that should happen to find the root cause of the Drop DB. Like what logs shud be checked and what information shud be investigated ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温柔女人霸气范 2024-09-25 00:08:07

c:\Program Files 下的日志文件中有一条由 SQL Server 管理的默认跟踪...
您可以通过SQL命令查看该文件。例如,要查看文件 log_19.trc,您可以触发类似的命令

SELECT * 
FROM fn_trace_gettable
('C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\log_19.trc', default)

,这可能会显示何时何人删除了数据库。
更多信息请参见这里...

There is a defaul trace managed by SQL Server in a log file under c:\Program Files...
You can view this file by SQL command. For example to see the file log_19.trc you can fire command like

SELECT * 
FROM fn_trace_gettable
('C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\log_19.trc', default)

This will probably show when and who dropped the database.
More information can be found Here...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文