Oracle 817 For Linux/Unix安装文档

- 中国WEB开发者网络 (http://www.webasp.net)
-- 技术教程 (http://www.webasp.net/article/)
--- Oracle 817 For Linux/Unix安装文档 (http://www.webasp.net/article/27/26964.htm)
-- 作者:未知
-- 发布日期: 2005-10-24

Oracle 817安装文档

1.      创建dba组和oracle用户

root@hz_cmode # groupadd dba

root@hz_cmode # useradd -m -d /opt/oracle -s /bin/ksh -g dba oracle

root@hz_cmode # passwd oracle New password:

Re-enter new password:

passwd (SYSTEM): passwd successfully changed for oracle

2.      修改/etc/system

务必备份system,不正确修改system有可能导致操作系统不能启动

root@hz_cmode # cp /etc/system /etc/system.old

 

将下面的配置加入到system的末尾

set shmsys:shminfo_shmmax=4294967295

set shmsys:shminfo_shmmin=1

set shmsys:shminfo_shmmni=100

set shmsys:shminfo_shmseg=10

set semsys:seminfo_semmni=100

set semsys:seminfo_semmsl=1010

set semsys:seminfo_semmns=2010

set semsys:seminfo_semopm=100

set semsys:seminfo_semvmx=32767

 

重起服务器

root@hz_cmode # sync

root@hz_cmode # reboot

 

3.      Oracle软件安装

将Oracle8i Enterprise Editon(64-bit)1of2放入光驱

将以下加入oracle用户的.profile文件

ORACLE_BASE=/opt/oracle/app/oracle

ORACLE_HOME=/opt/oracle/app/oracle/product/8.1.7

ORACLE_SID=dbsg

ORACLE_OWNER=oracle

LD_LIBRARY_PATH=$ORACLE_HOME/lib

PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH ORACLE_OWNER

ORACLE_NLS33=$ORACLE_HOME/ocommon/nls/admin/data

stty erase ^H

 

以下操作需要在图形界面下完成

 

以oracle用户登陆系统,绝对路径安装

 

$ /cdrom/cdrom0/runInstaller

aspectratio="t" v:ext="edit">

点击next

 

确认Destination目录,点击next

 

输入dba,点击next

 

另开一个窗口用root用户执行/opt/oracle/app/oracle/product/8.1.7/orainstRoot.sh脚本

root@hz_cmode # /opt/oracle/app/oracle/product/8.1.7/orainstRoot.sh

Creating Oracle Inventory pointer file (/var/opt/oracle/oraInst.loc)

Changing groupname of /opt/oracle/app/oracle/oraInventory to dba.

然后点击Retry

 

点击next

 

选择Typical,点击next

 

点击next

输入datafile放置的目录,该目录oracle用户应该有读写权限。

点击next

 

点击next

 

安装程序正在复制软件到硬盘上。

 

另开个窗口确认除安装窗口外,没有其他窗口在/cdrom/cdrom0目录中,eject将光盘弹出,将Oracle8i Enterprise Editon(64-bit)2of2放入光驱

将/cdrom/disk1改为/cdrom/disk2,点击ok。

 

另开一个窗口用root用户执行/opt/oracle/db01/app/oracle/product/8.1.7/root.sh脚本

Running Oracle8 root.sh script...

 

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /opt/oracle/db01/app/oracle/product/8.1.7

    ORACLE_SID=   dbsg

 

Enter the full pathname of the local bin directory: [/usr/local/bin]:

 

Creating /var/opt/oracle/oratab file...

Entry will be added to the /var/opt/oracle/oratab file by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

IMPORTANT NOTE: Please delete any log and trace files previously

                created by the Oracle Enterprise Manager Intelligent

                Agent. These files may be found in the directories

                you use for storing other Net8 log and trace files.

                If such files exist, the OEM IA may not restart.

点击ok

 

建库过程

 

安装完毕,点击exit退出安装。

 

webasp.net