Ubuntu 13.10 安装 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 行 !!!
 
 
 
 
 
 

原文地址:https://www.cnblogs.com/jinzhenshui/p/3485092.html