[20210723]Minimum sga_target.txt
[20210723]Minimum sga_target.txt
https://nenadnoveljic.com/blog/minimum-sga_target/
min_sga_target = k * cpu_count + C
k = 20.47M , C = 120M
2576=120*k+c
1348=60*k+c
k= (2576-1348)/60 = 20.46666666666666666666
c= 1348-60*20.46666666666666666666 = 120.0000000000000000004
--//以上是作者的測試結果.
--//我的測試如下:
--//我的測試環境是cpu_count=24
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
$ cat inittest.ora
cpu_count=1
db_name=xxxx
instance_name=xxxx
sga_target = 100M
$ export ORACLE_SID=test
$ seq 25 | xargs -IQ echo "sed -i \"1s/cpu_count=.*/cpu_count=Q/\" inittest.ora ; sqlplus -s -l / as sysdba <<<'startup nomount'" | bash | grep "^ORA-00821"| awk '{print NR,$NF}'
--//注意sed使用-i替換檔案.
1 168M
2 172M
3 188M
4 204M
5 208M
6 224M
7 228M
8 248M
9 252M
10 268M
11 272M
12 288M
13 292M
14 308M
15 312M
16 328M
17 336M
18 356M
19 360M
20 380M
21 392M
22 408M
23 412M
24 436M
25 436M
$ seq 25 | xargs -IQ echo "sed -i \"1s/cpu_count=.*/cpu_count=Q/\" inittest.ora ; sqlplus -s -l / as sysdba <<<'startup nomount'" | bash | grep "^ORA-00821"
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 168M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 172M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 188M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 204M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 208M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 224M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 228M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 248M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 252M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 268M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 272M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 288M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 292M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 308M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 312M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 328M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 336M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 356M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 360M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 380M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 392M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 408M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 412M
ORA-00821: Specified value of sga_target 100M is too small, needs to be at least 436M
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2782890/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- B - Minimum Sum
- Range Minimum Sum
- [20210723]Database link and user defined datatypes.txtDatabase
- Leetcode Minimum Path SumLeetCode
- LintCode-Minimum Subarray
- LintCode-Minimum Path Sum
- Leetcode-Minimum Path SumLeetCode
- [LeetCode] Minimum Size Subarray SumLeetCode
- Leetcode Minimum Window SubstringLeetCode
- Minimum Path Sum leetcode javaLeetCodeJava
- ABC 368D Minimum Steiner Tree
- [LeetCode] 727. Minimum Window SubsequenceLeetCode
- LeetCode-Minimum Size Subarray SumLeetCode
- LeetCode-Minimum Height TreesLeetCode
- Leetcode Minimum Depth of Binary TreeLeetCode
- LintCode-Minimum Adjustment Cost
- Leetcode-Minimum Window SubstringLeetCode
- Minimum Window Substring leetcode javaLeetCodeJava
- [USACO23DEC] Minimum Longest Trip G3D
- 64 - Minimum Path Sum 最小路徑和
- The minimum required version for Powerlevel10k is 5.1UI
- [20210723]adrci show 'No ADR base is set' 解決辦法.txt
- Find Minimum in Rotated Sorted Array leetcode javaLeetCodeJava
- Leetcode-Minimum Depth of Binary TreeLeetCode
- Leetcode-Find Minimum in Rotated Sorted ArrayLeetCode
- Minimum Depth of Binary Tree leetcode javaLeetCodeJava
- [每日一題]452. Minimum Number of Arrows to Burst Balloons每日一題
- [LeetCode] 857. Minimum Cost to Hire K WorkersLeetCode
- rancher 的 deployment does not have minimum availability 問題AI
- 【Leetcode】453. Minimum Moves to Equal Array ElementsLeetCode
- LeetCode のminimum-depth-of-binary-treeLeetCode
- hdu 1394 Minimum Inversion Number 【線段樹查詢】
- Leetcode 453. Minimum Moves to Equal Array ElementsLeetCode
- Leetcode-Find Minimum in Rotated Sorted Array IILeetCode
- HUST 1010-The Minimum Length-KMPKMP
- Leetcode 209. Minimum Size Subarray SumLeetCode
- CodeForces - 976A:Minimum Binary Number(水題)
- LeetCode 209. Minimum Size Subarray Sum ?LeetCode