Oracle 11g 在solaris 10 上核心引數的設定
Solaris 8,9 核心引數的設定是透過/etc/system來完成的,修改後需要重新啟動OS.
Solaris 10 採用資源控制的方法,此時有部分引數在/etc/system中的設定將不再起作用。 Oracle 官方文件的原話如下:
On Solaris 10, verify that the kernel parameters shown in the following table are set to values greater than or equal to the minimum value shown. The table also contains the resource controls that replace the /etc/system file for a specific kernel parameter. As Oracle Database does not set project information when starting proceses, some /etc/system processes that are deprecated but not removed must still be set for Oracle Database.
Note:
On Solaris 10, you are not required to make changes to the /etc/system file to implement the System V IPC. Solaris 10 uses the resource control facility for its implementation. However, Oracle recommends that you set both resource control and /etc/system/ parameters. Operating system parameters not replaced by resource controls continue to affect performance and security on Solaris 10 systems. For further information, contact your Sun vendor.Parameter | Replaced by Resource Control | Minimum Value |
---|---|---|
noexec_user_stack | NA | 1 |
semsys:seminfo_semmni | project.max-sem-ids | 100 |
semsys:seminfo_semmns | NA | 1024 |
semsys:seminfo_semmsl | process.max-sem-nsems | 256 |
semsys:seminfo_semvmx | NA | 32767 |
shmsys:shminfo_shmmax | project.max-shm-memory | 4294967295 |
shmsys:shminfo_shmmni | project.max-shm-ids | 100 |
具體在實施過程中,最好把這些引數都在/etc/systems做設定,也可只設NA相關的條目;然後對於非NA專案更改project,進行資源控制。
對於/etc/system設定如下:
set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=25600
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
對於project 設定如下:
id -p oracle
uid=1001(oracle) gid=101(oradba) projid=3(default)
看出它使用的default的project.
建立一個project, 用來控制oracle 的使用者資源
#:/export/home/oracle\> projadd -U oracle user.oracle
永久性的設定一下資源控制:
projmod -sK "project.max-shm-memory=(privileged,4G,deny)" user.oracle projmod -sK "project.max-shm-ids=(privileged,100,deny)" user.oracle
projmod -sK "process.max-sem-nsems=(privileged,256,deny)" user.oracle
projmod -sK "project.max-sem-ids=(privileged,100,deny)" user.oracle
檢視設定的結果:
# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
user.oracle:100::oracle::process.max-sem-nsems=(privileged,256,deny);project.max-sem-ids=(privileged,100,deny);project.max-shm-ids=(privileged,100,deny);project.max-shm-memory=(privileged,4294967296,deny)
驗證修改結果:
#:/export/home/oracle\> prctl -n project.max-shm-memory -i process $$
process: 24431: -bash
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 4.00GB - deny -
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/674865/viewspace-700482/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- solaris 10 安裝 oracle 11g R2核心引數設定Oracle
- 在Solaris10上配置核心引數
- 安裝ORACLE時在Linux上設定核心引數的含義OracleLinux
- Oracle和SUN Solaris核心引數Oracle
- Oracle和SUN Solaris核心引數(轉)Oracle
- solaris10中安裝oracle核心引數的調整Oracle
- Solaris 10上安裝Oracle 11gOracle
- Oracle 11g 關於 AWR 的引數設定Oracle
- Solaris10的上安裝Oracle時需要調整的系統引數Oracle
- (轉)redhat下安裝oracle,設定redhat核心引數RedhatOracle
- Oracle 核心引數Oracle
- ORACLE核心引數Oracle
- Oracle 11G 資料庫重要的初始化引數設定Oracle資料庫
- 系統核心引數 設定 systemv (ipc)
- Oracle10g在Solaris10上的安裝配置(轉)Oracle
- Oracle CSS的引數設定 心跳時間設定OracleCSS
- ORACLE JOB INTERVAL引數設定Oracle
- 在solaris 10上安裝oracle 10g資料庫Oracle 10g資料庫
- 安裝oracle資料庫時,設定linux核心引數的意義Oracle資料庫Linux
- Oracle Sequence不設定cache引數的幾個潛在問題Oracle
- Oracle安裝時shmmax引數的設定OracleHMM
- oracle 10gR2 在solaris 10 x86 上的安裝文件Oracle 10g
- 談談ORACLE核心引數Oracle
- oracle核心引數意義Oracle
- solaris中如何設定解析度?在solaris中設定解析度的方法教程
- ORACLE COL SET 設定顯示引數Oracle
- oracle 安裝相關引數設定Oracle
- Oracle歸檔引數設定問題Oracle
- 初識oracle SGA之引數設定Oracle
- oracle中引數session和 processes的設定(轉)OracleSession
- Linux上shmmax引數的設定及含義LinuxHMM
- 如何在 Fedora 30 中設定核心命令列引數命令列
- 在Solaris 11上安裝Oracle 11.2.0.3Oracle
- Solaris下設定Oracle自啟動Oracle
- [轉帖]Redis相關的核心引數解釋與設定Redis
- 2.6.10 設定許可證引數
- oracle rac 核心引數詳解Oracle
- 在oracle 10g for solaris 5.10上修改db_name|db_idOracle 10g