zoukankan      html  css  js  c++  java
  • OCP-1Z0-052-V8.02-119题

    119. View the Exhibit and examine the output of the query. 

    What do you infer from this?

    A.The SGA_TARGET is a static parameter.

    B.The instance is started, but the database is not yet open.

    C.The server parameter file (SPFILE) was used to start the instance.

    D.The SGA_TARGET parameter does not have any effect on  the database  instance until  the

    SGA_MAX_SIZE parameter is specified.

    Answer: C  


    sys@TEST0924> select name,value,isspecified from v$spparameter where name like '%sga%';


    NAME                 VALUE                ISSPEC

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

    sga_max_size                              FALSE

    pre_page_sga                              FALSE

    lock_sga                                  FALSE

    sga_target           0                    TRUE


    sys@TEST0924> show parameter spfile


    NAME                                 TYPE        VALUE

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

    spfile                               string      /u01/app/oracle/product/11.2.0

                                                     /dbhome_1/dbs/spfiletest0924.o

                                                     ra


    使用spfile启动时,sga_target  的isspecified为true,如果为false,则是使用pfile启动;

    也可以通过 show parameter spfile这个方法,如果value有值,则说明使用spfile启动。如果没有值,则又pfile启动。

    下面用pfile启动,然后再来查询这些


    sys@TEST0924> shutdown immediate

    Database closed.

    Database dismounted.

    ORACLE instance shut down.

    sys@TEST0924> startup pfile='/u01/app/oracle/product/11.2.0/dbhome_1/dbs/inittest0924.ora';

    ORACLE instance started.                                                         


    Total System Global Area 3340451840 bytes

    Fixed Size                  2232960 bytes

    Variable Size            3204451712 bytes

    Database Buffers          117440512 bytes

    Redo Buffers               16326656 bytes

    Database mounted.

    Database opened.

                                                                                                                                                       

     sys@TEST0924> select name,value,isspecified from v$spparameter where name like '%sga%';


    NAME                 VALUE                ISSPEC

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

    sga_max_size                              FALSE

    pre_page_sga                              FALSE

    lock_sga                                  FALSE

    sga_target                                FALSE


    sys@TEST0924> show parameter spfile


    NAME                                 TYPE        VALUE

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

    spfile                               string

     

    通过以上对比,可值,图中是由spfile文件启动的。
  • 相关阅读:
    Host IP地址 is not allowed to connect to this MySQL server
    本地或远程连接mysql:Unable to connect to any of the specified MySQL hosts.
    Table xxx is marked as crashed and should be repaired
    使用Linq 做数据去重
    SharePoint2010与Reporting Services集成方案
    上下左右布局(DIV+CSS)
    .NET 内存管理—CLR的工作
    删除数据库所有用户表
    未在本地计算机上注册“Microsoft.ACE.OLEDB.12.0”提供程序
    c# 10位数int时间单位换算为datetime
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13316528.html
Copyright © 2011-2022 走看看