Ubuntu8.04安装Oracle Xe 10g

1。环境
Ubuntu8.04.1 桌面版 (WMWare 虚拟机下)

2。下载oracle-xe-universal_10.2.0.1-1.0_i386.deb
下载地址:http://www.oracle.com/technology ... s/102xelinsoft.html

下载后使用ftp传到ubuntu的某个文件夹下,比如/home/ftp

3。操作步骤(在root用户下)

3.1 更新系统
apt-get  update
apt-get  upgrade

3.2 开始安装

3.2.1 安装libaio1
apt-get  install  libaio1

3.2.2 切换到oracle所在的文件夹后,执行下面的命令
dpkg  -i  oracle-xe-universal_10.2.0.1-1.0_i386.deb

3.2.3 等待一段时间后,oracle安装完毕。开始配置oracle。执行下面的命令:
/etc/init.d/oracle-xe configure

3.2.4 出现如下内容:

Oracle Database 10g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express Edition. The following questions will determine whether the database should be starting upon system boot, the ports it will use, and the passwords that will be used for database accounts. Press [Enter] to accept the defaults. Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]: 我采用的默认

Specify a port that will be used for the database listener [1521]: 我采用的默认

Specify a password to be used for database accounts. Note that the same password will be used for SYS and SYSTEM. Oracle recommends the use of different passwords for each database account. This can be done after initial configuration:
Password can't be null. Enter password:输入密码
Confirm the password:输入密码

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y 我采用的默认

Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to http://127.0.0.1:8080/apex

3.2.5 打开火狐浏览器,输入“http://127.0.0.1:8080/apex” ,出现了oracle的界面

补充:

1。编辑/etc/apt/sources.list文件
vi /etc/apt/sources.list

添加下面的内容:
deb http://oss.oracle.com/debian unstable main non-free

2。导入oracle公钥
wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle  -O

3。将公钥加入本地密钥系统
apt-key add

或者2,3步合并:
wget  http://oss.oracle.com/el4/RPM-GPG-KEY-oracle  -O  -|apt-key  add  -

然后执行更新操作。