網(wǎng)站首頁 編程語言 正文
Oracle11gSGA調(diào)整方法
oracle11g修改sga要先修改memory_target等參數(shù),否則服務重啟時會出現(xiàn)錯誤ORA-00844: Parameter not taking MEMORY_TARGET into account, see alert log for mo
re information。
Oracle內(nèi)存參數(shù)結構:
修改SGA必須保持的原則:
1.sga_target不能大于sga_max_size,可以設置為相等。
2.SGA加上PGA等其他進程占用的內(nèi)存總數(shù)必須小于操作系統(tǒng)的物理內(nèi)存。
具體命令操作如下:
C:UsersAdministrator>sqlplus/nolog
SQL*Plus: Release 11.1.0.6.0 - Production on 星期三 2月 22 10:51:08 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL> conn sys/sys as sysdba;
已連接。
SQL> show sga;
Total System Global Area 631926784 bytes
Fixed Size 1334996 bytes
Variable Size 205521196 bytes
Database Buffers 419430400 bytes
Redo Buffers 5640192 bytes
SQL> alter system set memory_max_target=700m scope=spfile;
系統(tǒng)已更改。
SQL> alter system set memory_target=700m scope=spfile;
系統(tǒng)已更改。
SQL> show sga;
Total System Global Area 631926784 bytes
Fixed Size 1334996 bytes
Variable Size 205521196 bytes
Database Buffers 419430400 bytes
Redo Buffers 5640192 bytes
SQL> shutdown immediate;
數(shù)據(jù)庫已經(jīng)關閉。
已經(jīng)卸載數(shù)據(jù)庫。
ORACLE 例程已經(jīng)關閉。
SQL> startup;
ORACLE 例程已經(jīng)啟動。
Total System Global Area 631926784 bytes
Fixed Size 1334996 bytes
Variable Size 205521196 bytes
Database Buffers 419430400 bytes
Redo Buffers 5640192 bytes
數(shù)據(jù)庫裝載完畢。
數(shù)據(jù)庫已經(jīng)打開。
SQL> alter system set sga_target=650m scope=spfile;
系統(tǒng)已更改。
SQL> alter system set sga_max_size=650m scope=spfile;
系統(tǒng)已更改。
SQL> shutdown immediate;
數(shù)據(jù)庫已經(jīng)關閉。
已經(jīng)卸載數(shù)據(jù)庫。
ORACLE 例程已經(jīng)關閉。
SQL> startup;
ORACLE 例程已經(jīng)啟動。
Total System Global Area 686329856 bytes
Fixed Size 1335360 bytes
Variable Size 205524928 bytes
Database Buffers 473956352 bytes
Redo Buffers 5513216 bytes
數(shù)據(jù)庫裝載完畢。
數(shù)據(jù)庫已經(jīng)打開。
SQL> show sga;
Total System Global Area 686329856 bytes
Fixed Size 1335360 bytes
Variable Size 205524928 bytes
Database Buffers 473956352 bytes
Redo Buffers 5513216 bytes
附:ora-00844錯誤解決辦法:
SQL> create pfile='c:inittest.ora' from spfile;?
文件已創(chuàng)建。
(手動修改文件中對應的memory_target參數(shù))
SQL> startup pfile='c:inittest.ora';
ORACLE 例程已經(jīng)啟動。
Total System Global Area 631926784 bytes
Fixed Size 1334996 bytes
Variable Size 205521196 bytes
Database Buffers 419430400 bytes
Redo Buffers 5640192 bytes
數(shù)據(jù)庫裝載完畢。
數(shù)據(jù)庫已經(jīng)打開。
SQL> create spfile from pfile='c:inittest.ora';
文件已創(chuàng)建。
SQL> shutdown immediate;
數(shù)據(jù)庫已經(jīng)關閉。
已經(jīng)卸載數(shù)據(jù)庫。
ORACLE 例程已經(jīng)關閉。
SQL> startup;
ORACLE 例程已經(jīng)啟動。
Total System Global Area 631926784 bytes
Fixed Size 1334996 bytes
Variable Size 205521196 bytes
Database Buffers 419430400 bytes
Redo Buffers 5640192 bytes
數(shù)據(jù)庫裝載完畢。
數(shù)據(jù)庫已經(jīng)打開。
原文鏈接:https://www.cnblogs.com/cinemaparadiso/p/16465910.html
相關推薦
- 2022-12-21 Python中Turtle庫改變畫筆(海龜)方向的兩種方法總結_python
- 2022-03-14 JasperReport報表導出PDF中文不顯示的問題
- 2023-07-08 you may have an infinite update loop in a componen
- 2023-01-20 Django如何實現(xiàn)RBAC權限管理_python
- 2023-04-28 react如何獲取URL中參數(shù)_React
- 2022-11-17 Go語言學習教程之指針的示例詳解_Golang
- 2022-04-11 Matplotlib直方圖繪制中的參數(shù)bins和rwidth的實現(xiàn)_python
- 2022-10-05 使用?Swift?Package?插件生成代碼的示例詳解_Swift
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細win安裝深度學習環(huán)境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結構-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支