`
nakupanda
  • 浏览: 416254 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

[转]ORACLE 10G install steps on ubuntu 8.10 x64 server

阅读更多
安装过程中遇到不少问题,记录一下:

wayne@wayne-laptop:~/.ssh$ ssh -X holly@10.8.66.201

holly@10.8.66.201′s password:

Linux ubuntu108 2.6.24-19-server #1 SMP Wed Jun 18 14:44:47 UTC 2008 x86_64

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: Mon Jul 20 09:34:34 2009 from 10.8.10.154

holly@ubuntu108:~$ sudo su -

root@ubuntu108:~#

root@ubuntu108:~# hostname

ubuntu108

root@ubuntu108:~# apt-get update

……

root@ubuntu108:~# apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm

……

root@ubuntu108:~# cd /bin

root@ubuntu108:/bin# ls -l /bin/sh

lrwxrwxrwx 1 root root 4 Jul 17 22:33 /bin/sh -> dash

root@ubuntu108:/bin# ln -sf bash /bin/sh

root@ubuntu108:/bin# ls -l /bin/sh

lrwxrwxrwx 1 root root 4 Jul 20 09:45 /bin/sh -> bash

root@ubuntu108:/bin# addgroup oinstall

Adding group `oinstall’ (GID 1001) …

Done.

root@ubuntu108:/bin# addgroup dba

Adding group `dba’ (GID 1002) …

Done.

root@ubuntu108:/bin# addgroup nobody

Adding group `nobody’ (GID 1003) …

Done.

root@ubuntu108:/bin# usermod -g nobody nobody

root@ubuntu108:/bin# useradd -g oinstall -G dba -p oracle -d /home/oracle -s /bin/bash oracle

root@ubuntu108:/bin# passwd -l oracle

Password changed.

root@ubuntu108:/bin# mkdir /home/oracle

root@ubuntu108:/bin# chown -R oracle:dba /home/oracle

root@ubuntu108:/bin# ln -s /usr/bin/awk /bin/awk

root@ubuntu108:/bin# ln -s /usr/bin/rpm /bin/rpm

root@ubuntu108:/bin# ln -s /usr/bin/basename /bin/basename

root@ubuntu108:/bin# ln -s /lib/libgcc_s.so.1 /lib/libgcc_s.so

root@ubuntu108:/bin# mkdir /etc/rc.d

root@ubuntu108:/bin# for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done

root@ubuntu108:/bin# mkdir -p /oracle

root@ubuntu108:/bin# chown -R oracle:dba /oracle

root@ubuntu108:/bin# echo “fs.file-max = 65536″ >> /etc/sysctl.conf

root@ubuntu108:/bin# echo “kernel.shmall = 2097152″ >> /etc/sysctl.conf

root@ubuntu108:/bin# echo “kernel.shmmax = 2147483648″ >> /etc/sysctl.conf

root@ubuntu108:/bin# echo “kernel.shmmni = 4096″ >> /etc/sysctl.conf

root@ubuntu108:/bin# echo “kernel.sem = 250 32000 100 128″ >> /etc/sysctl.conf

root@ubuntu108:/bin# echo “net.ipv4.ip_local_port_range = 1024 65535″ >> /etc/sysctl.conf

root@ubuntu108:/bin# echo “net.core.rmem_default = 262144″ >> /etc/sysctl.conf

root@ubuntu108:/bin# echo “net.core.rmem_max = 262144″ >> /etc/sysctl.conf

root@ubuntu108:/bin# echo “net.core.wmem_max = 262144″ >> /etc/sysctl.conf

root@ubuntu108:/bin# echo “net.core.wmem_default = 262144″ >> /etc/sysctl.conf

root@ubuntu108:/bin# echo “oracle soft nproc 2047″ >> /etc/security/limits.conf

root@ubuntu108:/bin# echo “oracle hard nproc 16384″ >> /etc/security/limits.conf

root@ubuntu108:/bin# echo “oracle soft nfile 1024″ >> /etc/security/limits.conf

root@ubuntu108:/bin# echo “oracle hard nofile 65530″ >> /etc/security/limits.conf

root@ubuntu108:/bin# sysctl -p

kernel.printk = 4 4 1 7

kernel.maps_protect = 1

fs.inotify.max_user_watches = 524288

vm.mmap_min_addr = 65536

net.ipv4.conf.default.rp_filter = 1

net.ipv4.conf.all.rp_filter = 1

fs.file-max = 65536

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 1024 65535

net.core.rmem_default = 262144

net.core.rmem_max = 262144

net.core.wmem_max = 262144

net.core.wmem_default = 262144

root@ubuntu108:/bin# su – oracle

Your account has expired; please contact your system administrator

su: User account has expired

(Ignored)

oracle@ubuntu108:~$ pwd

/home/oracle

oracle@ubuntu108:~$ wget ftp://usr:pwd@10.8.2.70/Oracle/10g/10201_database_linux_x86_64.cpio.gz–10:06:07– ftp://hollycrm:*password*@10.8.2.70/

……

oracle@ubuntu108:~$ ls

10201_database_linux_x86_64.cpio.gz

oracle@ubuntu108:~$ gunzip 10201_database_linux_x86_64.cpio.gz

oracle@ubuntu108:~$ ls

10201_database_linux_x86_64.cpio

oracle@ubuntu108:~$ cpio -idmv < 10201_database_linux_x86_64.cpio

……

oracle@ubuntu108:~$ ls

10201_database_linux_x86_64.cpio database

oracle@ubuntu108:~$ cd database/

oracle@ubuntu108:~/database$ ./runInstaller -help

./runInstaller: line 52: /home/oracle/database/install/.oui: No such file or directory

oracle@ubuntu108:~/database$ cd install

oracle@ubuntu108:~/database/install$ ls -al

total 364

drwxr-xr-x 5 oracle oinstall 4096 2009-07-20 10:11 .

drwxr-xr-x 6 oracle oinstall 4096 2009-07-20 10:11 ..

-rwxr-xr-x 1 oracle oinstall 28 2005-10-23 15:49 addLangs.sh

-rwxr-xr-x 1 oracle oinstall 76 2005-10-23 15:49 addNode.sh

drwxr-xr-x 2 oracle oinstall 4096 2009-07-20 10:11 images

-rwxr-xr-x 1 oracle oinstall 46448 2005-10-23 15:49 lsnodes

-rwxr-xr-x 1 oracle oinstall 2268 2005-10-23 15:49 oneclick.properties

-rwxr-xr-x 1 oracle oinstall 2387 2005-10-23 15:49 oraparam.ini

-rwxr-xr-x 1 oracle oinstall 6428 2005-10-23 15:49 oraparamsilent.ini

-rwxr-xr-x 1 oracle oinstall 163185 2005-10-23 15:49 .oui

drwxr-xr-x 2 oracle oinstall 4096 2009-07-20 10:11 resource

drwxr-xr-x 2 oracle oinstall 4096 2009-07-20 10:11 response

-rwxr-xr-x 1 oracle oinstall 102612 2005-10-23 15:49 unzip

–这里遇到这个问题,具体原因是由于Oracle数据库64位安装介质使用了32位的安装程序,而系统中没有32位包。

root@ubuntu108:/usr/X11R6# apt-get install ia32-libs

Reading package lists… Done

……

ldconfig deferred processing now taking place

oracle@ubuntu108:/oracle/database$ export DISPLAY=10.8.10.154:0.0

oracle@ubuntu108:/oracle/database$ export LANG=us_EN.UTF-8

oracle@ubuntu108:/oracle/database$ ./runInstaller -ignoreSysPrereqs -record -destinationFile /oracle/orainstall.rsp

……

oracle@ubuntu108:/oracle/database$ ./runInstaller -ignoreSysPrereqs -silent -responseFile /oracle/orainstall.rsp

……

WARNING:A new inventory has been created in this session. However, it has not yet been registered as the central inventory of this system.

To register the new inventory please run the script ‘/home/oracle/oraInventory/orainstRoot.sh’ with root privileges.

If you do not register the inventory, you may not be able to update or patch the products you installed.

The following configuration scripts

/home/oracle/oracle/product/10.2.0/db_1/root.sh

need to be executed as root for configuring the system. If you skip the execution of the configuration tools, the configuration will not be complete and the product wont function properly. In order to get the product to function properly, you will be required to execute the scripts and the configuration tools after exiting the OUI.

The installation of Oracle Database 10g was successful.

Please check ‘/home/oracle/oraInventory/logs/silentInstall2009-07-20_02-41-14PM.log‘ for more details.

–这里应该查看/home/oracle/oraInventory/logs/silentInstall2009-07-20_02-41-14PM.log,看是否有报错信息;我安装过程中没有注意,结果后面打补丁报出跟这里一样的错误。

****************************************************************************

root@ubuntu108:~# /home/oracle/oraInventory/orainstRoot.sh

Changing permissions of /home/oracle/oraInventory to 770.

Changing groupname of /home/oracle/oraInventory to oinstall.

The execution of the script is complete

root@ubuntu108:~# /home/oracle/oracle/product/10.2.0/db_1/root.sh

Running Oracle10 root.sh script…

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /home/oracle/oracle/product/10.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin …

Copying oraenv to /usr/local/bin …

Copying coraenv to /usr/local/bin …

Creating /etc/oratab file…

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

****************************************************************************


–打补丁:

–第一次图形安装报错,日志如下(查看日志的过程中,发现这个错误在之前的静默安装日志中已经报错):

INFO: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libpthread.so when searching for -lpthread

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libpthread.a when searching for -lpthread

/usr/bin/ld: skipping incompatible /usr/bin/../lib/libpthread.so when searching for -lpthread

/usr/bin/ld: skipping incompatible /usr/bin/../lib/libpthread.a when searching for -lpthread

/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lp

INFO: thread

/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread

/usr/bin/ld: cannot find -lpthread

collect2: ld returned 1 exit status

INFO: make[1]: *** [/home/oracle/oracle/product/10.2.0/db_1/sysman/lib/libnmemso.so] Error 1

INFO: make[1]: Leaving directory `/home/oracle/oracle/product/10.2.0/db_1/sysman/lib’

INFO: make: *** [libnmemso] Error 2

INFO: End output from spawned process.

INFO: ———————————-

INFO: Exception thrown from action: make

Exception Name: MakefileException

Exception String: Error in invoking target ‘agent’ of makefile ‘/home/oracle/oracle/product/10.2.0/db_1/sysman/lib/ins_sysman.mk’. See ‘/home/oracle/oraInventory/logs/installActions2009-07-20_02-54-28PM.log’ for details.

Exception Severity: 1

–继续安装包

root@ubuntu108:/home/oracle/oraInventory/logs# sudo apt-get install gcc libaio1 lesstif2 lesstif2-dev make libc6 libc6-i386 libc6-dev-i386 libstdc++5 lib32stdc++6 lib32z1 ia32-libs

……

–报错:

INFO: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libgcc.a when searching for -lgcc

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libgcc.a when searching for -lgcc

/usr/bin/ld: cannot find -lgcc

INFO: collect2: ld returned 1 exit status

make[1]: *** [/home/oracle/oracle/product/10.2.0/db_1/sysman/lib/libnmemso.so] Error 1

INFO: make[1]: Leaving directory `/home/oracle/oracle/product/10.2.0/db_1/sysman/lib’

INFO: make: *** [libnmemso] Error 2

INFO: End output from spawned process.

INFO: ———————————-

INFO: Exception thrown from action: make

Exception Name: MakefileException

Exception String: Error in invoking target ‘agent’ of makefile ‘/home/oracle/oracle/product/10.2.0/db_1/sysman/lib/ins_sysman.mk’. See ‘/home/oracle/oraInventory/logs/installActions2009-07-20_03-10-03PM.log’ for details.

Exception Severity: 1

–继续安装包

root@ubuntu108:/home/oracle/oraInventory/logs# apt-get install gcc-multilib

……

oracle@ubuntu108:/oracle/Disk1$ ./runInstaller -ignoreSysPrereqs -record -destinationFile /oracle/oraupdate.rsp

……

oracle@ubuntu108:/oracle/Disk1$ ./runInstaller -ignoreSysPrereqs -silent -responseFile /oracle/oraupdate.rsp

……

WARNING:
The following configuration scripts need to be executed as the “root” user.
#!/bin/sh
#Root script to run
/home/oracle/oracle/product/10.2.0/db_1/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as “root”
3. Run the scripts

The installation of Oracle Database 10g Release 2 Patch Set 3 was successful.
Please check ‘/home/oracle/oraInventory/logs/silentInstall2009-07-20_03-19-54PM.log’ for more details.

****************************************************************************
root@ubuntu108:/home/oracle/oraInventory/logs# /home/oracle/oracle/product/10.2.0/db_1/root.sh
Running Oracle10 root.sh script…

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME=  /home/oracle/oracle/product/10.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file “dbhome” already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin …
The file “oraenv” already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin …
The file “coraenv” already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin …

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
****************************************************************************

vi .bash_profile

umask 022

export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1

export PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_SID=hollyc5

export ORACLE_BASE=/home/oracle

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export NLS_LANG=AMERICAN_AMERICA.UTF8

export LANG=us_EN.UTF-8

dbca

……

netca

……

最后,ubuntu应该安装的包:

sudo apt-get install gcc libaio1 lesstif2 lesstif2-dev make libc6 libc6-i386 libc6-dev-i386 libstdc++5 lib32stdc++6 lib32z1 ia32-libs gcc-multilib

感谢:
http://wajoynece.cn/2009/07/oracle-10g-install-steps-on-ubuntu-8-10-x64-server/

分享到:
评论

相关推荐

    Install Bugzilla3.2.2 On Ubuntu8.10 + VirtualBox

    此手册是本人自己安装多次写下来的心得,里面包含具体命令操作和对应的画面,初次安装者可以按照提示来安装,保证一次可以OK, 本人是在Ubuntu8.10下安装的,不过这篇安装手册同样适合于Linux和Windows下安装的朋友,...

    UBUNTU8.10安装与配置

    Ubuntu 8.10 安装与配置 本文档将指导您从头开始安装和配置 Ubuntu 8.10操作系统,并对 SSH 服务器和 Samba 文件共享进行配置。 一、Ubuntu 8.10 安装 1. 首先,设置好光盘启动后,放入 Ubuntu 光盘,重启动...

    ubuntu 8.10的配置

    【Ubuntu 8.10配置详解】 Ubuntu 8.10,代号“Intrepid Ibex”,是一款基于Linux内核的开源操作系统。本篇将详细讲解如何在该版本上进行基本配置,包括联网、软件源设定、安装中文语言支持、NTFS卷的自动挂载以及...

    ubuntu-8.10-dvd-i386.iso.torrent

    Ubuntu 8.10发布于2008年10月31日,这是它的重要里程碑,带来了许多更新和改进。 描述中提到的"最新版本的ubuntu8.10 dvd版本的种子"意味着这个文件是一个BT(BitTorrent)种子文件,用于通过P2P(对等网络)方式...

    硬盘安装Ubuntu 8.10

    标题中的"硬盘安装Ubuntu 8.10"指的是在没有刻录光盘的情况下,通过将Ubuntu 8.10的安装文件直接存放在硬盘上来安装操作系统的方法。这种方法尤其适合那些没有刻录设备的用户,它提供了在无光驱、无软驱的环境下安装...

    Ubuntu 8.10网络设置说明,非常详细Ubuntu 8.10网络设置说明,非常详细

    Ubuntu 8.10,代号Intrepid Ibex,是Ubuntu发行版的一个版本,发布于2008年10月30日。它引入了许多新的功能和改进,尤其是在网络配置方面。对于那些初次接触Ubuntu 8.10的用户来说,正确地配置网络连接可能会遇到...

    使用VM安装Ubuntu8.10

    ### 使用VMware安装Ubuntu 8.10 的详细步骤与注意事项 #### 一、准备工作 在开始使用VMware安装Ubuntu 8.10之前,我们需要完成以下准备工作: 1. **下载Ubuntu 8.10 ISO镜像文件**:首先访问Ubuntu官方网站的FTP...

    Ubuntu8.10 可用的Chrome安装包

    Ubuntu 8.10 Chrome 安装包

    零命令玩转Ubuntu 8.10(基本配置篇)

    在本文中,我们将深入探讨如何在Ubuntu 8.10操作系统上进行基本配置,让你无需输入复杂的命令就能轻松上手。Ubuntu 8.10,代号“Intrepid Ibex”,是一款深受用户喜爱的Linux发行版,其易用性和稳定性为用户提供了...

    零命令玩转Ubuntu 8.10(Wubi安装图文教程)

    如果你想卸载Ubuntu,或者需要释放磁盘空间,只需在Windows环境下进入安装Ubuntu的分区(例如X:\Ubuntu),双击"Uninstall-Ubuntu.exe",Wubi会卸载Ubuntu及其自身,仅留下一个名为"Ubuntu-backup"的空文件夹,你...

    菜鸟打造娱乐ubuntu8.10.txt

    从给定的文件信息来看,文章主要聚焦于指导IT初学者如何在娱乐需求下安装与配置Ubuntu 8.10操作系统。以下是对标题、描述、标签以及部分内容中提及的关键知识点的详细解读: ### 关键知识点一:安装Ubuntu 8.10 ##...

    ubuntu8.10中文开发环境设置.pdf

    ### Ubuntu 8.10中文开发环境设置知识点详解 #### 一、基础系统配置 **1. 安装Ubuntu 8.10** - 虽然文档中提到不详细讲解Ubuntu 8.10的安装过程,但在实际操作中,安装Ubuntu 8.10需要准备一个可引导的安装介质,...

    在Ubuntu8.10 64bit version下用Crosstool-0.43建立ARM-Linux交叉编译环境

    在Ubuntu 8.10 64位版本下建立ARM-Linux交叉编译环境是一项重要的任务,对于进行嵌入式系统开发的工程师来说,这是必不可少的步骤。交叉编译环境允许开发者在宿主机上(这里是Ubuntu 8.10)构建针对目标硬件(ARM...

    linux下socket代理服务端(ubuntu8.10server下验证)

    linux下socket代理服务端(ubuntu8.10server下验证),源码编译时有点小错误,可能是编译器改进造成的,已经改正并编译通过,需要 gcc4.3和 g++.若有错误希望大家能指出并改正,共同学习。

    Hadoop配置手册Ubuntu8.10

    【Hadoop配置手册Ubuntu8.10】是一个详细的指南,主要涵盖了在Ubuntu 8.10操作系统上安装和配置Hadoop 0.20.1的步骤。以下是配置过程的关键知识点: 1. **系统环境准备**: - 配置环境涉及到三台机器,分别作为...

    Ubuntu8.10 虚拟机与主机共享文件夹设置

    ### Ubuntu 8.10 虚拟机与主机共享文件夹设置详解 在IT行业中,虚拟化技术的运用越来越广泛,特别是在开发、测试及学习环境中。本文将深入解析如何在VMware环境下,实现Ubuntu 8.10虚拟机与主机之间的文件夹共享...

    Ubuntu 8.10(Intrepid Ibex)安装配置大全

    ### Ubuntu 8.10(Intrepid Ibex)安装配置大全 #### 一、系统初始化 在初次安装完Ubuntu 8.10后,系统初始化是非常重要的第一步。这一步主要是为了确保系统的稳定性和安全性。 - **硬盘分区建议**:通常推荐为普通...

    [ubuntu8.10在Vmware下鼠标自由切换补丁]

    ubuntu8.10在Vmware下鼠标自由切换补丁

    Ubuntu 8.10 安装后的详细设置

    在安装完Ubuntu 8.10操作系统之后,用户通常需要进行一系列的设置以优化系统性能、连接网络、更新软件库以及个性化系统。以下是对这些关键步骤的详细解释: 1. **配置ADSL网络**: - **配置帐户信息**:在终端中...

Global site tag (gtag.js) - Google Analytics