Oracle install sur debian 远程 安装 oracle XE 在 debian

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/

访问了
Last modified onSaturday, 05 January 2013 13:15

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0003412544{main}( ).../index.php:0
20.19474262720Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.19474262720Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.680511453832Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.681511478336Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.682511533664Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.683011561064require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.702411960696K2ControllerItem->execute( ).../k2.php:64
90.702411960696K2ControllerItem->display( ).../BaseController.php:710
100.727812611400K2ControllerItem->display( ).../item.php:78
110.727812611400K2ControllerItem->display( ).../controller.php:19
120.733512982440Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.734613002808K2ViewItem->display( ).../ViewController.php:102
140.887715837864K2ViewItem->display( ).../view.html.php:742
150.887715837864K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.922916010800include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Oracle
  • Read 4055 times
More in this category: « ORA-01536

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0003412544{main}( ).../index.php:0
20.19474262720Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.19474262720Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.680511453832Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.681511478336Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.682511533664Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.683011561064require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.702411960696K2ControllerItem->execute( ).../k2.php:64
90.702411960696K2ControllerItem->display( ).../BaseController.php:710
100.727812611400K2ControllerItem->display( ).../item.php:78
110.727812611400K2ControllerItem->display( ).../controller.php:19
120.733512982440Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.734613002808K2ViewItem->display( ).../ViewController.php:102
140.887715837864K2ViewItem->display( ).../view.html.php:742
150.887715837864K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.922916010800include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top