【IT168 服务器学院】系统配置: -bash-3.00# uname -a
SunOS sol10 5.10 Generic i86pc i386 i86pc
-bash-3.00# prtconf -v|grep Mem
Memory size: 512 Megabytes
一、设置系统参数
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=268435456
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
二、创建用户和组
# groupadd dba
#useradd -g dba -d /oracle -m oracle
#passwd oracle
设定oracle用户的环境变量
#su - oracle
$vi .profile
添加以下参数:
ORACLE_BASE=/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.0
ORACLE_SID=testdb
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
PATH=${ORACLE_HOME}/bin/:/bin:/sbin:/usr/local/bin:/usr/xpg4/bin:/usr/ccs/bin
LD_LIBRARY_PATH=${ORACLE_HOME}/lib:${ORACLE_HOME}/
network/lib:/usr/local/lib:/usr/lib:/usr/share/lib
DISPLAY=192.168.0.1:0.0
TEMPDIR=/var/tmp
export ORACLE_BASE ORACLE_HOME ORACLE_SID NLS_LANG PATH LD_LIBRARY_PATH DISPLAY TEMDIR
umask 022
保存退出并使设置生效
三、开始安装oracle10g
在解压
#gunzip solarisx86_DB_10_1_0_3_Disk1.cpio.gz
#cpio -ivmd
1.更改文件“/../../Disk1/install/oraparam.ini“
#vi /../../Disk1/install/oraparam.ini
找到:“Solaris=5.6,5.7,5.8,5.9“这行,在该行后面添加“5.10“,
2.更改文件“/../../Disk1/install/oraparam.var“
#vi /../../Disk1/install/oraparam.var
找到:“Solaris=5.8,5.9“这行,在该行后面添加“5.10“,
3.更改文件“/../../Disk1/install/oraparamsilent.ini“
#vi /../../Disk1/install/oraparamsilent.ini
找到:“Solaris=5.6,5.7,5.8,5.9,5“这行,在该行后面添加“5.10“,
4.更改文件“/../../Disk1/install/clusterparam.ini“,
#vi /../../Disk1/install/clusterparam.ini
找到:“Solaris=5.6,5.7,5.8,5.9,5“这行,在该行后面添加“5.10“,
5.运行安装文件
# xhost +
# su - oracle
$export DISPLAY=192.168.0.2:0.0
$./runInstaller
用SQLPLUS验证
SQL> select * from product_component_version;
PRODUCT
-----------------------------------------------------
VERSION
-----------------------------------------------------
STATUS
-----------------------------------------------------
NLSRTL
10.1.0.3.0
Production
Oracle Database 10g Enterprise Edition
10.1.0.3.0
Prod
PRODUCT
-----------------------------------------------------
VERSION
-----------------------------------------------------
STATUS
-----------------------------------------------------
PL/SQL
10.1.0.3.0
Production
TNS for Solaris:
10.1.0.3.0
PRODUCT
-----------------------------------------------------
VERSION
-----------------------------------------------------
STATUS
-----------------------------------------------------
Production