Ubuntu 12.04.3 安装 Oracle11gR2
#step 1:
groupadd -g 2000 dba
useradd -g 2000 -m -s /bin/bash -u 2000 grid
useradd -g 2000 -m -s /bin/bash -u 2005 oracle
mkdir -p /u01/app/grid
mkdir -p /u01/app/oracle
chown grid:dba /u01/app/grid
chown oracle:dba /u01/app/oracle
chown root:dba /u01
chown root:dba /u01/app
chmod g+rwx /u01
chmod g+rwx /u01/app
#step 2:
apt-get install binutils
apt-get install build-essential
apt-get install sysstat
apt-get install libaio1 libaio-dev
#apt-get install rpm
#apt-get install libcap2
#apt-get install ssh
# must install libstdc++5 , gcc-4.4, by mannual !!!!!!!
dpkg -i libstdc++5_3.3.6-25ubuntu4_i386.deb
dpkg -i gcc-4.4-base_4.4.7-2ubuntu2_i386.deb
dpkg -i cpp-4.4_4.4.7-2ubuntu2_i386.deb
dpkg -i gcc-4.4_4.4.7-2ubuntu2_i386.deb
dpkg -i pdksh_5.2.14-26ubuntu1_i386.deb
#step 3:
ln -sf /bin/bash /bin/sh
ln -sf /usr/bin/basename /bin/basename
ln -sf /usr/bin/awk /bin/awk
ln -sf /usr/bin/env /bin/env
ln -sf /usr/bin/rpm /bin/rpm
ln -sf /usr/bin/gcc-4.4 /usr/bin/gcc
ln -s /usr/lib/i386-linux-gnu/libstdc++.so.5 /usr/lib/libstdc++.so.5
ln -s /usr/lib/i386-linux-gnu/libstdc++.so.6 /usr/lib/libstdc++.so.6
ln -s /usr/lib/i386-linux-gnu/libc_nonshared.a /usr/lib/libc_nonshared.a
ln -s /usr/lib/i386-linux-gnu/libpthread_nonshared.a /usr/lib/libpthread_nonshared.a
ln -s /lib/i386-linux-gnu/libgcc_s.so.1 /lib/libgcc_s.so.1
ln -s /lib/i386-linux-gnu/libcap.so.2 /lib/libcap.so.1
#step 99 : the last-step; when run then root.sh
# this step is not important
cat /etc/lsb-release >>/tmp/.linux_release
chmod a+rw /tmp/.linux_release
# important !!!!!!!
dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
chmod a+rw /var/tmp/.oracle/npohasd
#########################################################################################
INFO: /usr/bin/ld: warning: -z lazyload ignored.
/usr/bin/ld: warning: -z nolazyload ignored.
/usr/bin/ld: /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib//libnmectl.a(nmectlt.o): undefined reference to symbol 'B_DestroyKeyObject'
/usr/bin/ld: note: 'B_DestroyKeyObject' is defined in DSO /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so so try adding it to the linker command line
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so: could not read symbols: Invalid operation
collect2: ld returned 1 exi
INFO: t status
make[1]: *** [/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/emdctl] Error 1
make: *** [emdctl] Error 2
INFO: make[1]: Leaving directory `/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib'
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk'. See '/u01/app/oraInventory/logs/installActions2013-07-03_04-45-12PM.log' for details.
Exception Severity: 1
#########################################################################################
在Ubuntu下面会出现很多mk错误,
这个类似问题我遇到过:
vim 打开/opt/oracle/server/sysman/lib/env_emagent.mk 在文件中加入一行:EXPDLIBS=-lnnz11
#########################################################################################
Once the file exists, do:
vi $ORACLE_HOME/sysman/lib/ins_emagent.mk
Search for the line
$(MK_EMAGENT_NMECTL)
Change it to:
$(MK_EMAGENT_NMECTL) -lnnz11 # good !!!!!!!!!!!!!!!!!!!!!! 第 176 行 !!!
相关文章
- Ubuntu-18.04 下修改root用户密码,安装SSH服务,允许root用户远程登录,安装vsftp服务器
- Ubuntu 14.04服务器安装及软件配置
- Ubuntu下安装和配置Apache2
- ubuntu 12.04 安装 Nginx+PHP5 (PHP-FPM) +MySQL主机详解
- 如何安装透明窗口主题Emerald在Ubuntu 13.04/12.10/12.04中-PPA
- Ubuntu 13.10安装后你要做的8件事
- 安装Ubuntu 14.04后要做的5件事情
- 怎样在ubuntu 14.04上安装轻量级的Budgie桌面
- 如何在 Virtuozzo 上安装 Plesk
- 在 Ubuntu 15.04 中如何安装和使用 Snort
- 使用脚本便捷地在 Ubuntu 中安装最新 Linux 内核
- [转]nginx安装及其配置详细教程
- centOS7下安装GUI图形界面
- ubuntu上安装远程桌面服务
- mac上安装ubuntu双系统
- vmware安装 Linux ubuntu 窗口 太小 不完整 按钮被遮住
- 图文教程:手把手教你用U盘安装Ubuntu
- CentOS6.5菜鸟之旅:安装输入法(小呀小企鹅)
- Ubuntu GNOME 安装日语输入法(收集)
- robot:linux下安装robot环境
- 【转载:】 查看linux下安装了哪些软件(rpm)和 rpm 常用命令
- zabbix_agent安装(Centos+Ubuntu)
- (原)ubuntu上安装dlib
- U盘安装 Ubuntu 16.04