摘要: 查询MSSQL慢查询: SELECT TOP 20 TEXT AS 'SQL Statement',last_execution_time AS 'Last Execution Time' ,(total_logical_reads + total_physical_reads + total_lo 阅读全文
posted @ 2020-03-24 15:37 DBArtist 阅读(740) 评论(0) 推荐(0) 编辑
摘要: 在MS Sql Server中可以能过以下的方法查询出磁盘空间的使用情况及各数据库数据文件及日志文件的大小及使用利用率: 1、查询各个磁盘分区的剩余空间:Exec master.dbo.xp_fixeddrives 2、查询数据库的数据文件及日志文件的相关信息(包括文件组、当前文件大小、文件最大值、 阅读全文
posted @ 2020-03-23 14:47 DBArtist 阅读(524) 评论(0) 推荐(0) 编辑
摘要: python3 安装pymssql失败 报错信息: AttributeError: module 'platform' has no attribute 'linux_distribution' 解决方法: 网上查了一堆后说是python3.7以后platform.linux_distributio 阅读全文
posted @ 2020-03-16 09:41 DBArtist 阅读(1934) 评论(0) 推荐(0) 编辑
摘要: 一、先安装python3所依赖的软件包,非常重要(否则可能会出现python3安装成功,却缺少相应的pip) [root@centos src]# yum groupinstall "Development tools" -y [root@centos src]# yum -y install zl 阅读全文
posted @ 2020-03-12 21:11 DBArtist 阅读(765) 评论(0) 推荐(0) 编辑
摘要: python3 安装pyodbc失败 报错1: 关键报错信息: fatal error: sql.h: No such file or directory [root@centfos python38]# pip3 install pyodbc Collecting pyodbc Using cac 阅读全文
posted @ 2020-03-12 20:58 DBArtist 阅读(4395) 评论(0) 推荐(0) 编辑
摘要: Django配置MySQL数据库方法 一、settings.py文件中修改数据库配置为下面的内容: # Database # https://docs.djangoproject.com/en/2.0/ref/settings/#databases DATABASES = { 'default': 阅读全文
posted @ 2019-10-06 09:00 DBArtist 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 刚开始进去后,我是懵逼的状态,不知道要干嘛,之前常用的是MSSQL,感觉两者还是有区别的: oracle中:1、查询数据库名:select name,dbid from v$database;或者show parameter db_name;2、查询实例名:select instance_name 阅读全文
posted @ 2017-05-18 21:05 DBArtist 阅读(290) 评论(0) 推荐(0) 编辑
摘要: DBArtist之Oracle入门第3步: 安装配置PL/SQL Developer 阅读全文
posted @ 2017-05-18 19:48 DBArtist 阅读(302) 评论(0) 推荐(0) 编辑
摘要: DBArtist之Oracle入门第2步: 了解Oracle的Database Control 阅读全文
posted @ 2017-05-18 19:11 DBArtist 阅读(298) 评论(0) 推荐(0) 编辑
摘要: DBArtist之Oracle入门第1步: 如何安装Oracle 11g 阅读全文
posted @ 2017-05-18 18:36 DBArtist 阅读(358) 评论(0) 推荐(0) 编辑