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*
文档被以下合辑收录
评论