欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

設(shè)置數(shù)據(jù)庫為自動內(nèi)存管理

設(shè)置數(shù)據(jù)庫自動內(nèi)存管理主要是設(shè)置兩個參數(shù):

創(chuàng)新互聯(lián)專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于成都做網(wǎng)站、成都網(wǎng)站制作、路北網(wǎng)絡(luò)推廣、小程序設(shè)計、路北網(wǎng)絡(luò)營銷、路北企業(yè)策劃、路北品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運營等,從售前售中售后,我們都將竭誠為您服務(wù),您的肯定,是我們最大的嘉獎;創(chuàng)新互聯(lián)為所有大學(xué)生創(chuàng)業(yè)者提供路北建站搭建服務(wù),24小時服務(wù)熱線:18982081108,官方網(wǎng)址:chinadenli.net

memory_max_target

memory_target

如果這兩個參數(shù)設(shè)置為0說明數(shù)據(jù)庫內(nèi)存采用手動管理,反之則為自動管理。

關(guān)閉數(shù)據(jù)庫。

SQL> startup nomount

ORA-00838: Specified value of MEMORY_TARGET is too small, needs to be at least 6384M

--這里之所以報錯是我之前alter system set MEMORY_TARGET='1536M' scope='spfile';

因為之前系統(tǒng)分配給SGA的內(nèi)存就這么大,我設(shè)置的參數(shù)絕對不能超過SGA,這也就是導(dǎo)致修改完參數(shù)重啟數(shù)據(jù)庫出錯的原因。

SQL> create pfile ='/home/oracle/initora11g.ora' from spfile;

File created.

創(chuàng)建pfile文件,然后修改pfile文件設(shè)置這兩個參數(shù)大小為7G。

[oracle@TestServer dbhome_1]$ vi /home/oracle/initora11g.ora

atsdb.__db_cache_size=16777216

atsdb.__java_pool_size=16777216

atsdb.__large_pool_size=16777216

atsdb.__oracle_base='/opt/app/oracle'#ORACLE_BASE set from environment

atsdb.__pga_aggregate_target=5083496448

atsdb.__sga_target=1610612736

atsdb.__shared_io_pool_size=0

atsdb.__shared_pool_size=1526726656

atsdb.__streams_pool_size=16777216

*.audit_file_dest='/opt/app/oracle/admin/atsdb/adump'

*.audit_trail='db'

*.compatible='11.2.0.0.0'

*.control_files='/opt/app/oracle/oradata/atsdb/control01.ctl','/opt/app/oracle/flash_recovery_area/atsdb/control02.ctl'

*.db_block_size=8192

*.db_domain=''

*.db_name='atsdb'

*.db_recovery_file_dest='/opt/app/oracle/flash_recovery_area'

*.db_recovery_file_dest_size=4070572032

*.diagnostic_dest='/opt/app/oracle'

*.dispatchers='(PROTOCOL=TCP) (SERVICE=atsdbXDB)'

*.global_names=FALSE

*.memory_max_target=7610612736

*.memory_target=7610612736

*.open_cursors=300

*.pga_aggregate_target=5078253568

*.processes=3000

*.remote_login_passwordfile='EXCLUSIVE'

*.sessions=3555

*.sga_target=1610612736

*.undo_tablespace='UNDOTBS1'

修改完成之后從pfile啟動數(shù)據(jù)庫:

SQL>='/home/oracle startup pfile/initora11g.ora'

ORACLE instance started.

Total System Global Area 7616245760 bytes

Fixed Size                  2214496 bytes

Variable Size            6979323296 bytes

Database Buffers          603979776 bytes

Redo Buffers               30728192 bytes

Database mounted.

Database opened.

可以看到數(shù)據(jù)庫已經(jīng)重新啟動,因為剛才是在pfile中修改的參數(shù),現(xiàn)在同步到spfile中:

SQL> create spfile from pfile='/home/oracle/initora11g.ora';

File created.

SQL> show parameter memory

NAME                                 TYPE

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

VALUE

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

hi_shared_memory_address             integer

0

memory_max_target                    big integer

7296M

memory_target                        big integer

7296M

shared_memory_address                integer

0

SQL> 

這里也可以看到現(xiàn)在數(shù)據(jù)庫是采用自動內(nèi)存管理的。

成功。

當(dāng)前標(biāo)題:設(shè)置數(shù)據(jù)庫為自動內(nèi)存管理
文章地址:http://chinadenli.net/article20/gigsjo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供面包屑導(dǎo)航App設(shè)計、商城網(wǎng)站網(wǎng)站收錄、移動網(wǎng)站建設(shè)、服務(wù)器托管

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

營銷型網(wǎng)站建設(shè)