[Ubuntu]Ubuntu 10.04 安装Oracle 10g XE

来源:互联网 发布:怪物猎人p3锤子数据库 编辑:程序博客网 时间:2024/05/17 23:59

1.安装好Ubuntu 10.04环境 正常安装和虚拟机安装均可

2.下载 oracle-xe-universal_10.2.0.1-1.0_i386.deb(官方网站)下载后存放在某文件夹 例如:/home/ftp

3.切换到root用户

4.更新系统

apt-get update
apt-get upgrade

5.安装 libaio1

apt-get install libaio1

6.切换到oracle安装包存放路径后 执行如下命令:

dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb

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

8 出现如下内容

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

 

9.打开火狐浏览器,输入“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 -

然后执行更新操作。

原创粉丝点击