search
HomeDatabaseMysql Tutorial计算SGA各池的内存地址的边界

转载请注明出处 :http://blog.csdn.net/guoyjoe/article/details/18508283 有时我们想知道数据在SGA中的哪个池中,可以用下面的方法计算出各池的内存地址边界。 1、LOG BUFFER池内存地址边界 0x00000060222000 LOG BUFFER池内存 0x0000006682B000(0x000000

转载请注明出处:http://blog.csdn.net/guoyjoe/article/details/18508283


有时我们想知道数据在SGA中的哪个池中,可以用下面的方法计算出各池的内存地址边界。


1、LOG BUFFER池内存地址边界


0x00000060222000 > LOG BUFFER池内存


如下计算:
sys@DTRACE> oradebug setmypid
Statement processed.
sys@DTRACE> oradebug ipc
Information written to trace file.
sys@DTRACE> col value for a80
sys@DTRACE> select value from v$diag_info where name='Default Trace File';


VALUE
--------------------------------------------------------------------------------
/export/home/oracle/diag/rdbms/dtrace/dtrace/trace/dtrace_ora_4103.trc


Area #2 `Redo Buffers' containing Subareas 1-1
Total size 0000000006609000 Minimum Subarea size 00000000
Area Subarea Shmid Stable Addr Actual Addr
2 1 196612 0x00000060222000 0x00000060222000
Subarea size Segment size
0000000006609000 0000000006c00000



2、BUFFER CACHE池内存地址的边界


0x0000000078A22000 > BUFFER CACHE池内存地址




如下计算:
sys@DTRACE> select min(ba),max(ba) from x$bh;


MIN(BA) MAX(BA)
---------------- ----------------
0000000078A22000 000000007FBD6000




3、SHARED POOL池内存地址边界


0x93800000> SHARED POOL池内存地址



如下计算:
gyj@DTRACE> alter session set events 'immediate trace name heapdump level 2';


Session altered.


gyj@DTRACE> col value for a80
gyj@DTRACE> select value from v$diag_info where name='Default Trace File';


VALUE
--------------------------------------------------------------------------------
/export/home/oracle/diag/rdbms/dtrace/dtrace/trace/dtrace_ora_4046.trc




more /export/home/oracle/diag/rdbms/dtrace/dtrace/trace/dtrace_ora_4046.trc
******************************************************
HEAP DUMP heap name="sga heap(1,0)" desc=0x600551a0
extent sz=0xfe0 alt=248 het=32767 rec=9 flg=-126 opc=0
parent=(nil) owner=(nil) nex=(nil) xsz=0x400000 heap=(nil)
fl2=0x20, nex=(nil), dsxvers=1, dsxflg=0x0
dsx first ext=0x9a800000
latch set 1 of 7
durations disabled for this heap
reserved granules for root 57 (granule size 4194304)
EXTENT 0 addr=0x93800000
.............................
EXTENT 5 addr=0x9b800000
Chunk 09b800058 sz= 80 perm "perm " alo=80
Chunk 09b8000a8 sz= 48 R-freeable "reserved stoppe"
Chunk 09b8000d8 sz= 212728 R-free " "
Chunk 09b833fd0 sz= 48 R-freeable "reserved stoppe"
Chunk 09b834000 sz= 2763512 perm "perm " alo=2763512
Chunk 09bad6af8 sz= 1209408 perm "perm " alo=1209408
Chunk 09bbfdf38 sz= 64 freeable "KGI Session Sta"
Chunk 09bbfdf78 sz= 40 freeable "listener addres"
Chunk 09bbfdfa0 sz= 128 freeable "dbgefgHtAddSK-1"
Chunk 09bbfe020 sz= 136 freeable "dbgefgHtAddSK-1"
Chunk 09bbfe0a8 sz= 40 freeable "plwppwp:PLW_STR"
Chunk 09bbfe0d0 sz= 160 freeable "joxs heap "
Chunk 09bbfe170 sz= 32 freeable "PRESENTATION EN"
Chunk 09bbfe190 sz= 2072 freeable "PRESENTATION TA"
Chunk 09bbfe9a8 sz= 1168 freeable "character set m"
Chunk 09bbfee38 sz= 4552 freeable "character set m"
Total heap size = 25165296


看转储的DUMP日志一个区的大小是: xsz=0x400000



QQ:252803295

技术交流QQ群:
DSI&Core Search Ⅰ 群:127149411(2000人技术群:未满)
DSI&Core Search Ⅱ 群:177089463(1000人技术群:未满)
DSI&Core Search Ⅲ 群:284596437(500人技术群:未满)
DSI&Core Search Ⅳ 群:192136702(500人技术群:未满)
DSI&Core Search Ⅴ 群:285030382(500人闲聊群:未满)


MAIL:dbathink@hotmail.com

BLOG: http://blog.csdn.net/guoyjoe

WEIBO:http://weibo.com/guoyJoe0218

ITPUB: http://www.itpub.net/space-uid-28460966.html

OCM: http://education.oracle.com/education/otn/YGuo.HTM

ACONG: http://www.acoug.org/category/membership


Statement
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
MySQL String Types: Storage, Performance, and Best PracticesMySQL String Types: Storage, Performance, and Best PracticesMay 10, 2025 am 12:02 AM

MySQLstringtypesimpactstorageandperformanceasfollows:1)CHARisfixed-length,alwaysusingthesamestoragespace,whichcanbefasterbutlessspace-efficient.2)VARCHARisvariable-length,morespace-efficientbutpotentiallyslower.3)TEXTisforlargetext,storedoutsiderows,

Understanding MySQL String Types: VARCHAR, TEXT, CHAR, and MoreUnderstanding MySQL String Types: VARCHAR, TEXT, CHAR, and MoreMay 10, 2025 am 12:02 AM

MySQLstringtypesincludeVARCHAR,TEXT,CHAR,ENUM,andSET.1)VARCHARisversatileforvariable-lengthstringsuptoaspecifiedlimit.2)TEXTisidealforlargetextstoragewithoutadefinedlength.3)CHARisfixed-length,suitableforconsistentdatalikecodes.4)ENUMenforcesdatainte

What are the String Data Types in MySQL?What are the String Data Types in MySQL?May 10, 2025 am 12:01 AM

MySQLoffersvariousstringdatatypes:1)CHARforfixed-lengthstrings,2)VARCHARforvariable-lengthtext,3)BINARYandVARBINARYforbinarydata,4)BLOBandTEXTforlargedata,and5)ENUMandSETforcontrolledinput.Eachtypehasspecificusesandperformancecharacteristics,sochoose

How to Grant Permissions to New MySQL UsersHow to Grant Permissions to New MySQL UsersMay 09, 2025 am 12:16 AM

TograntpermissionstonewMySQLusers,followthesesteps:1)AccessMySQLasauserwithsufficientprivileges,2)CreateanewuserwiththeCREATEUSERcommand,3)UsetheGRANTcommandtospecifypermissionslikeSELECT,INSERT,UPDATE,orALLPRIVILEGESonspecificdatabasesortables,and4)

How to Add Users in MySQL: A Step-by-Step GuideHow to Add Users in MySQL: A Step-by-Step GuideMay 09, 2025 am 12:14 AM

ToaddusersinMySQLeffectivelyandsecurely,followthesesteps:1)UsetheCREATEUSERstatementtoaddanewuser,specifyingthehostandastrongpassword.2)GrantnecessaryprivilegesusingtheGRANTstatement,adheringtotheprincipleofleastprivilege.3)Implementsecuritymeasuresl

MySQL: Adding a new user with complex permissionsMySQL: Adding a new user with complex permissionsMay 09, 2025 am 12:09 AM

ToaddanewuserwithcomplexpermissionsinMySQL,followthesesteps:1)CreatetheuserwithCREATEUSER'newuser'@'localhost'IDENTIFIEDBY'password';.2)Grantreadaccesstoalltablesin'mydatabase'withGRANTSELECTONmydatabase.TO'newuser'@'localhost';.3)Grantwriteaccessto'

MySQL: String Data Types and CollationsMySQL: String Data Types and CollationsMay 09, 2025 am 12:08 AM

The string data types in MySQL include CHAR, VARCHAR, BINARY, VARBINARY, BLOB, and TEXT. The collations determine the comparison and sorting of strings. 1.CHAR is suitable for fixed-length strings, VARCHAR is suitable for variable-length strings. 2.BINARY and VARBINARY are used for binary data, and BLOB and TEXT are used for large object data. 3. Sorting rules such as utf8mb4_unicode_ci ignores upper and lower case and is suitable for user names; utf8mb4_bin is case sensitive and is suitable for fields that require precise comparison.

MySQL: What length should I use for VARCHARs?MySQL: What length should I use for VARCHARs?May 09, 2025 am 12:06 AM

The best MySQLVARCHAR column length selection should be based on data analysis, consider future growth, evaluate performance impacts, and character set requirements. 1) Analyze the data to determine typical lengths; 2) Reserve future expansion space; 3) Pay attention to the impact of large lengths on performance; 4) Consider the impact of character sets on storage. Through these steps, the efficiency and scalability of the database can be optimized.

See all articles

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

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft