Learn about sql server database health check script, we have the largest and most updated sql server database health check script information on alibabacloud.com
2014-08-23 BaoxinjianI. Summary
A script that is circulated online to query the efficiency of a single SQL query and export it as an HTML report, similar in function to Dbms_profilerQuery sql_id by session, only run script, export as HTML reportThe SQL script: Http://f
Oracle SQL Tuning Health Check ScriptWe focus on the performance of database system, the main task of database tuning is to optimize SQL. Good data architecture design, with application system middleware and writing a beautiful
Php:It is usually the beginning of the code you want to check to record a time, the end of the record a time. Take the difference value,the efficiency of database SQLSQL explain (MySQL), enable slow query log to record slow queries. Usually also depends on the database design is reasonable, the demand is reasonable and so on.But this time is generally very fast,
1.php Execution Time:$begin=Microtime(true);//gets the time that the program started executing//some code here to execute$stop=Microtime(true);//gets the time that the program execution endedList($m 0,$s 0)=Explode(" ",$begin);List($m 1,$s 1)=Explode(" ",$stop);$runtime=($s 1+$m 1-$s 0-$m 0) *1000;Echo' $etime-$stime.‘ microseconds; 2.SQL Execution time (actually the same as above):$begin=Microtime();mysql_query($
Tags: Biztalk. SynopsisPowerShell script to perform a quick BizTalk health Check. DESCRIPTIONThis script gathers and displays a lot of information about a BizTalk server. Sections include Windows, computer, BizTalk artifacts, Event Logs and more.important! The
(typically the hostname/sql server), click the drop-down box can be found, authentication selected "Windows Authentication" (General local SQL Server is this authentication, if "SQL Server Authentication" is selected, the user na
drop proc qiuhecreate proc Qiuhe--accumulate sum @n in database languageint asDeclare @sumint--equivalent to defining variables in the C # language declare @iint Set@sum =0--assigns a value to the variable, which is equivalent to the C # languageintsum=0 Set@i=1--equivalent to the In-loopintI=1(intI=1; i) while@i for(intI=1; i) BeginSet@[email protected]+@iSet@[email protected]+1--equivalent to the i++ in the For loopEndreturn@sumgodeclare @aintex
SQL Server Daily Check script
print '----------------------------'
print ' 0.sqlserver All information 'print '----------------------------'print 'print ' ********************************* '
--step 1:setting NULLs and quoted identifiers to on and checking the version of SQL
1. SQL Server 2000 database Dictionary (table structure. SQL)
Select top 100 PERCENT -- a. id,
Case when a. colorder = 1 THEN d. name ELSE ''end as table name,Case when a. colorder = 1 THEN isnull (f. value, '') ELSE'' end as table description,A. colorder as field No., a. name AS field name, case when columnproperty (a
address, and then use Curl to detect return code, found very good, basic 1 minutes will be able to produce resultsHere's the scripting code:
#!/bin/bash #Author: Zhangge #Date: 2014-08-21 #Desc: Check The site of Zgboke Alliance. #取出网站数据 data= '/usr/bin/mysql-uroot-p123456-e "use Zgboke;select web_url from dir_websites where web_status= ' 3 ';"-n-b |
awk ' {print '} ' if [-Z ' $data '];then echo ' faild to connect
Tags: mysql from mysql stateCheck the status of the MySQL master- Slave synchronization architecture (from a master-to-one) from the database server (IP Authorization, whether the server and Io are normal, from my SQL process is normal)Master mysql:192.168.1.10From mysql:192.168.1.20[Email protected] ~]# VI check_s
Cookie $http _cookie; Proxy_set_header X-real-IP $remote _addr; Proxy_set_header X-forwarded-For $proxy _add_x_forwarded_for; Proxy_set_header X-forwarded-Proto $scheme; Client_max_body_size 300m; } }}
Provides two load interfaces, same server, same IP, same port.
Second: monitoring and inspection of nginx load back end
In fact, the above configuration file has been configured in the Health
"${update_sql}"Mysql-h${hostname}-p${port}-u${username}-p${password} ${dbname}-E "${select_sql}"#删除数据Delete_sql= "Delete from ${tablename}"Mysql-h${hostname}-p${port}-u${username}-p${password} ${dbname}-E "${delete_sql}"Mysql-h${hostname}-p${port}-u${username}-p${password} ${dbname}-E "${select_sql}"Show Processlist How to filter the problem I finally know how to fix it.MYSQL-UROOT-E-p password ' show processlist\g ';Mysql-uroot-e ' show processlist\g ' |grep ' Info ' |grep-v "NULL" |awk-f ":"
Several common creation methods are listed a few days ago. SQL Server Login , Login , User , System stored procedures used by roles and Groups , Of course, you also need to check Connectiongstring String SQL Server Login and
Label:MYSQL-HHOSTNAME-PPORT-UUSERNAME-PPASSWORD-E mysql-related SQL statements without running MySQL at the prompt of MySQL, which means you can manipulate MySQL in the shell. #!/bin/Bash HOSTNAME="192.168.111.84"#数据库信息 PORT="3306"USERNAME="Root"PASSWORD=""DBNAME="test_db_test"#数据库名称 TABLENAME="test_table_test"#数据库中表的名称 Create a database Create_db_sql="CREATE database
Original link http://tengine.taobao.org/document_cn/http_upstream_check_cn.htmlNgx_http_upstream_check_module This module provides proactive back-end server Health check functionality for Tengine. The module is Tengine-1.4. version 0 was not previously enabled by default, it can be turned on when configuring the Compile option:./configure--with-Http_upstream_chec
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.