首先建立同名的空数据库,然后停止数据库服务运行,将MDF文件覆盖后启动服务,并修改和执行下面的语句. alter database JinMa_NYGL set EMERGENCY alter database JinMa_NYGL set SINGLE_USER dbcc checkdb('JinMa_NYGL',REPAIR_ALLOW_DATA_LOSS) alter database JinMa_NYGL set MULTI_USER ALTER DATABASE JinMa_Colle
–创建用户 create user anhui identified by anhui -给予用户权限 grant create session to anhuigrant connect,resource to anhui; -创建表空间 1)先导dmp文件,报错:tablespace ‘FMIS_LOB’ does not exist2)然后创建表空间create tablespace FMIS_LOB DATAFILE ‘/data/db/shandong/FMIS_LOB.dbf’ Si
方式一: .create a database same name as .mdf file; .Stop SQL Server; . recover .mdf file; . Start SQL Server, the DB will be suspect; . Run the following SQL for the DB ALTER DATABASE yourdb SET EMERGENCY; ALTER DATABASE yourdb SET SINGLE_USER; DBCC CHE