Home Database Mysql Tutorial Oracle中暗藏的珍宝:STATSPACK

Oracle中暗藏的珍宝:STATSPACK

Jun 07, 2016 pm 04:53 PM
oracle

作为甲骨文公司的智能基础设施的一部分,Oracle 10g的自动负载资料库,与自动数据库诊断监控器联合能帮助数据库管理员诊断和修复

  作为甲骨文公司的智能基础设施的一部分,Oracle 10g的自动负载资料库,与自动数据库诊断监控器联合能帮助数据库管理员诊断和修复性能问题。在智能基础设施的描述下,我们看到了以下内容:

  自动负载资料库

  自动维护任务

  服务器告警

  顾问工具框架

  自动负载资料库(AWR)像STATSPACK,简言之就是一个收集统计资料仓库。根据自动维护任务,我们可已知道下班后数据库的工作状况:收集统计资料。使用服务器告警,你有能力为众多有趣的选项建立预警和阈值。顾问工具框架就是我们找到所有顾问的地方,如SQL优化顾问, SQL访问顾问。

  那么,当有AWR时,并且加上自动数据库诊断监视(ADDM) ,就能做到提数据库易管理性的所有工作,为什么要再次使用STATSPACK呢?从时间和金钱两个方面,我觉得值得尝试再次使用STATSPACK。我将从金钱方面的原因开始。

  原因一:金钱

  正如过去的文章,使用仓库和包(微调和诊断,如调整包装和诊断包)必须领有许可证。这些包充当AWR的主要接口 ,尽管AWR信息可通过其提供的SQL脚本访问。如果你的许可基准是300名用户,那么你的许可功能要有匹配的成本基准。在这个例子中,你基本上要支付300 “席”的调优包,即使在现实中,只有少数用户(例如,数据库管理员)将是实际用户。

  毫无疑问,这笔费用是昂贵的,但是某些痛苦能通过你拥有权限数量减少。你许可证权限越多,你获得的贴现率也越多。最初的支付价格是一小部分,因为你必须为两个要素付费:基本授权费和22 %维护费。展望未来,你以后只要支付年度维护费用,这样可以获得你的顾客编号,以便你可以访问My Oracle Support(Metalink的新名称) 。如果你对此授权模型有疑问,我向你保证,这是一个真实情况的准确描述。然而,你实际的花费,将是你和你的销售代表的报价之间的数目。如果你想使用像AWR的功能,但又不肯支付数万元的使用费,那么什么是你的选项(这大概不包括使用第三方工具,如Oracle的Toad,现在包括一个关于使用许可功能的预警信息,该功能被Toad用来展示其接口) ?那么未来最接近AWR是STATSPACK 。

  原因二:时间

  我要拓展这种情况的时间意义。这时间与你对这项工作的时间有关。如果你始于几年前并且使用的是10g,但现在寻找新的就业机会,并且在新的工作地方使用的版本不仅包括10g的,还包括更早的版本如9i ?不太可能会陷入9i ,你认为呢?在11i家族中不少运行在9.2.0.5或6 . STATSPACK上,像AWR这样的电子商务套件数据库是你唯一的选择。此外,, Oracle8i ( 8.1.7在时代)仍然在使用中,尽管不及前几年那么流行。

  时间还涉及可管理性的演变。我不是说你必须是一个UTLBSTAT / UTLESTAT奇才,才能理解AWR提供的功能,但是从STATSPACK开始当然不是没有道理的。如果你能懂得如何阅读和解释ADDM报告(AWR的基础资料) ,然后学习如何使用AWR为基础的报告,做同样的事情并且使其变得简单得多。

linux

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

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)

What to do if the oracle can't be opened What to do if the oracle can't be opened Apr 11, 2025 pm 10:06 PM

Solutions to Oracle cannot be opened include: 1. Start the database service; 2. Start the listener; 3. Check port conflicts; 4. Set environment variables correctly; 5. Make sure the firewall or antivirus software does not block the connection; 6. Check whether the server is closed; 7. Use RMAN to recover corrupt files; 8. Check whether the TNS service name is correct; 9. Check network connection; 10. Reinstall Oracle software.

How to solve the problem of closing oracle cursor How to solve the problem of closing oracle cursor Apr 11, 2025 pm 10:18 PM

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

How to delete all data from oracle How to delete all data from oracle Apr 11, 2025 pm 08:36 PM

Deleting all data in Oracle requires the following steps: 1. Establish a connection; 2. Disable foreign key constraints; 3. Delete table data; 4. Submit transactions; 5. Enable foreign key constraints (optional). Be sure to back up the database before execution to prevent data loss.

How to paginate oracle database How to paginate oracle database Apr 11, 2025 pm 08:42 PM

Oracle database paging uses ROWNUM pseudo-columns or FETCH statements to implement: ROWNUM pseudo-columns are used to filter results by row numbers and are suitable for complex queries. The FETCH statement is used to get the specified number of first rows and is suitable for simple queries.

How to create cursors in oracle loop How to create cursors in oracle loop Apr 12, 2025 am 06:18 AM

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

How to stop oracle database How to stop oracle database Apr 12, 2025 am 06:12 AM

To stop an Oracle database, perform the following steps: 1. Connect to the database; 2. Shutdown immediately; 3. Shutdown abort completely.

How to create oracle dynamic sql How to create oracle dynamic sql Apr 12, 2025 am 06:06 AM

SQL statements can be created and executed based on runtime input by using Oracle's dynamic SQL. The steps include: preparing an empty string variable to store dynamically generated SQL statements. Use the EXECUTE IMMEDIATE or PREPARE statement to compile and execute dynamic SQL statements. Use bind variable to pass user input or other dynamic values ​​to dynamic SQL. Use EXECUTE IMMEDIATE or EXECUTE to execute dynamic SQL statements.

What steps are required to configure CentOS in HDFS What steps are required to configure CentOS in HDFS Apr 14, 2025 pm 06:42 PM

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

See all articles