在Oracle 11g中用看Oracle的共用記憶體段---------IPCS

來源:互聯網
上載者:User

很早之前,在一次講課了,用了命令ipcs,發現Oracle的共用內段好小,如下:

oracle@mydb ~]$ ipcs -a

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch    status     
0x00000000 32768      root      644        72        2                     
0x00000000 65537      root      644        16384      2                     
0x00000000 98306      root      644        280        2                     
0x00000000 1409028    oracle    640        4096      0                     
0x00000000 1441797    oracle    640        4096      0                     
0x079918e8 1474566    oracle    640        4096      0                     

------ Semaphore Arrays --------
key        semid      owner      perms      nsems   
0x87a36da4 1343489    oracle    640        154     

------ Message Queues --------
key        msqid      owner      perms      used-bytes  messages 

今天突然想起,剛好有空,來總結一下:

上面顯示Oracle共用記憶體段只有4096個位元組,這太小了吧,哦,對了,我這是Oracle11g:

sys@OCM> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production

Oraccle 11g的對記憶體的管理用了兩個新的參數:

sys@OCM> show parameter memory

NAME                                TYPE        VALUE
------------------------------------ ----------- ------------------------------
hi_shared_memory_address            integer    0
memory_max_target                    big integer 1G
memory_target                        big integer 0
shared_memory_address                integer    0

會不會是參數memory_max_target在作怪呢,把它關了試試,我這裡把它設為0,然後重啟資料庫。

sys@OCM> alter system set memory_max_target=0 scope=spfile;

System altered.

sys@OCM> startup force;
ORACLE instance started.

Total System Global Area  943669248 bytes
Fixed Size                  2234000 bytes
Variable Size            541067632 bytes
Database Buffers          394264576 bytes
Redo Buffers                6103040 bytes
Database mounted.
Database opened.

再看共用記憶體:

[oracle@mydb ~]$ ipcs -a

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch    status     
0x00000000 32768      root      644        72        2                     
0x00000000 65537      root      644        16384      2                     
0x00000000 98306      root      644        280        2                     
0x00000000 1802244    oracle    640        4096      0                     
0x00000000 1835013    oracle    640        4096      0                     
0x079918e8 1867782    oracle    640        4096      0                     

------ Semaphore Arrays --------
key        semid      owner      perms      nsems   
0x87a36da4 1736705    oracle    640        154     

------ Message Queues --------
key        msqid      owner      perms      used-bytes  messages   

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.