对于[MSSQL]利用本机账号(NoDomainName环境)设定SQLServer镜像(DatabaseMirroring)感兴趣的读者,本文将提供您所需要的所有信息,并且为您提供关于.htacce
对于[MSSQL]利用 本机账号(No Domain Name 环境) 设定 SQL Server 镜像(Database Mirroring)感兴趣的读者,本文将提供您所需要的所有信息,并且为您提供关于.htaccess http://domain.tld/index.php?name = domain.com到http://domain.tld/domain.com、68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database、73.You are managing an Oracle Database 11g database. You configured the database to run in ARCHIVELO、78.You are managing an Oracle Database 11g database. The database is open, and you plan to perform R的宝贵知识。
本文目录一览:- [MSSQL]利用 本机账号(No Domain Name 环境) 设定 SQL Server 镜像(Database Mirroring)
- .htaccess http://domain.tld/index.php?name = domain.com到http://domain.tld/domain.com
- 68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database
- 73.You are managing an Oracle Database 11g database. You configured the database to run in ARCHIVELO
- 78.You are managing an Oracle Database 11g database. The database is open, and you plan to perform R
[MSSQL]利用 本机账号(No Domain Name 环境) 设定 SQL Server 镜像(Database Mirroring)
摘要:?sql Server?database mirroring with?local user account(no domain name).
使用说明:
本章将介绍如何在利用"本机账号"(或是在没有Domain Name 环境)来设定 sql Server 镜像
(注:设定 sql Server 镜像主要有三种方式:
1. 在有 Domain Name?环境可以透网域账号来设定
2.?在没有 Domain Name 环境可以每台电脑的本机账号来设定
3. 透过凭证的方式进行)
?
环境说明:
第一台角色作用:?Principal Server
电脑名称: PC1
数据库名称: TestDB
本机账号: PC1admin1
数据库: sql Server 2014?Developer Edition
操作系统: Windows 7 Service Pack 1
第二台
角色作用:?Mirroring Server
电脑名称: PC2
本机账号: PC2admin1
数据库: sql Server 2014?Developer Edition
操作系统: Windows 7 Service Pack 1
(注: Principal 和?Mirroring 要使用相同的 sql Server 版本)
第三台
角色作用:?Witness Server
电脑名称: PC3
本机账号: PC3admin1
数据库: sql Server 2014?Express?Edition
操作系统: Windows 7 Service Pack 1
如果有防火墙请记得开启 sql Server TCP Port(默认:1433) 和 镜像端点 Port(默认:5022)
?
设定教学说明:
将对 PC1 的 数据库 TestDB 设定镜像。
Step 1-1.
将 PC1、PC2 的 " sql Server 服务"和 "sql Server Agent 服务" 的登入身份 都改为的本机账号 admin1,如下图:
?
Step 1-2.
PC3 的 " sql Server 服务" 的登入身份 改为的本机账号 admin1,如下图:
Step 2.
将 PC1 的数据库TestDB做 完整备份 与 事务纪录备份?后,在 PC2 做备份还原动作,
PC2 做还原 "完整备份" 时,请记住要到还原的"选项"页面,选择 RESTORE WITH norECOVERY 做还原的项目,如下图:
PC2 做 "事务纪录"?还原时,请也记住要到还原的"选项"页面,选择 RESTORE WITH norECOVERY 做还原的项目,如下图:
如果成功做完还原动作,PC2 的 "TestBD"数据库状态会是"正在还原…",如下图:
Step 3.
对 PC1、PC2、PC3 加入登入身份,分别是自己的本机账号 admin1(如:PC1要加入?PC1admin1,PC2要加入?PC2admin1,PC3要加入?PC3admin1),
如果sql Server 已经有加入自己的本机账号 admin1,Step 3.就可以忽略不用重复做了,如下图:
Step 4.
在 PC1 做镜像设定动作,如下图(step by step):
由于在?No Domain Name 环境下,所以下图的服务账户无作用,因此皆留空白(在后面会透过手动方式对"端点"加入本机账号 admin1连入的权限)
按下"完成"按钮,即会跳到下图,这时候按下"不要启动镜像"按钮(因为后面步骤我们要手动对"端点"加入 本机账号admin1 连入的权限,所以等加入账号连入权限后再来操作此画面)
按下"不要启动镜像"按钮,即会跳到下图,这时候先不要按下任何按钮,先保留此画面(后面Step 6?会用到)
Step 5.
我们要手动对 "Mirror"端点?加入 本机账号admin1 可以连入的权限,
因此对 PC1 执行下面的 sql命令
USE [master] GRANT CONNECT ON ENDPOINT::[Mirror] TO [PC1admin1]
对 PC2 执行下面的 sql命令
USE [master] GRANT CONNECT ON ENDPOINT::[Mirror] TO [PC2admin1]
对 PC3 执行下面的 sql命令
USE [master] GRANT CONNECT ON ENDPOINT::[Mirror] TO [PC3admin1]
如下图:
Step 6.
就下来准备启动镜像,这时候我先回到 Step4 最后所停留的画面,如下图,按下 "启动镜像" 按钮
如果出现提示 "缺少完整域名(FQDN)" 时,请下按"是"按钮
启动成功后,PC1 的 TestDB 数据库状态为"主体,已同步处理",PC2 的 TestDB 数据库状态为"镜像,已同步处理/正在还原...",如下图
注:如果发生 1418 错误时,请重新检查 Step1 或 Step5 有没有遗漏做的动作,或是 Port?1433、5022 被防火墙挡住。
主要参考:
sql Server - 如何建立 Database Mirroring
[Windows][sql]架设 DB Mirroring 的环境在 Windows 2012 ( 1/2 )
[Windows][sql]架设 DB Mirroring 的环境在 Windows 2012 ( 2/2 )
[sql]在 Workgroup 环境下设定 sql Server 数据库镜像 ( Database Mirroring )
sql Server 2008R2 Mirroring with No Domain (sql 镜像)
mirror:error-1418
※在此感谢所有的帮助者,感谢~
原文:大专栏 [MSSQL]利用 本机账号(No Domain Name 环境) 设定 SQL Server 镜像(Database Mirroring)
.htaccess http://domain.tld/index.php?name = domain.com到http://domain.tld/domain.com
如何解决.htaccess http://domain.tld/index.php?name = domain.com到http://domain.tld/domain.com
| 我怎样才能使.htaccess成为标题的示例?访问者将在浏览器中输入http://mydomain.tld/somedomain.tld,我的whois脚本应处理http://mydomain.tld/index.PHP?name = somedomain.tld并返回whois结果。 谢谢解决方法
mod_rewrite
。 RewriteEngine on
RewriteRule ^(.*)$ http://mydomain.tld/index.php?name=$1 [NC]
(未经测试,因此,如果无法完全按照您的意愿操作,请在ѭ0上阅读。) ,尝试在.htaccess文件中遵循以下规则: RewriteEngine on
Options +FollowSymlinks -MultiViews
RewriteCond %{QUERY_STRING} !^name= [NC]
RewriteRule ^([^/]*)/?$ /index1.php?name=$1 [L,R=301,NE,QSA]
上面的RewriteCond将防止无限重定向。 NC
没有案例比较 R=301
将重定向为https状态301 L
将成为最后的规则 NE
表示无转义查询字符串 QSA
将附加您现有的查询参数 $1
是您的REQUEST_URI
68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database
68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database to the point of failure. Which configuration will you do to accomplish the task? A.Multiplex all database files. B.Configure the Flash Recovery Area. C.Configure the database instance for ARCHIVELOG mode. D.Configure the FAST_START_MTTR_TARGET initialization parameter. 答案:C 解析:这个说是恢复到错误发生的时间点,这个相当于不完全恢复,不完全恢复的先觉条件是@R_301_6250@处于归档模式 当@R_301_6250@设置为归档模式之后对@R_301_6250@意味着 1.当@R_301_6250@(磁盘或系统文件问题所导致的)崩溃之后,所有提交的数据都能恢复 2.可以对@R_301_6250@进行联机备份,而且在联机备份期间可以继续进行其他的操作 3.当某一非系统表空间脱机时,@R_301_6250@的其他部分继续正常工作 4.可以进行如下的不完全恢复 a.恢复到某一特定的时间点 b.恢复到某一特定的scn号 c.恢复到某一特定的归档文件的结尾73.You are managing an Oracle Database 11g database. You configured the database to run in ARCHIVELO
73.You are managing an Oracle Database 11g database. You configured the database to run in ARCHIVELOG mode. Which two statements are true in this scenario? (Choose two.) A.You must shut down the database instance to perform the backups. B.You must configure the Flash Recovery Area (FRA) for the database. C.You can perform complete database backups without closing the database. D.All the prevIoUs closed database backups including control files become invalid after you configure the database to ARCHIVELOG mode. 答案:CD 解析: A.归档模式后,备份不需要关闭数据库,属于热备,因此A是错误的,当然也可以关闭进行一致性备份,但不是必须关闭数据库 B.fra默认路径为$ORACLE_BASE/fast_recovery_area,不需要费的配置,因此B也是错误的 C.正确,备份的时候,是备份了一个点,然后通过归档日志执行前滚实现了完全备份 D.正确,当打开归档后 sql> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 77 Next log sequence to archive 77 Current log sequence 79 这里的Current log sequence将会被重置为1,也就是之前的都变成了invalid78.You are managing an Oracle Database 11g database. The database is open, and you plan to perform R
78.You are managing an Oracle Database 11g database. The database is open,and you plan to perform Recovery Manager (RMAN) backups. Which three statements are true about these backups? (Choose three.) A.The backups would be consistent. B.The backups would be inconsistent. C.The backups would be possible only if the database is running in ARCHIVELOG mode. D.The backups would be possible only if the database is running in NOARCHIVELOG mode. E.The backups need to be restored and the database has to be recovered in case of a media failure. 答案:BCE 解析:只要是open状态进行备份的都是不一致备份排除A rman在非归档模式下执行进行脱机备份也就是冷备,因此排除D E说的是介质有问题了,备份必须restore然后recovered,这里说一下restore和recover的区别 restore:从备份位置还原一个或者多个数据库文件 recover:应用归档和联机重做日志文件,将整个数据库或单独数据库文件前滚到指定的scn 这就是归档文件的作用,当执行备份的时候,只是备份到一个点的数据,但是在备份之后这段时间执行的数据,就需要 通过recover利用归档日志,来进行前滚实现,因此需要这两步关于[MSSQL]利用 本机账号(No Domain Name 环境) 设定 SQL Server 镜像(Database Mirroring)的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于.htaccess http://domain.tld/index.php?name = domain.com到http://domain.tld/domain.com、68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database、73.You are managing an Oracle Database 11g database. You configured the database to run in ARCHIVELO、78.You are managing an Oracle Database 11g database. The database is open, and you plan to perform R等相关知识的信息别忘了在本站进行查找喔。
本文标签: