vi /etc/system
set shmsys:shminfo_shmmax=4294967295 (给oracle最大内存设为2G)
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmni=110
set semsys:seminfo_semmns=310
2. 创建用户和组
# groupadd dba
#useradd –g dba –d /export/home/oracle –m oracle
#passwd oracle (改oracle用户密码)
设定oracle用户的环境参数
#su – oracle
$vi .profile
加入内容:
ORACLE_BASE=/export/home/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.0
ORACLE_SID=ora10g
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
PATH=$ORACLE_HOME/bin:/bin:/sbin:/usr/ccs/bin:/usr/local/bin
LD_LIBRARY_PATH=$ORACLE_HOME/lib ORACLE_HOME/network/lib:/usr/local/lib:/usr/li
b
DISPLAY=192.0.0.12:0.0
TMPDIR=/var/tmp
export ORALCE_BASE ORACLE_HOME ORACLE_SID NLS_LANG PATH
LD_LIBRARY_PATH
DISPLAY TMPDIR
umask 022
保存 使.profile生效。
3.解压oracle 10g安装包
从光盘上拷到本地硬盘上。#cp -R 10g_db_i.gz /export/home
在解压 #gunzip 10g_db_i.gz
#cpio -ivmd <10g_db_i
如果这时执行/export/home/db/Disk1/run*就会出现这样的错误提示:
Checking installer requirements...
Checking operating system version: must be 5.6, 5.7, 5.8 or 5.9. Actual 5.10
Failed <<<<
Exiting Oracle Universal Installer, log for this session can be found at
/tmp/OraInstall2004-10-26_09-45-32AM/installActions2004-10-26_09-45-32AM.log
查看installActions2004-10-26_09-45-32AM.log
$ vi installActions2004-10-26_09-45-32AM.log
Using paramFile: /export/home/oracle/db/Disk1/install/oraparam.ini
Checking installer requirements...
Checking operating system version: must be 5.6, 5.7, 5.8 or 5.9. Actual 5.10
Failed <<<<
Exiting Oracle Universal Installer, log for this session can be found at /tmp/Or
aInstall2004-10-26_09-45-32AM/installActions2004-10-26_09-45-32AM.log
想要解决这个问题就要在/export/home/db/Disk1/install里,修改oraparam.ini oraparam.var
修改如下:
vi oraparam.ini
#You can customise error message shown for failure through CERTIFIED_VERSION_FAI
LURE_MESSAGE
Solaris=5.6,5.7,5.8,5.9,5.10 (就是添加5.10)
Linux=redhat-2.1AS
#HPUX=B.11.00
Decunix=V5.1A,V5.1
AIX=5.1.0.0
vi oraparam.var
#You can customise error message shown for failure through CERTIFIED_VERSION_FAI
LURE_MESSAGE
Solaris=5.8,5.9,5.10 (就是添加5.10)
Windows=4.0,5.0,5.1,5.2
Linux=redhat-2.1AS
HPUX=B.11.11
Decunix=V5.1A,V5.1
AIX=5.1.0.0
保存,在执行。./runInstaller 就OK了。
后续工作就不一一说明了。
阅读(1146) | 评论(0) | 转发(0) |