选择显示字体大小

redhat linux7.2 上 oracle 8i r2 (8.1.6) 企业版安装实例


  
• 本例使用软件:
  1、操作系统: redhat linux7.2
  2、数据库:  oracle 8i r2 (8.1.6) for linux 企业版
  3、java运行时刻环境(jre): jdk118_v3-glibc-2.1.3.tar.bz2

• 软件下载地址:
  1、linux
  2、oracle
  到oracle的老家下载oracle 8i r2 (8.1.6) for linux 企业版[275mb]
  ftp://ftp.oracle.com/pub/www/otn/li...acle8161_tar.gz
  3、jdk:jdk118_v3-glibc-2.1.3.tar.bz2
  下载地址:http://www.blackdown.org或http://java.sun.com

• 开始安装:

  1、首先安装redhat,以custom方式安装。

  2、安装oracle 8i。

  [root@oradb /root]$      #以root方式登录  [root@oradb /root]$ groupadd oinstall     #创建oinstall组  [root@oradb /root]$ groupadd dba     #创建dba组  [root@oradb /root]$ useradd oracle –g oinstall -g dba     #在oinstall及dba组中建新用户oracle  [root@oradb /root]$ passwd oracle    #修改oracle用户口令  [root@oradb /root]$ mkdir /home/oracle/data  [root@oradb /root]$chown oracle.dba /home/oracle/data  [root@oradb /root]$chmod 750 /home/oracle/data

  注:oinstall 组、dba组和oracle用户是oracle安装需要的

  注:创建oracle用户后,linux系统自动在/home目录下创建/home/oracle目录,给oracle用户使用,

  oracle用户对此目录拥有所有的权限,

  为方便,本例把oracle系统安装在oracle用户data目录下

  [root@oradb /root]$ cd /user/local      #到/usr/local目录  [root@oradb /local]$ ls -l              #把j jdk118_v3-glibc-2.1.3.tar.bz2文件拷贝到本目录下  [root@oradb /local]$ bunzip2 -dc jdk118_v3-glibc-2.1.3.tar.bz2  [root@oradb /local]$ tar xvf jdk118_v3-glibc-2.1.3.tar    #在当前目录下解压  tar xvf jdk118_v3-glibc-2.1.3.tar  ln -s /usr/local/jdk118_v3 /usr/local/java  [root@oradb /local]$ ls -l      #这时,/usr/local目录下应该存在java目录

  注:只要把解出来的文件放到/usr/local/java目录下就算完成了java的安装,oracle就可以正确识别了

  [root@oradb /oracle]$ exit    #退出,以oracle用户重新登录  [oracle@oradb /oracle]$   [oracle@oradb /oracle]$ ls -l  [oracle@oradb /oracle]$ tar zxvf oracle8161_tar.gz       #解压oracle压缩包到当前目录  [oracle@oradb /oracle]$ ls -a    #.bash_profile文件是隐藏属性  [oracle@oradb /oracle]$ more .bash_profile     #查看.bash_profile文件内容  [oracle@oradb /oracle]$ vi .bash_profile    #编辑.bash_profile文件,并输入以下内容    # setup oracle environment  export oracle_base=/home/oracle/data/app/oracle  export oracle_home=$oracle_home/product/8.1.6  export oracle_sid=orasah  export oracle_term=vt100  export oracle_owner=oracle8  export tns_admin=$oracle_home/product/8.1.6.network/admin  export classpath=$oracle_home/jdbc/lib/classes111.zip  # set up the search paths:  path=/usr/local/jre/bin:/usr/local/jdk/bin:/bin:/sbin  path=$path:/usr/bin:/usr/sbin:/usr/local/bin:$oracle_home/bin  path=$path:/usr/local/sbin:/usr/bin/x11:/usr/x11r6/bin:.  export path  [oracle@oradb /oracle]$ exit    #退出,以oracle用户重新登录,以使设定的环境生效  [oracle@oradb /oracle]$   [oracle@oradb /oracle]$ startx    #启动x-windows后,启用一个终端(xterm),    (图形窗口)在该终端中运行runinstaller  [oracle@oradb /oracle]$ cd oracle8ir2  [oracle@oradb /orainst]$ ./runinstaller    #执行oracle安装程序

  这时你可以看到oracle全新的图形化的oui的欢迎画面,按照提示继续安装进程:

  welcome:按next

  file locations:按next

  unix group name:什么也不添,按next 出错,提示要以root权限运行/home/oracle/data/app/oracle/product/8.1.6/orainstroot.sh

  回到安装界面(图形窗口)按retry按钮,就可以继续安装了,

  available products:选oracle8i enterprise edition 8.1.6.1.0,按next

  installation types:选typical(540mb),按next,这时,屏幕右上角出现一个进度标尺

  database identification:
  global database name:输入oracle8(可以任意)
  sid:保留orasah
  按next

  database file location:任意目录,本例设为“/home/oracle/data/app/oracle”,按next,这时,屏幕右上角进度标尺继续前进

  出现summary,对你想要安装的产品作一个总结按install,出现install画面,等待... 你可以看到窗口底部提示的安装等log文件目录,可供以后查询。

  弹出setup privileges窗口,提示:在安装继续进行之前,需要以root运行一个脚本 “/home/oracle/data/app/oracle/product/8.1.6/root.sh”,

  屏幕显示:

  enter the full pathname of the local bin directory:[/usr/local/bin]:回车

  系统开始执行一些动作,执行完毕,ctrl+alt+f7按返回oui,按ok。

  database creation progress开始,逐步进行以下4个过程
  creating and starting oracle instance
  copying database files
  initializing database
  database creation completed

  以上4个过程完成,弹出oracle database configuration assistant alert窗口,

  提示:数据库创建完成,告诉你数据库的一些基本信息

  global databse name:oracle8  database system identifier(sid):orasah  sys account password:change_on_install  system account password:manager  按ok
  end of installation,按exit退出oui,完成安装。
  退出图形窗口,回到

  [oracle@oradb /oracle]$

  这时,oracle数据库已经安装成功,并且数据库已经启动运行,可以试一下

  [oracle@oradb /oracle]$sqlplus system/manager

  出现以下信息:

  sql*plus: release 8.1.6.0.0 - production on fri oct 26 22:21:32 2002  (c) copyright 1999 oracle corporation. all rights reserved.  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>

  启动数据库

  [oracle@oradb /oracle]$ svrmgrl  svrmgr> connect internal  connected.  svrmgr> startup  oracle instance started.  显示sga状态  database mounted.  database opened.  svrmgr>

  关闭数据库

  [oracle@oradb /oracle]$ svrmgrl  svrmgr> connect internal  connected.  svrmgr> shutdown  database closed.  database dismounted.  oracle instance shut down.  svrmgr>

  启动监听器

  [oracle@oradb /oracle]$ lsnrctl  lsnrctl> start  lsnrctl> exit

  停止监听器

  [oracle@oradb /oracle]$ lsnrctl  lsnrctl> stop  lsnrctl> exit

  查看监听器状态

  [oracle@oradb /oracle]$ lsnrctl  lsnrctl> status  lsnrctl> exit


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons