Oracle install sur debian 远程 安装 oracle XE 在 debian
- Published in Oracle
MIN 1g ram
资料
http://www.debianhelp.co.uk/oracle.htm
APT-GET 安装过程
To use this reposotory you need to add following lines to /etc/apt/sources.list file:
deb http://oss.oracle.com/debian/ unstable main non-free
deb-src http://oss.oracle.com/debian/ unstable main
# apt-get update
# apt-get install oracle-xe-universal
安装完成
设置
# /etc/init.d/oracle-xe configure
Specify the HTTP port that will be used for Oracle Application Express [8080]:
设置web界面端口
Specify a port that will be used for the database listener [1521]:
程序端口
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password: (* make sure you remember this password *)
设置密码
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]: y
打Y是确定
Starting Oracle Net Listener…Done
Configuring Database…Done
Starting Oracle Database 10g Express Edition Instance…Done
Installation Completed Successfully.
To access the Database Home Page go to “http://127.0.0.1:8080/apex”
远程安装web界面不可用 需要设置
Now you have installed Oracle Express Edition on your Debian Sarge server.
开启 远程 端口
Specify the HTTP port that will be used for Oracle Application Express [8080]:
Specify a port that will be used for the database listener [1521]:
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password: (* make sure you remember this password *)
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]: y
Starting Oracle Net Listener…Done
Configuring Database…Done
Starting Oracle Database 10g Express Edition Instance…Done
Installation Completed Successfully.
To access the Database Home Page go to “http://127.0.0.1:8080/apex”
Now you have installed Oracle Express Edition on your Debian Sarge server.
解决 sqlplus: command not found
sudo vim /etc/profile
最下面增加
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export ORACLE_SID=XE
export PATH=${PATH}:${ORACLE_HOME}/bin
重新加载 profile
source /etc/profile
sqlplus 可用
命令 web界面可以远程访问
$ sqlplus -S system/password@//localhost/XE <<! EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE); EXIT; / !
现在就可以用
http://your-host-adress:8081/apex/
访问了