Install Oracle10gXE on Ubuntu Server using apt

本文介绍如何简化Oracle Database XE在Ubuntu上的安装过程。通过添加官方apt-get仓库,用户可以轻松安装Oracle XE。文章提供了详细的步骤指导,包括设置环境变量等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

With Oracle Database XE in production, it is even easier to install Oracle on Ubuntu. There is now an apt-get repository up on oss.oracle.com for XE. Just add:
deb http://oss.oracle.com/debian unstable main non-free
to /etc/apt/sources.list and then:
# useradd -m oracle
# passwd oracle
# wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle ; -O- | sudo apt-key add -
# apt-get update
# apt-get install oracle-xe
(Note: You will need to 'sudo' or have 'root' privileges to install XE.)
if all of above was finished then:
# /etc/init.d/oracle_x configure
and add
# .bash_profile
# Get the aliases and functions
if [-f ~/.bashrc]; then
.~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$ORACLE_HOME/bin
unset USERNAME
export ORACLE_SID=XE
export ORACLE_BASE=/usr/lib/oracle
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export PATH
to /home/oracle/.bash_profile and add :

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
ORACLE_SID=XE
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
TNS_ADMIN=/usr/lib/oracle

to /etc/environment and add :$ORACLE_HOME/bin to PATH with /etc/environment

at last restart the server of ORACLE

# /etc/init.d/oracle_x restart

Catch-all disclaimer: These steps worked for me on my configuration; they might not work on yours.

I'm new guy,this is my first install oracle on LINUX OS.If any problems please let me know.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值