Ubuntu安装Oracle 10

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


1. 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



以下是配置的详细信息:


1. root@ubuntu:/software# /etc/init.d/oracle-xe configure
2.
3. Oracle Database 10g Express Edition Configuration
4. -------------------------------------------------
5. This will configure on-boot properties of Oracle Database 10g Express
6. Edition. The following questions will determine whether the database should
7. be starting upon system boot, the ports it will use, and the passwords that
8. will be used for database accounts. Press <Enter> to accept the defaults.
9. Ctrl-C will abort.
10.
11. Specify the HTTP port that will be used for Oracle Application Express [8080]:8099
12.
13. Specify a port that will be used for the database listener [1521]:1521
14.
15. Specify a password to be used for database accounts. Note that the same
16. password will be used for SYS and SYSTEM. Oracle recommends the use of
17. different passwords for each database account. This can be done after
18. initial configuration:
19. Password can't be null. Enter password:root
20. Confirm the password:root
21.
22. Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y
23.
24. Starting Oracle Net Listener...Done
25. Configuring Database...Done
26. Starting Oracle Database 10g Express Edition Instance...Done
27. Installation Completed Successfully.
28. 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访问,改为“从本地服务器和远程客户端可用”
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值