zoukankan      html  css  js  c++  java
  • OCP-1Z0-053-V12.02-417题

    417.When manually configuring the SGA, which of the following parameter changes requires an instance restart to take effect?

    A. DB_CACHE_SIZE

    B. SHARED_POOL_SIZE

    C. LARGE_POOL_SIZE

    D. JAVA_POOL_SIZE

    E. SGA_MAX_SIZE

    F. SORT_AREA_SIZE

    Answer: E

    答案解析:


    sys@TEST1107> desc v$sgainfo

     Name                                                  Null?    Type

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

     NAME                                                          VARCHAR2(32)

     BYTES                                                          NUMBER

     RESIZEABLE                                               VARCHAR2(3)


     RESIZEABLE  为YES,则可以在线更改,及时生效,如果为NO,则只能重启生效。

    sys@TEST1107> select * from v$sgainfo;


    NAME                                  BYTES RES

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

    Fixed SGA Size                      2227984 No

    Redo Buffers                        8847360 No

    Buffer Cache Size                 352321536 Yes

    Shared Pool Size                  335544320 Yes

    Large Pool Size                    16777216 Yes

    Java Pool Size                     16777216 Yes

    Streams Pool Size                  16777216 Yes

    Shared IO Pool Size                       0 Yes

    Granule Size                       16777216 No

    Maximum SGA Size                 1269366784 No

    Startup overhead in Shared Pool    97589480 No

    Free SGA Memory Available         520093696


    12 rows selected.



    sys@TEST1107> alter system set sga_max_size=1200M;

    alter system set sga_max_size=1200M

                     *

    ERROR at line 1:

    ORA-02095: specified initialization parameter cannot be modified



    sys@TEST1107> alter system set sga_max_size=1200M scope=spfile;


    System altered.


    如果不加scope,则不能修改,如果加了scope=spfile,意味着重启后生效。


    sys@TEST1107> alter system set large_pool_size=20M;


    System altered.


    sys@TEST1107> select * from v$sgainfo;


    NAME                                  BYTES RES

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

    Fixed SGA Size                      2227984 No

    Redo Buffers                        8847360 No

    Buffer Cache Size                 335544320 Yes

    Shared Pool Size                  335544320 Yes

    Large Pool Size                    33554432 Yes

    Java Pool Size                     16777216 Yes

    Streams Pool Size                  16777216 Yes

    Shared IO Pool Size                       0 Yes

    Granule Size                       16777216 No

    Maximum SGA Size                 1269366784 No

    Startup overhead in Shared Pool    97589480 No

    Free SGA Memory Available         520093696


    12 rows selected.


  • 相关阅读:
    LeetCode (160) Intersection of Two Linked Lists
    cmake命令 安装、用法简介
    算法——回文解密,判断一个数组是否为回文
    发现一个好用的播放插件---ckplayer
    阿里云ESC上的Ubuntu图形界面的安装
    tomcat 启动本地项目,但是报错的是另一个项目错误导致的tomcat启动失败
    发现一个有趣的时间控件
    Comparator 排序优先级
    项目Exception,项目前面有红色的小叉×
    日常问题,JasperException
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13316396.html
Copyright © 2011-2022 走看看