[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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20210723]Database link and user defined datatypes.txtDatabase
- B - Minimum Sum
- Range Minimum Sum
- [20210723]adrci show 'No ADR base is set' 解決辦法.txt
- 64. Minimum Path Sum
- HDU 1385 Minimum Transport Cost
- [LeetCode] 727. Minimum Window SubsequenceLeetCode
- 111-Minimum Depth of Binary Tree
- cf1072D. Minimum path(BFS)
- 671-Second Minimum Node In a Binary Tree
- LeetCode のminimum-depth-of-binary-treeLeetCode
- LeetCode 209. Minimum Size Subarray Sum ?LeetCode
- Find Minimum in Rotated Sorted Array I & II
- Leetcode 209. Minimum Size Subarray SumLeetCode
- ABC 368D Minimum Steiner Tree
- [LeetCode] 857. Minimum Cost to Hire K WorkersLeetCode
- [LeetCode] 671. Second Minimum Node In a Binary TreeLeetCode
- 64 - Minimum Path Sum 最小路徑和
- LeetCode | 153. Find Minimum in Rotated Sorted ArrayLeetCode
- [USACO23DEC] Minimum Longest Trip G3D
- The minimum required version for Powerlevel10k is 5.1UI
- [LeetCode] 3096. Minimum Levels to Gain More PointsLeetCodeAI
- [LeetCode] 2406. Divide Intervals Into Minimum Number of GroupsLeetCodeIDE
- 【Leetcode】453. Minimum Moves to Equal Array ElementsLeetCode
- CodeForces - 976A:Minimum Binary Number(水題)
- HDU 1394 Minimum Inversion Number (暴力+線段樹)
- rancher 的 deployment does not have minimum availability 問題AI
- composer突然出現 minimum-stabilty問題
- [每日一題]452. Minimum Number of Arrows to Burst Balloons每日一題
- [LeetCode] 1750. Minimum Length of String After Deleting Similar EndsLeetCodeMILA
- LeetCode 452. Minimum Number of Arrows to Burst Balloons Sort/MediumLeetCode
- [LeetCode] 3239. Minimum Number of Flips to Make Binary Grid Palindromic ILeetCode
- Codeforces Round 903 (Div. 3) F. Minimum Maximum Distance
- [LeetCode] 2134. Minimum Swaps to Group All 1s Together IILeetCode
- 題解:AT_abc368_d[ABC368D] Minimum Steiner Tree
- 圖論之帶權圖「最小生成樹(Minimum Span Tree)」圖論
- Your host does not meet minimum requirements to run VMware workstation with hyper-v or device/credenUIREMdev
- Minimum Moves to Equal Array Elements 最小移動次數使陣列元素相等陣列