首先从sun官方网站下载jdk安装包
jdk-6u18-linux-i586.bin
在终端为其加上可执行权限
sudochmod +x jdk-6u18-linux-i586.bin;
./jdk-6u18-linux-i586.bin运行即自动安装
在oracle网站上下载oracle-xe-universal_10.2.0.1-1.0_i386.deb
双击直接安装
安装之前需要先在http://www.debian.org/distrib/packages
搜索下载libaio
下载软件包libaio1
下载软件包libaio-dev
点i386版本下载即可
按顺序安装即可
安装一般没有什么问题
注意:系统swap区必须设置在1g以上!!
如果小于1g的swap区,网上有资料说是可以更改的,但按照他们的说法我是没有修改成功,我是用磁盘工具重新划了个区加上去的。
安装之后进行配置
sudogedit /etc/profile
输入管理员密码
在最后添加
exportJAVA_HOME=/home/lineagezd/jdk1.6.0_18
exportPATH=$JAVA_HOME/bin:$ORACLE_HOME/bin:$PATH
exportCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
exportORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
exportORACLE_SID=XE
保存即可
sudo/etc/init.d/oracle-xe configure
对oracle进行设置
OracleDatabase 10g Express EditionConfiguration
-------------------------------------------------
Thiswill configure on-boot properties of Oracle Database 10gExpress
Edition.The following questions will determine whether thedatabase should
be starting upon system boot, the ports it willuse, and the passwords that
will be used for databaseaccounts.Press Ctrl-C willabort. 指定OracleApplication Express使用的端口,如果直接按 Specifythe HTTP port that will be used for Oracle Application Express[8080]: 指定Oraclelistener的端口,默认端口为1521 Specifya port that will be used for the database listener [1521]: Specifya password to be used for database accounts.Note that thesame password will be used for SYS and SYSTEM.Oracle recommendsthe use of different passwords for each database account.This canbe done after 指定SYS和SYSTEM用户的密码,输入的密码将不回显,需要重复输入2遍. initialconfiguration: Confirm the password: 指定是否在启动时自动启动oraclexe 数据库,即使输入y,也不能自动启动, Doyou want Oracle Database 10g Express Edition to be started on boot(y/n) [y]: Starting Oracle Net Listener...Done ConfiguringDatabase...Done Starting Oracle Database 10g Express EditionInstance...Done Installation Completed Successfully. To accessthe Database Home Page go to \"http://127.0.0.1:8080/apex\" http://127.0.0.1:8080/apex\" 在这里可以设置自己的用户账户 sudo /etc/init.d/oracle-xe start 运行stop 停止[/pre]注销一下 sudo /etc/init.d/oracle-xe 试试如果打开终端打入java,javac有一大堆帮助内容,sqlplus有oracle实例启动的话就配置成功了 因篇幅问题不能全部显示,请点此查看更多更全内容