oracle 11.2.0.4 静默建rac库
-
dbca -silent -createdatabase -templatename general_purpose.dbc \
-
-gdbname orcl -sid orcl -nodeinfo db1,db2 \
-
-syspassword ora!cle_123 -systempassword ora!cle_123 \
-
-storagetype asm \
-
-diskgroupname datadg -redologfilesize 200 \
-
-emconfiguration none \
-
-responsefile no_value \
-
-recoveryareadestination none \
-
-characterset zhs16gbk \
-
-nationalcharacterset al16utf16 \
-
-totalmemory 8196 ;
-
几个简单、够用的参数:
-
alter system set "_gc_defer_time"=3 scope=spfile sid='*';
-
alter system set "_gc_policy_time"=0 scope=spfile sid='*';
-
alter system set "_gc_undo_affinity"=false scope=spfile sid='*';
-
alter system set "_optimizer_adaptive_cursor_sharing"=false scope=spfile sid='*';
-
alter system set "_optimizer_extended_cursor_sharing"='none' scope=spfile sid='*';
-
alter system set "_optimizer_extended_cursor_sharing_rel"='none' scope=spfile sid='*';
-
alter system set "_optimizer_use_feedback"=false scope=spfile sid='*';
-
alter system set "_partition_large_extents"=false scope=spfile sid='*';
-
alter system set "_px_use_large_pool"=true scope=spfile sid='*';
-
alter system set "_undo_autotune"=false scope=spfile sid='*';
-
alter system set "_use_adaptive_log_file_sync"='false' scope=spfile sid='*';
-
alter system set deferred_segment_creation=false scope=spfile sid='*';
-
alter system set event='28401 trace name context forever,level 1','10949 trace name context forever,level 1' scope=spfile
-
alter system set open_cursors=300 scope=spfile sid='*';
-
alter system set parallel_force_local=true scope=spfile sid='*';
-
alter system set processes=3000 scope=spfile sid='*';
-
alter system set result_cache_max_size=0 scope=spfile sid='*';
-
alter system set sec_case_sensitive_logon=false scope=spfile sid='*';
-
alter system set undo_retention=10800 scope=spfile sid='*';
-
设置系统系统数据文件自动扩展
alter database datafile 1,2,3,5 autoextend on;
增加几组redo
alter database add logfile thread 1 group 5
' datadg' size 200m;
alter database add logfile thread 1 group 6
' datadg' size 200m;
alter database add logfile thread 2 group 7
' datadg' size 200m;
alter database add logfile thread 2 group 8
' datadg' size 200m;
设置归档模式
阅读(1384) | 评论(0) | 转发(0) |