恢复数据库

Posted yunyun0574

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了恢复数据库相关的知识,希望对你有一定的参考价值。

USE master
GO
ALTER DATABASE DEMO SET SINGLE_USER
GO
ALTER DATABASE DEMO SET EMERGENCY
GO
DBCC CHECKDB(DEMO,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE DEMO SET ONLINE
GO
ALTER DATABASE DEMO SET MULTI_USER
GO

ALTER DATABASE AIS20121023174212 SET SINGLE_USER
GO
ALTER DATABASE AIS20121023174212 SET EMERGENCY
GO
DBCC CHECKDB(AIS20121023174212,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE AIS20121023174212 SET ONLINE
GO
ALTER DATABASE AIS20121023174212 SET MULTI_USER
GO

ALTER DATABASE AIS20180714140303 SET SINGLE_USER
GO
ALTER DATABASE AIS20180714140303 SET EMERGENCY
GO
DBCC CHECKDB(AIS20180714140303,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE AIS20180714140303 SET ONLINE
GO
ALTER DATABASE AIS20180714140303 SET MULTI_USER
GO

ALTER DATABASE DAHECode SET SINGLE_USER
GO
ALTER DATABASE DAHECode SET EMERGENCY
GO
DBCC CHECKDB(DAHECode,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE DAHECode SET ONLINE
GO
ALTER DATABASE DAHECode SET MULTI_USER
GO

ALTER DATABASE DSCSYS SET SINGLE_USER
GO
ALTER DATABASE DSCSYS SET EMERGENCY
GO
DBCC CHECKDB(DSCSYS,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE DSCSYS SET ONLINE
GO
ALTER DATABASE DSCSYS SET MULTI_USER
GO

ALTER DATABASE DSCSYS SET SINGLE_USER
GO
ALTER DATABASE DSCSYS SET EMERGENCY
GO
DBCC CHECKDB(DSCSYS,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE DSCSYS SET ONLINE
GO
ALTER DATABASE DSCSYS SET MULTI_USER
GO

ALTER DATABASE HunTec SET SINGLE_USER
GO
ALTER DATABASE HunTec SET EMERGENCY
GO
DBCC CHECKDB(HunTec,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE HunTec SET ONLINE
GO
ALTER DATABASE HunTec SET MULTI_USER
GO

ALTER DATABASE K3DBConfiger SET SINGLE_USER
GO
ALTER DATABASE K3DBConfiger SET EMERGENCY
GO
DBCC CHECKDB(K3DBConfiger,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE K3DBConfiger SET ONLINE
GO
ALTER DATABASE K3DBConfiger SET MULTI_USER
GO

ALTER DATABASE KDAcctDB SET SINGLE_USER
GO
ALTER DATABASE KDAcctDB SET EMERGENCY
GO
DBCC CHECKDB(KDAcctDB,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE KDAcctDB SET ONLINE
GO
ALTER DATABASE KDAcctDB SET MULTI_USER
GO

ALTER DATABASE LearunFramework_Base_2017 SET SINGLE_USER
GO
ALTER DATABASE LearunFramework_Base_2017 SET EMERGENCY
GO
DBCC CHECKDB(LearunFramework_Base_2017,REPAIR_ALLOW_DATA_LOSS)
GO
ALTER DATABASE LearunFramework_Base_2017 SET ONLINE
GO
ALTER DATABASE LearunFramework_Base_2017 SET MULTI_USER
GO




































































































以上是关于恢复数据库的主要内容,如果未能解决你的问题,请参考以下文章

SQL Server数据库的三种恢复模式:简单恢复模式完整恢复模式和大容量日志恢复模式

「oracle备份恢复」oracle数据库备份恢复之逻辑备份与恢复

rman恢复方案和oracle异机恢复

sql恢复修改前数据

SQLSERVER 2008误删除表,几百万行数据没了,怎么恢复

oracle 如何恢复误删的表记录数据