因为工作的原因,需要使用到Oracle,但是捣鼓了两天,都无法将已经下载了的 oracle-xe-universal_10.2.0.1-1.0_i386.deb 包给安装上去,当时也没有去看错误信息(做事太粗心了)。。放G嗅了两天,今天中午看了下安装的错误信息,才发现,原来是SWAP分区不足导致的。刚学Ubuntu还不会修改Swap,于是又放G去找了下,终于解决了,现在将安装过程己下来:
1、在oracle网站上下载 oracle-xe-universal_10.2.0.1-1.0_i386.deb 安装包。
2、在ubuntu下打开终端,输入 free -m。查看swap分区大小,如果free那一栏的大小小于1024的话,就要重新修改swap的大小,修改方法(参考http://www.oklinux.cn/html/system/zmyy/20071112/42106.html)
3,修改完成后,安装 oracle-xe-universal_10.2.0.1-1.0_i386.deb 包,也可以在终端 执行
sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
4,直到安装出现You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.时,如果在终端里面安装直接输入
sudo /etc/init.d/oracle-xe configure 配置数据库
设置如下:
the HTTP port that will be used for oracle Application Express:8080
the port that will be used for the database listener:1521
the password to be used for database accounts:你的管理员和超级用户密码。接着Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y] 输入Y即可
5,系统就进入数据库的配置了。过了一会就会显示
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8080/apex"
安装成功。。
1、在oracle网站上下载 oracle-xe-universal_10.2.0.1-1.0_i386.deb 安装包。
2、在ubuntu下打开终端,输入 free -m。查看swap分区大小,如果free那一栏的大小小于1024的话,就要重新修改swap的大小,修改方法(参考http://www.oklinux.cn/html/system/zmyy/20071112/42106.html)
3,修改完成后,安装 oracle-xe-universal_10.2.0.1-1.0_i386.deb 包,也可以在终端 执行
sudo dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
4,直到安装出现You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.时,如果在终端里面安装直接输入
sudo /etc/init.d/oracle-xe configure 配置数据库
设置如下:
the HTTP port that will be used for oracle Application Express:8080
the port that will be used for the database listener:1521
the password to be used for database accounts:你的管理员和超级用户密码。接着Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y] 输入Y即可
5,系统就进入数据库的配置了。过了一会就会显示
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8080/apex"
安装成功。。