没有合适的资源?快使用搜索试试~ 我知道了~
在 Ubuntu 8.04 LTS (Hardy Heron) 上安装 Oracle 11g翻译.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 19 浏览量
2022-11-11
14:40:40
上传
评论
收藏 1.44MB PDF 举报
温馨提示
试读
25页
。。。
资源推荐
资源详情
资源评论
在 Ubuntu 8.04 LTS (Hardy Heron) 上安装 Oracle 11g[翻译]
在我们发布《在 ubuntu 7.10 上安装 Oracle 10g 》(November, 6th)之后,考
虑到 4 月 21 号 Ubuntu 8.04 LTS 的发布,我花了点时间回顾并整理出这个新的
安装向导: HOWTO 。
请注意:我使用的是 x86 server 版本的 Ubuntu 8.04 ,但是相同的步骤在
desktop版本的 Ubuntu 上应该没有任何问题。另外提醒下,整个安装过程可能
花费超过6 个小时
1
的时间,别到时怪我没有告诉你哦。
那么,让我们开始吧~~
第一步
(安装 ubuntu。当然,如果你还没有安装的话:D)
从这里获取 Ubuntu Linux 8.04 Hardy Heron (x86, 32-bit) 安装镜像,刻录
到 CD 上,然后安装到任何一个你喜欢的主机上。安装系统的过程中,唯一的注
意事项是,你应该让安装程序在系统安装的最后安装一个 OpenSSH 服务器到你
的机器上,过一会儿我们的安装步骤都要通过 ssh 远程完成。
我不太确定这个服务器的最小配置需求,然而,在 ubuntu 上安装运行 Oracle
并没有被 Oracle 官方提供的支持。尽管你可能很惊讶,我使用的机器是 512M
内存的 x86 奔腾系列的机器。(什么乱七八糟的。。)
第二步
(下载 Oracle 安装文件)
下载 Oracle 11g for Linux (x86, 32-bit)。
在刻录从网上下载回来的镜像文件之前,对它做一下哈西值验证是一个好主意
(特别是 ubuntu 的安装镜像 iso)。你可以在一个 Unix-like 主机上使用
md4sum filename, sha1sum filename, 或者 cksum filename 命令做这个验证。
这些页面中列出了正确的哈西值:
Ubuntu 镜像 MD5sum 值
Oracle 镜像 cksum 值
(第三步
(设置 Xserver,这一步有一个较简单的替代方案。请看文后的附录)
在这个 HOWTO 中,我们需要一个 X server,于是要在你的桌面电脑上,允许来
自你的数据库服务器 X 连接到你的桌面。如果正好你的桌面电脑上也是使用
Ubuntu ,依次打开 系统->系统管理->登录窗口,选择“安全”标签页,然后取
消选择“拒绝通过 TCP 连接 Xserver”。你必须重新启动 X 服务器(使用
Ctrl+Alt+BackSpace)以便使刚才的更改生效。
我的桌面电脑系统是 Ubuntu(我称之为”note”),所以我有一个 X 服务器并且
已经处于运行中。如果你是在要安装数据库的电脑上运行的 X 服务器(使用了桌
面版,并直接操作,而不是通过 ssh),你可以跳过这一个步骤。把 192.168.x.y
改成你的 oracle 服务器(即将安装的)d 的 IP 地址:
bott@note:~$ hostname
note
user@note:~$ xhost +192.168.x.y
192.168.x.y being added to access control list
第四步
通过 ssh 登录你的数据库服务器(即将安装的,以后就这样称呼),并更新所有
软件包:
(中文用户请注意,我们还有先选择一个好用的源。参考
http://wiki.ubuntu.org.cn/Qref/ )
bott@note:~$ ssh user@192.168.x.y
user@192.168.x.y's password:
Linux hardy 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Thu May 1 21:45:05 2008 from 192.168.w.z
user@hardy:~$
确保你的网络连接正常(连接到国际互联网),升级所有的包到最新的版本,下
面是我在 Thursday, May 4th 2008 的输出:
user@hardy:~$ hostname
hardy
user@hardy:~$ sudo su -
[sudo] password for pythian:
root@hardy:~# apt-get update
Hit http://security.ubuntu.com hardy-security Release.gpg
Ign http://security.ubuntu.com hardy-security/main Translation-en_US
Hit http://us.archive.ubuntu.com hardy Release.gpg
Ign http://us.archive.ubuntu.com hardy/main Translation-en_US
(„)
Fetched 7455kB in 2min36s (47.6kB/s)
Reading package lists„ Done
root@hardy:~# apt-get dist-upgrade
Reading package lists„ Done
Building dependency tree
Reading state information„ Done
Calculating upgrade„ Done
The following packages will be upgraded:
libldap-2.4-2 lshw
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 498kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://us.archive.ubuntu.com hardy-updates/main libldap-2.4-2
2.4.7-6ubuntu4.1 [181kB]
Get:2 http://us.archive.ubuntu.com hardy-updates/main lshw
02.12.01-2ubuntu1.1 [317kB]
Fetched 498kB in 2s (211kB/s)
(Reading database „ 18768 files and direc×ies currently installed.)
Preparing to replace libldap-2.4-2 2.4.7-6ubuntu3
(using „/libldap-2.4-2_2.4.7-6ubuntu4.1_i386.deb) „
Unpacking replacement libldap-2.4-2 „
Preparing to replace lshw 02.12.01-2ubuntu1
(using „/lshw_02.12.01-2ubuntu1.1_i386.deb) „
Unpacking replacement lshw „
Setting up libldap-2.4-2 (2.4.7-6ubuntu4.1) „
Setting up lshw (02.12.01-2ubuntu1.1) „
Processing triggers for libc6 „
ldconfig deferred processing now taking place
root@hardy:~#
可能你会奇怪,我们为什么要用 sudo su - 代替 sudo -s (就像上一个版本的
HOWTO 中使用的那样): sudo su - 有效的开启一个空白的(干净的)root 会
话,然而 sudo -s 创建一个 root 权限的会话,但是保留了很多前一个会话的会
话变量。我选择这样的方式就是试图使下面的整个过程更加的顺利而且不出现意
外的小状况。
如果 ap-get dist-upgrade 安装了新版本的内核,那么重新启动电脑以使用最
新的内核再进行以下的步骤会是一个好主意。
root@hardy:~# reboot
Broadcast message from user@hardy
(/dev/pts/0) at 0:04 ...
The system is going down for reboot NOW!
root@hardy:~# Connection to 192.168.x.y closed by remote host.
Connection to 192.168.x.y closed.
bott@note:~$
第五步
等电脑重新启动之后,再次登录进去安装一些 Oracle 安装需要的额外的包:
build-essential, libaio1, gawk, ksh, libmotif3, alien, libtool, and
lsb-rpm。请注意我们的内核已经被升级到了最新的版本:
bott@note:~$ ssh user@192.168.x.y
user@192.168.x.y's password:
Linux hardy 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Thu May 1 21:45:05 2008 from 192.168.w.z
user@hardy:~$ sudo su -
[sudo] password for pythian:
root@hardy:~# apt-get install build-essential libaio1 gawk ksh libmotif3
alien libtool lsb-rpm
Reading package lists„ Done
Building dependency tree
Reading state information„ Done
The following extra packages will be installed:
autotools-dev binutils debhelper dpkg-dev g++ g++-4.2 gcc gcc-4.2 gettext
html2text intltool-debian libbeecrypt6 libc6-dev libgomp1 libice6
libneon27
librpm4.4 libsm6 libstdc++6-4.2-dev libtimedate-perl libx11-6
libx11-data libxau6 libxcb-xlib0 libxcb1 libxdmcp6 libxext6 libxml2
libxmu6 libxp6 libxt6
linux-libc-dev make patch po-debconf rpm x11-common
Suggested packages:
lintian binutils-doc dh-make debian-keyring g++-multilib
g++-4.2-multilib gcc-4.2-doc libstdc++6-4.2-dbg autoconf automake1.9
bison flex gcc-doc
gcc-multilib gdb manpages-dev gcc-4.2-locales gcc-4.2-multilib
libgcc1-dbg libgomp1-dbg libmudflap0-4.2-dbg libmudflap0-4.2-dev cvs
gettext-doc glibc-doc
libstdc++6-4.2-doc automaken gcj gfortran fortran95-compiler
libtool-doc make-doc diff-doc
Recommended packages:
libltdl3-dev xml-core libmail-sendmail-perl libcompress-zlib-perl
libmail-box-perl
The following NEW packages will be installed:
alien autotools-dev binutils build-essential debhelper dpkg-dev g++
g++-4.2 gawk gcc gcc-4.2 gettext html2text intltool-debian ksh libaio1
libbeecrypt6
libc6-dev libgomp1 libice6 libmotif3 libneon27 librpm4.4 libsm6
libstdc++6-4.2-dev libtimedate-perl libtool libx11-6 libx11-data
libxau6 libxcb-xlib0
libxcb1 libxdmcp6 libxext6 libxml2 libxmu6 libxp6 libxt6 linux-libc-dev
lsb-rpm make patch po-debconf rpm x11-common
0 upgraded, 45 newly installed, 0 to remove and 0 not upgraded.
Need to get 22.9MB of archives.
After this operation, 80.5MB of additional disk space will be used.
Do you want to continue [Y/n]?
(„ again: downloads a bunch of packages „)
(„ again: installs a bunch of packages „)
Processing triggers for libc6 „
ldconfig deferred processing now taking place
root@hardy:~#
第六步
当以上所有的包都安装完成之后,我们要在系统上做一些调整。首先,要把 sh
从 dash 替换为 bash。不要忘记这个步骤,否则我们可能会在安装过程中遇到各
种各样的奇奇怪怪的错误:
root@hardy:~# cd /bin
root@hardy:/bin# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2008-04-28 19:59 /bin/sh -> dash
root@hardy:/bin# ln -sf bash /bin/sh
root@hardy:/bin# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2008-05-01 22:51 /bin/sh -> bash
如果你对于为什么 Ubuntu 使用 dash 作为默认 shell 感到好奇的话,这里有一个
详细的解释:为什么使用 dash 作为默认系统 shell 程序,以及它和
bash
之间的
不同。
第七步
接下来,我们对基本系统做一些改动(行号是后加的,为了显示清楚):
01 root@hardy:/bin# cd
02 root@hardy:~# pwd
/root
04 root@hardy:~# addgroup oinstall
Adding group `oinstall' (GID 1001) ...
Done.
07 root@hardy:~# addgroup dba
Adding group `dba' (GID 1002) ...
Done.
10 root@hardy:~# addgroup nobody
Adding group `nobody' (GID 1003) ...
剩余24页未读,继续阅读
资源评论
春哥111
- 粉丝: 1w+
- 资源: 5万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功