OCP-1Z0-052-V8 02-119題
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow
也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!
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
[email protected]> 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
[email protected]> 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啟動,然後再來查詢這些
[email protected]> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
[email protected]> 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.
[email protected]> 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
[email protected]> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string
通過以上對比,可值,圖中是由spfile檔案啟動的。