ubuntu server 11.10 安装 oracle 10g XE
1.将配置的Oracle源服务器的公钥添加在本地 apt 系统的密钥库中:
wget http://oss.oracle.com/el4/RPM-GPG-KEY-oraclesudo apt-key add RPM-GPG-KEY-oracle
2.下载安装包
wget http://oss.oracle.com/debian/dists/unstable/main/binary-i386/libaio_0.3.104-1_i386.deb
wget http://oss.oracle.com/debian/dists/unstable/non-free/binary-i386/oracle-xe-universal_10.2.0.1-1.1_i386.deb
3.安装
dpkg -i --force-architecture libaio_0.3.104-1_i386.deb
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb
4. 配置Oracle xe(配置web管理界面的端口号,oracle监听器的端口号,是否linux启动时启动和sys、system用户的密码)
/etc/init.d/oracle-xe configure
5.环境变量的配置
1)sudo vim /etc/environment
2)在environment文件最后增加
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin"
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
3) 使配置文件生效
source /etc/environment
6.测试数据库连接
1)sqlplus /nolog
2)connect sys@XE as sysdba
3)select sysdate from dual;
7.让Web访问管理界面可以通过远程访问
1)登入sqlplus
2)exec dbms_xdb.setlistenerlocalaccess(false)