时间:2021-07-01 10:21:17 帮助过:22人阅读
SQL> create SPFILE=‘+MYDATA/khadb/spfilekhadb.ora‘ from pfile=‘/tmp/pfile.ora‘; File created.
重启数据库,查看processes设置
SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. SQL> startup ORACLE instance started. Total System Global Area 343932928 bytes Fixed Size 2096152 bytes Variable Size 142607336 bytes Database Buffers 192937984 bytes Redo Buffers 6291456 bytes Database mounted. Database opened. SQL> show parameter processes; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ aq_tm_processes integer 0 db_writer_processes integer 1 gcs_server_processes integer 1 job_queue_processes integer 10 log_archive_max_processes integer 2 processes integer 1000 SQL> SQL> show parameter spfile; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ spfile string +MYDATA/khadb/spfilekhadb.ora SQL>
当 PROCESSES > 1500时,候需要确保ksmg_granule_size=16M or 32M;而ksmg_granule_size大小是根据sga_max_size来决定,当sga_max_size<=1024时,ksmg_granule_size=4M;sga_max_size是根据sga_target来决定的,修改sga_target>=1025M即可;
此处通过下面的方法,先恢复数据库,后续可根据自己规划先修改sga_target后,再修改process值
alter system set sga_target=1200m scope=spfile
修改sga_target=1200M,重启数据库时,sga_max_size=1200m;
select x.ksppinm name,y.ksppstvl value,x.ksppdesc descbtion from x$ksppi x,x$ksppcv y where x.inst_id=userenv(‘Instance‘) and y.inst_id=userenv(‘Instance‘) and x.indx=y.indx and x.ksppinm like ‘%_ksmg_granule%‘;
查看ksmg_granule_size大小。当SGA足够大时,我们可以手动设置 _ksmg_granule_size=32MB;
alter system set "_ksmg_granule_size"=33554432 scope=spfile;
再根据自己的需求修process大小
alter system set sessions=10000 scope=spfile;
本文出自 “未来人” 博客,请务必保留此出处http://zaa47.blog.51cto.com/6181689/1927506
ORA-00064 processes设置过大导致数据库打不开
标签:oracle processes ora-00064