server

SQL SERVER DBCC 命令集整理

好久不见. 提交于 2020-04-24 23:29:12
1. DBCC CHECKALLOC 检查指定数据库的磁盘空间分配结构的一致性。 DBCC CHECKALLOC [ (database_name | database_id | 0 [ , NOINDEX | , { REPAIR_ALLOW_DATA_LOSS | REPAIR_FAST | REPAIR_REBUILD } ] ) [ WITH { [ ALL_ERRORMSGS ] [ , NO_INFOMSGS ] [ , TABLOCK ] [ , ESTIMATEONLY ] } ] ] 2. DBCC CHECKCATALOG 检查指定数据库内的目录一致性。数据库必须联机。 DBCC CHECKCATALOG [ ( database_name | database_id | 0 ) ] [ WITH NO_INFOMSGS ] 3. DBCC CHECKCONSTRAINTS 检查当前数据库中指定表上的指定约束或所有约束的完整性。 DBCC CHECKCONSTRAINTS [ ( table_name | table_id | constraint_name | constraint_id ) ] [ WITH [ { ALL_CONSTRAINTS | ALL_ERRORMSGS } ] [ , ] [ NO_INFOMSGS ] ] 4. DBCC

CentOS SVN Server搭建

时光毁灭记忆、已成空白 提交于 2020-04-19 05:45:51
操作系统: CentOS-6.3-x86_64-minimal.iso 安装指南: http://wiki.centos.org/zh/HowTos/Subversion 1)出现forbidden 修改svn-auth-conf和svn-acl-conf权限 2)semanage SELinux Command Not Found yum provides /usr/sbin/semanage && yum -y install policycoreutils-python && man semanage 3)注意 SVNPath 和 SVNParentPath区别 来源: oschina 链接: https://my.oschina.net/u/228091/blog/130040

Sql server 2008镜像配置步骤

删除回忆录丶 提交于 2020-04-15 16:45:28
【推荐阅读】微服务还能火多久?>>> 下面主要是2008 MSSQL的一个镜像安装步骤,使用到的工具是mssql自带的Management Studio purpose : SQL SERVER 2008 mirror configuration Created : 2012-04-13 Author : kenyon 镜像安装的环境: 主机:win server 2003,sql server 2008,IP:192.168.9.182 PC账户:administrator 备机:win server 2003,sql server 2008,IP:192.168.9.181 PC账户:administrator 无见证服务器(witness) 说明: a.镜像服务器备份的是用户的数据库,不是系统的数据库,比如不能镜像master,msdb,model和tempdb b.镜像的数据库对象恢复模式必须是完整的,不能是简单和大容量日志类型的 c.备机镜像不能被访问,正常情况下一直处于正在还原的状态 d.主机可以被访问,正常情况下一直处于主体正在同步的状态 e.主机和备机的5022端口必须没有被占用,可以用telnet 192.168.9.182 5022来验证 0.确定主机的恢复模式是完整性恢复的 USE master; ALTER DATABASE backuptest SET

通过SQL Server 2008数据库复制实现数据库同步备份

╄→гoц情女王★ 提交于 2020-04-15 16:19:14
【推荐阅读】微服务还能火多久?>>> SQL Server 2008数据库复制是通过发布/订阅的机制进行多台服务器之间的数据同步,我们把它用于数据库的同步备份。这里的同步备份指的是备份服务器与主服务器进行实时数据同步,正常情况下只使用主数据库服务器,备份服务器只在主服务器出现故障时投入使用。它是一种优于文件备份的数据库备份解决方案。 在选择数据库同步备份解决方案时,我们评估了两种方式:SQL Server 2008的数据库镜像和SQL Server 2008数据库复制。数据库镜像的优点是系统能自动发现主服务器故障,并且自动切换至镜像服务器。但缺点是配置复杂,镜像数据库中的数据不可见(在SQL Server Management Studio中,只能看到镜像数据库处于镜像状态,无法进行任何数据库操作,最简单的查询也不行。想眼见为实,看看镜像数据库中的数据是否正确都不行。只有将镜像数据库切换主数据库才可见)。如果你要使用数据库镜像,强烈推荐killkill写的 SQL Server 2005 镜像构建手册 ,我们就是按照这篇文章完成了数据库镜像部署测试。 最终,我们选择了SQL Server 2008数据库复制。 下面通过一个示例和大家一起学习一下如何部署SQL Server 2008数据库复制。 测试环境: Windows Server 2008 R2 + SQL Server

Anaconda environments packages update

不羁岁月 提交于 2020-04-11 12:18:29
问题 Let's assume I perform a full anaconda installation as root that will be shared among all users. a. On the base environment I install python2.7.12, matplotlib and numpy: $ conda install python=2.7.12 matplotlib numpy b. After a couple of months one of my users creates an environment: $ conda install -n py27 python=2.7.12 matplotlib numpy Let's assume that in the meanwhile a matplotlib and numpy were updated and are no longer on the same version. My questions are: will the versions of

Hive Server的启动debug命令

纵饮孤独 提交于 2020-04-09 11:03:36
CLI到了这一步就需要去连接Hive Server了,所以现在开始转向研究Hive Server的启动过程。 ======================================================= 先看shell里怎么启动Hive Server 那么启动类是什么? 这样,我们就找到了启动类,下面就从这个类开始debug. ===老规矩,先整理出debug命令 jdb org.apache.hadoop.hive.service.HiveServer -p 10000 -minWorkerThreads 10 -maxWorkerThreads 10000 stop in org.apache.hadoop.hive.service.HiveServer.main stop in org . apache . hadoop . hive . service . HiveServer $ ThriftHiveProcessorFactory .getProcessor stop in org . apache . hadoop . hive . metastore . HiveMetaStore $ HMSHandler .createDefaultDB stop in org . apache . hadoop . hive . metastore .

npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Nuwanst\package.json'

元气小坏坏 提交于 2020-04-07 11:25:16
问题 I just want to install socket.io to my project which is located on 3.chat folder. But when I run following command it shows following Warnings.And its not created a node_modules directory inside my project folder. How to fix this? C:\Users\Nuwanst\Documents\NodeJS\3.chat>npm install socket.io C:\Users\Nuwanst `-- socket.io@2.0.3 npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Nuwanst\package.json' npm WARN Nuwanst No description npm WARN Nuwanst No repository field. npm WARN

how to change python script into a server

百般思念 提交于 2020-03-26 01:26:20
问题 I am currently working on a project where this project requires a server to be connected to the Android project. I am confused how to make the python script (inference engine script) that gonna be a server here the following script that i made : import numpy as np import pandas as pd #from sklearn.ensemble import RandomForestClassifier #from sklearn.neighbors import KNeighborsClassifier from sklearn import tree data = pd.read_csv('datawadek.csv') y = data.KELAS x = data.drop('KELAS', axis = 1

cant install php-devel for php 7.4.1

こ雲淡風輕ζ 提交于 2020-03-25 17:47:08
问题 i cannot install php-devel, when i enter: yum install php-devel Resolving Dependencies --> Running transaction check ---> Package php-devel.x86_64 0:7.4.0-1.el7.remi will be installed --> Processing Dependency: php-cli(x86-64) = 7.4.0-1.el7.remi for package: php-devel-7.4.0-1.el7.remi.x86_64 --> Finished Dependency Resolution Error: Package: php-devel-7.4.0-1.el7.remi.x86_64 (remi-php74) Requires: php-cli(x86-64) = 7.4.0-1.el7.remi Installed: php-cli-7.4.1~RC1-1.el7.remi.x86_64 (@remi-modular

TFS 2010 Upgrade to TFS 2013 - Can Window Server 2019 Standard Support the Upgrade?

百般思念 提交于 2020-03-25 16:15:41
问题 We are looking to carry out the following TFS upgrades in our Production environment: Upgrade TFS 2010 to TFS 2013.5 Upgrade TFS 2013.5 to TFS 2019 To support both migrations, we have a Windows Server 2019 Standard edition to host the Application Tier. The Data Tier is to be installed on a dedicated SQL box. The Microsoft website however lists Windows Server 2012 (Essentials, Standard, Datacenter) as the latest server operating system edition required for TFS 2013. My question therefore is,