網站首頁 編程語言 正文
Oracle11gSGA調整方法
oracle11g修改sga要先修改memory_target等參數,否則服務重啟時會出現錯誤ORA-00844: Parameter not taking MEMORY_TARGET into account, see alert log for mo
re information。
Oracle內存參數結構:
修改SGA必須保持的原則:
1.sga_target不能大于sga_max_size,可以設置為相等。
2.SGA加上PGA等其他進程占用的內存總數必須小于操作系統的物理內存。
具體命令操作如下:
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;
系統已更改。
SQL> alter system set memory_target=700m scope=spfile;
系統已更改。
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;
數據庫已經關閉。
已經卸載數據庫。
ORACLE 例程已經關閉。
SQL> startup;
ORACLE 例程已經啟動。
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 sga_target=650m scope=spfile;
系統已更改。
SQL> alter system set sga_max_size=650m scope=spfile;
系統已更改。
SQL> shutdown immediate;
數據庫已經關閉。
已經卸載數據庫。
ORACLE 例程已經關閉。
SQL> startup;
ORACLE 例程已經啟動。
Total System Global Area 686329856 bytes
Fixed Size 1335360 bytes
Variable Size 205524928 bytes
Database Buffers 473956352 bytes
Redo Buffers 5513216 bytes
數據庫裝載完畢。
數據庫已經打開。
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;?
文件已創建。
(手動修改文件中對應的memory_target參數)
SQL> startup pfile='c:inittest.ora';
ORACLE 例程已經啟動。
Total System Global Area 631926784 bytes
Fixed Size 1334996 bytes
Variable Size 205521196 bytes
Database Buffers 419430400 bytes
Redo Buffers 5640192 bytes
數據庫裝載完畢。
數據庫已經打開。
SQL> create spfile from pfile='c:inittest.ora';
文件已創建。
SQL> shutdown immediate;
數據庫已經關閉。
已經卸載數據庫。
ORACLE 例程已經關閉。
SQL> startup;
ORACLE 例程已經啟動。
Total System Global Area 631926784 bytes
Fixed Size 1334996 bytes
Variable Size 205521196 bytes
Database Buffers 419430400 bytes
Redo Buffers 5640192 bytes
數據庫裝載完畢。
數據庫已經打開。
原文鏈接:https://www.cnblogs.com/cinemaparadiso/p/16465910.html
相關推薦
- 2022-09-27 Python?Matplotlib繪制扇形圖標簽重疊問題解決過程_python
- 2022-03-18 docker容器啟動設置固定IP的實現_docker
- 2022-12-16 python靜態web服務器實現方法及代碼詳解_python
- 2022-07-03 C#并行編程之PLINQ(并行LINQ)_C#教程
- 2022-06-17 Go實現線程池(工作池)的兩種方式實例詳解_Golang
- 2023-03-18 Flutter封裝組動畫混合動畫AnimatedGroup示例詳解_Android
- 2022-07-08 分割python多空格字符串的兩種方法小結_python
- 2022-04-01 k8s Error: could not find tiller
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支