程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> Oracle數據庫 >> Oracle數據庫基礎 >> oracle7.3.4 for openserver 507的安裝!

oracle7.3.4 for openserver 507的安裝!

編輯:Oracle數據庫基礎
Oracle7.3.4 for openserver 507的安裝!
 UNIX中文寶庫    http://www.douzhe.com
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[/color]
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數據庫安裝工作完畢。
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved