- 论坛徽章:
- 0
|
有关系!!
网上的相关贴:
oracle7.3.4 for openserver 507的安装
1. 调SCO系统参数
调整系统核心参数
# /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 共享内存看实际情况来调整
修改完毕
# /etc/conf/cf.d/link_unix
从新启动系统
# sync
# reboot
2.创建oracle用户和dba组
指明Oracle用户的根目录(例如:/u/oracle)
指明用户属于dba组
3.编辑oracle用户的.profile
以oracle用户登陆编辑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
退出oracle用户登陆。
4.安装前准备
#mkdir /u/tmp
#chmod 777 /u/tmp
编辑/etc/services文件修改:
#vi /etc/services
#ncube-lm 1521/tcp #nCube License Manager 将这一行注释掉
listener 1521/tcp 添加一行
ncube-lm 1521/udp #nCube License Manager
5.开始安装
插入Oracle 7.3.4 Enterprise Edition光盘,开始安装
用root用户登陆装载光盘:
#mount –f RCKRDG,lower /dev/cd0 /mnt
#exit
退出root用户,以oracle用户登陆:
$cd /mnt/orainst
$./orainst
a. 当提示 Select the installation method,
either Default Install or Custom Install, and whether
you want to view the Readme files:
选择:
[ ] Default Install
[ * ] Custom Install
[ ] Display readme Files for this Release
b. 提示Select the Installer activity:
选择默认:
(o) Install, Upgrade, or De-Install Software
( ) Create/Upgrade Database Objects
( ) Perform Administrative Tasks
c. 提示Select the Installer option:
Note: there are two different Install New Product options.
选择:
Install New Product - Create DB Objects
Install New Product - Do Not Create DB Objects
Add/Upgrade Software
Build Oracle7 Staging Area
Install Documentation Only
De-Install Software
d. 提示Confirm, change, or enter values for the environment variables listed:
选择:
ORACLE_BASE: /u/oracle
ORACLE_HOME: /u/oracle/product/734
e. 提示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.
选择:
Installer Log: /u/oracle/product/734/orainst/install.l
SQL Log: /u/oracle/product/734/orainst/sql.log
Makefile Log: /u/oracle/product/734/orainst/make.log
OS Log: /u/oracle/product/734/orainst/os.log
f. 提示 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'.
切换新的一屏,oracle用户登陆
$su
#cd /mnt/orainst
# ./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.
g. 提示Select one of the following:
选择cdrom安装:
(o) Install from CD-ROM
( ) Install from Floppy
( ) Install from Staging Area
h. 提示Select the native language to be installed:
选择中文:
Simplified Chinese
i. 提示 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.
选择默认即可。
j. 提示 The /u/oracle/product/734/orainst/root.sh file already
exists. Select one of the following actions:
选择OK继续
k. 提示 选择安装的包对话匡
1.这时要注意首先安装
TCP/IP Protocol Adapter (V2) 2.3.4.0.0
PL/SQL V 2.3.4.0.0
PRO*C 2.2.4.0.0
SQL*Net (V2) 2.3.4.0.0
SQL*PLUS 3.3.4.0.0
安完后提示:
The requested action has been performed for selected 3) 3
3 3 products. 3 3
3 3 3 3
3 3 Certain product setup actions need to be performed by 3 3
3 3 the 'root' user after successful installation. Upon 3 3
3 3 completion of installation, please log in as 'root' and 3 3
3 3 run the root.sh script. 3 3
3 3 3 3
3 3 3 3
3 3 Select (Help) for more details on what you can do next. 3 3
3 3 Select (OK) to continue. 3 3
这的意思是等安装结束后执行root.sh,按确认先退出
2.现在开始安装
Oracle Server (RDBMS) 7.3.4
3. 最后安装你所需要的包
注意:如果碰到Result: Relinking Error.这种错误,你可以从新启动一屏
以oracle用户登陆
$cd $ORACLE_HOME/bin
$./lsnrctl start
让网络扫一遍安装就没有问题了。
l. 系统提示安装成功,此时还有一些工作要做
以oracle用户登陆
$ su
Password:
# cd $ORACLE_HOME/orainst
# ./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数据库安装工作完毕。
原帖由 tstt 于 2006-8-14 18:22 发表
原来在sco506安装的,安装时 make -f ins_network.mk 编译不过去,把连接的库位置调来调去还是找不到一些函数。不知有没有关系。
换个sco505试试 |
|