下面,我们介绍两个和库缓存相关的等待事件,如题,就是Library cache lock和Library cache pin。 我们上面说到库缓存中的对象在库缓存中被切割成多个内存块,另有一个对象句柄记录了各个内存块的地址和其他的一些信息。当你要修改句柄中的信息时,需要在句柄上加独占锁,而如果另一个进程恰好在这时要求读、写句柄中的...
Whena process pins an object data heap that is not in memory, the process candetermine whether the data heap is to be loaded in the PGA or SGA. An object must be pinned in Exclusive mode if it is to bemodified. However, the process first will alwayspin the object in Share mode, exa...
1、首先Oracle会根据参数HASH_AREA_SIZE、DB_BLOCK_SIZE和_HASH_MULTIBLOCK_IO_COUNT的值来决定Hash Partition的数量(Hash Partition是一个逻辑上的概念,所有Hash Partition的集合就被称之为Hash Table,即一个Hash Table是由多个Hash Partition所组成,而一个Hash Partition又是由多个Hash Bucket所组成); 2、表T1和T2...
_inmemory_force_fs_tbs_size 1073741824 _inmemory_fs_raise_errorFALSE_inmemory_fs_nodmlFALSE_inmemory_fs_enableFALSE_inmemory_fs_enable_blk_lvl_invTRUE_inmemory_fs_blk_inv_blkcnt _inmemory_fs_blk_inv_blk_percent 20 _inmemory_enable_stat_alertFALSE_inmemory_imcu_alignTRUE_inmemory_max_po...
在Oracle 10g中引入了ASMM(Automatic Shared Memory Management,自动共享内存管理),DBA只需设置SGA_TARGET,Oracle就会自动地对共享池、数据缓冲区、Redo日志缓冲区、大池、Java池和流池进行自动调配,取消自动调配的方法为设置SGA_TARGET为0。 需要注意的是,Oracle分配内存的单位是granule,即粒度。最小的粒度为4M,设置大...
编译SQL或PLSQL对象,获取该对象(cursor,procedure)handle上exclusive类型的lock,并且持有data heap上exclusive类型的pin,防止其他人读取和修改。同时,在该对象所依赖的对象(table)上,必须持有一个share类型的lock和pin,防止在修改的过程中,被其他进程所修改。
在Oracle中,不论数据块中存储的是表(TABLE)、索引(INDEX)或簇表(CLUSTER TABLE),其内部结构都是类似的。Oracle块的结构如下图所示: 图3-8 Oracle 块结构图 由上图可以看出,一个Oracle块大约由数据块头(包括标准内容和可变内容,Common And Variable Header)、表目录(Table Directory)、行目录(Row Directory)、...
single-table hash clusters, 10-61 storage of, 10-55 HASHKEYS parameter, 10-57, 10-61 headers of data blocks, 4-4 of row pieces, 10-5 heterogeneous services, 30-5 HEXTORAW function, 12-24 HI_SHARED_MEMORY_ADDRESS parameter, 7-14 hierarchies, 1-28, 10-20 join key, ...
5.2 Library cache pin有两种lock mode,分别是share和exclusive。 Whena process pins an object data heap that is not in memory, the process candetermine whether the data heap is to be loaded in the PGA or SGA. An object must be pinned in Exclusive mode if it is to bemodified. However, th...
6-2 Oracle JDBC-OCI Driver Upgrade in the Oracle Application Server ... 6-2 OC4J Out of Memory Errors ... 6-2 JDK 1.3 With OC4J 10.1.2.0.2 ...