OracleStudy之案例--通过IPCS查看共享内存之“怪现象”
Oracle Study之案例--通过IPCS查看共享内存之“怪现象” 在Oracle 11gR2环境下,通过ipcs命令查看共享内存,竟然发现分配给Oracle的内存只有4096Bytes,而在Oracle 10g环境下从未发现这种问题! [root@rh6~]#ipcs-a------SharedMemorySegments--------keyshm
Oracle Study之案例--通过IPCS查看共享内存之“怪现象”
在Oracle 11gR2环境下,通过ipcs命令查看共享内存,竟然发现分配给Oracle的内存只有4096Bytes,而在Oracle 10g环境下从未发现这种问题!
[root@rh6 ~]# ipcs -a ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x00000000 0 root 644 52 2 0x00000000 32769 root 644 16384 2 0x00000000 65538 root 644 268 2 0x00000000 98307 gdm 600 393216 2 dest 0x00000000 131076 gdm 600 393216 2 dest 0x00000000 163845 gdm 600 393216 2 dest 0x00000000 196614 gdm 600 393216 2 dest 0x00000000 229383 gdm 600 393216 2 dest 0x4b4218ec 557064 oracle 660 4096 0 ------ Semaphore Arrays -------- key semid owner perms nsems 0x00000000 0 root 600 1 0x00000000 98305 root 600 1 0x000000a7 327682 root 600 1 0xbe61d9cc 983043 oracle 660 154 ------ Message Queues -------- key msqid owner perms used-bytes messages
数据库版本:
16:27:09 SYS@ test3 >select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for Linux: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production
Oraccle 11g的通过以下两个参数实现内存的自动个管理:
16:27:19 SYS@ test3 >show parameter mem NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ hi_shared_memory_address integer 0 memory_max_target big integer 300M memory_target big integer 300M shared_memory_address integer 0
650) this.width=650;" alt="在Oracle 11g中用看Oracle的共享内存段---------IPCS" width="581" vspace="5" style="max-width:90%" />
1、会不会是参数memory_max_target有关系呢?把它设为0,然后重启数据库。
16:28:11 SYS@ test3 >alter system set memory_target=0 ; System altered. 16:36:44 SYS@ test3 >show parameter mem NAME TYPE VALUE ------------------------------------ ---------------------- ------------------------------ hi_shared_memory_address integer 0 memory_max_target big integer 300M memory_target big integer 0 shared_memory_address integer 0 16:30:51 SYS@ test3 >startup force ; ORACLE instance started. Total System Global Area 313860096 bytes Fixed Size 1336232 bytes Variable Size 205524056 bytes Database Buffers 100663296 bytes Redo Buffers 6336512 bytes Database mounted. Database opened.
再看共享内存:
[oracle@rh6 ~]$ ipcs -a ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x00000000 0 root 644 52 2 0x00000000 32769 root 644 16384 2 0x00000000 65538 root 644 268 2 0x4b4218ec 622600 oracle 660 4096 0 ------ Semaphore Arrays -------- key semid owner perms nsems 0xbe61d9cc 1114115 oracle 660 154 ------ Message Queues -------- key msqid owner perms used-bytes messages
发现分配给Oracle的共享内存仍然很小,看来不是memory_target 参数的问题!
2、尝试调整memory_max_target参数,将其恢复到系统默认值:
16:39:49 SYS@ test3 >alter system set sga_max_size=300m scope=spfile; System altered. 16:40:06 SYS@ test3 >alter system reset memory_max_target scope=spfile sid='*'; System altered. 16:40:40 SYS@ test3 >startup force nomount; ORACLE instance started. Total System Global Area 313860096 bytes Fixed Size 1336232 bytes Variable Size 205524056 bytes Database Buffers 100663296 bytes Redo Buffers 6336512 bytes 16:40:52 SYS@ test3 >show parameter mem NAME TYPE VALUE ------------------------------------ ---------------------- ------------------------------ hi_shared_memory_address integer 0 memory_max_target big integer 0 memory_target big integer 0 shared_memory_address integer 0 16:40:59 SYS@ test3 >show parameter sga NAME TYPE VALUE ------------------------------------ ---------------------- ------------------------------ lock_sga boolean FALSE pre_page_sga boolean FALSE sga_max_size big integer 300M sga_target big integer 180M
查看系统共享内存:
[oracle@rh6 ~]$ ipcs -a ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x00000000 0 root 644 52 2 0x00000000 32769 root 644 16384 2 0x00000000 65538 root 644 268 2 0x4b4218ec 884744 oracle 660 316669952 16 ------ Semaphore Arrays -------- key semid owner perms nsems 0xbe61d9cc 1638403 oracle 660 154 ------ Message Queues -------- key msqid owner perms used-bytes messages
看来是设置了memory_max_target参数的原因,导致通过ipcs查看到分配给Oracle的内存为4096Bytes!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

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

1. First, click to open the Douyin app and click [Me]. 2. Click the three-dot icon in the upper right corner. 3. Click to enter [Settings]. 4. Click to open [Account and Security]. 5. Select and click [Log in to device management]. 6. Finally, click to select the device and click [Remove].

As a trading platform, Xianyu requires you to register and log in to your account before using it. Users can set an ID name for their account. What if they want to check what their ID is? Let’s find out together below! Introduction to how to view personal nicknames on Xianyu. First, start the Xianyu app. After entering the homepage, switch to the page of selling idle, messages, and me, and click the [My] option in the lower right corner. 2. Then on my page we need to click [Avatar] in the upper left corner; 2. Then when we go to the personal homepage page we can see different information, we need to click the [Edit Information] button here; 4. Finally click We can see it later on the page where we edit information;

1. After turning on the phone, select NetEase Cloud Music. 2. After entering the homepage, you can see the [Ranking List] and click to enter. 3. In the ranking list, you can select any list and click [New Song List]. 4. Select your favorite song and click on it. 5. Return to the previous page to see more lists.

Kuaishou Live Companion is not only a powerful live broadcast auxiliary tool, but also a real-time insight platform for hot topics and trends created for broadcasters. Through this function, anchors can quickly capture the content that audiences are most concerned about, and then adjust the live content to make it more in line with the audience's tastes and interests. So how to check the hot video list in the Kuaishou Live Companion app? This tutorial guide will provide you with a detailed introduction to the steps. I hope it can help you. How to view the hot video list on Kuaishou Live Companion? The second step is to click on the daily video hot list. The third step is to check the daily video hot list.

Regardless of life or work, many people have long been deeply tied to WeChat and will be pulled into various groups at any time. So how many WeChat groups have you joined? You may immediately want to view the group chats in your address book, but only the WeChat groups you have saved in your address book will appear there, and other groups will not be visible. If you want to see all the WeChat groups you have joined, it is very simple: enter your nickname in the search box on the WeChat homepage, then find the group chat section in the search results, and click "More Group Chats" to view all related group chat information. Anyway, I was shocked. There were more than a hundred of them, and the scroll bar on the right became very small. Unfortunately, there is no specific number statistics... This method is also applicable to checking the QQ groups you have joined. PS: Some netizens also provided a trick:

WeChat group chat is not only a simple chat platform, but also a communication circle that brings together elites and enthusiastic friends from all walks of life. So today I will teach you how to see how many groups you have added on WeChat and how to save group chats. Usually Users who use WeChat must not miss it. How to check how many groups you have added to WeChat and how to save group chats To check how many groups you have added to WeChat: 1. You can view your group chat window in the WeChat main interface 2. If you have already saved the group chat, you can tap [ Address Book] - [Group Chat] 3. After entering the group chat, you can view the saved group. Save the WeChat group: 1. Select the group you want to save, top right [...] 2. Open in the chat message [Save to address book] 3. On the main WeChat interface, tap [Address Book]-[Group Chat] to view

1. We first open the Gaode map. 2. Then click (My) in the lower right corner of the Amap homepage and then click Settings in the upper right corner. 3. Finally, you can see the help center of Amap.
