`
yunzhu
  • 浏览: 1140888 次
  • 性别: Icon_minigender_1
  • 来自: 南京
博客专栏
B2b19957-cda7-3a9e-83a0-418743feb0ca
监控应用服务器
浏览量:109061
2e8be8be-e51f-346c-bcdd-12623c9aa820
Web前端开发
浏览量:119232
Bfa5df64-a623-34b9-85b8-ef3ce2aed758
经典异常的解决
浏览量:203964
社区版块
存档分类
最新评论

在Ubuntu-11.4上安装体验版Oracle 10g

阅读更多

简介:

演示在Ubuntu-11.4环境上安装体验版Oracle 10g的全过程。

文中用红色字体标出全过程所有需要执行的命令,很少的说。

 

说明:

Ubuntu版本:11.4

Oracle版本:体验版10.2.0.1-1.0

Oracle安装文件:oracle-xe-universal_10.2.0.1-1.0_i386.deb

 

参考资料:Ubuntu上Oracle10g安装指南


一、修改Swap分区大小
chenfeng@chenfeng-VirtualBox:~/MySoft$ sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
如果内存大小或Swap分区大小达不到要求,安装都会失败,并提示,
要增大内存必须通过虚拟机来设置,而增大Swap分区大小则通过一下步骤实现:

第一步,当然是建立一个img文件,大小为512M,需要1024的话就把count=500000改成1000000,这样我们才能访问它。
root@chenfeng-VirtualBox:/# dd if=/dev/zero of=swap.img bs=1024 count=1000000
记录了1000000+0 的读入
记录了1000000+0 的写出
1024000000字节(1.0 GB)已复制,18.6654 秒,54.9 MB/秒

第二步,当然是对它进行格式化,不要担心,格式化的只是这个文件,不用sudo。
root@chenfeng-VirtualBox:/# mkswap swap.img
mkswap: swap.img: warning: don't erase bootbits sectors
        on whole disk. Use -f to force.
Setting up swapspace version 1, size = 999996 KiB
no label, UUID=7b4f0631-8402-4c7d-9ef4-ad47e84a6287
root@chenfeng-VirtualBox:/# mkswap -f swap.img
Setting up swapspace version 1, size = 999996 KiB
no label, UUID=68fd2d90-30ff-4472-a19b-5c0b25046faa

第三步,当然是激活它,使它可用。
root@chenfeng-VirtualBox:/# sudo swapon swap.img

第四步,查看交换分区大小
root@chenfeng-VirtualBox:/# free -m
             total       used       free     shared    buffers     cached
Mem:           960        914         46          0          9        692
-/+ buffers/cache:        211        749
Swap:         1486          0       1486


二、安装依赖的软件包libaio、libaio1等
chenfeng@chenfeng-VirtualBox:~/MySoft$ sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
[sudo] password for chenfeng:
(正在读取数据库 ... 系统当前共安装有 130796 个文件和目录。)
正在解压缩 oracle-xe-universal (从 oracle-xe-universal_10.2.0.1-1.0_i386.deb) ...
dpkg:依赖关系问题使得 oracle-xe-universal 的配置工作不能继续:
oracle-xe-universal 依赖于 libaio (>= 0.3.96) | libaio1 (>= 0.3.96);然而:
  未安装软件包 libaio。
  未安装软件包 libaio1。
dpkg:处理 oracle-xe-universal (--install)时出错:
依赖关系问题 - 仍未被配置
正在处理用于 bamfdaemon 的触发器...
Rebuilding /usr/share/applications/bamf.index...
正在处理用于 desktop-file-utils 的触发器...
正在处理用于 python-gmenu 的触发器...
Rebuilding /usr/share/applications/desktop.zh_CN.utf8.cache...
正在处理用于 man-db 的触发器...
正在处理用于 ureadahead 的触发器...
ureadahead will be reprofiled on next reboot
正在处理用于 python-support 的触发器...
在处理时有错误发生:
oracle-xe-universal

chenfeng@chenfeng-VirtualBox:~/MySoft$ sudo apt-get -f install
正在读取软件包列表... 完成
正在分析软件包的依赖关系树     
正在读取状态信息... 完成     
正在更正依赖关系... 完成
将会安装下列额外的软件包:
  libaio1
下列【新】软件包将被安装:
  libaio1
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 249 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
需要下载 6,150 B 的软件包。
解压缩后会消耗掉 81.9 kB 的额外空间。
您希望继续执行吗?[Y/n]Y
获取:1 http://cn.archive.ubuntu.com/ubuntu/ natty/main libaio1 i386 0.3.107-7ubuntu2 [6,150 B]
下载 6,150 B,耗时 2秒 (2,989 B/s)
选中了曾被取消选择的软件包 libaio1。
(正在读取数据库 ... 系统当前共安装有 133390 个文件和目录。)
正在解压缩 libaio1 (从 .../libaio1_0.3.107-7ubuntu2_i386.deb) ...
正在设置 libaio1 (0.3.107-7ubuntu2) ...
正在设置 oracle-xe-universal (10.2.0.1-1.0) ...
update-rc.d: warning: /etc/init.d/oracle-xe missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Executing Post-install steps...
-e You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.
正在处理用于 libc-bin 的触发器...
ldconfig deferred processing now taking place

三、安装
chenfeng@chenfeng-VirtualBox:~/MySoft$ sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
(正在读取数据库 ... 系统当前共安装有 133397 个文件和目录。)
正预备替换 oracle-xe-universal 10.2.0.1-1.0 (使用 oracle-xe-universal_10.2.0.1-1.0_i386.deb) ...
正在解压缩将用于更替的包文件 oracle-xe-universal ...
正在设置 oracle-xe-universal (10.2.0.1-1.0) ...
update-rc.d: warning: /etc/init.d/oracle-xe missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Executing Post-install steps...
-e You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.

正在处理用于 bamfdaemon 的触发器...
Rebuilding /usr/share/applications/bamf.index...
正在处理用于 desktop-file-utils 的触发器...
正在处理用于 python-gmenu 的触发器...
Rebuilding /usr/share/applications/desktop.zh_CN.utf8.cache...
正在处理用于 man-db 的触发器...
正在处理用于 ureadahead 的触发器...
正在处理用于 python-support 的触发器...

四、配置
chenfeng@chenfeng-VirtualBox:~/MySoft$ sudo /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]:

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:
Confirm the password:

Passwords do not match.  Enter the 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"

 

OK~   安装完毕!

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics