ubuntu下面安装oracle10g遇到问题以及解决办法

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
loocky
帖子: 35
注册时间: 2006-09-11 14:48

ubuntu下面安装oracle10g遇到问题以及解决办法

#1

帖子 loocky » 2006-10-25 16:23

(1) : ubuntu 6.06

(2): 由于 ubuntu 是 debian 的内核,所以要在 oracle 官方上下载 oracle-xe-universal_10.2.0.1-1.0_i386.deb



开始安装(先看下面要注意的问题,第四项)



1:dpkg –I 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)时出错:

依赖关系问题 - 仍未被配置

在处理时有错误发生:

oracle-xe-universal



原来是libaio缺少,没有安装,我就下载下来,是个rpm,然后安装这个rpm,



sudo apt-get libaio-0.3.96-7.i386.rpm



正在读取软件包列表... 完成

正在分析软件包的依赖关系树... 完成

E: 无法找到软件包 libaio-0.3.96-7.i386.rpm



真是郁闷反复试验都不行





放弃这样安装,到网上查找其他方案安装libaio



网上说采用apt-get -f install安装方式可能自动获取包





apt-get -f install 果然可以日志如下

root@ubuntu:/home/oem# apt-get -f install

正在读取软件包列表... 完成

正在分析软件包的依赖关系树... 完成

正在更正依赖关系... 完成

将会安装下列额外的软件包:

libaio1

下列【新】软件包将被安装:

libaio1

共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 7 个软件未被升级。

有 1 个软件包没有被完全安装或卸载。

需要下载 5182B 的软件包。

解压缩后会消耗掉 61.4kB 的额外空间。

您希望继续执行吗?[Y/n]y

获取:1 http://mirror.lupaworld.com dapper/main libaio1 0.3.104-1ubuntu6 [5182B]下载 5182B,耗时 2s (2346B/s)

选中了曾被取消选择的软件包 libaio1。

( 正在读取数据库 ... 系统当前总共安装有 76207 个文件和目录。)

正在解压缩 libaio1 (从 .../libaio1_0.3.104-1ubuntu6_i386.deb) ...

正在设置 libaio1 (0.3.104-1ubuntu6) ...



正在设置 oracle-xe-universal (10.2.0.1-1.0) ...

Executing Post-install steps...

You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.





2 :



root@ubuntu:/home/oem# /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]:8080



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:

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



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"





这就安装完了?真是不可思以,比9I快很多啊,总共花了10几分钟,中间的配置少了好多啊。



3 :访问数据

http://127.0.0.1:8080/apex

根据设置的密码没有问题,能够正确访问





4: 需要注意的问题:

在刚开始安装的时候可能出现一下问题



root@ubuntu:/home/oem# dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb

选中了曾被取消选择的软件包 oracle-xe-universal。

( 正在读取数据库 ... 系统当前总共安装有 73613 个文件和目录。)

正在解压缩 oracle-xe-universal (从 oracle-xe-universal_10.2.0.1-1.0_i386.deb) ...

This system does not meet the minimum requirements for swap space. Based on

the amount of physical memory available on the system, Oracle Database 10g

Express Edition requires 750 MB of swap space. This system has 711 MB

of swap space. Configure more swap space on the system and retry the installation.

dpkg :处理 oracle-xe-universal_10.2.0.1-1.0_i386.deb (--install)时出错:

子进程·pre-installation script·返回了错误号·1

在处理时有错误发生:

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



这个问题是由于SWAP分区不够的原因造成的,那就增加一个SWAP分区



1 :采用文件的方式增加swap分区

Dd if=/dev/zero of=/tmp/tmp.swap bs=1M count =100( 建立一个100M的文件)

mkswap /tmp/tmp.swap( 标识swap文件)

swapon /tmp/tmp.swap( 激活swap)

修改/etc/fstab文件增加一行



/tmp/tmp.swap swap swap defaluts 0 0

Swapon –s 查看当前的swap分区情况

发现已经有2个SWAP分区了,空间这下子够了,可以继续安装了



2 :也可已采用直接增加SWAP方式(我没有采用这样的办法)
uninone
帖子: 100
注册时间: 2006-10-19 9:35
联系:

#2

帖子 uninone » 2006-11-06 17:30

lz的这篇文章很有意义啊,顶一个先
lonyce
帖子: 8
注册时间: 2006-06-10 17:22

#3

帖子 lonyce » 2006-11-13 20:17

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:
这里我如果选了 n 呢,然后怎么启动10g阿,我点那个10G的菜单怎么没有反应阿,那个本地的网页也打不开,请问有什么办法吗?
头像
major
帖子: 281
注册时间: 2006-09-01 17:48

#4

帖子 major » 2006-11-14 8:19

好 文章 哈 ,谢谢 了 :lol:
回复