Notes:
Before you backup the farm you should create a shared folder,The Central Admin backups can run as two different accounts, so you have to make sure they both have access to \\ap01\IT\web-backups2\spbrtoc.xml. The first account is the account that the Central Admin app pool is running as. The second is the account that the SQL service is running as. If they both don't have modify permissions backups and recoveries will fail.
To active the SharePoint 2013 Administrate Server Resolution: Start the administration service- Start the SharePoint Foundation Administration service by using the Services Microsoft Management Console (MMC) snap-in in Windows. ClickStart, clickRun and type the following:
-
services.msc
-
If the service fails to start, ensure that the user name and account have membership in the Administrators group on the local computer.
-
If the service could not be started, try to repair the SharePoint Foundation configuration on that server by running the SharePoint Products and Technologies Configuration Wizard.
Verify that the user account that is performing this procedure is a member of the Administrators group on the computer on which you want to create the shared folder.
If you create the shared folder on a computer other than the one running SQL Server, ensure that the service account for SQL Server (MSSQLSERVER) is using a domain user account and that it has Full Control permissions on the shared folder.
On the server on which you want to store the backup data, create a shared folder.
On the Sharing tab of the Properties dialog box, clickShare, and then in theFile Sharing dialog box, add the following accounts and assign them the Co-Owner role:
-
SQL Server service account (MSSQLSERVER)
-
The SharePoint Central Administration application pool identity account
-
The SharePoint 2010 Timer service account: Network Service (if you are using SharePoint Foundation 2010 to perform backups)
To perform this procedure, you must be a member of the Farm Administrators group on the computer that is running Central Administration.
In Central Administration, on the Home page, in the Backup and Restore section, clickPerform a backup.
On the Perform a Backup — Step 1 of 2: Select Component to Back Up page, select the farm from the list of components, and then clickNext.
On the Start Backup — Step 2 of 2: Select Backup Options page, in the Backup Type section, select either Full or Differential.
If you are backing up the farm for the first time, you must use the Full option. You must perform a full backup before you can perform a differential backup.
In the Back Up Only Configuration Settings section, click Back up content and configuration settings.
In the Backup File Location section, type the UNC path of the backup folder, and then clickStart Backup.
You can view the general status of all backup jobs at the top of the Backup and Restore Status page in theReadiness section. You can view the status for the current backup job in the lower part of the page in theBackup section. The status page updates every 30 seconds automatically. You can manually update the status details by clickingRefresh. Backup and recovery are Timer service jobs. Therefore, it may take several seconds for the backup to start.
If you receive any errors, you can review them in the Failure Message column of the Backup and Restore Job Status page. You can also find more details in the Spbackup.log file at the UNC path that you specified in step 6.
Note:Perhaps you could have the ERROR:""The backup/restore job failed because there is already another job scheduled. Delete the timer job from the Timer Job Definitions page, and then restart the backup/restore job." Then you should into the Server Manage and restart the SharePoint Timer Service. that will be OK.
Hope to help you...
论坛上经常会有很多人抱怨数据库HEAP表碎片很大,无法收缩。在2005之前可以通过创建聚集索引解决或者重建表将数据导入,等到表空间变小后再进行收缩。在2008中有一个新的语法ALTERTABLE REBUILD,使用这条语句可以重新生成表。
下面是我自己的一个表,碎片非常大,占用了大概11G的空间:
使用ALTER TABLE REBUILD之后的效果(差距巨大吧,已经变成了131M):
这样就避免了在2005中创建表然后导入再更新表一些列的操作,非常简便。
附件同下,以下为自己看书的笔记
JavaScript和DOM编程艺术
1、W3C标准:只要代码符合这个标准一般就可以不用考虑浏览器的兼容性,此标准是用DOM语法设计。
2、js的注释有“//”,“/*……*/”,虽说可以用“<!-->”但不推荐。
3、js中变量可以不声明就用,但不推荐这样,声明变量用var。
4、js中区分大小写。
5、js的变量名可以是字母、数字、美元符号、下划线。
6、js中可以随意改变某个变量的数据类型。
7、如果双引号里包含双引号,则用反斜杠进行转义,如var name="I\"m lh"就是I"m lh。
8、数组很灵活,定义为不同类型:var name=["aa",11,false]、var name=Array("aa",11,false)
9、数组中的任何一个元素都可以把一个数组作为它的值,如var names=Array();names[0]=name;
10、关联数组:元素的下标可以是字符串,如:var lennon=Array();lennon["name"]="tom";lennon["age"]=30;
11、typeof用来判断操作数的类型。
12、getElementsByTagName("*")方法中的参数可以是通配符,表示获得文档中所有的元素。
13、获得某个属性的值用getAttribute("属性名");
14、setAttribute()方法修改属性值,但是在浏览器查看源代码时不会显示它修改后的值。
15、childNodes(孩子节点元素):当body中只有一个标签且标签下有内容时,会是两个元素;当body中同一级的有一个以上标签时,childNodes不会统计标签下的内容。
16、nodeType(节点的类型):元素节点为1、属性节点为2、文本节点为3,用于判断当前节点的类型。nodeValue(节点的值).
17、伪协议即“javascript:”的引用,此方法不常用,因为如果浏览器禁用了js就会无操作了,没有给网站预留退路(浏览器禁用了js后也能正常操作,只是效果没那么好)。
18、为了让HTML文档的内容全部加载完后再加载head中js要用window.onload=函数名,或者把匿名函数绑定到onload事件上,如window.onload=function(){方法名,……}。
19、判断浏览器是否支持某属性或方法:if(document.方法名或者属性名) return false; 方法名不要写圆括号,因为我们不用调用它的方法。
20、把事件绑定到id的属性值上,类似div+css的用法,如<a id="aid">aaa</a> 在js中可以给id绑定事件document.getElementById("aid").onclick=function(){alert("aa");},这种
方法类似为<a onclick="alert("aa");"></a>。
21、innerHTML的方式插入内容会把原来标签中的内容都覆盖。
22、当文档的MIME类型是application/xhtml+xml的xhtml时不会执行innerHTML和document.write();
23、creatElement是创建一个元素节点、parent.appendChild(创建的元素节点)把创建的元素节点插入到某个元素中。
24、createTextNode(要插入的内容)创建一个文本节点。
25、让浏览器把XHTML当作XML对待前要引用MIME类型为application/xhtml+xml,xhtml必须要符合xml的规范,标签必须用小写字母,如以<a></a>标签,而html可以写成<a />。
26、改变某个元素的呈现效果用CSS;改变某个元素的行为用DOM;根据某个元素的行为去改变它的呈现效果用DOM嵌套CSS。
-
本文附件下载:
- JavaScript和DOM编程艺术-笔记.zip (1.7 KB)
已有 0 人发表留言,猛击->>这里<<-参与讨论
ITeye推荐
- —软件人才免语言低担保 赴美带薪读研!—