日期:2013-03-15  浏览次数:20721 次

Solaris 下安装Oracle8.17
一.用root用户做:
1.groupadd dba
2.useradd  -d dba -d $ORACLE_HOME -m -s /bin/sh oracle
3.修正/etc/group文件的最后一行如下:dba::100:oracle
4.修正/etc/passwd文件的最后一行如下:oracle:x:1001:100::/ORACLE_HOME:/bin/sh
5.mkdir /oracle;chown -R oracle:dba /oracle
6.# vi /etc/system 在最后一行后加入:
set shmsys:shminfo_shmmax=(0.5*物理内存)*1024*1024的数值
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=100
set semsys:seminfo_semmni=100
set semsys:seminfo_semmsl=100
set semsys:seminfo_semmns=200
set semsys:seminfo_semopm=100
set semsys:seminfo_semvmx=32767
set ulimit=3000000
7. passwd oracle
8.Reboot
二.用oracle 用户做:
vi /etc/oracle/.profile(.cshrc) 在最后一行加入:

#evn for install oracle
set ORACLE_BASE /data/u01/oracle
set ORACLE_HOME /data/u01/oracle/product/8.1.7
set ORACLE_TERM xsun5
set LD_LIBRARY_PATH $ORACLE_HOME/lib:/usr/openwin/lib:/usr/dt/lib
set CLASSPATH .:/data/u01/oracle/product/jdbc/lib/classes111.zip:/data/u01/oracl
e/product/jdbc/lib/nls_charset11.zip:/export/home/oracle/trade_prog
set PATH .:/export/home/oracle/trade_prog:/bin:/usr/openwin/bin:/usr/bin:/usr/uc
b:/usr/local/bin:/data/u01/oracle/product/bin
set NLS_LANG AMERICAN_AMERICA.ZHS16CGB231280
#set NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
set ORACLE_SID orcl
set DISPLAY 192.168.0.190:0.0

2.退出,再用oracle登录,使新的环境生效
3.cd /cdrom/cdrom0;./runInstaller(留意看提示,他会通知你root.sh的位置的)
4.当提示用户输入用户组的时候,以root身份运转/cdrom/cdrom0/oracle8.1.7/OraInstall/orainstRoot.sh脚本
(su; ./*.sh)
5.当安装到100%时,以root身份运转/data/oracle/product/8.1.7/root.sh脚本(留意看提示,他会通知你root.sh的位置的)

三.安装完毕后用Oracle用户做
1.运转$ORACLE_HOME/8.1.7/bin/svrmgrl
2.Connect internal
3.Shutdown
4.Startup
5.如果启动sqlplus可以用internal用户去登陆的


 

Hardware Requirements
To install Oracle8i products included with this release, your Sun SPARC Solaris
system must meet the minimum hardware requirements listed in Table 1–2.

Memory A minimum of 128 MB RAM is required to install Oracle8i
products. Oracle8i Client products require 64 MB of RAM

Disk Space Requirements

Typical 1160 MB
Minimal 985 MB
Custom Up to a maximum of 1355 MB
Swap Space Twice the amount of RAM or at least 400 MB, whichever is
greater, is recommended for most systems.

Table 1–4 Disk Space Requirements for Oracle8i Client
Administrator 435 MB
Programmer 320 MB
Application User 230 MB
Custom Up to a maximum of 440 MB


Temporary Disk Space Required by the Oracle Universal Installer
The Oracle Universal Installer requires up to 75 MB of space in the /tmp directory.
If you do not have enough space in /tmp, set the environment variable TMP_DIR to
point to a directory with sufficient space.


Table 1–6 Operating System Software Requirements
OS Software             Requirements
Operating System        Solaris 2.6 or 2.7

具体请察看联机文档