在 Solaris 11上安装Oracle 11g
转自:http://ivan.kartik.sk/oracle/install_ora11gR2_solaris11.html
Installation of Oracle 11g Release 2 on Solaris 11 Express x86 and SPARC
This paper (HOWTO) describes step-by-step installation of Oracle 11g release 2 database software on Solaris 11 Express x86 and SPARC.
This paper covers following steps:
Pre-Instalation Tasks
1. Create oracle User AccountLogin as root and create user oracle which belongs to oinstall,dba,asmdba and asmadmin groups.
# groupadd dba
# groupadd oinstall
# groupadd asmdba
# groupadd asmadmin
# echo "oracle localhost:/export/home/&" >> /etc/auto_home
# useradd -g oinstall -G dba,asmdba,asmadmin -m -d /home/oracle -s /bin/bash oracle
# passwd oracle
Note: "#" sign means that you need execute this command as root user.# groupadd oinstall
# groupadd asmdba
# groupadd asmadmin
# echo "oracle localhost:/export/home/&" >> /etc/auto_home
# useradd -g oinstall -G dba,asmdba,asmadmin -m -d /home/oracle -s /bin/bash oracle
# passwd oracle
You can separate ASM and DBA roles between more users. You can create for example "asm" user as ASM administrator. If you don't plan to use ASM then you don't need to create asmdba and asmadmin groups.
2. Setting System parameters
Execute following commands to configure system settings for Oracle.
# projadd -U oracle -K "project.max-shm-memory=(priv,5g,deny)" user.oracle
# projmod -sK "project.max-sem-nsems=(priv,512,deny)" user.oracle
# projmod -sK "project.max-sem-ids=(priv,128,deny)" user.oracle
# projmod -sK "project.max-shm-ids=(priv,128,deny)" user.oracle
Note:# projmod -sK "project.max-sem-nsems=(priv,512,deny)" user.oracle
# projmod -sK "project.max-sem-ids=(priv,128,deny)" user.oracle
# projmod -sK "project.max-shm-ids=(priv,128,deny)" user.oracle
- Use "projects -l user.oracle" command to check the settings.
- Values for max-sem-nsems, max-sem-ids, max-shm-ids as shown in above example are the defaults. You need not to specified them unless you want to set higher values.
More info at http://docs.sun.com/app/docs/doc/817-0404/chapter1-33?a=view
- Example (as above) represents setting for "oracle" user. In case your "dba" group will contain more members than "oracle" user then define limits for group (group.dba) instead of user (user.oracle).
Execute following commands to configure network settings for Oracle.
# ipadm set-prop -p smallest_anon_port=9000 tcp
# ipadm set-prop -p largest_anon_port=65500 tcp
# ipadm set-prop -p smallest_anon_port=9000 udp
# ipadm set-prop -p largest_anon_port=65500 udp
Note: Don't use "ndd" command otherwise settings will not remain persistent.
# ipadm set-prop -p largest_anon_port=65500 tcp
# ipadm set-prop -p smallest_anon_port=9000 udp
# ipadm set-prop -p largest_anon_port=65500 udp
Check the settings using following command:
# ipadm show-prop|grep anon|egrep 'tcp|udp'
tcp largest_anon_port rw 65500 65500 65535 1024-65535
tcp smallest_anon_port rw 9000 9000 32768 1024-65535
udp largest_anon_port rw 65500 65500 65535 1024-65535
udp smallest_anon_port rw 9000 9000 32768 1024-65535
tcp largest_anon_port rw 65500 65500 65535 1024-65535
tcp smallest_anon_port rw 9000 9000 32768 1024-65535
udp largest_anon_port rw 65500 65500 65535 1024-65535
udp smallest_anon_port rw 9000 9000 32768 1024-65535