设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 1344|回复: 1
收起左侧

红旗linux(Server2.0)下安装Oracle8.16

[复制链接]
发表于 2010-10-15 22:56:05 | 显示全部楼层 |阅读模式
1.机器配置
  
   CPU: Intel Pentium III 668203 khz
  
   内存: 128M
  
   操作系统: Redflag-Server2.0(完全安装)
  
   SWAP区: 256M
  
  2.安装所需软件
  
   Oracle8161_tar.gz
  
  
  
  3.创建oracle帐号
  
   以root帐号登录,开启一个terminal窗口,创建oracle帐号
  
   [root@dbs /root]useradd oracle
  
   [root@dbs /root]passwd oracle (设置oralce帐号的密码)
  
   系统自动创建了/home/oracle目录,属主为oracle。我的Oracle就准备装
  
   在此目录下。
  
  4.解压缩oracle8161_tar.gz
  
   以root帐号登录,执行:
  
   [root@dbs /root] cd /backup
  
   [root@dbs /backup] tar zxvf oracle8161_tar.gz
  
   在/backup/目录下生成Oralce8iR2目录,内含解包后的文件
  
  5.设置oracle用户环境
  
  使用oracle帐号登录,开启terminal窗口, 使用文本编辑器打开
  
   /home/oracle/.bash_profile最后加
  
   入如下环境变量的设置行:
  
   ORACLE_HOME=/home/oracle; export ORACLE_HOME
  
   LD_LIBRARY_PATH=/home/oracle/lib; export LD_LIBRARY_PATH
  
   ORACLE_BASE=/home/oracle; export ORACLE_BASE
  
   ORACLE_SID=ORCL; export ORACLE_SID
  
   ORA_NLS33=/home/oracle/ocommon/nls/admin/data; export ORA_NLS33
  
   NLS_LANG=american_america.zhs16cgb231280;export NLS_LANG
  
   
  
   Log out,重新以oracle帐号登录,键入env指令查看刚才设置的环境变量。
  
   [oracle@dbs oracle]env
  
  6.创建oracle数据文件目录
  
   我想把数据文件放在/home/oracle/data目录下,于是
  
   [oracle@dbs oracle] mkdir data
  
  7.安装Oracle 8i 数据库软件
  
  
  
   (1)用oracle帐号登录,进入Xwindows,开启terminal窗口
  
   (2)[oracle@dbs oracle] cd /backup/Oracle8iR2
  
   (3)在oracle用户窗口下继续安装
  
     [oracle@dbs Oralcle8iR2] ./runInstaller
  
     在出现的基于JAVA的Oracle installer界面上,点击Next。
  
   (4) 在File Locations界面上,检查Destination Path为/home/oracle,点击Next
  
   (5)在Unix Group Name窗口中,键入"oracle",点击Next;
  
   (6)一个窗口会弹出,要求以root身份运行/home/oracle/orainstRoot.sh
  
   (7)切换到terminal窗口,并切换到root身份运行如下:
  
     [root@dbs /root] cd /home/oracle
  
     [root@dbs oracle]./orainstRoot.sh
  
   (8)返回刚才弹出的窗口,点击Retry。
  
   (9)在出现的"Available products"窗口上选择"Oracle8I enterprise edition8.1.6.1.0",点击Next。
  
   (10)下一个画面上选择Typical ,点击Next
  
   (11)在Privileged Operating System Groups界面上,点击Next
  
   (12)提示输入global database name,自己喜欢什么就写什么,我写了个wap ,
  
    验证ORACLE_SID为ORCL,点击Next
  
   (13)提示输入db files localtion,输入/home/oracle/data,点击Next
  
   (14)在最后的Summary窗口上,点击Install
  
   (15)现在正式开始安装了,不到30分钟左右就完成
  
   (16)在文件被拷贝和联接后,弹出一个要求运行root.sh的窗口,切换到root用户窗口,
  
      [root@dbs oracle]./root.sh
  
      在询问local bin directory时按下Enter键
  
   (17)返回要求运行root.sh的窗口上,点击OK
  
   (18)Oracle Net8 Configuration和Oracle Database Configuration Assistants启动,
  
    安装Net8和创建数据库。 这一步又花了20分钟左右的时间。
  
   (19)Oracle Database Configuration Assistants结束后,在弹出的完成数据库创建窗
  
       口上点击OK
  
   (20)在End of Installation画面上,点击Exit ,在弹出的Do you reallywant to exit?
  
      窗口上点击yes
  
    现在所有的Oralce 8i Enterprise就安装好了! 可以使用Oracle数据库管理工具svrmgrl、
  
  sql*plus来对安装好的数据库进行测试!
  
  8.测试
  
   [oracle@dbs oracle] svrmgrl
  
   Oracle Server Manager Release 3.1.6.0.0 - Production
  
   Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
  
   Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production
  
   With the Partitioning option
  
   JServer Release 8.1.6.0.0 - Production
  
   SVRMGR>connect internal
  
   Connected.
  
   SVRMGR> shutdown
  
   Database closed.
  
   Database dismounted.
  
   ORACLE instance shut down.
  
   SVRMGR>startup
  
   ORACLE instance started.
  
   Total System Global Area 56012784 bytes
  
   Fixed Size 69616 bytes
  
   Variable Size 38993920 bytes
  
   Database Buffers 16777216 bytes
  
   Redo Buffers 172032 bytes
  
   Database mounted.
  
   Database opened.
  
   SVRMGR> quit
  
   Server Manager complete.
  
  不错,看来可以正常工作了。再用sqlplus试试
  
   [oracle@dbs oracle]$ sqlplus
  
   SQL*Plus: Release 8.1.6.0.0 - Production on Sun Apr 15 09:20:12 2001
  
   (c) Copyright 1999 Oracle Corporation. All rights reserved.
  
   Enter user-name: scott
  
   Enter password: tiger
  
   Connected to:
  
   Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production
  
   With the Partitioning option
  
   JServer Release 8.1.6.0.0 - Production
  
   SQL> select * from emp
  
   应该出来一堆数据,有14条,看来没问题了。
  
   SQL>quit
发表于 2013-6-26 14:59:14 | 显示全部楼层
果断回帖,如果沉了就是我弄沉的很有成就感
沙发 2013-6-26 14:59:14 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-5-7 20:30 , Processed in 0.058134 second(s), 9 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表