²é¿´Ò»ÏÂÊý¾Ý¿âÏÖÓеĽø³ÌÊý£¬ÊÇ·ñÒѾ­´ïµ½²ÎÊýprocessesµÄ´óС -µçÄÔ×ÊÁÏ

µçÄÔ×ÊÁÏ Ê±¼ä£º2019-01-01 ÎÒҪͶ¸å
¡¾www.unjs.com - µçÄÔ×ÊÁÏ¡¿

    ²é¿´Ò»ÏÂÊý¾Ý¿âÏÖÓеĽø³ÌÊý£¬ÊÇ·ñÒѾ­´ïµ½²ÎÊýprocessesµÄ´óС

    -- select count(*) from v$process; È¡µÃÊý¾Ý¿âĿǰµÄ½ø³ÌÊý£¬

²é¿´Ò»ÏÂÊý¾Ý¿âÏÖÓеĽø³ÌÊý£¬ÊÇ·ñÒѾ­´ïµ½²ÎÊýprocessesµÄ´óС

¡£

    -- select value from v$parameter where name = 'processes'; È¡µÃ½ø³ÌÊýµÄÉÏÏÞ

    (1)²é¿´µ±Ç°»á»°Êý¡¢processesºÍsessionsÖµ£¬·¢ÏÖsessionÊý14ºÍprocessesÖµ150ÒѾ­·Ç³£½Ó½ü

    SQL> select count(*) from v$session;

    COUNT(*)

    ----------

    146

    SQL> show parameter processes

    NAME                TYPE         VALUE

    ------------------------------------ ------------------------------

    aq_tm_processes           integer        0

    db_writer_processes         integer        2

    gcs_server_processes        integer        0

    job_queue_processes         integer        10

    log_archive_max_processes      integer        2

    processes              integer        150

    (2) Modify the two parameter(processes,sessions)

    SQL> alter system set processes=300 scope=spfile;

    System altered.

    SQL> alter system set sessions=335 scope=spfile;

    System altered.

    (3) Let's shutdown and startup database in order to let the two parameter taken effect.

    SQL> shutdown immediate;

    Database closed.

    Database dismounted.

    ORACLE instance shut down.

    SQL> startup

    ORACLE instance started.

    Total System Global Area 1610612736 bytes

    Fixed Size         2030456 bytes

    Variable Size      989856904 bytes

    Database Buffers     603979776 bytes

    Redo Buffers       14745600 bytes

    Database mounted.

    Database opened.

    SQL> exit

    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production

    With the Partitioning, OLAP and Data Mining options

    $ sqlplus /nolog

    (4) test the result.

    SQL*Plus: Release 10.2.0.3.0 - Production on ÐÇÆÚÎå 12ÔÂ 9 09:53:13 2011

    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.

    SQL> conn sys/oracle@orcl as sysdba

    Connected.

    SQL>

    --the end.

×îÐÂÎÄÕÂ