Home Database Mysql Tutorial 万能数据库查询分析器使用技巧之(十六)

万能数据库查询分析器使用技巧之(十六)

Jun 07, 2016 pm 04:10 PM
skills Analyzer database check Inquire

万能数据库查询分析器使用技巧之(十六) --- 6.02版本新增的SQL 执行计划数据库连接自动恢复 摘要 本文详细地介绍了万能数据库查询分析器,中文版本《DB 查询分析器》、英文版本《DB Query Analyzer》6.02 中新增的SQL 执行计划数据库连接自动恢复功能。在C


万能数据库查询分析器使用技巧之(十六)

 

--- 6.02版本新增的SQL 执行计划数据库连接自动恢复

 

 

摘要 本文详细地介绍了“万能数据库查询分析器”,中文版本《DB 查询分析器》、英文版本《DB Query Analyzer》6.02 中新增的SQL “执行计划”数据库连接自动恢复功能。“在CSDN专访马根峰”的文章中,编辑问我如果有时间,我会做什么?我说会实现万能数据库查询分析器的“执行计划”数据库连接自动恢复功能。非常高兴这一段时间内终于实现了此功能。

从6.02版本开始,只要将“工具-à选项”窗口中的选项“SQL执行计划连接自动恢复”设置为“选中”状态,那么即使在“SQL执行计划”期间数据库服务器宕过机,只要在“SQL执行计划”的时刻数据库服务器是处理启动状态,那么“SQL执行计划”都会被执行。

关键词 DB 查询分析器;DBQuery Analyzer

 

 

1 引言

中国本土程序员马根峰(CSDN专访马根峰:海量数据处理与分析大师的中国本土程序员)推出的个人作品----万能数据库查询分析器,中文版本《DB 查询分析器》、英文版本《DB Query Analyzer》。它具有强大的功能、友好的操作界面、良好的操作性、跨越各种数据库平台乃至于EXCEL和文本文件。

你可以通过它 查询ODBC数据源(包括世面上所有的数据库、TXT/CSV文件、EXCEL文件)的数据。你可以同时执行多条DML语句乃至存贮过程,结果会以你设定的表格、文本框、文件来返回; 从数据库导出千万条数据时,效率与DBMS没有什么区别; 具有强大的 SQL “执行计划”功能,你只要将“工具-à选项”窗口中的选项“SQL执行计划连接自动恢复”设置为“选中”状态,那么即使在“SQL执行计划”期间数据库服务器宕过机,只要在“SQL执行计划”的时刻数据库服务器是处理启动状态,那么“SQL执行计划”都会被执行。

《DB 查询分析器》在中关村在线下载量超过10万 次,位居整个数据库类排行榜中10位

 

在《程序员》2007第2期的“新产品&工具点评”部分,编辑“特别推荐”了“万能数据库查询分析器”发布。

本人还撰写了关于“万能数据库查询分析器”有关技术的71篇文章,发布在《电脑编程技巧与维护》、《软件》、《计算机时代》、《电脑编程技巧与维护》、百度文库、CSDN资源、和本人的四大博客上(CSDN博客、新浪博客、QQ空间和搜狐博客上)。

本文将以中文版本《DB 查询分析器》6.02版本为例,详细介绍 6.02版本中新增加的SQL “执行计划”数据库连接自动恢复功能。从6.02版本开始,只要将“工具-à选项”窗口中的选项“SQL执行计划连接自动恢复”设置为“选中”状态,那么即使在“SQL执行计划”期间数据库服务器宕过机,只要在“SQL执行计划”的时刻数据库服务器是处理启动状态,那么“SQL执行计划”都会被执行。

 

 

2 6.02中文版本《DB 查询分析器》为例

下面我们就以“万能数据库查询分析器”的中文版本DB 查询分析器 6.02为例,来访问基于AIX的DB2数据库。

操作系统: Windows XP操作系统

前台程序: DB 查询分析器 6.02

后台数据库: DB2/WINDOWSXP

 

 

与以前的Windows操作系统版本(包括WinXP/VISTA/Windows2000/WindowsNt/Win98)不同,Windows 7、Windows 8、Windows 10短日期采用的分隔符默认为“/”,而以前的默认分隔符为“-”。

这会导致“万能数据库查询分析器”的运行过程中,出现问题,故提醒Windows 7、Windows 8、Windows 10操作系统用户,将短日期分隔符设置为“-”。

本人会在“万能数据库查询分析器”中文版本《DB 查询分析器》6.03版本、英文版本《DB Query Analyzer》 6.03版本中解决这一问题,不便之处,敬请谅解。

 

\

图1 登录后台数据库

 

如何获得“万能数据库查询分析器”中文版本《DB 查询分析器》和英文版本《DB Query Analyzer》在“中关村在线”的源安装包,请参见 《如何使用ZOL一键安装器下载中关村在线的源安装包》、《How to downloadthe installation package by ZOL Downer》 )

 

 

3 SQL“执行计划”数据库连接自动恢复功能详解

 

\

图2 执行一条脚本

 

 

\

图3 强制停止后台数据库系统的运行

 

 

\

图4 在“DB 查询分析器”中执行查询SQL语句

 

 

\

图5 启动后台数据库系统的运行

 

 

\

图6 在“DB 查询分析器”中执行查询SQL语句,当前数据库连接已经中断

 

 

\

图7 点击“工具—>选项”来打开“系统参数配置”窗口,选中“SQL 执行计划连接自动恢复”

 

 

\

图8 点击“查询—>执行计划”来打开“执行计划”窗口

 

 

\

图9 增加“执行计划”

 

只要执行计划的时间是过去的时间,那么SQL脚本就会马上被执行。在选中“SQL执行计划连接自动恢复”选项时,当数据库连接中断时,万能数据库查询分析器会恢复数据库连接。

 

\

图10 “执行计划”执行后,结果返回

 

备注:

“执行计划”调度程序的调度间隔是5秒钟,所以设定的计划时间虽然是xx : xx : 01,但开始执行的时间是 xx : xx : 01 与 xx : xx : 04之间。

 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

12306 How to check historical ticket purchase records How to check historical ticket purchase records 12306 How to check historical ticket purchase records How to check historical ticket purchase records Mar 28, 2024 pm 03:11 PM

Download the latest version of 12306 ticket booking app. It is a travel ticket purchasing software that everyone is very satisfied with. It is very convenient to go wherever you want. There are many ticket sources provided in the software. You only need to pass real-name authentication to purchase tickets online. All users You can easily buy travel tickets and air tickets and enjoy different discounts. You can also start booking reservations in advance to grab tickets. You can book hotels or special car transfers. With it, you can go where you want to go and buy tickets with one click. Traveling is simpler and more convenient, making everyone's travel experience more comfortable. Now the editor details it online Provides 12306 users with a way to view historical ticket purchase records. 1. Open Railway 12306, click My in the lower right corner, and click My Order 2. Click Paid on the order page. 3. On the paid page

How to check your academic qualifications on Xuexin.com How to check your academic qualifications on Xuexin.com Mar 28, 2024 pm 04:31 PM

How to check my academic qualifications on Xuexin.com? You can check your academic qualifications on Xuexin.com, but many users don’t know how to check their academic qualifications on Xuexin.com. Next, the editor brings you a graphic tutorial on how to check your academic qualifications on Xuexin.com. Interested users come and take a look! Xuexin.com usage tutorial: How to check your academic qualifications on Xuexin.com 1. Xuexin.com entrance: https://www.chsi.com.cn/ 2. Website query: Step 1: Click on the Xuexin.com address above to enter the homepage Click [Education Query]; Step 2: On the latest webpage, click [Query] as shown by the arrow in the figure below; Step 3: Then click [Login Academic Credit File] on the new page; Step 4: On the login page Enter the information and click [Login];

How does Go language implement the addition, deletion, modification and query operations of the database? How does Go language implement the addition, deletion, modification and query operations of the database? Mar 27, 2024 pm 09:39 PM

Go language is an efficient, concise and easy-to-learn programming language. It is favored by developers because of its advantages in concurrent programming and network programming. In actual development, database operations are an indispensable part. This article will introduce how to use Go language to implement database addition, deletion, modification and query operations. In Go language, we usually use third-party libraries to operate databases, such as commonly used sql packages, gorm, etc. Here we take the sql package as an example to introduce how to implement the addition, deletion, modification and query operations of the database. Assume we are using a MySQL database.

How does Hibernate implement polymorphic mapping? How does Hibernate implement polymorphic mapping? Apr 17, 2024 pm 12:09 PM

Hibernate polymorphic mapping can map inherited classes to the database and provides the following mapping types: joined-subclass: Create a separate table for the subclass, including all columns of the parent class. table-per-class: Create a separate table for subclasses, containing only subclass-specific columns. union-subclass: similar to joined-subclass, but the parent class table unions all subclass columns.

iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos Jul 18, 2024 am 05:48 AM

Apple's latest releases of iOS18, iPadOS18 and macOS Sequoia systems have added an important feature to the Photos application, designed to help users easily recover photos and videos lost or damaged due to various reasons. The new feature introduces an album called "Recovered" in the Tools section of the Photos app that will automatically appear when a user has pictures or videos on their device that are not part of their photo library. The emergence of the "Recovered" album provides a solution for photos and videos lost due to database corruption, the camera application not saving to the photo library correctly, or a third-party application managing the photo library. Users only need a few simple steps

An in-depth analysis of how HTML reads the database An in-depth analysis of how HTML reads the database Apr 09, 2024 pm 12:36 PM

HTML cannot read the database directly, but it can be achieved through JavaScript and AJAX. The steps include establishing a database connection, sending a query, processing the response, and updating the page. This article provides a practical example of using JavaScript, AJAX and PHP to read data from a MySQL database, showing how to dynamically display query results in an HTML page. This example uses XMLHttpRequest to establish a database connection, send a query and process the response, thereby filling data into page elements and realizing the function of HTML reading the database.

Detailed tutorial on establishing a database connection using MySQLi in PHP Detailed tutorial on establishing a database connection using MySQLi in PHP Jun 04, 2024 pm 01:42 PM

How to use MySQLi to establish a database connection in PHP: Include MySQLi extension (require_once) Create connection function (functionconnect_to_db) Call connection function ($conn=connect_to_db()) Execute query ($result=$conn->query()) Close connection ( $conn->close())

How to handle database connection errors in PHP How to handle database connection errors in PHP Jun 05, 2024 pm 02:16 PM

To handle database connection errors in PHP, you can use the following steps: Use mysqli_connect_errno() to obtain the error code. Use mysqli_connect_error() to get the error message. By capturing and logging these error messages, database connection issues can be easily identified and resolved, ensuring the smooth running of your application.

See all articles