摘 要: 數據庫是各個氣象信息系統的基礎,為了保證氣象信息系統中數據庫的持續可靠和高性能運行,需要對數據庫性能進行監控,依據數據庫性能監控結果及時地做出適當調整。根據實際需求摸索了一種利用SQL語句實現數據庫性能監控的方法,具體探討了如何利用SQL語句實現對數據庫性能監控。該方法的應用對于數據庫性能監控有指導意義。
關鍵詞: SQL語句; 數據庫; 性能監控; Oracle
中圖分類號:TP393 文獻標志碼:A 文章編號:1006-8228(2013)12-50-02
Using SQL statements to realize database performance monitoring
Ji Gang
(Anhui Meteorological Information Center, Hefei, Anhui 230031, China)
Abstract: Database is the foundations of various meteorological information systems. In order to ensure the reliable and efficient running of information system, the database performance monitoring is required. Based on the monitoring results of database performance the appropriate adjustments can be done in time. A database performance monitoring method is proposed using SQL statements according to the actual needs. Firstly, SQL statements are introduced. An example is presented for demonstrating how to use SQL statements to realize the database performance monitoring. For some particular system, it has guiding significance.
Key words: SQL statements; database; performance monitoring; Oracle
0 引言
隨著數據庫技術的不斷發展,數據庫在各行各業中的應用越來越廣泛[1-4]。目前,氣象系統中開發、使用了大量業務信息系統,數據庫是這些系統的基礎。數據庫系統如果運行性能過低,甚至無法運行,會對相應業務造成不可估量的損失,因而確保系統中各個數據庫的持續可靠和高性能運行是相當重要的。為了確保系統中各個數據庫持續可靠、高效地運行,需要對數據庫性能進行監控,本文根據實際需求摸索了一種利用SQL語句實現數據庫性能監控的方法,該方法對于數據庫管理和開發人員具有一定的應用指導意義。
1 SQL介紹
SQL(Structured Query Language)結構化查詢語言[5],是一種數據庫查詢和程序設計語言,用于存取數據以及查詢、更新和管理關系數據庫系統,同時也是數據庫腳本文件的擴展名。SQL是高級的非過程化編程語言,是溝通數據庫服務器和客戶端的重要工具,允許用戶在高層數據結構上工作。它不要求用戶指定對數據的存放方法,也不需要用戶了解具體的數據存放方式,所以,具有完全不同底層結構的不同數據庫系統,可以使用相同的SQL語言作為數據輸入與管理的接口?!?br>