Home  >  Article  >  Database  >  在64位Ubuntu Server版本安装Oracle XE

在64位Ubuntu Server版本安装Oracle XE

WBOY
WBOYOriginal
2016-06-07 17:00:581086browse

Ubuntu版本:uname -rLinux localserver 2.6.32-24-server #43-Ubuntu SMP Thu Sep 16 16:05:42 UTC 2010 x86_64 GNU/Linux在64位

Ubuntu版本:

uname -r

Linux localserver 2.6.32-24-server #43-Ubuntu SMP Thu Sep 16 16:05:42 UTC 2010 x86_64 GNU/Linux

在64位的系统上安装xe先要安装32位的库:

sudo apt-get install libc6-i386

下一步是下载需要的文件:libaio_0.3.104-1_i386.deb 和 Oracle-xe-universal_10.2.0.1-1.1_i386.deb

wget -c http://oss.oracle.com/debian/dists/unstable/non-free/binary-i386/oracle-xe-universal_10.2.0.1-1.1_i386.deb

安装:

sudo apt-get install bc

sudo 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

到这里,安装步骤已经完成。接下来是设置部分

sudo /etc/init.d/oracle-xe configure

根据提示完成设置。

编辑一些环境变量:sudo vim /etc/profile

在文件最后加上:

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME
export ORACLE_SID=XE
export PATH

完成后访问:8080/apex可以管理数据库

常见问题:xe不能远程访问

Answer:

Oracle XE 安装完成后,可以通过 :8080/apex 访问Oracle Application Express 。Oracle XE 默认只监听 127.0.0.1的 8080 端口, 不能在别的机器上通过浏览器访问XE实例,如果需要在别的机器上访问数据库服务器上的XE实例,需要以system 身份登陆XE数据库,运行 EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);。


SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);

PL/SQL 过程已成功完成.

SQL> exit

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn