狂奔中的Samuel

一个Linux、Mapserver、PostgreSQL、JAVA初学者

导航

在Linux(UBUNTU版)上安装Oracle 10g Express Edition

终于在UBUNTU上成功安装了Oracle 10g Express Edition 版本是Release 2(10.2)for Lunux。选取这一版本是因为express版对硬件要求比较低,内存只要512M即可。而这次只是一个测试,给客户演示一下而已。而且安装也很简单,嘿嘿嘿..... 

下面给大家分享我的安装过程:
1 登录root

2 检查需要安装Oracle 10g的机子配置是否符合要求
  
a 硬件信息
   
To determine the physical RAM size, enter the following command:
    # grep MemTotal /proc/meminfo
   
To determine the size of the configured swap space, enter the following command:
    # grep SwapTotal /proc/meminfo
   
To determine the available RAM and swap space, enter the following command:
    # free
   
To determine the amount of free disk space available in the /tmp directory, enter the following command:
    # df -k /tmp
   
To determine the amount of free disk space available on the system, enter the following command:
    # df -k
   
To determine whether the system architecture can run the software, enter the following command:
    # grep "model name" /proc/cpuinfo
  
看一下自己机子的配置是否符合要求,具体要求如下:
i Network protocol:   TCP/IP
ii RAM:
     Server component: 256 megabytes minimum, 512 megabytes recommended
     Client component: 256 megabytes
iii Disk space:   
     Server component: Total: 1.5 gigabyte minimum
     Client component: 100 megabytes
b 检查软件信息确保自己所用的系统是一下中的一种:
Red Hat Enterprise Linux RHEL3 and RHEL4
Suse SLES-9
Fedora Core 4
Red Flag DC Server 5.0/MIRACLE LINUX V4.0/Haansoft Linux 2006 Server (Asianux 2.0 Inside)
Debian 3.1
UBUNTU是基于Debian的,所以可以安装
另外系统中还要安装glibc – 2.3.2 和libaio – 0.3.96 两个软件包,缺一不可
当你的系统满足以上条件,那么恭喜你,你可以开始安装Oracle Database Express Edition 10g Release 2(10.2)for Lunux了
3 下载安装包,这个在ORACLE网站(www.oracle.com)上有,可以免费下载的,只是得先注册一下。而且注册后可以下载很多东西,包括企业版的Oracle(不知Oracle怎么会如此大方)。
这个连接是Oracle Database 10g Downloads :http://www.oracle.com/technology/software/products/database/oracle10g/index.html
我下载的是oracle-xe-universal_10.2.0.1-1.0_i386.deb,因为包括了语言包。
4 安装/配置
安装其实很简单:只要 sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb 然后系统会自动进行绝大多数的配置,需要自己动手的只有三个
the HTTP port that will be used for Oracle Application Express:8080

the port that will be used for the database listener:1521

the password to be used for database accounts:**********
因为只是简单的应用,给客户演示完就会删掉,我没有对其作进一步的优化,所有的设置都是默认值,没有作任何改动。
之后就没事了,大概过了5~6分钟,会显示安装成功。并提醒你可以在http://127.0.0.1:8080/apex访问数据库主页。
刚开始有两个默认可用的用户:SYS和SYSTEM,密码都是刚刚统一设的,建议改成不同的。
还有其他12个用户,可以激活。
因为刚刚安装完成,我还没弄明白这两个用户有什么区别。等上手后,我会将我的使用心得放上来的。

posted on 2006-05-13 16:11  Samuel  阅读(6388)  评论(2编辑  收藏  举报