现在的位置: 首页 > 综合 > 正文

SCO UNIXWARE 7.1.3中安装oracle 7 详细步骤

2013年12月04日 ⁄ 综合 ⁄ 共 4229字 ⁄ 字号 评论关闭
 

SCO UNIXWARE 7.1.3中安装oracle 7 详细步骤

20110730安装记录

# groupadd dba
# mkdir /home/oracle
# useradd -G dba -g dba -d /home/oracle -s /usr/bin/ksh oracle
# passwd oracle
New password:
Re-enter new password:
# chown oracle:dba /home/oracle
# mkdir /home3 /home4 /home5 /home6
# chmod 777 /home3 /home4 /home5 /home6
# chown oracle:dba /dev/async
# chmod 666 /dev/async

vi /home/oracle/.profile

PS1='ORA7>' export PS1
MAIL=/usr/mail/${LOGNAME:?}
umask 022
BSYS=/home/store; export BSYS
ORACLE_HOME=/home/oracle; export ORACLE_HOME
ORA_NLS=$ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS
NLS_LANG=American_america.ZHS16CGB231280; export NLS_LANG
ORACLE_SID=ora7; export ORACLE_SID
ORACLE_DOC=$ORACLE_HOME/odoc; export ORACLE_DOC
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:/usr/local/bin:$PATH export PATH
ORA_CLIENT_LIB=shared; export ORA_CLIENT_LIB
ORAKITPATH=$ORACLE_HOME/forms30/admin/resource; export ORAKITPATH
MENU5PATH=$ORACLE_HOME/forms30/admin/resource; export MENU5PATH
FORMS30PATH=$ORACLE_HOME/forms30/admin/resource; export FORMS30PATH
ORATERMPATH=$ORACLE_HOME/forms30/admin/resource; export ORATERMPATH
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
ORACLE_PAGER=pg;          export ORACLE_PAGER
ORACLE_LPPROG=lp;         export ORACLE_LPPROG
ORACLE_LPARGS="-c -s";    export ORACLE_LPARGS
ORACLE_LPSTAT=lpstat;     export ORACLE_LPSTAT
ORACLE_TERM=386; export ORACLE_TERM

放入ORACLE光盘 我这里只有 tar 文件
# mount -F cdfs /dev/cdrom/cdrom1 /mnt
# cp oracle7.tar /home/oracle
# umount /mnt
# tar -xvf *.tar (解压出来就是 在MNT目录下面了)
/mnt/orainst
 cd orainst
# ./rootpre.sh(提示重启)
# init 6
ORA7>mkdir olink
ORA7>mkidr oradoc
ORA7>cd /mnt/orainst
ORA7>./cd_link -r /mnt $ORACLE_HOME/olink
ftp 148.20.40.59 (下载POSLINK文件)
ORA7>./poslink olink
       cd olink/orainst
       ./orainst
安装  ( 1).Enter the pathname for your ORACLE_HOME directory:  /home1/oracle
  ( 2)./home/oracle/orainst/install.log
  ( 3).先选Install\Upgrade Software Only  表示只安装软件,不建立数据库
  ( 4).Install from CD-ROM
  ( 5).Enter the pathname of the oracle_link directory: /home1/oracle/olink
  ( 6).Enter your ORACLE_SID: ora7
  ( 7).Select the native language to be installed: ALL LANGUAGES
  ( 8).Relink all executables: Yes
  ( 9).$ORACLE_HOME/orainst/root.sh as root at the end.
  (10).Select the desired online help support. No
  (11).Do you want the SVR4_X86 documentation installed?: No
  (12).CD-ROM product documentation: No
  (13).Enter the pathname for your ORACLE_DOC directory: /home1/oracle/oradoc
  (14).Select at least the following products
       1).Oracle UNIX installer and Documentation Viewer
       2).ORACLE V7 Server (RDBMS)
       3).SQL*Plus V3.2
       4).PL/SQL V2
       5).SQL*Net V2.2
       6).TCP/IP Protocol Adapter (V2) 2.2.3.0.0
       7).Pro*C V1.6 (not V2.1)
       8).Oracle*Terminal V1.0
       9).SQL*Forms V3.0
       10).SQL*Menu V5.0
       11).ORACLE7 distributed Database option 7.2.3.0
       12).exit

安装完毕后安CRTL+F2 再按ESC +1 然后RESTART 重新安装

完成后,即可建立数据库
在建立数据库前,更改 /home1/oracle/rdbms/install/initx.orc
 
增加一行 db_block_size=8192 (这一步较重要)

在建立数据库前,更改 /home1/oracle/rdbms/install/initx.orc
增加一行 db_block_size = 8192 (这一步较重要)
再选Greate New Database Objects
将所有的都选中,进行安装
Database Name:ora7
Character Set:(Others…) 键入:ZHS16CGB231280
(15).Execute root.sh as root If the script gives the error '/orainst/read.sh not found' then execute the script again after executing: root> ORACLE_HOME=/home/oracle7 root> export ORACLE_HOME
 
  (17).Create New Database Objects
      1).Enter your ORACLE_SID: ora7
      2).Desired on-line help support: For no products.
      3).Do you want the SVR4_X86 documentation installed? No 不要安装帮助
      4).Select the desired CD-ROM product documentation: No
  (18).Don't install demo userexits in SQL*ReportWriter, SQL*Forms and/or SQL*Menu.(安装DEMO的容易倍黑客入侵呵呵)
       Don't install demo tables. Especially Oracle users created by these demo are a way for some users (hackers) to have access to the database and sometimes even with DBA privileges.
       Check if the Oracle user 'scott/tiger' exists. If existing remove this user with all it's tables.

安装完毕
vi /home/oracle/.profile
以用户登录,键入:(大小写要完全一致)
ORACLE_SID=ora7 export ORACLE_SID
再运行/home/oracle/orainst/root.sh
var/opt/oracle/oratab:N ->Y

更改 /home/oracle/bin/dbshut 文件
在shutdown 后加 immediate (否则数据库经常无法正常关闭实例)

安装工具软件
1.gzip
root user: tar xvf gzip.tar;
./configure
make test
make install

2.perl v5.6.1
UnixWare713开发包自带的perl v5.0.4对DBI接口可能有点问题.安装perl v5.6.1
#gzip -d perl56.tar.gz
#tar xvf perl56.tar
#./Configure -d(缺省安装)
#make
#make test(可能不完全成功,安装继续,以下DBI也有错误提示,但不影响)
#make install
#tar xvf DBI-1.13.tar
#perl Makefile.PL
#make
#make test
#make install
#tar xvf DBD-Oracle-1.03.tar
#perl Makefile.PL
#make
#make test
#make install

  

 

抱歉!评论已关闭.