快捷索引

IPB Image
http://www.oracle.com/admin/images/ocom/oralogo_small.gif

为了方便大家使用,我写的一个安装文档,仅供参考

安装方法(原创)

安装前准备
1.1. 创建用户和组
# scoadmin->account manager->groups->add new group
创建 dba组
users->add new user
创建oracle用户,并把oracle用户添加到dba组去,更改Login group 为dba组
1.2. 修改环境变量
用oracle用户登录
# su – oracle
编辑.profile文件
$ vi .profile
在文件中加入下面几行
ORACLE_BASE=/u/oracle
ORACLE_HOME=/u/oracle/product/734
ORACLE_SID=oracle
ORACLE_TERM=ansi
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
ORACLE_NLS32=$ORACLE_HOME/ocommon/nls/admin/data
ORACLE_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/opt/bin:/usr/lbin:.
ULIMIT=2297152
TERM=ansi
TMPDIR=/u/tmp
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/opt/bin:/usr/lbin:.
export ORACLE_BASE ORACLE_HOME ORACLE_SID
export ORACLE_TERM LD_LIBRARY_PATH
export ORACLE_NLS32 ORACLE_PATH ULIMIT TERM TMPDIR PATH
NLS_LANG=AMERICAN_AMERICA.ZHS16CGB231280
export NLS_LANG
export LANG=english_us.8859
set –o vi
export EDITOR=vi

1.3. 特殊设置
SCO505用户
需要打补丁oss459b
# mv oss459b /tmp/VOL.000.000
# custom->Software->Install New->From scosysv->Media Image
输入路径 /tmp
然后就OK了。
如果没有补丁,这里有 (在资源中的安装文档里)
SCO507用户
$ su –
Passwd:
# cd /opt/K/SCO/unixds/5.2.0A/usr/ccs/lib
下面这两个文件不要弄丢了,装完后还要改回来
# mv crt0.o crt0.o.bak
# mv crt1.o crt1.o.bak
从SCO5.0.5的/opt/K/SCO/unixds/5.1.1A//lib下把这两个同名文件COPY过来。如果你没有,点击这里 (在资源的安装文档里)
1.4. 建临时目录
$ su –
Passwd:
# mkdir /u/tmp
# chmod 777 tmp
# vi /etc/services
找到1521这个端口,把这一行用“#”注释掉,再添加一行
listener 1521/tcp
1.5. 改核心参数
# /etc/conf/bin/idtune NBUF 20000
# /etc/conf/bin/idtune NHBUF 262144
# /etc/conf/bin/idtune NMPBUF 500
# /etc/conf/bin/idtune MAXUP 300
# /etc/conf/bin/idtune SEMMNI 70
# /etc/conf/bin/idtune SHMMAX 65536000
重新连接核心
# /etc/conf/cf.d/link_unix -y
# sync
# reboot

1.6. 开始安装
# mount /dev/cd0 /mnt
# su – oracle
$ cd /mnt/orainst
$ ./orainst
当出现
Select the installation method,
either Default Install or Custom Install, and whether
you want to view the Readme files:
选择Custom Install
当出现
Select the Installer activity:
选择默认Install, Upgrade, or De-Install Software
当出现
Select the Installer option:
Note: there are two different Install New Product
options.
选择Install New Product – Create DB Objects
当出现
Confirm, change, or enter values for the environment variables
listed:
直接回车
当出现
Confirm (or Change) Log File Location:
If current versions of these log files exist in these locations,
they will be archived and reinitialized. Select Help for more
details.
直接回车
当出现
Your platform requires the root user to perform certain pre-
installation OS preparation. The root user should run the shell
script ‘rootpre.sh’ before you proceed with Oracle installation.
rootpre.sh can be found in the newoi/ directory (if installing
from tape) or the orainst/ directory (if installing from CDROM).

Select (Yes) if root has run ‘rootpre.sh’ so you can proceed with
Oracle installation. Select (No) to abort installation and then
ask root to run ‘rootpre.sh’.
先不要动,重新开一屏,用root登录
# cp /mnt/orainst/rootpre.sh /tmp
# cp /mnt/orainst/orafiles
# cd /tmp
# vi rootpre.sh
在ORACLE_LPSTAT="/usr/bin/lpstat"下面一行加一个环境变量ORACLE_HOME
ORACLE_HOME= /u/oracle/product/734
# sh rootpre.sh
Do you want to install Oracle Icons for SCO ODT System? (Y/N) N
Exit Oracle Icon Installation
Continue with rootpre.sh ? (Y/N) y
Please enter the name of oracle user: oracle
Please enter the group the oracle user belongs to: dba
The following files will be created:
Filename Owner Group Mode
/usr/lbin/oraenv oracle dba 644
/usr/lbin/coraenv oracle dba 644
/usr/lbin/dbhome oracle dba 755
/etc/oratab oracle dba 644
/etc/sqlnet oracle dba 644
/etc/tnsnames.ora oracle dba 644
/etc/listener.ora oracle dba 644
Continue with the above settings? (Y/N) y
Are you installing Oracle through a floppy device? (Y/N) n
Please continue installation with Oracle*Installer as oracle user.
OK后,再切到原来的shell,选择(YES)继续
当出现
Select one of the following:
选择(o) Install from CD-ROM
当出现
Select the native language to be installed:
选择Simplified Chinese
当出现
Do you want to relink Oracle product executables? By default, the
Installer will not relink any product executables, with the
exception of the Oracle7 Server, which is relinked automatically
if necessary.
选择默认
当出现
Post-installation steps that need to be run by root will
be written to /u/oracle/product/734/orainst/root.sh.
选择默认

然后选择你要安装的组件
安装完成后
# cd /u/oracle/product/734/orainst
# sh root.sh
Running ORACLE7 root.sh script…

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u/oracle/product/734
ORACLE_SID= oracle
Are these settings correct (Y/N)? [Y]: y

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

Checking for "oracle" user id…
ORACLE_HOME does not match the home directory for oracle.
Okay to continue? [N]: y
Updating /etc/oratab file…

Leaving common section of ORACLE7 root.sh.
现在你的ORACLE就可以用了。



会员福利

资源无源时,可利用百度网盘 & 迅雷云盘取回

此内容仅供注册用户。请 %登录%.

神秘内容,请 登录 / 注册 后查看

会员可见全站福利 !




文章类别:

本文链接: http://www.books51.com/157322.html

【点击下方链接,复制 & 分享文章网址】

oracle 734 for sco openserver+安装文档 → http://www.books51.com/157322.html

上一篇:

下一篇:

0 ratings, 0 votes0 ratings, 0 votes (0 次顶, 0已投票)
你必须注册后才能投票!
Loading...

添加新评论