oracle重要初始参数

OPEN_CURSORS session可以打开的游标最大数,依敕应用推荐500

show parameter open_cursors;

alter system set open-cursors=500 scope=both;

selectcount(*)fromv$open_cursor;

CONTROL_FILES 控制文件至少两个文件在不同磁盘,避免错误

show parameter control_files;

alter system set control_files = '/u01/control04.ctl','/u01/oracle/oradata/stone/control01.ctl','/u01/oracle/oradata/stone/control02.ctl' scope=spfile;

DB_FILES 分配给数据库数据文件的个数

show parameter db_files;

alter system set db_files=500 scope=both;

COMPATIBLE 兼容性参数,设置版本号

show parameter compatible;

DB_BLOCK_SIZE 数据库最小单元块。

show parameter db_block_size;

SGA_TARGET 数据库可动态分配的sga最大值,一般应该>=sga_max_size

show parameter sga_target;

PGA_AGGREGATE_TARGET 设置程序全局区(PGA)大小,只在独享模式中可以设置。

UNDO_MANAGEMENT undo表空间模式,oracle推荐

show parameter undo_management;

alter system set undo_management=auto scope=both;

UNDO_TABLESPACE 设置undo表空间

show parameter undo_tablespace;

alter system undo_tablespace=undotbs01 scope=spfile;

UNDO_RETENTION 撤消数据保存的时间(以秒为单位)

show parmeter undo_retention;

alter system undo_retention=900 scope=spfile;

spfile指实例范围

show parameter undo可以同时显示undo表空间的这三个参数




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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值