Oracle建库必备的核心初始化参数

安装完数据库软件的下一步就是创建数据库,如果是手工创建数据库或对数据库所占用的内存进行一些合理化配置,就需要理解必备的建库初始化参数。

今天在手工建库过程中,发现$ORACLE_HOME/dbs/下的init.orainitdw.ora两个文件内容也是值得读一遍。因此产生了Oracle建库必备的核心初始化参数有哪些的想法,总结如下:

1、Oracle 9i 环境

1G物理内存为例,给OS50%,其余用于Oracle。在Oracle9i提出了pga_agregate_target参数。

db_name = MY_DB_NAME

control_files = (ora_control1, ora_control2)

shared_pool_size = 50M

pga_aggregate_target = 200M

db_cache_size = 200M

undo_management = auto

undo_tablespace =undotbs1

[@more@]

当然还有其他的参数,initdw.ora文件中介绍的也是非常详细,在此只是列出必备的。

# Memory is managed globally. The DBA should first determine how much

# memory is available for Oracle to use. Then, the DBA should choose

# memory parameters so that pga_aggregate_size + db_cache_size +

# shared_pool_size + large_pool_size is roughly equal to the amount

# of memory available for the Oracle database.

#

# For example, suppose that a DBA is managing a small data mart. The

# data mart server has 1GB of physical memory. The DBA has determined

# that 500M of memory will be used by the operating system and other

# applications, so that 500M is available for Oracle.

#

# The DBA may choose the following settings:

# shared_pool_size = 50M

# pga_aggregate_size = 200M

# db_cache_size = 200M

# large_pool_size =

#

# The total memory utilization is 450M plus a system-determined value

# for the large pool.

# pga_aggregate_target should, in general, be equal to 20-80% of the

# available memory, depending on the workload.

# db_cache_size should, in general, be equal to 20-80% of the

# available memory, depending on the workload.

# Shared pool size should be, in general, equal to 5-10% of the

# available memory.

2、Oracle 10g 环境

Oracle10g,提出sga_max_sizesga_target参数

db_name = MY_DB_NAME

control_files = (ora_control1, ora_control2)

pga_aggregate_target = 200M

sga_target= 250M

undo_management = auto

undo_tablespace =undotbs1

3、Oracle 11g 环境

类似SGA_MAX_SIZE与SGA_TARGET一样,MEMORY_MAX_TARGET与MEMORY_TARGET成对出现,这一特性的出现使得PGA+SGA作为整体内存使用被一致的纳入自动管理范畴。。

Oracle10g,提出sga_max_sizesga_target参数

db_name = MY_DB_NAME

control_files = (ora_control1, ora_control2)

memory_targe=450M

MEMORY_MAX_TARGET=450M

undo_management = auto

undo_tablespace =undotbs1

与Oracle10g类似,设置了自动内存管理之后,PGA_AGGREGATE_TARGET参数不再需要设置,取而代之发挥作用的参数是带有2个下划线的__PGA_AGGREGATE_TARGET参数

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/18841027/viewspace-1059851/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/18841027/viewspace-1059851/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值