SQL Server 2005镜像构建手册
2008-09-02 09:57:54 来源:WEB开发网1、创建证书(主备可并行执行)
--主机执行:
1USE master;
2create MASTER KEY ENCRYPTION BY PASSWORD = ’killkill’;
3create CERTIFICATE HOST_A_cert WITH SUBJECT = ’HOST_A certificate’ ,
4START_DATE = ’01/01/2008’;
5
--备机执行:
1USE master;
2create MASTER KEY ENCRYPTION BY PASSWORD = ’killkill’;
3create CERTIFICATE HOST_B_cert WITH SUBJECT = ’HOST_B certificate’,
4START_DATE = ’01/01/2008’;
5
2、创建连接的端点(主备可并行执行)
--主机执行:
1create ENDPOINT Endpoint_Mirroring
2STATE = STARTED
3AS
4TCP ( LISTENER_PORT=5022 , LISTENER_IP = ALL )
5FOR
6DATABASE_MIRRORING
7( AUTHENTICATION = CERTIFICATE HOST_A_cert , ENCRYPTION = REQUIRED ALGORITHM AES , ROLE = ALL );
8
--备机执行:
1create ENDPOINT Endpoint_Mirroring
2STATE = STARTED
3AS
4TCP ( LISTENER_PORT=5022 , LISTENER_IP = ALL )
5FOR
6DATABASE_MIRRORING
7( AUTHENTICATION = CERTIFICATE HOST_B_cert , ENCRYPTION = REQUIRED ALGORITHM AES , ROLE = ALL );
8
3、备份证书以备建立互联(主备可并行执行)
--主机执行:
1BACKUP CERTIFICATE HOST_A_cert TO FILE = ’D:SQLBackupHOST_A_cert.cer’;
--备机执行:
1BACKUP CERTIFICATE HOST_B_cert TO FILE = ’D:SQLBackupHOST_B_cert.cer’;
- ››sql server自动生成批量执行SQL脚本的批处理
- ››sql server 2008亿万数据性能优化
- ››SQL Server 2008清空数据库日志方法
- ››sqlserver安装和简单的使用
- ››SQL Sever 2008 R2 数据库管理
- ››SQL SERVER无法安装成功,sqlstp.log文件提示[未发...
- ››Sql Server中通过父记录查找出所有关联的子记录
- ››SqlServer触发器、存储过程和函数
- ››SQL Server 中的事务(含义,属性,管理)
- ››Sqlite数据库插入和读取图片数据
- ››Sql server 2005拒绝了对对象 'xx表' (数...
- ››Sql server 2005拒绝了对对象 'xx表' (数...
更多精彩
赞助商链接