mysql数据库热块_请教如何发现数据库中的热表和热块

2023-11-22 18:10

本文主要是介绍mysql数据库热块_请教如何发现数据库中的热表和热块,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

原帖由 DINGNING239 于 2008-4-5 08:15 发表 thread-966169-1-1.html

谁有关于x$开头的视图的资料?

** INTERNAL ONLY **

This is a summary list of X$ Table Definitions - Last revision was 7.3.2

The main purpose of this note is to show the naming conventions.

[K]ernel Layer

[2]-Phase Commit

[G]lobal [T]ransaction [E]ntry

X$K2GTE  - Current 2PC tx

X$K2GTE2 - Current 2PC tx

[C]ache Layer

[B]uffer Management

Buffer [H]ash

X$BH - Hash Table

Buffer LRU Statistics

X$KCBCBH - [C]urrent [B]uffers (buckets) - lru_statistics

X$KCBRBH - [R]ecent [B]uffers (buckets) - lru_extended

Buffer [WAIT]s

X$KCBWAIT  - Waits by block class

X$KCBFWAIT - Waits by File

[W]orking Sets - 7.3 or higher

X$KCBWDS - Set [D]escriptors

[C]ontrol File Management

[C]ontrol [F]ile List - 7.0.16 or higher

X$KCCCF - Control File Names & status

[D]atabase [I]nformation

X$KCCDI - Database Information

Data [F]iles

X$KCCFE - File [E]ntries ( from control file )

X$KCCFN - [F]ile [N]ames

[L]og Files

X$KCCLE - Log File [E]ntries

X$KCCLH - Log [H]istory ( archive entries )

Thread Information

X$KCCRT - [R]edo [T]hread Information

[F]ile Management

X$KCFIO - File [IO] Statistics

[L]ock Manager Component ( LCK )

[H]ash and Bucket Tables - 7.0.15 to 7.1.1, and 7.2.0 or higher

X$KCLFH - File [H]ash Table

X$KCLFI - File Bucket Table

X$LE - Lock [E]lements

X$LE_STAT - Lock Conversion [STAT]istics

X$KCLFX - Lock Element [F]ree list statistics - 7.3 or higher

X$KCLLS - Per LCK free list statistics - 7.3 or higher

X$KCLQN - [N]ame (hash) table statistics - 7.3 or higher

[R]edo Component

[M]edia recovery  - kcra.h - 7.3 or higher

X$KCRMF - [F]ile context

X$KCRMT - [T]hread context

X$KCRMX - Recovery Conte[X]t

[F]ile read

X$KCRFX - File Read Conte[X]t -  7.3 or higher

Reco[V]ery Component

[F]ile [H]eaders

X$KCVFH - All file headers

X$KCVFHMRR - Files with [M]edia [R]ecovery [R]equired

X$KCVFHONL - [ONL]ine File headers

[K]ompatibility Management - 7.1.1 or higher

X$KCKCE - [C]ompatibility Segment [E]ntries

X$KCKTY - Compatibility [TY]pes

X$KCKFM - Compatibility [F]or[M]ats ( index into X$KCKCE )

[D]ata Layer

Sequence [N]umber Component

X$KDNCE - Sequence [C]ache [E]ntries - 7.2 or lower

[S]equence Enqueues - common area for enqueue objects

X$KDNSSC - [C]ache Enqueue Objects - 7.2 or lower

X$KDNSSF - [F]lush Enqueue Objects - 7.2 or lower

X$KDNST - Cache [ST]atistics - 7.2 or lower

Inde[X] Block Component

X$KDXHS - Index [H]i[S]togram

X$KDXST - Index [ST]atistics

[G]eneric Layer

[H]eap Manager

X$KGHLU - State (summary) of [L]R[U] heap(s) - defined in ksmh.h

[I]nstantiation Manager

[C]ursor [C]ache

X$KGICC - Session statistics - defined in kqlf.h

X$KGICS - System wide statistics - defined in kqlf.h

[L]ibrary Cache Manager  ( defined and mapped from kqlf )

Bind Variables

X$KKSBV - Library Object [B]ind [V]ariables

Object Cache

X$KGLOB - All [OB]jects

X$KGLTABLE   - Filter for [TABLE]s

X$KGLBODY    - Filter for [BODY] ( packages )

X$KGLTRIGGER - Filter for [TRIGGER]s

X$KGLINDEX   - Filter for [INDEX]es

X$KGLCLUSTER - Filter for [CLUSTER]s

X$KGLCURSOR  - Filter for [CURSOR]s

Cache Dependency

X$KGLDP - Object [D]e[P]endency table

X$KGLRD - [R]ead only [D]ependency table - 7.3 or higher

Object Locks

X$KGLLK - Object [L]oc[K]s

Object Names

X$KGLNA - Object [NA]mes (sql text)

X$KGLNA1 - Object [NA]mes (sql text) with newlines - 7.2.0 or higher

Object Pins

X$KGLPN - Object [P]i[N]s

Cache Statistics

X$KGLST - Library cache [ST]atistics

Translation Table

X$KGLTR - Address [TR]anslation

Access Table

X$KGLXS - Object Access Table

Authorization Table - 7.1.5 or higher

X$KGLAU - Object Authorization table

Latch Cleanup - 7.0.15 or higher

X$KGLLC - [L]atch [C]leanup for Cache/Pin Latches

[K]ompile Layer

[S]hared Objects

X$KKSAI - Cursor [A]llocation [I]nformation - 7.3.2 or higher

[L]oader

[L]ibrary

X$KLLCNT - [C]o[NT]rol Statistics

X$KLLTAB - [TAB]le Statistics

[M]ulti-Threaded Layer

[C]ircuit component

X$KMCQS - Current [Q]ueue [S]tate

X$KMCVC - [V]irtual [C]ircuit state

[M]onitor Server/dispatcher

[D]ispatcher

X$KMMDI - [D]ispatcher [I]nfo (status)

X$KMMDP - [D]ispatcher Config ( [P]rotocol info )

[S]erver

X$KMMSI - [S]erver [I]nfo ( status )

X$KMMSG - [SG]a info ( global statistics)

X$KMMRD - [R]equest timing [D]istributions

s[Q]l Version and Option Layer

Kernel [V]ersions

X$VERSION - Library versions

Kernel [O]ptions - 7.1.3 or higher

X$OPTION - Server Options

[Q]uery Layer

[D]ictionary Cache Management

X$KQDPG - [PG]a row cache cursor statistics

[F]ixed Tables/views Management

X$KQFCO - Table [CO]lumn definitions

X$KQFDT - [D]erived [T]ables

X$KQFSZ - Kernel Data structure type [S]i[Z]es

X$KQFTA - Fixed [TA]bles

X$KQFVI - Fixed [VI]ews

X$KQFVT - [V]iew [T]ext definition - 7.2.0 or higher

[R]ow Cache Management

X$KQRST - Cache [ST]atistics

X$KQRPD - [P]arent Cache [D]efinition - 7.1.5 or higher

X$KQRSD - [S]ubordinate Cache [D]efinition - 7.1.5 or higher

[S]ervice Layer

[B]ackground Management

[D]etached Process

X$KSBDD - Detached Process [D]efinition (info)

X$KSBDP - Detached [P]rocess Descriptor (name)

X$MESSAGES - Background Message table

[I]nstance [M]anagement - 7.3 or higher

X$KSIMAT - Instance [AT]tributes

X$KSIMAV - [A]ttribute [V]alues for all instances

X$KSIMSI - [S]erial and [I]nstance numbers

[L]ock Management

[E]vent Waits

X$KSLED - Event [D]escriptors

X$KSLEI - [I]nstance wide statistics since startup

X$KSLES - Current [S]ession statistics

[L]atches

X$KSLLD - Latch [D]escriptor (name)

X$KSLLT - Latch statistics [ + Child latches @ 7.3 or higher ]

X$KSLLW - Latch context ( [W]here ) descriptors - 7.3 or higher

X$KSLPO - Latch [PO]st statistics - 7.3 or higher

X$KSLWSC- No[W]ait and [S]leep [C]ount stats by Context -7.3 or higher

[M]emory Management

[C]ontext areas

X$KSMCX - E[X]tended statistics on usage - 7.3.1 or lower

Heap Areas

X$KSMSP - SGA Hea[P]

X$KSMPP - [P]GA Hea[P] - 7.3.2 and above

X$KSMUP - [U]GA Hea[P] - 7.3.2 and above

X$KSMHP - Any [H]ea[P] - 7.3.2 and above

X$KSMSPR- [S]hared [P]ool [R]eserved List - 7.1.5 or higher

[L]east recently used shared pool chunks

X$KSMLRU - LR[U] flushes from the shared pool

[S]GA Objects

X$KSMSD - Size [D]efinition for Fixed/Variable summary

X$KSMSS - Statistics (lengths) of SGA objects

SGA [MEM]ory

X$KSMMEM - map of the entire SGA - 7.2.0 or higher

X$KSMFSV - Addresses of [F]ixed [S]GA [V]ariables - 7.2.1 or higher

[P]arameter Component

X$KSPPI  - [P]arameter [I]nfo ( Names )

X$KSPPCV - [C]urrent Session [V]alues - 7.3.2 or above

X$KSPPSV - [S]ystem [V]alues - 7.3.2 or above

En[Q]ueue Management

X$KSQDN - Global [D]atabase [N]ame

X$KSQEQ - [E]n[Q]ueue Object

X$KSQRS - Enqueue [R]e[S]ource

X$KSQST - Enqueue [S]tatistics by [T]ype

[U]ser Management

[C]ost

X$KSUCF - Cost [F]unction (resource limit)

[L]icence

X$KSULL - Licence [L]imits

[L]anguage Manager

X$NLS_PARAMETERS - NLS parameters

X$KSULV - NLS [V]alid Values - 7.1.2 or higher

[MY] [ST]atistics

X$KSUMYSTA - [MY] [ST]atisics (current session)

[P]rocess Info

X$KSUPL - Process (resource) [L]imits

X$KSUPRLAT - [LAT]ch Holder

X$KSUPR - Process object

[R]esource

X$KSURU - Resource [U]sage

[S]tatistics

X$KSUSD - [D]escriptors (statistic names)

X$KSUSGSTA - [G]lobal [ST]atistics

[SE]ssions

X$KSUSECST - Session status for events

X$KSUSESTA - Session [STA]tistics

X$KSUSECON - [CON]nection Authentication - 7.2.1 or higher

X$KSUSE - [SE]ssion Info

X$KSUSIO - [S]ystem [IO] statistics per session

[T]imer

X$KSUTM - Ti[M]e in 1/100th seconds

Instance [X]

X$KSUXSINST - [INST]ance state

[T]race management

X$TRACE - Current traced events

X$TRACES - All possible traces

X$KSTEX - Code [EX]ecution - 7.2.1 or higher

E[X]ecution Management

Device/Node [A]ffinity - 7.3.2 and above

X$KSXAFA - Current File/Node Affinity

[T]ransaction Layer

Table [A]ccess [D]efinition

X$KTADM - D[M]L lock

[C]ontrol Component

X$KTCXB - Transaction O[B]ject

[S]or[T] Segments - 7.3 or higher

X$KTSTSSD - [S]ort [S]egment [D]escriptor - per tablespace statistics

[T]ablespace

X$KTTVS - [V]alid [S]aveundo

[U]ndo

X$KTURD - Inuse [D]escriptors

X$KTUXE - Transaction [E]ntry (table) - 7.3.2 or above

Performance Layer [V] - 7.0.16 or higher

[I]nformation tables

X$KVII - [I]nitialisation Instance parameters

X$KVIS - [S]izes of structure elements

X$KVIT - [T]ransitory Instance parameters

Security Layer [Z]

[D]ictionary Component

X$KZDOS - [OS] roles

[S]ecurity State

X$KZSPR - Enabled [PR]ivileges

X$KZSRO - Enabled [RO]les

[R]emote Logins - 7.1.1 or higher

X$KZSRT - [R]emote Password File [T]able entries

E[X]ecution Layer

Parallel Query (Execute [F]ast) - 7.1.1 or higher

[P]rocess and Queue Manager

Statistics - 7.1.3 or higher

X$KXFPYS - S[YS]tem Statistics

X$KXFPDP - [D]etached [P]rocess (slave) statistics

X$KXFQSROW - Table [Q]ueue Statistics - 7.3.2 or higher

[C]oordinator Component

X$KXFPCST - Query [ST]atistics

X$KXFPCMS - [M]essage [S]tatistics

X$KXFPCDS - [D]equeue [S]tatistics

[S]lave Component

X$KXFPSST - Query [ST]atistics

X$KXFPSMS - [M]essage [S]tatistics

X$KXFPCDS - [D]equeue [S]tatistics

[S]hared Cursor

X$KXSBD - [B]ind [D]ata - 7.3.2 and above

X$KXSCC - SQL [C]ursor [C]ache Data - 7.3.2 and above

[N]etwork Layer - 7.0.15 or higher

Network [CO]nnections

X$UGANCO - Current [N]etwork [CO]nnections

这篇关于mysql数据库热块_请教如何发现数据库中的热表和热块的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/411966

相关文章

Spring Security基于数据库验证流程详解

Spring Security 校验流程图 相关解释说明(认真看哦) AbstractAuthenticationProcessingFilter 抽象类 /*** 调用 #requiresAuthentication(HttpServletRequest, HttpServletResponse) 决定是否需要进行验证操作。* 如果需要验证,则会调用 #attemptAuthentica

SQL中的外键约束

外键约束用于表示两张表中的指标连接关系。外键约束的作用主要有以下三点: 1.确保子表中的某个字段(外键)只能引用父表中的有效记录2.主表中的列被删除时,子表中的关联列也会被删除3.主表中的列更新时,子表中的关联元素也会被更新 子表中的元素指向主表 以下是一个外键约束的实例展示

基于MySQL Binlog的Elasticsearch数据同步实践

一、为什么要做 随着马蜂窝的逐渐发展,我们的业务数据越来越多,单纯使用 MySQL 已经不能满足我们的数据查询需求,例如对于商品、订单等数据的多维度检索。 使用 Elasticsearch 存储业务数据可以很好的解决我们业务中的搜索需求。而数据进行异构存储后,随之而来的就是数据同步的问题。 二、现有方法及问题 对于数据同步,我们目前的解决方案是建立数据中间表。把需要检索的业务数据,统一放到一张M

如何去写一手好SQL

MySQL性能 最大数据量 抛开数据量和并发数,谈性能都是耍流氓。MySQL没有限制单表最大记录数,它取决于操作系统对文件大小的限制。 《阿里巴巴Java开发手册》提出单表行数超过500万行或者单表容量超过2GB,才推荐分库分表。性能由综合因素决定,抛开业务复杂度,影响程度依次是硬件配置、MySQL配置、数据表设计、索引优化。500万这个值仅供参考,并非铁律。 博主曾经操作过超过4亿行数据

性能分析之MySQL索引实战案例

文章目录 一、前言二、准备三、MySQL索引优化四、MySQL 索引知识回顾五、总结 一、前言 在上一讲性能工具之 JProfiler 简单登录案例分析实战中已经发现SQL没有建立索引问题,本文将一起从代码层去分析为什么没有建立索引? 开源ERP项目地址:https://gitee.com/jishenghua/JSH_ERP 二、准备 打开IDEA找到登录请求资源路径位置

MySQL数据库宕机,启动不起来,教你一招搞定!

作者介绍:老苏,10余年DBA工作运维经验,擅长Oracle、MySQL、PG、Mongodb数据库运维(如安装迁移,性能优化、故障应急处理等)公众号:老苏畅谈运维欢迎关注本人公众号,更多精彩与您分享。 MySQL数据库宕机,数据页损坏问题,启动不起来,该如何排查和解决,本文将为你说明具体的排查过程。 查看MySQL error日志 查看 MySQL error日志,排查哪个表(表空间

MySQL高性能优化规范

前言:      笔者最近上班途中突然想丰富下自己的数据库优化技能。于是在查阅了多篇文章后,总结出了这篇! 数据库命令规范 所有数据库对象名称必须使用小写字母并用下划线分割 所有数据库对象名称禁止使用mysql保留关键字(如果表名中包含关键字查询时,需要将其用单引号括起来) 数据库对象的命名要能做到见名识意,并且最后不要超过32个字符 临时库表必须以tmp_为前缀并以日期为后缀,备份

[MySQL表的增删改查-进阶]

🌈个人主页:努力学编程’ ⛅个人推荐: c语言从初阶到进阶 JavaEE详解 数据结构 ⚡学好数据结构,刷题刻不容缓:点击一起刷题 🌙心灵鸡汤:总有人要赢,为什么不能是我呢 💻💻💻数据库约束 🔭🔭🔭约束类型 not null: 指示某列不能存储 NULL 值unique: 保证某列的每行必须有唯一的值default: 规定没有给列赋值时的默认值.primary key:

MySQL-CRUD入门1

文章目录 认识配置文件client节点mysql节点mysqld节点 数据的添加(Create)添加一行数据添加多行数据两种添加数据的效率对比 数据的查询(Retrieve)全列查询指定列查询查询中带有表达式关于字面量关于as重命名 临时表引入distinct去重order by 排序关于NULL 认识配置文件 在我们的MySQL服务安装好了之后, 会有一个配置文件, 也就

Java 连接Sql sever 2008

Java 连接Sql sever 2008 /Sql sever 2008 R2 import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class TestJDBC