Table of Contents
字典缓冲区: dictionary cache,也叫row cache;
row cache child latch
row cache child latch 常见场景:
Home Database Mysql Tutorial 共享池之四:rowcache--字典缓冲区

共享池之四:rowcache--字典缓冲区

Jun 07, 2016 pm 03:29 PM
shared dictionary buffer

字典缓冲区: dictionary cache,也叫row cache; 用于保存数据字典信息:如表空间相关信息、用户权限、objects信息、histogram信息等。 字典缓冲区在大小无法直接调整,只能通过调整共享池大小来调整字典缓冲区大

字典缓冲区: dictionary cache,也叫row cache;

用于保存数据字典信息:如表空间相关信息、用户权限、objects信息、histogram信息等。
字典缓冲区在大小无法直接调整,只能通过调整共享池大小来调整字典缓冲区大小。
SYS@ bys3>select pool,name ,bytes/1024/1024 MB from v$sgastat where name like 'row cache%';
POOL NAME MB
------------ -------------------------- ----------
shared pool row cache child latch .004959106
shared pool row cache 4.12324524
我的实验环境,字典缓冲区大小为4M多一点,还可以统计出row cache child latch的大小。
#####################################################################

row cache child latch


V$ROWCACHE视图可以查询保存在row cache中的对象信息。
row cache child latch的子latch个数:
SYS@ bys3>select count(name),name from v$latch_children where name like 'row cache%' group by name;
COUNT(NAME) NAME
----------- ----------------------------------------------------------------
52 row cache objects
每个子latch管理着不同的对象。
使用场景:
硬解析时需要从数据字典信息中生成执行计划,row cache信息由row cache child latch保护,所以在并发访问row cache时会引起row cache child latch竞争。

row cache child latch 常见场景:

1.DDL操作需要修改数据字典
2.SEQUENCE:原因是SEQUENCE的NEXTVAL操作对row cache objects以SSX(SHARED SUB_EXVLUSIVE)独占模式获得row cache lock. 当多个进程同时对同一SEQUENCE的NEXTVAL进行调用时会发生:latch:row cache objects等待事件。
如CACHE过小,当CACEH分配的值用完会重新获取一次CACHE,会更新seq$基表并提交---修改ROW CACHE信息,会话会一直持有SQ锁,会出现enq:sq-contention等待事件。---P2值是对象号。
NOCACHE:每次使用NEXTVAL,都要更新seq$基表并提交。
关于SEQUENCE,详见:http://blog.csdn.net/haibusuanyun/article/details/17248029#t2

3.SYS.AUDSED$: ORACLE 10.2.0.4之前SYS.AUDSED$的CACHE值为20,主要用于V$SESSION.AUDSID的取值。当出现大量并发短连接--登陆风暴,容易因SYS.AUDSED$的CACHE值过小引起会话一直持有SQ锁,出现enq:sq-contention等待事件。===解决方法:将SYS.AUDSED$的CACHE值改大。
10.2.0.4之后,SYS.AUDSED$的CACHE值默认为10000.

4.通过远程DBLINK访问的SQL在本地解析时要获取16号row cache child latch,可能会引起争用--可以在内存足够情况下增大共享池及PGA大小,增加session_cache_cursor大小---注意要重启库且要注意增大会占用更多内存。 --此案例见周亮《ORACLE DBA 实战攻略》301页。

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)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months 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)

How to share wallpaperengine with friends How to share wallpaperengine with friends Mar 18, 2024 pm 10:00 PM

Users can share the wallpapers they obtain with friends when using WallpaperEngine. Many users do not know how to share WallpaperEngine with friends. They can save their favorite wallpapers locally and then share them with friends through social software. How to share wallpaperengine with friends Answer: Save it locally and share it with friends. 1. It is recommended that you save your favorite wallpapers locally and then share them with friends through social software. 2. You can also upload it to the computer through a folder, and then click Share using the creative workshop function on the computer. 3. Use Wallpaperengine on the computer, open the options bar of the creative workshop and find

How to share screen on WeChat Enterprise How to share screen on WeChat Enterprise Feb 28, 2024 pm 12:43 PM

More and more enterprises choose to use exclusive enterprise WeChat, which not only facilitates communication between enterprises and customers and partners, but also greatly improves work efficiency. Enterprise WeChat has rich functions, among which the screen sharing function is very popular. During the meeting, by sharing the screen, participants can display content more intuitively and collaborate more efficiently. So how to share your screen efficiently in WeChat Enterprise? For users who don’t know yet, this tutorial guide will give you a detailed introduction. I hope it can help you! How to share screen on WeChat Enterprise? 1. In the blue area on the left side of the main interface of Enterprise WeChat, you can see a list of functions. We find the "Conference" icon. After clicking to enter, three conference modes will appear.

Quick Share feature not working on Samsung phones – Fix Quick Share feature not working on Samsung phones – Fix Sep 19, 2023 pm 04:25 PM

Quick Share can save Samsung users a lot of time transferring files between devices. But Samsung Galaxy users have complained about facing issues with the Quick Share feature on their phones. Typically, visibility issues in quick sharing cause this issue. So, this is the only guide you need to troubleshoot the Quick Share feature on your Galaxy device. Fix 1 – Change Quick Share Visibility Settings Toggle the Quick Share visibility setting on your phone. Quick Share might be set to the wrong settings, causing this issue. Step 1 – First, swipe up once to open the app drawer. Step 2 – Once there, open Settings. Step 3 – Go to the Settings page and open the Connected Devices tab. Step 4 – Turn on the “Quick Share” feature. Step 5

Windows 11 Folder Sharing Guide: Easily Share Your Files and Data Windows 11 Folder Sharing Guide: Easily Share Your Files and Data Mar 13, 2024 am 11:49 AM

In daily life and work, we often need to share files and folders between different devices. Windows 11 system provides convenient built-in folder sharing functions, allowing us to easily and safely share the content we need with others within the same network while protecting the privacy of personal files. This feature makes file sharing simple and efficient without worrying about leaking private information. Through the folder sharing function of Windows 11 system, we can cooperate, communicate and collaborate more conveniently, improving work efficiency and life convenience. In order to successfully configure a shared folder, we first need to meet the following conditions: All devices (participating in sharing) are connected to the same network. Enable Network Discovery and configure sharing. Know the target device

How to use NameDrop on iPhone iOS 17 How to use NameDrop on iPhone iOS 17 Sep 22, 2023 pm 11:41 PM

With the launch of the new Apple iPhone15 series mobile phones and the launch of the latest iOS17 mobile operating system, a wealth of new features, adjustments and enhancements have been brought to Apple devices. Users may be wondering how to use the new NameDrop feature on iPhone and iOS17. This guide will provide a brief overview of how to share your contact information quickly and efficiently using the new NameDrop system available on iOS17. NameDrop is a feature that allows iPhone users to quickly share their contact information with others. It's a convenient tool for social events, business meetings or social gatherings where you need to exchange contact details with new friends. However, it's important to note that NameDrop only works for sending new contacts

Python program to get first and last element in dictionary Python program to get first and last element in dictionary Sep 07, 2023 pm 05:01 PM

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Developed by GudioVanRossum in 1991. It supports multiple programming paradigms, including structured, object-oriented, and functional programming. Before we dive into this topic, let's review the basic concepts relevant to the questions we provide. A dictionary is a unique, mutable, and ordered set of items. Curly braces are used when writing dictionaries, and they contain keys and values: key names can be used to refer to dictionary objects. Data values ​​are stored in dictionaries in the form of key:value pairs. Ordered and unordered meaning When we say that a dictionary is ordered, we mean that its contents have a certain order and do not change. Unordered items lack a clear order and therefore cannot be used

Empty dictionary key incorrect: How to solve Python's dictionary key error? Empty dictionary key incorrect: How to solve Python's dictionary key error? Jun 24, 2023 pm 03:03 PM

The dictionary in Python is a flexible and powerful data structure that can store key-value pairs and has fast search and insertion functions. However, if you are not careful with dictionary key-value pairs, you may encounter the problem of empty dictionary keys. This problem often causes the code to crash or output unexpected results. This article will introduce two methods to solve the empty dictionary key error in Python. Method 1: Use if statements to prevent empty dictionary keys. Python dictionaries cannot have duplicate keys, otherwise the previous key-value pairs will be overwritten. When the value of a dictionary key is empty

How to get the next key in a dictionary in Python? How to get the next key in a dictionary in Python? Aug 28, 2023 pm 11:45 PM

Dictionaries are a powerful data type in Python. It consists of key-value pairs. Searching, appending and other operations can be efficiently completed through this data type. While accessing values ​​in a dictionary is simple, there may be situations where you need to look up the next key in the dictionary. Python provides several ways to achieve this, depending on your specific requirements. In this article, we will explore different ways of getting the next key in a dictionary in Python. Using the keys and index methods dictionaries are unordered collections in Python. So we first need to convert the keys into some sorted form. We can first append all keys in the form of a list. Next, we can find the next key by indexing the list. With the help of keys we can also

See all articles