Oracle 19c 最佳参数实践.txt
注意:参数最佳实践适用于 12c 及以上版本,个别参数在 11g 中可能没有;另外每个公司均有自己生产实
践过的参数,以下仅供参考
alter system set db_files=2048 scope=spfile sid='*';
alter system set event='10949 trace name context forever,level 1','28401 trace
name context forever,level 1','10503 trace name context forever, level 4000'
scope=spfile sid='*';
alter system set PARALLEL_DEGREE_POLICY=manual scope=spfile sid='*';
alter system set parallel_force_local=TRUE scope=spfile sid='*';
alter system set parallel_max_servers=128 scope=spfile sid='*';
alter system set audit_trail = none scope=spfile sid='*';
alter system set deferred_segment_creation = false scope=spfile sid='*';
alter system set ARCHIVE_LAG_TARGET=1800 scope=spfile sid='*';
alter system set DB_BLOCK_CHECKING=MEDIUM scope=spfile sid='*';
alter system set DB_BLOCK_CHECKSUM=FULL scope=spfile sid='*';
alter system set DB_LOST_WRITE_PROTECT=TYPICAL scope=spfile sid='*';
alter system set DB_WRITER_PROCESSES = 8 scope=spfile sid='*';
alter system set ENABLE_DDL_LOGGING=true scope=spfile sid='*';
alter system set MAX_DUMP_FILE_SIZE=102400000 scope=spfile sid='*';
alter system set MAX_IDLE_BLOCKER_TIME=15 scope=spfile sid='*';
alter system set OPTIMIZER_ADAPTIVE_PLANS=false scope=spfile sid='*';
alter system set OPTIMIZER_ADAPTIVE_STATISTICS=false scope=spfile sid='*';
alter system set undo_retention=86400 scope=spfile sid='*';
alter system set processes=6000 scope=spfile sid='*';
alter system set control_file_record_keep_time=60 scope=spfile sid='*';
alter system set "_OPTIM_PEEK_USER_BINDS"=FALSE scope=spfile sid='*';
alter system set "_cursor_obsolete_threshold"=100 scope=spfile sid='*';
alter system set "_PX_use_large_pool" = true scope=spfile sid='*';
alter system set "_clusterwide_global_transactions" = false scope=spfile
sid='*';
alter system set "_rollback_segment_count"=500 scope=spfile sid='*';
alter system set "_cleanup_rollback_entries" = 10000 scope=spfile sid='*';
alter system set "_optimizer_use_feedback" = false scope=spfile sid='*';
alter system set "_undo_autotune" = false scope=spfile sid='*';
alter system set "_ash_size" = 254M scope=spfile sid='*';
alter system set "_optimizer_extended_cursor_sharing_rel"=none scope=spfile
sid='*';
alter system set "_optimizer_extended_cursor_sharing"=none scope=spfile
sid='*';
alter system set "_optimizer_adaptive_cursor_sharing"=false scope=spfile
sid='*';
alter system set "_gc_policy_time"=0 scope=spfile;
alter system set "_gc_undo_affinity"=FALSE scope=spfile;
--close inmemory
alter system set inmemory_size=0 scope=spfile;
alter system set inmemory_query=disable scope=spfile;
----内存参数调整参考
alter system set sga_max_size=40G scope=spfile;
alter system set db_cache_size=25G scope=spfile;
alter system set shared_pool_size=8G scope=spfile;
alter system set java_pool_size=1G scope=spfile;
alter system set large_pool_size=1G scope=spfile;
alter system set pga_aggregate_target=10G scope=spfile;
alter system set PGA_AGGREGATE_LIMIT=20G scope=spfile sid='*';
--------------------------------------------------------
ALTER PROFILE DEFAULT limit FAILED_LOGIN_ATTEMPTS UNLIMITED PASSWORD_LIFE_TIME
UNLIMITED;
exec
dbms_workload_repository.modify_snapshot_settings(interval=>30,retention=>40*24*
文档被以下合辑收录
评论