设为首页 加入收藏

TOP

ORACLEAUTOMATICSTORAGEMANAGEMENT翻译-第二章ASMinstance(1)(二)
2015-07-24 11:57:18 来源: 作者: 【 】 浏览:18
Tags:ORACLEAUTOMATICSTORAGEMANAGEMENT 翻译 第二章 ASMinstance
/diag/asm/+asm/+ASM1/trace
Diag Alert /u01/app/oracle/diag/asm/+asm/+ASM1/alert
Diag Incident /u01/app/oracle /diag/asm/+asm/+ASM1/incident
Diag Cdump /u01/app/oracle/diag/asm/+asm/+ASM1/cdump
Health Monitor /u01/app/oracle/diag/asm/+asm/+ASM1/hm
Default Trace File
11g中所有的诊断信息都可以使用adrci来管理。
最佳实践ASM参数

11g中ASM可以使用AMM特性在init.ora中配置MEMORY_TARGET和MEMORY_MAX_TARGET,与rdbms一样这两个参数可以实现内存自动管理。
然而,由于asm内存使用率非常平稳,ORACLE最佳实践是不设置这两个参数,默认使用256M,这个配置符合大多数的环境。
译者注:在生产环境中ASM使用默认参数可能会引发ASM实例级别的4031错误,根据MOS文档建议内存至少分配1G,这与最佳实践又是矛盾的,
可见ORACLE的最佳实践不一定靠谱,但可作为参考了。

如果有需要手工调整内存,只需要修改MEMORY_TARGET就可以了 alter system set memeory_target=300M;
当然如果你要禁用AMM可以把MEMROY_target设置为0,但是shared_pool,large_pool,db_cache_size这三个参数就需要配置。
DB_CACHE_SIZE This value determines the size of the buffer cache, which
is used to cache ASM metadata blocks. The DB_CACHE_SIZEis based on
a metadata block size of 4K. This block size is the buffer page size of the
cached metadata and has no bearing or impact on the database block size.
db_cache_size用于缓存metadata block,它是基于metadata block size 及4K,
不受db block size的影响。
SHARED_POOL This is used for standard memory usage (control structures
and so on) to manage the instance. The value is also used to store open file
extent maps.
shared_pool用于存储管理实例用的数据结构,如果控制结构等,同时也存储
extent maps等。
LARGE_POOLThe LARGE_POOLvalue is used for large page allocations.
PROCESSES This ASM init.ora parameter limits the number of processes
that can start in ASM instance. You may need to modify this parameter from
its default setting for Oracle Database 10gASM instances. The following
recommendation pertains to Oracle Database 10.1.0.3 through 10.2.xand
will work for RAC and non-RAC systems:
Processes = 25 + (10 + [max number of concurrent database file
creations, and file extend operations possible
])*n
PROCESSES配置可以基于如上公式计算。
公式说明:
where n is the number of RDBMS instance (ASM clients) connecting to ASM
The source of concurrent file creations can be any of the following:
Several concurrent CREATE TABLESPACEcommands
Creation of a partitioned table with several tablespace creations
RMAN backup channels
Concurrent archive log file creations
max number of concurrent database file creations: 可以是create tablespace并发数,创建分区表涉及的表空间数,rman备份分配的通道数,并发创建归档数

10g中,ASM没有AMM特性,一般配置如下:
SHARED_POOL_SIZE: 128MB
LARGE_POOL: 12MB
DB_CACHE_SIZE: 64MB

我们可以像管理 数据库一样使用SQLPLUS管理ASM 如: SQL>SHOW SGA 但是要注意大多数rdbms的参数不适用与ASM实例,如controlfile_files 当你尝试设置这个参数时就会收到报错 ORA-15021: parameter "control_files" is not valid in asm instance
注意参数文件参数: SQL> SHOW PARAMETER CONTROL
NAME TYPE VALUE
------------------------------ ----------- ------------------------------control_files string /opt/oracle/app/product/10gr2/
dbs/cntrl+ASM.dbf
但是到操作 系统中你却找不到这个参数,这个参数时内部默认值对于 ASM是没有实际意义的
两个存储在$ORACLE_HOME/dbs下的文件: ab_.dat 这个文件在asm实力启动时生成,同时数据库实例连接ASM实例 时获取环境信息,如果这个文件被删除了RDBMS就无法和ASM实例通讯了。
hc_.dat EM使用这个文件进行实例的监控检查监控。如果这个文件被移除,健康 检查结果就会是错误的。
ASM .dat 文件不会对ASM造成性能方面的影响,文件中存放的只是连接信息,需要的时候 与ASM实例通信。 注意,有时可能需要设置隐含参数,来协助问题诊断,如: 诊断参数_disable_instance_parms_check(这个参数不需要再11g)
首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇ORACLEAUTOMATICSTORAGEMANAGEMEN.. 下一篇软考之---数据库

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·如何理解智能指针? (2025-12-24 12:48:26)
·c++是否应避免使用普 (2025-12-24 12:48:23)
·如何通俗易懂学会 C+ (2025-12-24 12:48:21)
·在 C 语言函数中,如 (2025-12-24 12:19:41)
·C盘里面的AppData文 (2025-12-24 12:19:38)