Exclusive access could not be obtained because the database is in use
Use Master
Alter Database YOURDB
SET SINGLE_USER With ROLLBACK IMMEDIATE
RESTORE DATABASE YOURDB
FROM DISK = 'C:Program FilesMicrosoft SQL ServerMSSQLBACKUPYOURDB.bak'
use Master
ALTER DATABASE yourdatabasename SET MULTI_USER WITH ROLLBACK IMMEDIATE;
[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8337095/viewspace-1060178/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Msg 3702:Cannot drop the database 'gcard' because it is currently in use.DatabaseGC
- cannot mount database in EXCLUSIVE modeDatabase
- Error: The action can not be performed because ...could not be locked?ErrorORM
- Auditing Database AccessDatabase
- Restricting Access to a Database at StartupRESTDatabase
- use the function_based index to access the null valueFunctionIndexNull
- Could Cassandra be the first breakout NoSQL databaseSQLDatabase
- ORA-01679: database must be mounted EXCLUSIVE and not open to activateDatabase
- How to use rman backup a noarchivelog databaseHiveDatabase
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- Application failed to start because it could not find or load the QT platform plugin “windows”APPAIQTPlatformPluginWindows
- ORA-01102: cannot mount database in EXCLUSIVE modeDatabase
- ORA-01102 cannot mount database in EXCLUSIVE modeDatabase
- How to use the Automatic Database Diagnostic Monitor(一)Database
- Connections could not be acquired from the underlying databaseUIDatabase
- [Oracle] ORA-01102: cannot mount database in EXCLUSIVE modeOracleDatabase
- Access denied for user 'default'@'%' to database 'shop'報錯Database
- Simultaneous accesses to 0x1c5a674c8, but modification requires exclusive access.UI
- sqlserver bulk insert報錯Cannot bulk load because the file could not be opened.SQLServer
- 關於ORA-01102: cannot mount database in EXCLUSIVE modeDatabase
- Oracle ORA-01102故障: cannot mount database in EXCLUSIVE modeOracleDatabase
- Linguistics-English-Would, Should, and Could: How to Use Them CorrectlyNGUI
- Oracle Database on NFS : unable to lock file - already in use" ErrorOracleDatabaseNFSError
- RAC 11.2.0.3 ORA-01102: cannot mount database in EXCLUSIVE mode”Database
- 請高手指點A connection to the database could not be madeDatabase
- To use Rman to duplicate database be careful of db_file_name_convertDatabase
- Could not find or access '/etc/ansible/bin/cfssljson /etc/ansible/bin/cfsslJSON
- VS中呼叫QT出現This application failed to start because it could not find or load the Qt platform pluginQTAPPAIPlatformPlugin
- ORA-01102: cannot mount database in EXCLUSIVE mode 的解決辦法Database
- Oracle 11g RAC ORA-01102: cannot mount database in EXCLUSIVE modeOracleDatabase
- Oracle 11g 報錯ORA-01102: cannot mount database in EXCLUSIVE modeOracleDatabase
- 啟動資料庫時 ORA-01102: cannot mount database in EXCLUSIVE mode資料庫Database
- ERROR 1044 (42000): Access denied for user 'root'@'%' to databaseErrorDatabase
- Kettle: pentaho-server-ce-9.4 : ERROR [SchemaUpdate] could not get database metadataServerErrorDatabase
- oracle ORA-01102: cannot mount database in EXCLUSIVE mode(無法起到獨佔模式)OracleDatabase模式
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'ErrorlocalhostDatabaseMySql
- use database 切換提示You can turn off this feature to get a quicker startupDatabaseUI
- 2018-06-13 Use rpsblast to search Cdd databaseASTDatabase