sp_dboption设置数据为单用户模式
来源:互联网 发布:轻型战斗机知乎 编辑:程序博客网 时间:2024/06/03 17:07
二.使用sp_dboption设置数据为单用户模式
1> use master
2> go
1> sp_dboption tec,"single user",true
2> go
Database option 'single user' turned ON for database 'tec'.
Running CHECKPOINT on database 'tec' for option 'single user' to take effect.
(return status = 0)
三.使用sp_flushstats将内存中存储的统计信息刷新到systabstats系统表。你必须至少等待10秒钟,等待进程完成
1> use tec
2> go
1> sp_flushstats
2> go
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
(return status = 0)
四.运行checkpoint命令将所有脏页(自上次写入以来被更新的页)写入到数据库设备。你必须至少等待10秒钟,等待进程完成。
1> checkpoint
2> go
五.运行卸载数据库。
1> use master
2> go
1> dump database tec to "/data_backup/tec0912zm"
2> go
Backup Server session id is: 4. Use this value when executing the
'sp_volchanged' system stored procedure after fulfilling any volume change
request from the Backup Server.
Backup Server: 4.41.1.1: Creating new disk file /data_backup/tec0912zm.
Backup Server: 6.28.1.1: Dumpfile name 'tec0825608D59 ' section number 1
mounted on disk file '/data_backup/tec0912zm'
Backup Server: 4.58.1.1: Database tec: 14644 kilobytes DUMPED.
Backup Server: 4.58.1.1: Database tec: 36278 kilobytes DUMPED.
Backup Server: 4.58.1.1: Database tec: 57912 kilobytes DUMPED.
…………………………………………………………………………….
Backup Server: 4.58.1.1: Database tec: 585206 kilobytes DUMPED.
Backup Server: 4.58.1.1: Database tec: 586744 kilobytes DUMPED.
Backup Server: 3.43.1.1: Dump phase number 1 completed.
Backup Server: 3.43.1.1: Dump phase number 2 completed.
Backup Server: 3.43.1.1: Dump phase number 3 completed.
Backup Server: 4.58.1.1: Database tec: 586752 kilobytes DUMPED.
Backup Server: 3.42.1.1: DUMP is complete (database tec).
六.取消sp_dboption单用户模式设置
1> sp_dboption tec,"single user",false
2> go
Database option 'single user' turned OFF for database 'tec'.
Running CHECKPOINT on database 'tec' for option 'single user' to take effect.
(return status = 0)
(必须在master 库 更改database options
You must be in the 'master' database in order to change database options.)
七.将dump文件拷贝到windows-ASE 服务器中
1.可使用ftp拷贝
2.也可以使用ftp工具拷贝
- sp_dboption设置数据为单用户模式
- SQL Server将数据库设置为单用户模式
- sql server 设置单用户模式
- sql server 设置单用户模式
- sp_dboption
- sp_dboption
- sp_dboption
- ubuntu运行级别,设置单用户模式
- Linux如何给单用户模式设置密码?
- 设置数据日志模式为归档模式
- 单用户模式
- 单用户模式
- 在数据库恢复之前将数据库置为单用户模式
- SQLServer 数据库变成单个用户后无法访问问题的解决方法[在手动还原该数据库的时候,设置为单用户模式,然后其他用户访问的时候就。。。。]
- FreeBSD 单用户模式
- linux单用户模式
- 如何进入单用户模式?
- SQLSERVER2000-单用户模式
- js操作table控制tr
- 两表左连接,统计第二张表中的个数(many-to-one)
- 养成让自己进步的26个习惯
- struts2.2.1配置详解
- Excel 2007建立目录工作表实用技巧
- sp_dboption设置数据为单用户模式
- 有道笔试【hao】
- c# 生成html
- 气质的培养(哈佛管理世界)
- .net 后台控制前台meta关键字的办法
- asp.net防sql注入语句
- Telephone Interview Summary
- 将中缀表达式转化成后缀表达式
- Mcts认证最新70-672考试题库资讯-Pass4side权威题库网站提供