个人工具

“Ubuntu上Oracle10g安装指南”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第13行: 第13行:
 
== 安装下载的deb包 ==
 
== 安装下载的deb包 ==
  
 +
安装oracle很简单,比如下载的文件在/home/xxx/download目录,只要执行即可:
 +
<pre>sudo dpkg -i /home/xxx/download/xxx.deb
 +
</pre>
 +
安装后如果一切正常的话Oracle应该会自动启动,是用ps命令可以查看当前运行的oracle进行,判断Oracle是否正确运行:
 +
<pre>sudo ps aux |grep oracle
 +
</pre>
  
 +
 +
输出的结果应该类似如下:
 +
<pre>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2774&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&lt;&nbsp;&nbsp; 19:51&nbsp;&nbsp; 0:00 [usb-storage]
 +
107&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7154&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp; 3260&nbsp; 1188 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 19:52&nbsp;&nbsp; 0:01 hald-addon-storage: polling /dev/scd0 (every 2 sec)
 +
oracle&nbsp;&nbsp; 16282&nbsp; 0.0&nbsp; 0.2&nbsp; 22076&nbsp; 6068 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr LISTENER -inherit
 +
oracle&nbsp;&nbsp; 16290&nbsp; 0.0&nbsp; 0.4 671464 10248 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_pmon_XE
 +
oracle&nbsp;&nbsp; 16292&nbsp; 0.0&nbsp; 0.4 670772&nbsp; 8828 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_psp0_XE
 +
oracle&nbsp;&nbsp; 16294&nbsp; 0.0&nbsp; 0.9 670772 20028 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_mman_XE
 +
oracle&nbsp;&nbsp; 16296&nbsp; 0.0&nbsp; 0.5 672844 11400 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_dbw0_XE
 +
oracle&nbsp;&nbsp; 16298&nbsp; 0.0&nbsp; 1.3 686324 28228 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_lgwr_XE
 +
oracle&nbsp;&nbsp; 16300&nbsp; 0.0&nbsp; 0.6 670780 14000 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_ckpt_XE
 +
oracle&nbsp;&nbsp; 16302&nbsp; 0.0&nbsp; 1.4 671316 29752 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_smon_XE
 +
oracle&nbsp;&nbsp; 16304&nbsp; 0.0&nbsp; 0.6 670776 14096 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_reco_XE
 +
oracle&nbsp;&nbsp; 16306&nbsp; 0.0&nbsp; 1.1 672376 22916 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_cjq0_XE
 +
oracle&nbsp;&nbsp; 16308&nbsp; 0.2&nbsp; 2.0 673520 43060 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_mmon_XE
 +
oracle&nbsp;&nbsp; 16310&nbsp; 0.0&nbsp; 0.4 670772&nbsp; 9944 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_mmnl_XE
 +
oracle&nbsp;&nbsp; 16312&nbsp; 0.0&nbsp; 0.4 671440&nbsp; 8952 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_d000_XE
 +
oracle&nbsp;&nbsp; 16314&nbsp; 0.0&nbsp; 0.4 671324&nbsp; 8668 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_s000_XE
 +
oracle&nbsp;&nbsp; 16316&nbsp; 0.0&nbsp; 0.4 671324&nbsp; 8676 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_s001_XE
 +
oracle&nbsp;&nbsp; 16318&nbsp; 0.0&nbsp; 0.4 671320&nbsp; 8668 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_s002_XE
 +
oracle&nbsp;&nbsp; 16320&nbsp; 0.0&nbsp; 0.4 671320&nbsp; 8676 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_s003_XE
 +
oracle&nbsp;&nbsp; 16333&nbsp; 0.0&nbsp; 0.4 670772&nbsp; 9956 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_qmnc_XE
 +
oracle&nbsp;&nbsp; 16353&nbsp; 0.0&nbsp; 0.5 670772 11000 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_q000_XE
 +
oracle&nbsp;&nbsp; 16358&nbsp; 0.0&nbsp; 0.4 670772&nbsp; 9284 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; 22:08&nbsp;&nbsp; 0:00 xe_q001_XE
 +
hubert&nbsp;&nbsp; 16455&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp; 3196&nbsp;&nbsp; 792 pts/2&nbsp;&nbsp;&nbsp; R+&nbsp;&nbsp; 22:11&nbsp;&nbsp; 0:00 grep ora
 +
 +
</pre>
 +
 +
 +
默认安装好以后,Oracle会自动运行,如果Oracle没有启动起来,需要手动去运行init.d下面的脚本:
 +
<pre>sudo /etc/init.d/oracle-xe start
 +
</pre>
 +
如果输出如下则表示启动成功:
 +
<pre>Starting Oracle Net Listener.
 +
Starting Oracle Database 10g Express Edition Instance.
 +
 +
</pre>
  
 
== 使用网页浏览器访问Oracle的http管理界面 ==
 
== 使用网页浏览器访问Oracle的http管理界面 ==

2007年12月27日 (四) 22:09的版本

安装体验版的Oracle 10g

体验版的Oracle10g比较适合在本子上或者开发的机器上使用,它提供了Oracle10g的大多数功能,并且仅需要更小的安装空间和运行环境。

下载体验版Oracle 10g的deb包


从下列地址下载:


安装下载的deb包

安装oracle很简单,比如下载的文件在/home/xxx/download目录,只要执行即可:

sudo dpkg -i /home/xxx/download/xxx.deb

安装后如果一切正常的话Oracle应该会自动启动,是用ps命令可以查看当前运行的oracle进行,判断Oracle是否正确运行:

sudo ps aux |grep oracle


输出的结果应该类似如下:

root      2774  0.0  0.0      0     0 ?        S<   19:51   0:00 [usb-storage]
107       7154  0.0  0.0   3260  1188 ?        S    19:52   0:01 hald-addon-storage: polling /dev/scd0 (every 2 sec)
oracle   16282  0.0  0.2  22076  6068 ?        Ss   22:08   0:00 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr LISTENER -inherit
oracle   16290  0.0  0.4 671464 10248 ?        Ss   22:08   0:00 xe_pmon_XE
oracle   16292  0.0  0.4 670772  8828 ?        Ss   22:08   0:00 xe_psp0_XE
oracle   16294  0.0  0.9 670772 20028 ?        Ss   22:08   0:00 xe_mman_XE
oracle   16296  0.0  0.5 672844 11400 ?        Ss   22:08   0:00 xe_dbw0_XE
oracle   16298  0.0  1.3 686324 28228 ?        Ss   22:08   0:00 xe_lgwr_XE
oracle   16300  0.0  0.6 670780 14000 ?        Ss   22:08   0:00 xe_ckpt_XE
oracle   16302  0.0  1.4 671316 29752 ?        Ss   22:08   0:00 xe_smon_XE
oracle   16304  0.0  0.6 670776 14096 ?        Ss   22:08   0:00 xe_reco_XE
oracle   16306  0.0  1.1 672376 22916 ?        Ss   22:08   0:00 xe_cjq0_XE
oracle   16308  0.2  2.0 673520 43060 ?        Ss   22:08   0:00 xe_mmon_XE
oracle   16310  0.0  0.4 670772  9944 ?        Ss   22:08   0:00 xe_mmnl_XE
oracle   16312  0.0  0.4 671440  8952 ?        Ss   22:08   0:00 xe_d000_XE
oracle   16314  0.0  0.4 671324  8668 ?        Ss   22:08   0:00 xe_s000_XE
oracle   16316  0.0  0.4 671324  8676 ?        Ss   22:08   0:00 xe_s001_XE
oracle   16318  0.0  0.4 671320  8668 ?        Ss   22:08   0:00 xe_s002_XE
oracle   16320  0.0  0.4 671320  8676 ?        Ss   22:08   0:00 xe_s003_XE
oracle   16333  0.0  0.4 670772  9956 ?        Ss   22:08   0:00 xe_qmnc_XE
oracle   16353  0.0  0.5 670772 11000 ?        Ss   22:08   0:00 xe_q000_XE
oracle   16358  0.0  0.4 670772  9284 ?        Ss   22:08   0:00 xe_q001_XE
hubert   16455  0.0  0.0   3196   792 pts/2    R+   22:11   0:00 grep ora


默认安装好以后,Oracle会自动运行,如果Oracle没有启动起来,需要手动去运行init.d下面的脚本:

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

如果输出如下则表示启动成功:

Starting Oracle Net Listener.
Starting Oracle Database 10g Express Edition Instance.

使用网页浏览器访问Oracle的http管理界面

 安装企业版的Oracle 10g

todo...