Solaris10安装Oracle10gR2

硬件要求:
At least 512 MB of physical RAM
Swap的大小是随着内存大小变化的,如下表:
RAM Swap Space
Up to 512 MB 2 times the size of RAM
Between 1024 MB and 2048 MB 1.5 times the size of RAM
Between 2049 MB and 8192 MB Equal to the size of RAM
More than 8192 MB 0.75 times the size of RAM
400M的/tmp,4G以上的/opt(假设数据库装在/opt目录下),根分区至少2G的剩余空间
检查内存大小: # /usr/sbin/prtconf | grep "Memory size"
检查Swap大小:#/usr/sbin/swap -s
检查磁盘空间: #df -k

检查是否安装了必须的包:
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm \ SUNWlibms SUNWsprot SUNWtoo SUNWi1of \
SUNWi1cs SUNWi15cs SUNWxwfnt
system SUNWarc Lint Libraries (usr)
......
ERROR: information for " SUNWlibms" was not found
ERROR: information for "SUNWi1cs" was not found
ERROR: information for "SUNWi15cs" was not found
SUNWi1cs和SUNWi15cs这两个分别是X11 ISO8859-1 Codeset Support和 X11 ISO8859-15 Codeset Support
SUNWlibms是Math & Microtasking Libraries
安装缺失的软件包:
#cd /cdrom/sol_10_305_x86/s2/Solaris_10/Product
#pkgadd -d ./ SUNWi15cs
#pkgadd -d ./ SUNWi1cs
#pkgadd -d ./ SUNWlibms

配置内核参数:
#vi /etc/system
set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
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

增加Oracle组和用户:
#groupadd oinstall
#groupadd dba
# /usr/sbin/useradd -g oinstall -G dba –d /export/home/oracle -s /usr/bin/bash -m oracle
#修改oracle用户的密码:passwd oracle

以Oracle用户身份编辑自己家目录下的.profile,创建oracle的环境变量:
$vi .profile
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2
ORACLE_SID=orcl
PATH=$ORACLE_HOME/bin:/bin:/sbin:/usr/ccs/bin:/usr/local/bin:$PATH
export ORALCE_BASE ORACLE_HOME ORACLE_SID PATH

用root身份创建Oracle安装目录:
#mkdir /opt/oracle
#mkdir -p /opt/oracle/product/10.2
#chown -R oracle:oinstall /opt/oracle

设置完毕后重启机器,在登录界面属性处选择C-POSIX以oracle用户登录,在终端中运行./runInstaller 开始安装,应该没什么困难,就到这里了。

你可能感兴趣的:(oracle,职场,休闲,solaris10,Oracle10gR2)