`
theron19
  • 浏览: 122084 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Ubuntu安装Oracle 10

阅读更多

安装下载的deb包  比如下载的文件在/software目录:

 

sudo dpkg -i /software/oracle xe-universal_10.2.0.1-1.0_i386.deb

 可能会出现以下错误:

 

(正在读取数据库 ... 系统当前总共安装有 128061 个文件和目录。)
正预备替换 oracle-xe-universal 10.2.0.1-1.0 (使用 oracle-xe-universal_10.2.0.1-1.0_i386.deb) ...
正在解压缩将用于更替的包文件 oracle-xe-universal ...
dpkg:依赖关系问题使得 oracle-xe-universal 的配置工作不能继续:
 oracle-xe-universal 依赖于 libaio (>= 0.3.96) | libaio1 (>= 0.3.96);然而:
  未曾安装软件包“libaio”。
  未曾安装软件包“libaio1”。
dpkg:处理 oracle-xe-universal (--install)时出错:
 依赖关系问题 - 仍未被配置
正在处理用于 desktop-file-utils 的触发器...
正在处理用于 python-gmenu 的触发器...
Rebuilding /usr/share/applications/desktop.zh_CN.utf8.cache...
正在处理用于 man-db 的触发器...
正在处理用于 ureadahead 的触发器...
正在处理用于 python-support 的触发器...
在处理时有错误发生:
 oracle-xe-universal

原因是因为没有装libaio。可以在 http://us.archive.ubuntu.com下载。如下载地址为:http://us.archive.ubuntu.com/ubuntu/pool/main/liba/libaio/,下载的文件为:libaio1_0.3.107-3ubuntu2_i386.deb,安装很简单,直接执行:

 

dpkg -i libaio1_0.3.107-3ubuntu2_i386.deb

 安装完之后再执行oracle命令即可。

 

 

 安装的时候需要注意控制台输出,在安装过程中需要设定监听端口和密码。如果没有提示设置,可以手工设置 

 

/etc/init.d/oracle-xe configure

 

 以下是配置的详细信息:

 

root@ubuntu:/software# /etc/init.d/oracle-xe configure

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]:8099

Specify a port that will be used for the database listener [1521]: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:root
Confirm the password:root

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:8099/apex"
 

查看oracle是否安装正确:

 

sudo ps aux |grep oracle 

如果要想在远程客户端访问,需要开启,操作如下:

  1. 在本地服务器上的浏览器输入:http://127.0.0.1:8099/apex,输入用户名和密码,登录。
  2. 登录成功之后,点击主页上的管理->管理HTTP访问,改为“从本地服务器和远程客户端可用”

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics